/* ─────────────────────────────────────────────
   Linkedpen — Landing Page
   Closely modeled on Cursor.com's design system
   ───────────────────────────────────────────── */

/* ─── Local fonts (no Google API) ─── */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Warm off-white body, neutral gray boxes (rgb(242, 241, 237) == #f2f1ed) */
  --bg: rgb(247, 247, 244);
  --surface: #f2f1ed;        /* every box */
  --surface-2: #e8e7e2;      /* hover / nested deeper layer if needed */
  --white: #ffffff;

  /* Ink */
  --ink: #0f0e0c;
  --ink-2: #5b5852;
  --ink-3: #8a867e;
  --line: #e3e1d9;
  --line-soft: #ececea;

  /* Cursor's signature orange */
  --accent: #d9531a;
  --accent-2: #b9421a;
  --accent-soft: #fbeee5;

  /* Status */
  --good: #1b6e3c;
  --bad: #9b2929;

  /* Layout */
  --container: 1280px;
  --gutter: 1.5rem;
  --radius: 4px;             /* rounded-xs everywhere */
  --radius-sm: 4px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: "Geist", sans-serif;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
p { margin: 0; color: var(--ink-2); }

/* The Cursor "compose heading": tight-stacked dark heading + same-size lighter description */
.compose h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  display: inline;
}
.compose .lede {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--ink-3);
  display: inline;
}
.compose .compose-block {
  margin: 0;
}
.compose .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.6rem;
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 200ms var(--ease);
}
.compose .learn-more:hover { color: var(--accent-2); }
.compose .learn-more .arrow { transition: transform 220ms var(--ease); }
.compose .learn-more:hover .arrow { transform: translateX(3px); }

/* ─── Container / shell ─── */
.shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.shell.flush {
  padding-left: 0;
  padding-right: 0;
}

/* ─── Nav (sticky on scroll, white bg) ─── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.nav-wrap.scrolled {
  border-bottom-color: var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.brand-mark {
  width: 22px; height: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.brand-mark span { background: var(--ink); border-radius: 50%; }

.nav-links {
  display: flex;
  gap: 2.4rem;
  flex: 1;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.nav-links a { transition: color 180ms var(--ease); }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav-cta .signin {
  font-size: 0.95rem;
  color: var(--ink-2);
  padding: 0.6rem 0.9rem;
  transition: color 200ms var(--ease);
}
.nav-cta .signin:hover { color: var(--ink); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 200ms var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
  font-family: inherit;
}
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: #221f1a;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: transparent;
}
.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.03);
}

/* ─── Section cards (gray boxes for sections that are framed) ─── */
.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.4rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 1024px) {
  .section-card { padding: 3rem; }
}

/* Bare mockup — no padding frame, no shadow, just the screenshot directly */
.mockup-bare {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.mockup-bare img {
  display: block;
  width: 100%;
}

/* ─── Hero — no card wrapper, headline+buttons on white, then painted stage ─── */
.hero {
  padding: 5rem 0 3rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  font-weight: 500;
  max-width: 32ch;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

/* Painted backdrop holding the floating dashboard window */
.hero-stage {
  position: relative;
  margin-top: 3.5rem;
  border-radius: var(--radius);
  padding: 5rem 3rem 0;
  background-image: url("img/cursor-bg-1.webp");
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
  isolation: isolate;
  min-height: 540px;
}
.hero-stage .floating-window {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 1080px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 12px 28px -14px rgba(0, 0, 0, 0.30),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.hero-stage .floating-window img {
  display: block;
  width: 100%;
}

/* ─── Problem section ─── */
.problem {
  padding: 5rem 0 3rem;
}
.problem-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}
.problem-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
}
.problem-head h2 .muted {
  color: var(--ink-3);
  font-weight: 400;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.problem-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.7rem;
}
.problem-card .x {
  display: inline-flex;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(217,83,26,0.12);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.problem-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ─── Features (each row a section card with 2-col) ─── */
.features {
  display: grid;
  gap: 88px;
  padding: 4rem 0;
}
@media (max-width: 960px) {
  .features { gap: 1.5rem; padding: 2rem 0; }
}
.feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: center;
  padding: 18px;
}
.feature.reverse {
  grid-template-columns: 2fr 1fr;
}
@media (min-width: 1024px) {
  .section-card.feature { padding: 18px; }
}
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-mockup { order: 1; }

.feature-text {
  max-width: 32ch;
}

/* ─── CTA bar (full-width centered, on plain cream) ─── */
.cta-bar {
  text-align: center;
  padding: 6rem 0;
}
.cta-bar h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 22ch;
  margin: 0 auto 0.5rem;
}
.cta-bar h2 .muted { color: var(--ink-3); font-weight: 400; }
.cta-bar p { color: var(--ink-3); font-size: 1rem; margin-bottom: 0; }
.cta-bar .actions {
  display: inline-flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ─── Comparison ─── */
.compare-wrap {
  padding: 3rem 0;
}
.compare-head {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.compare-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.compare-head h2 .muted { color: var(--ink-3); font-weight: 400; }
.compare-head p { color: var(--ink-3); font-size: 1rem; }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.compare-card {
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
}
.compare-card.us {
  background: var(--ink);
  color: #efece4;
}
.compare-card.them {
  background: var(--surface);
  color: var(--ink-2);
}
.compare-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.compare-card.us h3 { color: #fff; }
.compare-card .dot-mark {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.compare-card.them .dot-mark { background: #c2bcae; }
.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.7rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.94rem;
  line-height: 1.4;
}
.compare-card.them .compare-list li { border-top-color: var(--line-soft); }
.compare-list li:first-child { border-top: 0; }
.compare-list .icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 3px;
}
.compare-card.us .icon { color: #d9531a; }
.compare-card.them .icon { color: #b56b6b; }

/* ─── Founder ─── */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 18px;
}
@media (min-width: 1024px) {
  .section-card.founder { padding: 18px; }
}
.founder-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.founder-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.founder-text { max-width: 38ch; }
.founder-text blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.32;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-weight: 400;
}
.founder-text blockquote::before {
  content: "“";
  color: var(--accent);
  margin-right: 0.05em;
}
.founder-text .signature {
  margin-top: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-3);
}
.founder-text .signature strong { color: var(--ink); font-weight: 500; }

/* ─── Pricing ─── */
.pricing {
  padding: 96px 0 4rem;
}
.pricing-head {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.pricing-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.pricing-head h2 .muted { color: var(--ink-3); font-weight: 400; }
.pricing-head p { color: var(--ink-3); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  color: #efece4;
}
.price-card.featured h3 { color: #fff; }
.price-card .price-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}
.price-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.price-desc {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 1.6rem;
  min-height: 2.6em;
  line-height: 1.4;
}
.price-card.featured .price-desc { color: #b9b3a3; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.price-amount .per {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}
.price-card.featured .price-amount .per { color: #b9b3a3; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.6rem;
  flex: 1;
}
.price-features li {
  display: grid;
  grid-template-columns: 15px 1fr;
  align-items: start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.price-card.featured .price-features li { color: #d8d3c5; }
.price-features li svg {
  width: 15px; height: 15px;
  margin-top: 3px;
  color: var(--accent);
}
.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.6rem;
}
.price-card.featured .btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}
.price-card.featured .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ─── FAQ ─── */
.faq {
  padding: 3rem 0 5rem;
}
.faq-head {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.faq-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.faq-grid {
  display: grid;
  gap: 0.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  transition: background 200ms var(--ease);
}
.faq-item[open] { background: #e6e0d0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  width: 18px; height: 18px;
  flex-shrink: 0;
  position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--ink-2);
  border-radius: 1px;
}
.faq-item summary .plus::before { top: 8px; left: 0; width: 100%; height: 2px; }
.faq-item summary .plus::after  { left: 8px; top: 0; width: 2px; height: 100%; transition: transform 220ms var(--ease); }
.faq-item[open] summary .plus::after { transform: rotate(90deg); }
.faq-item .answer {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 62ch;
}

/* ─── Footer ─── */
footer {
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-top: 1rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a:hover { color: var(--ink); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta .signin { display: none; }

  /* All sections: enforce 16px horizontal gutter on mobile.
     Several section classes override .shell padding on desktop (set to 0 horizontal),
     so on mobile we need to bring the gutter back explicitly. */
  .nav-wrap .shell,
  .shell.flush,
  .shell.features,
  .shell.compare-wrap,
  .shell.pricing,
  .shell.cta-bar,
  .shell.faq,
  .shell.problem {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Hero */
  .hero { padding: 2.5rem 1rem 1.5rem; max-width: 100vw; }
  .hero h1 {
    font-size: 1.7rem;
    width: 100%;
    max-width: calc(100vw - 32px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  .hero-stage {
    padding: 1.5rem 0.75rem 0;
    margin-top: 1.8rem;
    min-height: auto;
    max-width: 100%;
  }
  .hero-stage .floating-window { max-width: 100%; }

  /* Compare */
  .compare-wrap { padding-top: 2rem; padding-bottom: 2rem; }
  .compare-head { margin: 0 auto 1.5rem; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-card { padding: 1rem; }

  /* Features */
  .features { padding-top: 2rem; padding-bottom: 2rem; }
  .feature, .feature.reverse {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .feature.reverse .feature-text,
  .feature.reverse .feature-mockup { order: initial; }
  .feature .feature-text { order: 1; }
  .feature .feature-mockup { order: 2; }

  /* CTA */
  .cta-bar { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .cta-bar h2 { font-size: 1.8rem; }

  /* Founder */
  .founder { grid-template-columns: 1fr; gap: 1.5rem; }
  .founder-text { max-width: none; }
  .founder-photo img {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }

  /* Pricing */
  .pricing { padding-top: 64px; padding-bottom: 3rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .pricing-head { margin-bottom: 2rem; }

  /* FAQ */
  .faq { padding-top: 2rem; padding-bottom: 4rem; }
  .faq-head { margin-bottom: 1.6rem; }

  /* Footer */
  .footer-row { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 1rem 1.4rem; }

  /* Section card defaults on mobile */
  .section-card { padding: 1rem; }
  .section-card.feature { padding: 1rem; }
  .section-card.founder { padding: 1rem; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 1.6rem; }
  .compose h2, .compose .lede { font-size: 19px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .nav-cta .btn-primary { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
}

