/* ============================================================
   lintil landing — styles
   Aligned to the shadcn-lintil design system (Figma):
   warm page, near-white surfaces (#fafaf7), warm tan borders
   (#e8dcc4), 8px radius, soft layered shadows, DM Sans.
   Playfair Display retained for display headings (brand).
   ============================================================ */

:root {
  /* ---- Colour ---- */
  --sand-light:  #f4f1ea;   /* warm page background */
  --surface:     #fafaf7;   /* cards, form, badge   (shadcn Background/default) */
  --ink:         #1a1a18;   /* primary text / dark band (Foreground/default) */
  --ink-2:       #3d4340;   /* body / secondary text */
  --muted:       #8a9187;   /* muted text           (shadcn Foreground/accent) */
  --border:      #e8dcc4;   /* warm tan borders     (shadcn Border/default) */
  --rule-light:  #efe7d6;   /* tinted chip / number background */
  --warm-grey:   #b8ae9a;   /* input placeholder */
  --btn:         #6b7268;   /* primary (sage green) */
  --btn-deep:    #5b6258;   /* primary hover */
  --btn-text:    #fafaf7;
  --on-dark:     #fafaf7;   /* text on the sage band */
  --on-dark-mut: rgba(255, 255, 255, 0.84);

  /* ---- Orb gradient (exact stops from the combined logo) ---- */
  --orb-1: #918bb6;
  --orb-2: #a3afb8;
  --orb-3: #72727f;
  --orb-4: #876460;
  --orb-5: #8b6f9c;

  /* ---- Type ---- */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Shape & depth (shadcn) ---- */
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);

  /* ---- Layout ---- */
  --maxw: 1040px;
  --pad: clamp(24px, 5vw, 64px);
  /* one uniform vertical gap between every block below the hero, so the page
     paces evenly all the way down (56px on mobile → 120px on desktop) */
  --gap: clamp(56px, 9.4vw, 120px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* gentle ease-out for the reveal-on-scroll motion: eases in softly and
     settles slowly, so content drifts up rather than snapping into place */
  --reveal-ease: cubic-bezier(0.33, 0.4, 0.25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* safety net against horizontal overflow. `clip` (not `hidden`) avoids turning
     the root into a scroll container, so the sticky header keeps working. */
  max-width: 100%;
  overflow-x: clip;
  background: var(--sand-light);   /* page bg on the root → no gap when the viewport is wider than the content */
}
body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--sand-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; }
p { margin: 0; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }

/* Shared content column */
.header-inner,
.hero-inner,
.steps-section,
.features,
.trust-inner,
.join-section,
.founders,
.site-footer {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
[id] { scroll-margin-top: 76px; }   /* clears the sticky header */

/* Layering above the page background */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ============================================================
   Section glows behind frosted glass.
   Orbs (from the product's Spectre shapes) drift slowly like a
   lava lamp; a frosted-glass veil over them diffuses the edges
   and fades them right back, echoing the product's Glass Panels.
   ============================================================ */
/* overflow-x:clip keeps the absolutely-positioned orbs from pushing the page
   wider than the viewport, while leaving the vertical axis visible so the orbs
   can still fade softly between sections (no hard clip line). */
.glow-section { position: relative; isolation: isolate; overflow-x: clip; }
.glow-section > * { position: relative; z-index: 2; }
.glow-section > .glow { z-index: 0; }

/* frosted glass: blurs + mutes whatever drifts behind it */
.glow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(245, 242, 235, 0.42);
  backdrop-filter: blur(34px) saturate(108%);
  -webkit-backdrop-filter: blur(34px) saturate(108%);
}

/* The orb now lives only at the top of the page (hero + the top of "How it
   works"). The "How it works" and "Who's building it" sections keep a frosted
   veil as a contained, rounded glass panel — inset from the page edges, evenly
   spaced, padded around its content — echoing the product's Glass Panels. Both
   share one colour so they read as a pair. The "Knowledge that stays" section
   sits directly on the page (no panel). */
.steps-section::before,
.founders::before {
  /* top/bottom inset = the uniform --gap, so the gap from this panel to the
     adjacent sage band matches every other block gap on the page. Sides keep
     their own comfortable inset. */
  inset: var(--gap) clamp(14px, 3vw, 40px);
  border-radius: 20px;
  background: rgba(248, 245, 238, 0.5);
  border: 1px solid rgba(232, 220, 196, 0.6);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(30px) saturate(108%);
  -webkit-backdrop-filter: blur(30px) saturate(108%);
}
/* a little extra horizontal room so content sits comfortably inside the
   rounded panel rather than hard against its border */
.steps-section,
.founders {
  padding-inline: clamp(32px, 6vw, 72px);
}

.glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  pointer-events: none;
  height: auto;
  max-width: none;
  filter: blur(34px);
  will-change: transform;
}
.glow-hero {
  width: 820px;
  margin-left: -410px;
  top: -10%;
  opacity: 0.42;
  animation: glowA 36s ease-in-out infinite alternate;
}
/* The steps orb bleeds down from the hero and fades out by the midpoint of the
   "How it works" section, so the motion stays at the top of the page. */
.glow-steps {
  width: 760px;
  margin-left: -380px;
  top: -30%;
  opacity: 0.34;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 55%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 55%);
  animation: glowB 44s ease-in-out infinite alternate;
}
/* Whisper-faint glows that carry the lavender atmosphere down the page, so it
   stays continuous top-to-bottom rather than fading out after the hero. */
.glow-cards {
  width: 900px;
  margin-left: -450px;
  top: 12%;
  opacity: 0.12;
  animation: glowA 42s ease-in-out infinite alternate;
}
.glow-founders {
  width: 760px;
  margin-left: -380px;
  top: 8%;
  opacity: 0.16;
  animation: glowB 50s ease-in-out infinite alternate;
}
/* slow, organic, lava-lamp drift */
@keyframes glowA {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-30px, 24px) scale(1.12) rotate(-5deg); }
  100% { transform: translate(46px, -26px) scale(1.18) rotate(8deg); }
}
@keyframes glowB {
  0%   { transform: translate(0, 0) scale(1.05) rotate(0deg); }
  50%  { transform: translate(40px, 20px) scale(1) rotate(6deg); }
  100% { transform: translate(-44px, 26px) scale(1.16) rotate(-7deg); }
}

/* ============================================================
   Header (sticky, frosts on scroll)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #fcfaf5;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
/* Once the page is scrolled, the bar turns to frosted glass so content
   drifts softly beneath it. */
.site-header.scrolled {
  background: rgba(252, 250, 245, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(232, 220, 196, 0.7);
  box-shadow: 0 1px 14px rgba(26, 26, 24, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 60px; height: 15px; }
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-desktop a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); }

/* Shared primary button (shadcn) */
.btn-nav, .btn-submit, .btn-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius);
  background: var(--btn);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: background 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              transform 0.12s var(--ease);
}
.btn-nav {
  height: 36px;
  padding: 0 16px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn-nav:hover { background: var(--btn-deep); }
.btn-nav:active { transform: translateY(1px); }

/* ---- Mobile nav: hamburger toggle + dropdown panel ----
   Hidden on desktop; shown at <=760px (see the responsive block). The dropdown
   keeps the site's shadcn styling: warm surface, tan border, soft shadow. */
.nav-toggle {
  display: none;              /* shown in the <=760px media query */
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
}
.nav-toggle .bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: top 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle .bar:nth-child(1) { top: 14px; }
.nav-toggle .bar:nth-child(2) { top: 19.5px; }
.nav-toggle .bar:nth-child(3) { top: 25px; }
/* morph to an X when open */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;             /* .is-open + the media query reveal it */
  position: absolute;
  top: calc(100% + 8px);
  left: var(--pad);
  right: var(--pad);
  flex-direction: column;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}
/* Rows echo the product sidebar: dark line-icon + muted label, airy spacing,
   no per-row dividers (the CTA group is set off instead). */
.nav-mobile a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-mobile a:hover { background: rgba(26, 26, 24, 0.04); color: var(--ink); }
.nav-mobile-icon { display: flex; flex: none; color: var(--ink); }
.nav-mobile-icon svg { width: 20px; height: 20px; display: block; }

/* the CTA at the foot of the menu, styled as the primary sage button and set
   off from the links by a hairline, like the sidebar's group dividers */
.nav-mobile .nav-mobile-cta {
  position: relative;
  justify-content: center;
  gap: 0;
  margin-top: 14px;
  background: var(--btn);
  color: var(--btn-text);
  border: none;
}
.nav-mobile .nav-mobile-cta::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--border);
}
.nav-mobile .nav-mobile-cta:hover { background: var(--btn-deep); color: var(--btn-text); }

/* ============================================================
   Hero
   ============================================================ */
/* Hero fills one full screen (below the 60px static header) so the next
   section only appears once you scroll past it, on any device. */
.hero {
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 60px);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--btn);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(107, 114, 104, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(107, 114, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 114, 104, 0); }
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-title-soft { color: var(--muted); }
/* Hero call-to-action row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.hero-actions a {       /* enlarge the shared buttons for the hero */
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}
.hero-sub {
  max-width: 640px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
}

/* ============================================================
   Section heads (shared)
   ============================================================ */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
/* Eyebrow: sentence case, sage (#6b7268). Distinct from headings via colour. */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
  text-transform: none;
  /* the trust band's sage (var(--btn)), nudged a touch greener so it reads as
     green at this small size and visibly ties to the band */
  color: #5e6e50;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.8px;
  text-wrap: balance;
}

/* ============================================================
   How it works — numbered timeline
   ============================================================ */
.steps-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  /* = --gap (panel inset) + 56px internal padding inside the panel */
  padding-block: calc(var(--gap) + 56px);
  text-align: center;
}
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
  text-align: center;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* continuous connector from each centred badge to the next (no gaps).
   width = one column (100%) + the grid gap (32px). */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: calc(100% + 32px);
  height: 1px;
  background: var(--btn);   /* sage, consistent with the badge borders */
  transform: translateY(-50%);
  z-index: 0;
}
.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--btn);   /* sage, matching the connector line */
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 27px;
  letter-spacing: -0.3px;
  margin-top: 4px;
}
.step p { font-size: 14px; line-height: 21px; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }

/* ============================================================
   What it gives — cards
   ============================================================ */
.features {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  /* sits flush below the full-height hero: 1px of scroll reveals the eyebrow.
     No bottom padding either — the uniform --gap to the next block is supplied
     by the panel inset below it. */
  padding-block: 0;
  text-align: center;
}
/* keep the cards + heading above the faint ambient orb */
.features > .section-head,
.features > .cards { position: relative; z-index: 1; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  text-align: left;
}
/* Flat, lightly-lavender square cards. Same chrome as the rest of the site
   (warm tan border + soft neutral shadow) so they sit with the design; the
   purple is just a faint flat wash, no gradient. */
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(145, 139, 182, 0.10);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.10), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(145, 139, 182, 0.14);
  color: #6f6796;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card-icon svg { width: 19px; height: 19px; }
.card:hover .card-icon { background: rgba(145, 139, 182, 0.26); color: #4f4870; }
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 23px;
  letter-spacing: -0.3px;
  text-wrap: balance;
}
.card p { font-size: 13px; line-height: 18px; color: var(--ink-2); text-wrap: pretty; }

/* ============================================================
   Trust band — full-bleed dark
   ============================================================ */
.trust {
  position: relative;
  z-index: 1;
  background: var(--btn);   /* soft sage (#6b7268), gentler than near-black */
  padding: 100px var(--pad);
  text-align: center;
}
.trust-inner {
  max-width: 860px;
  padding-inline: 0;
}
.trust-line {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.4px;
  color: var(--on-dark);
}
.trust-sub {
  max-width: 540px;
  margin: 22px auto 0;
  font-size: 14px;
  line-height: 21px;
  color: var(--on-dark-mut);
}

/* ============================================================
   Early-preview form
   ============================================================ */
.join-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;          /* keeps the orb glow within this section */
  /* top gap to the Founders panel = --gap (panel inset); keep generous space
     below before the footer */
  padding-top: 0;
  padding-bottom: clamp(72px, 9vw, 104px);
}
/* orb behind the sign-up form: centred, and as faded + organically drifting
   as the hero orb (same opacity, frosted veil via .glow-section, same glowA). */
.glow-join {
  width: 560px;
  margin-left: -280px;       /* centred horizontally */
  top: 50%;
  margin-top: -170px;        /* centred vertically (orb-6 is 560 × ~339 here) */
  opacity: 0.42;
  animation: glowA 36s ease-in-out infinite alternate;
}
.signup,
.signup-done {
  position: relative;
  z-index: 2;                /* above the orb and its frosted veil */
  width: 100%;
  max-width: 468px;
  margin-inline: auto;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.form-head { margin-bottom: 16px; }
.form-title { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--ink); }
.form-desc { font-size: 13px; line-height: 18px; color: var(--muted); margin-top: 4px; }

.field { margin-bottom: 12px; }
.signup > .field:last-of-type { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: 38px;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: var(--warm-grey); }
.field input:hover { border-color: #ddceb0; }
.field input:focus {
  outline: none;
  border-color: var(--btn);
  box-shadow: 0 0 0 3px rgba(107, 114, 104, 0.16);
}
.field input.invalid {
  border-color: #c0705f;
  box-shadow: 0 0 0 3px rgba(192, 112, 95, 0.14);
}
.form-note {
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  margin: 10px 0 0;
}

.btn-submit {
  position: relative;
  width: 100%;
  height: 40px;
}
.btn-submit:hover { background: var(--btn-deep); box-shadow: 0 8px 20px rgba(91, 98, 88, 0.22); }
.btn-submit:active { transform: translateY(1px) scale(0.995); }
.btn-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(107, 114, 104, 0.4); }
.btn-submit[disabled] { cursor: default; opacity: 0.85; }
.btn-spinner {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(250, 250, 247, 0.4);
  border-top-color: var(--btn-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.signup.is-loading .btn-label { opacity: 0; }
.signup.is-loading .btn-spinner { display: block; }

.form-status { text-align: center; font-size: 14px; margin-top: 12px; min-height: 1px; }
.form-status.error { color: #b35a47; }

/* Post-signup confirmation + optional discovery */
.signup-done .done-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}
.signup-done .done-note {
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  margin-bottom: 20px;
}
.discovery label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 19px;
  color: var(--ink);
  margin-bottom: 10px;
}
.discovery .optional { color: var(--muted); font-weight: 400; }
.discovery-row { display: flex; gap: 10px; align-items: flex-end; }
.discovery textarea {
  flex: 1 1 auto;
  width: 100%;
  min-height: 44px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.discovery textarea::placeholder { color: var(--warm-grey); }
.discovery textarea:focus {
  outline: none;
  border-color: var(--btn);
  box-shadow: 0 0 0 3px rgba(107, 114, 104, 0.16);
}
/* width:auto overrides the 100% from the shared .btn-submit base, so the Send
   button sizes to its label beside the textarea instead of overflowing the row.
   The 560px query below restores full width for the stacked mobile layout. */
.btn-send { height: 40px; padding: 0 18px; flex: none; width: auto; }
.btn-send:hover { background: var(--btn-deep); }
.discovery-status { margin-top: 10px; font-size: 13px; }
.discovery-status.error { color: #b35a47; }
.discovery-thanks { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ============================================================
   Founders
   ============================================================ */
.founders {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  /* = --gap (panel inset) + 56px internal padding inside the panel */
  padding-block: calc(var(--gap) + 56px);
}
.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 840px;
}
.founder {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.founder-avatar {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 8px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 26px;
  letter-spacing: -0.3px;
}
.founder-role {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.founder > p:last-of-type { font-size: 14px; line-height: 21px; color: var(--ink-2); margin-top: 4px; }
.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.founder-link svg { width: 15px; height: 15px; }
.founder-link:hover { color: var(--btn); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 40px;
  padding-bottom: 48px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; align-items: center; gap: 22px; }
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--btn); }
.footer-link { display: inline-flex; align-items: center; gap: 6px; }
.footer-link svg { width: 15px; height: 15px; }
.footer-fine { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   Cookie notice (shadcn card, lintil palette)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 580px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation: cookieIn 0.4s var(--ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-inner { display: flex; align-items: center; gap: 18px; }
.cookie-text { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.cookie-text a { color: var(--btn); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: var(--btn-deep); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.btn-cookie, .btn-outline {
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-cookie { border: none; background: var(--btn); color: var(--btn-text); }
.btn-cookie:hover { background: var(--btn-deep); }
.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--ink-2); }
.btn-outline:hover { background: rgba(26, 26, 24, 0.04); border-color: var(--warm-grey); }
@media (max-width: 560px) {
  .cookie-banner { bottom: 12px; padding: 14px 16px; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions { justify-content: flex-end; }
}

/* ============================================================
   Legal pages (privacy)
   ============================================================ */
.legal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 64px var(--pad) 96px;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.legal .legal-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 10px;
}
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--btn); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--btn-deep); }
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.back-link:hover { color: var(--btn); }

/* ============================================================
   Articles — index (listing) page
   ============================================================ */
.articles-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 72px var(--pad) 96px;
}
.articles-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 56px;
}
.articles-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.articles-head p {
  max-width: 560px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.articles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.10), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
}
.article-card .article-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-wrap: balance;
}
.article-card p {
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.article-card .read-more {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--btn);
}

/* ---- Tag badges (used on cards and the article header) ---- */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(145, 139, 182, 0.12);   /* faint lavender, echoing the cards */
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
  color: #5f5886;
  white-space: nowrap;
}

/* ---- Filter bar on the index page ---- */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.tag-filter button {
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tag-filter button:hover { border-color: var(--warm-grey); }
.tag-filter button[aria-pressed="true"] {
  background: var(--btn);
  border-color: var(--btn);
  color: var(--btn-text);
}
/* hidden by the filter */
.article-card[hidden] { display: none; }

/* ============================================================
   Articles — single article page
   (reuses .legal for body typography; this adds the header)
   ============================================================ */
.article-header {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 64px var(--pad) 0;
}
.article-header .article-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #5e6e50;
}
.article-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 12px;
  text-wrap: balance;
}
.article-header .article-byline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.article-header .article-byline time { color: var(--ink-2); }

/* ---- Images within an article body ---- */
.article-figure {
  margin: 28px 0;
}
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  text-align: center;
}

/* ---- Prev / next navigation: floating arrows in the side margins ----
   On wide screens the two arrows sit fixed in the left/right whitespace,
   vertically centred. Hovering (or focusing) one slides out a small panel
   with the direction + the neighbouring post's title. On narrow screens
   (no room beside the 720px column) they collapse to a simple labelled row
   at the foot of the article. The markup is built by insights/posts.js. */
.post-nav { display: contents; }   /* no box of its own on desktop — arrows are fixed */

.post-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.post-arrow-left  { left: clamp(10px, 2.5vw, 32px); }
.post-arrow-right { right: clamp(10px, 2.5vw, 32px); flex-direction: row-reverse; }

/* the round arrow button */
.post-arrow-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.post-arrow-glyph svg { width: 22px; height: 22px; display: block; }
.post-arrow-left .post-arrow-glyph svg { transform: rotate(180deg); }   /* point left */
.post-arrow:hover .post-arrow-glyph,
.post-arrow:focus-visible .post-arrow-glyph {
  background: var(--btn);
  color: var(--btn-text);
  box-shadow: var(--shadow);
}

/* the title panel that reveals on hover/focus */
.post-arrow-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 210px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-arrow-right .post-arrow-label { transform: translateX(6px); text-align: right; }
.post-arrow:hover .post-arrow-label,
.post-arrow:focus-visible .post-arrow-label {
  opacity: 1;
  transform: none;
}
.post-arrow .dir {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5e6e50;
}
.post-arrow-title {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

/* Narrow screens: no room in the margins — collapse to a labelled foot row,
   titles always visible. */
@media (max-width: 960px) {
  .post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 720px;
    margin: 48px auto 0;
    padding: 28px var(--pad) 0;
    border-top: 1px solid var(--border);
  }
  .post-arrow { position: static; transform: none; gap: 10px; }
  .post-arrow-label {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    max-width: none;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .post-arrow-glyph { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 460px) {
  .post-arrow-title { display: none; }   /* tightest screens: arrows + dir label only */
}

/* ---- "Continue the conversation on LinkedIn" callout (article foot) ---- */
.discussion-note {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 18px 20px;
  background: rgba(145, 139, 182, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.discussion-note svg { width: 22px; height: 22px; flex: none; color: var(--btn); }
.discussion-note p { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.discussion-note a { color: var(--btn); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.discussion-note a:hover { color: var(--btn-deep); }

/* ============================================================
   FAQ — accordion
   ============================================================ */
.faq-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 72px var(--pad) 96px;
}
.faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 44px;
}
.faq-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.faq-head p {
  max-width: 520px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* chevron drawn from borders; flips when the item opens */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin-top 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.faq-item summary:hover { color: var(--btn); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.faq-answer p + p { margin-top: 10px; }
.faq-answer a { color: var(--btn); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   404 — page not found
   ============================================================ */
.notfound {
  position: relative;
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 64px var(--pad);
}
.notfound-code {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(72px, 16vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--muted);
}
.notfound h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.notfound p {
  max-width: 440px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
/* secondary (outline) button, pairs with the sage .btn-nav */
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-line:hover { border-color: var(--warm-grey); color: var(--ink); }

/* ============================================================
   Reveal-on-scroll motion
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s var(--reveal-ease),
              transform 1.1s var(--reveal-ease),
              filter 1.1s var(--reveal-ease);
  transition-delay: calc(var(--reveal-delay, 0) * 110ms);
  will-change: opacity, transform, filter;
}
/* motion variants — keyed off the attribute value so each section can load in
   a different way. The shared .is-visible rule below settles them all. */
[data-reveal="down"]  { transform: translateY(-14px); }              /* drifts down from above */
[data-reveal="left"]  { transform: translateX(-28px); }              /* slides in from the left */
[data-reveal="right"] { transform: translateX(28px); }               /* slides in from the right */
[data-reveal="scale"] { transform: translateY(10px) scale(0.94); }   /* grows / pops in */
[data-reveal="blur"]  { transform: translateY(8px); filter: blur(8px); } /* soft focus-in */
/* tilts back (top edge receding) and swings forward to flat, pivoting on its
   bottom edge — like the panel standing up to face the viewer */
[data-reveal="tilt"]  { transform: perspective(1000px) rotateX(18deg); transform-origin: bottom center; }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-desktop { display: none; }              /* tablet/mobile: hamburger instead */
  .btn-nav { display: none; }                  /* CTA moves into the dropdown */
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-mobile.is-open { display: flex; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .founder-grid { grid-template-columns: 1fr; }
  .articles-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .cards { grid-template-columns: 1fr; }
  .trust { padding-top: 72px; padding-bottom: 72px; }
  .join-section { padding-bottom: 88px; }
  .discovery-row { flex-direction: column; align-items: stretch; }
  .btn-send { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .glow { filter: blur(34px); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
