/* =====================================================================
   WeLink — "Issue 01" warm editorial magazine stylesheet
   Fonts (Fraunces + Inter + Space Mono) loaded in index.html <head>.
   JS (js/main.js) owns [data-anim] reveals via GSAP — see ANIMATION CONTRACT.
   Aesthetic: art-directed print magazine on the web. Paper + ink + one
   tomato accent, hairline rules, expressive serif headlines, mono labels.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Paper (warm) */
  --paper:   #F5EFE6;
  --paper-2: #EFE7D8;
  --paper-3: #FBF7EF;

  /* Ink */
  --ink:   #1A1712;
  --ink-2: #6B6357;
  --ink-3: #9A9082;

  /* Accent — tomato */
  --accent:   #E4472B;
  --accent-2: #C23A20;
  --accent-tint: rgba(228, 71, 43, 0.10);

  /* Hairlines */
  --line:   rgba(26, 23, 18, 0.16);
  --line-2: rgba(26, 23, 18, 0.32);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'SFMono-Regular', ui-monospace, monospace;

  /* Radii — print-minimal */
  --r-sm: 6px;
  --r:    10px;

  /* Layout */
  --container: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8.5vw, 7.5rem);

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

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.06rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Faint paper tooth — barely-there grain for print feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

strong { font-weight: 600; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------------
   3. Animation contract — initial hidden states for [data-anim]
   JS/GSAP writes inline styles that override these to reveal.
   --------------------------------------------------------------------- */
[data-anim] { opacity: 0; will-change: transform, opacity; }
[data-anim="fade-up"]     { transform: translateY(26px); }
[data-anim="fade-in"]     { }
[data-anim="scale-in"]    { transform: scale(0.94); }
[data-anim="slide-left"]  { transform: translateX(36px); }
[data-anim="slide-right"] { transform: translateX(-36px); }
[data-anim="mask-up"]     { clip-path: inset(0 0 105% 0); }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .scroll-cue, .ticker__track { animation: none; }
  * { scroll-behavior: auto !important; }
}
html.no-anim [data-anim] {
  opacity: 1 !important; transform: none !important; clip-path: none !important;
}

/* ---------------------------------------------------------------------
   4. Layout primitives
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------------------------------------------------------------------
   5. Scroll progress bar (JS drives scaleX)
   --------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 200;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   6. Skip link
   --------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 300;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------------------------------------------------------------------
   7. Editorial devices — eyebrow, section head, tags, badges, quotes
   --------------------------------------------------------------------- */

/* Mono eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Section head: § 0X — hairline — TITLE laid out editorially */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: clamp(1rem, 3vw, 2.25rem);
  row-gap: 0.9rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-2);
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 0.35rem;
}
.section-title {
  grid-column: 2;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 560;
  max-width: 15ch;
}
.section-dek {
  grid-column: 2;
  max-width: 54ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

/* Mono boxed tags — [ VERIFIED ] */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  white-space: nowrap;
}
.tag--run {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
}
.tag--live {
  color: var(--accent);
  border-color: var(--accent);
}
/* pulsing dot on the running chip */
.tag--run::before {
  content: "";
  width: 6px; height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  animation: run-pulse 1.3s ease-in-out infinite;
}
@keyframes run-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.25; transform: scale(0.7); }
}

/* Accent-tinted badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge--verified {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
}
.badge--live {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-tint);
}

/* Pull-quote — oversized Fraunces italic with left accent rule */
.pull-quote {
  margin: 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 3px solid var(--accent);
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pull-quote figcaption {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Figure caption — small mono/italic */
.figure-caption {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------------
   8. Buttons — print-poster crisp, sharp corners
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.3rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--text {
  padding: 0.72rem 0.2rem;
  background: none;
  color: var(--ink);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line-2);
  gap: 0.4rem;
}
.btn--text:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
}

/* ---------------------------------------------------------------------
   9. Brand mark / wordmark (shared nav + footer)
   --------------------------------------------------------------------- */
.nav__mark {
  display: inline-flex;
  color: var(--ink);
}
.nav__mark svg { overflow: visible; }
/* linked circles gently converge on hover of brand */
.nav__brand:hover .nav__mark circle:first-child,
.footer__logo:hover .nav__mark circle:first-child { transform: translateX(1.2px); }
.nav__brand:hover .nav__mark circle:last-child,
.footer__logo:hover .nav__mark circle:last-child { transform: translateX(-1.2px); }
.nav__mark circle { transition: transform 0.4s var(--ease); }

.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   10. Nav / masthead
   --------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(245, 239, 230, 0.72);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
  transition: padding-block 0.35s var(--ease);
}
.nav--scrolled {
  background: rgba(245, 239, 230, 0.94);
  border-bottom-color: var(--line-2);
  box-shadow: 0 1px 0 var(--line);
}
.nav--scrolled .nav__inner { padding-block: 0.6rem; }

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  flex: none;
}
.nav__brand .nav__mark { align-self: center; }
.nav__issue {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 0.7rem;
  margin-left: 0.1rem;
  border-left: 1px solid var(--line);
  align-self: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline: auto;
}
.nav__links a {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem;
  bottom: 0.2rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}
.nav__login {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav__login:hover { color: var(--accent); }
.nav__cta { }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
}
.nav__toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--pad) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.nav__mobile a {
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__mobile a.btn {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  justify-content: center;
}

/* ---------------------------------------------------------------------
   11. Hero / cover
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(7.5rem, 15vh, 10.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.hero__lead { max-width: 640px; }
.hero__lead .eyebrow { display: block; margin-bottom: 1.4rem; }

.hero__headline {
  font-size: clamp(2.7rem, 7.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 560;
}
/* rotating word — inline, no layout jump */
.rotator {
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}
.hero__sub {
  margin-top: 1.6rem;
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hero__quote {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  max-width: 46ch;
}

/* Hero figure — floating smartphone with app screenshots */
.hero__figure {
  position: relative;
  padding-top: 0.5rem;
}

/* Phone — dark ink body, hard editorial offset shadow to match the paper look */
.phone {
  position: relative;
  width: min(300px, 82%);
  margin-inline: auto;
}
.phone__frame {
  position: relative;
  padding: 11px;
  background: var(--ink);
  border-radius: 46px;
  box-shadow:
    10px 12px 0 var(--line),
    inset 0 0 0 1.5px rgba(245, 239, 230, 0.14),
    inset 0 0 0 3px var(--ink);
}
.phone__screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 591 / 1283;   /* matches the screenshot proportions */
  isolation: isolate;
}
/* Subtle glass sheen over the screen */
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 34%);
}
.phone__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.62s var(--ease);
}
.phone__slide {
  flex: 0 0 100%;
  height: 100%;
}
.phone__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Physical side buttons — thin ink bars for realism */
.phone__btn {
  position: absolute;
  z-index: 2;
  background: var(--ink);
  border-radius: 2px;
}
.phone__btn--silent { left: -2px; top: 92px;  width: 3px; height: 24px; }
.phone__btn--vol    { left: -2px;            width: 3px; height: 42px; }
.phone__btn--vol-up { top: 134px; }
.phone__btn--vol-dn { top: 188px; }
.phone__btn--power  { right: -2px; top: 150px; width: 3px; height: 62px; }

/* Screen selector dots */
.phone__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.phone__dot {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.phone__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}
.phone__dot:hover { border-color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .phone__track { transition: none; }
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink-2);
}
.scroll-cue__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue__line {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 100%;
  background: var(--accent);
  animation: cue-slide 2.2s var(--ease) infinite;
}
@keyframes cue-slide {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(280%); }
  100% { transform: translateX(280%); }
}

/* ---------------------------------------------------------------------
   12. Logos / marquee
   --------------------------------------------------------------------- */
.logos {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.logos__label {
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}
.ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3rem);
  width: max-content;
  will-change: transform;
}
.ticker__item {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.ticker__sep {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------
   13. Shared section rhythm
   --------------------------------------------------------------------- */
.how, .features, .ai, .proof, .pricing, .faq {
  padding: var(--section-y) 0;
}
.features { background: var(--paper-2); }
.proof    { background: var(--paper-2); }

/* ---------------------------------------------------------------------
   14. How it works — editorial tabs + big-numeral steps
   --------------------------------------------------------------------- */
.how__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.how__tab {
  padding: 0.7rem 0.25rem;
  margin-bottom: -1px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-right: 1.5rem;
  transition: color 0.2s, border-color 0.2s;
}
.how__tab:hover { color: var(--ink); }
.how__tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.how__panel[hidden] { display: none !important; }

.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 4.5rem) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.step__body { max-width: 60ch; }
.step__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.5rem;
  font-weight: 560;
}
.step__body p {
  color: var(--ink-2);
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------------------
   15. Features — asymmetric editorial grid w/ column hairlines
   --------------------------------------------------------------------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line);
}
.feature {
  padding: clamp(1.75rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  transition: background 0.3s var(--ease);
}
.feature:hover { background: var(--paper-3); }
.feature--lead {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
  border-right-color: var(--line-2);
}
.feature--lead:hover { background: var(--ink); }
.feature__index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.feature--lead .feature__index { color: var(--accent); }
.feature__title {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  margin-bottom: 0.7rem;
  font-weight: 560;
}
.feature--lead .feature__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--paper);
}
.feature__body {
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.feature--lead .feature__body {
  color: rgba(245, 239, 230, 0.78);
  max-width: 40ch;
}
.feature .tag { margin-top: auto; }
.feature--lead .tag {
  color: var(--paper);
  border-color: rgba(245, 239, 230, 0.4);
}

/* ---------------------------------------------------------------------
   16. AI desk — tabs + typeset terminal readout
   --------------------------------------------------------------------- */
.ai__layout { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.ai__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}
.ai-tab {
  padding: 0.55rem 0.1rem;
  margin-bottom: -1px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.ai-tab:hover { color: var(--ink); }
.ai-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.ai__panels { position: relative; }
.ai-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.ai-panel[hidden] { display: none !important; }
.ai-panel__title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin-bottom: 0.85rem;
  font-weight: 560;
}
.ai-panel__copy p {
  color: var(--ink-2);
  max-width: 42ch;
}

/* typeset dictation readout on paper */
.ai-panel__output {
  padding: 1.4rem 1.5rem;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--line);
}
.ai-panel__status { margin-bottom: 1rem; }
.ai-panel__line {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.1vw, 0.92rem);
  line-height: 1.6;
  padding: 0.6rem 0;
}
.ai-panel__line + .ai-panel__line { border-top: 1px dashed var(--line); }
.ai-panel__line--in {
  color: var(--ink-3);
}
.ai-panel__line--out {
  color: var(--ink);
}
/* The typing caret is injected + removed by js/main.js (.tw-caret) so it only
   appears while a line is actively typing — no permanent CSS caret here. */

/* ---------------------------------------------------------------------
   17. Proof — stats + testimonials
   --------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.stat + .stat { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.testimonial {
  margin: 0;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.testimonial blockquote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.55rem;
}
.testimonial figcaption {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.testimonial__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.testimonial__role {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.testimonial__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
/* DM-style bubble variant — distinct from serif pull-quotes */
.testimonial--dm {
  background: var(--accent-tint);
  border-color: var(--accent);
}
.testimonial--dm blockquote {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.9rem 1.05rem;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
}
.testimonial--dm blockquote::before { content: none; }

/* ---------------------------------------------------------------------
   18. Pricing — editorial "menu"
   --------------------------------------------------------------------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}
.pricing-card {
  position: relative;
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pricing-card__badge {
  position: absolute;
  top: -0.7rem;
  left: clamp(1.75rem, 2.5vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-sm);
}
.pricing-card__head {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.pricing-card--featured .pricing-card__head { border-bottom-color: rgba(245, 239, 230, 0.22); }
.pricing-card__name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.85rem;
}
.pricing-card--featured .pricing-card__name { color: rgba(245, 239, 230, 0.7); }
.pricing-card__price {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.pricing-card__per {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  margin-left: 0.3rem;
}
.pricing-card--featured .pricing-card__per { color: rgba(245, 239, 230, 0.55); }
.pricing-card__note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.pricing-card--featured .pricing-card__note { color: rgba(245, 239, 230, 0.72); }
.pricing-card__list {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
}
.pricing-card__list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.6rem 0 0.6rem 1.3rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.pricing-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pricing-card--featured .pricing-card__list li {
  color: var(--paper);
  border-bottom-color: rgba(245, 239, 230, 0.15);
}
.pricing-card .btn { margin-top: auto; width: 100%; }
/* featured card CTA reads on dark */
.pricing-card--featured .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.pricing-card--featured .btn--primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* ---------------------------------------------------------------------
   19. FAQ — hairline rows, mono +/- icon
   --------------------------------------------------------------------- */
.faq__list {
  border-top: 1px solid var(--line-2);
  max-width: 900px;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-family: var(--font-body); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2vw, 1.5rem) 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--ink);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q__icon {
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q__icon { transform: rotate(90deg); }

/* JS toggles the [hidden] attribute (global rule hides it when closed) plus
   .is-open on the row. When revealed, this keyframe gives it a smooth entrance
   even coming from display:none. */
.faq-a {
  color: var(--ink-2);
  animation: faq-reveal 0.4s var(--ease) both;
}
.faq-a p {
  padding-bottom: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 68ch;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------------
   20. CTA — inverted editorial back-cover
   --------------------------------------------------------------------- */
.cta {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: var(--paper);
}
.cta__inner {
  text-align: center;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta .eyebrow { color: var(--accent); margin-bottom: 1.5rem; }
.cta__headline {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 560;
  color: var(--paper);
  max-width: 18ch;
  margin-bottom: 2.25rem;
}
.cta .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.cta .btn--primary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cta__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(245, 239, 230, 0.55);
}

/* ---------------------------------------------------------------------
   21. Footer / colophon
   --------------------------------------------------------------------- */
.footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem;
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 24ch;
  margin-bottom: 1.5rem;
}
.footer__social {
  display: flex;
  gap: 0.6rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.footer__social a:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.footer__col ul { display: grid; gap: 0.65rem; }
.footer__col a {
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--accent); }

.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}
.footer__copy,
.footer__colophon {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.footer__colophon { text-align: right; }

/* ---------------------------------------------------------------------
   22. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .feature--lead { grid-column: span 2; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }

  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__issue { display: none; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__figure { max-width: 460px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature--lead { grid-column: span 2; }

  .ai-panel { grid-template-columns: 1fr; gap: 1.5rem; }
  .ai-panel__output { order: 2; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat { padding-right: 1.25rem; }
  .stat + .stat { padding-left: 1.25rem; }
  .stat:nth-child(odd) { padding-left: 0; border-left: none; }

  .testimonials { grid-template-columns: 1fr; max-width: 560px; }

  .pricing__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }

  .section-title { max-width: none; }

  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step__num { font-size: 2.4rem; }

  .features__grid { grid-template-columns: 1fr; }
  .feature--lead { grid-column: span 1; }

  .stats { grid-template-columns: 1fr 1fr; }

  .testimonials { grid-template-columns: 1fr; }

  .footer__cols { grid-template-columns: 1fr 1fr; }

  .footer__base { flex-direction: column; align-items: flex-start; }
  .footer__colophon { text-align: left; }

  .hero__cta { gap: 0.9rem; }
  .hero__cta .btn--primary { width: 100%; }
}
