/* Takt marketing — Apple-inspired layout, Takt warmth.
   Full-bleed sections, large type, scroll reveals —
   but with warm neutrals, soft surfaces, and calm restraint. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-italic.woff2') format('woff2-variations');
}

:root {
  --bg: #f9f7f5;
  --bg-warm: #eae8e3;
  --bg-dark: #1a1816;
  --surface: #ffffff;
  --surface-warm: #faf9f6;
  --text: #1a1816;
  --text-inv: #f4f3f0;
  --muted: #6b6960;
  --muted-inv: rgba(244, 243, 240, 0.6);
  --border: rgba(23, 21, 18, 0.09);
  --border-dark: rgba(244, 243, 240, 0.1);
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --radius: 18px;
  --radius-sm: 10px;
  --max-w: 980px;
  --max-w-wide: 1120px;
  --sans: 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 440;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--accent-hover);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 65, 12, 0.3);
  transition: border-color 150ms ease, color 150ms ease;
}
a:hover { border-bottom-color: var(--accent-hover); color: var(--text); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  background: rgba(23, 21, 18, 0.05);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid rgba(23, 21, 18, 0.15);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html.snap-page {
    scroll-behavior: auto;
    scroll-snap-type: none !important;
  }
}

/* Italic emphasis inherits text color (accent reserved for eyebrows/links) */
.hero h1 em,
.feature-section h2 em,
.cta-section h2 em,
.pullquote blockquote em,
.feature-section.dark h2 em { font-style: italic; color: inherit; font-weight: 480; }

/* Pullquote */
.pullquote {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pullquote blockquote {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 520;
  line-height: 1.28;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Inline tag chips in body copy */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.78em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  background: rgba(23, 21, 18, 0.06);
  color: var(--text);
  border: 1px solid transparent;
}
.feature-section.dark .chip { background: rgba(255, 255, 255, 0.1); color: var(--text-inv); }

/* ── Dark page theme (toggled via data-theme-page="dark") ───── */
[data-theme-page="dark"] {
  --bg: #2e3440;
  --bg-warm: #262a33;
  --surface: #363b48;
  --surface-warm: #262a33;
  --text: #eceff4;
  --text-inv: #2e3440;
  --muted: #94a3b8;
  --border: rgba(236, 239, 244, 0.08);
  --accent: #94a3b8;
  --accent-hover: #d8dee9;
}
[data-theme-page="dark"] .nav {
  background: rgba(46, 52, 64, 0.82);
  border-bottom-color: rgba(236, 239, 244, 0.06);
}
[data-theme-page="dark"] .feature-section.light { background: #262a33; }
[data-theme-page="dark"] .feature-section.warm { background: var(--bg); }
[data-theme-page="dark"] code { background: rgba(236, 239, 244, 0.08); color: #d8dee9; }
[data-theme-page="dark"] kbd {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
[data-theme-page="dark"] .feature-tile { background: #2a2f3a; border-color: rgba(255, 255, 255, 0.06); }
[data-theme-page="dark"] .feature-tile:hover { border-color: rgba(255, 255, 255, 0.14); }
[data-theme-page="dark"] .feature-tile-with-img .tile-img { background: #262a33; border-color: rgba(255, 255, 255, 0.06); }
[data-theme-page="dark"] .cta-section { background: #262a33; border-top-color: rgba(255, 255, 255, 0.06); }
[data-theme-page="dark"] .footer { border-top-color: rgba(255, 255, 255, 0.06); }
[data-theme-page="dark"] .footer a:hover { color: var(--text); }
[data-theme-page="dark"] .window-chrome { background: #262a33; border-color: rgba(255, 255, 255, 0.06); }
[data-theme-page="dark"] .window-body {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
}
[data-theme-page="dark"] .brand img { filter: invert(1) brightness(1.05); }

/* ── Top nav — frosted warm glass ───────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(244, 243, 240, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  border: 0;
  line-height: 0;
}
.brand img { height: 42px; width: auto; display: block; }
.brand:hover { opacity: 0.8; }
.nav-links {
  display: flex; gap: 28px; margin-left: auto; align-items: center;
}
.nav-links a:not(.btn) {
  color: var(--muted);
  border: 0;
  font-size: 0.9rem;
  font-weight: 460;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.btn { border-bottom: 0; color: var(--text); }
.nav-links a.btn-primary { color: var(--bg); }
.nav-links a.btn-primary:hover { color: var(--bg); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: #000; border-color: #000; }
.btn-secondary {
  background: transparent;
  border: 0;
  color: var(--accent-hover);
  padding: 10px 0;
  font-weight: 500;
}
.btn-secondary:hover { color: var(--text); }
.btn-secondary::after {
  content: '›';
  font-size: 1.3em;
  line-height: 1;
  margin-left: 2px;
  transition: transform 200ms ease;
}
.btn-secondary:hover::after { transform: translateX(3px); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Dark-section button variants */
.dark .btn-primary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface);
}
.dark .btn-primary:hover { background: #fff; }
.dark .btn-secondary { color: var(--muted-inv); }
.dark .btn-secondary:hover { color: var(--text-inv); }
.dark .btn { background: rgba(255,255,255,0.08); color: var(--text-inv); border-color: rgba(255,255,255,0.12); }
.dark .btn:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 560px) {
  .nav-inner { gap: 16px; padding: 0 18px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .btn { padding: 8px 14px; font-size: 0.88rem; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  text-align: left;
  padding: 62px 0 80px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(23, 21, 18, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 24vh, calc(100% / 6) 100%;
}
.hero-grid {
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: minmax(150px, 24vh) minmax(190px, 27vh) 1fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 0;
  position: relative;
  width: 100%;
  z-index: 1;
}
.hero h1 {
  margin: 0;
  line-height: 0;
  overflow: visible;
  width: min(48vw, 640px);
}
.hero h1 img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateX(-10%) scale(1.2);
  transform-origin: left center;
  filter: drop-shadow(0 24px 34px rgba(88, 49, 27, 0.08));
}
.hero-title-block {
  grid-column: 1 / 4;
  grid-row: 3;
  align-self: end;
  padding: 0 0 24px clamp(18px, 2.2vw, 36px);
}
.hero-copy-block {
  grid-column: 4 / 7;
  grid-row: 3;
  align-self: end;
  max-width: 640px;
  padding: 0 20px 32px;
}
.hero .lead {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  color: var(--text);
  max-width: none;
  margin: 0 0 24px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.hero .lead span {
  color: var(--accent);
}
.hero-cta {
  display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap;
  align-items: center;
  margin: 32px 0 28px;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.hero-reassurance {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}
.hero-visual {
  margin: 0 auto;
  position: relative;
  width: calc(100% - 48px);
  max-width: var(--max-w-wide);
}
.product-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(84px, 10vh, 120px) 24px;
  background:
    linear-gradient(rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 24vh, calc(100% / 6) 100%, auto;
  border-top: 1px solid var(--border);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hero-visual-fullscreen {
  display: grid;
  grid-template-columns: minmax(190px, 0.38fr) minmax(0, 880px);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin: 0 auto;
  max-width: 1320px;
}
.hero-visual-fullscreen .window-chrome {
  display: none;
}
.hero-visual-fullscreen .window-body {
  grid-column: 2;
  justify-self: start;
  width: min(100%, 880px);
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-visual-fullscreen .window-body img {
  width: 100%;
}
.hero-visual-copy {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: 340px;
}
.hero-visual-tagline {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--text);
}
.hero-visual-subtagline {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.35;
}

/* ── Window chrome ──────────────────────────────────────────── */
.window-chrome {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.window-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.window-dot.red { background: #ff5f57; }
.window-dot.yellow { background: #febc2e; }
.window-dot.green { background: #28c840; }
.window-body {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(23, 21, 18, 0.1), 0 2px 8px rgba(23, 21, 18, 0.06);
}
.window-body img {
  width: 100%;
  display: block;
}

@media (max-width: 860px) {
  .hero {
    padding-bottom: 56px;
    background-size: 100% 20vh, 50% 100%;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(150px, 220px) auto auto;
    min-height: auto;
    gap: 36px 20px;
    padding: 84px 24px 48px;
  }
  .hero-title-block {
    grid-column: 1 / 3;
    grid-row: 3;
    padding: 0;
  }
  .hero-copy-block {
    grid-column: 1 / 3;
    grid-row: 4;
    padding: 0;
  }
  .hero h1 img {
    width: 100%;
  }
  .hero .lead {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }
  .hero-visual {
    width: calc(100% - 32px);
  }
  .hero-visual-fullscreen {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 auto;
  }
  .hero-visual-fullscreen .window-body {
    grid-column: auto;
    justify-self: center;
    width: 100%;
  }
  .hero-visual-copy {
    max-width: none;
  }
  .hero-visual-tagline {
    font-size: clamp(2rem, 11vw, 3.8rem);
  }
}

/* ── Editorial band ─────────────────────────────────────────── */
.editorial-band {
  padding: clamp(64px, 9vw, 112px) 24px;
  background:
    linear-gradient(rgba(23, 21, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(194, 65, 12, 0.06), transparent 46%),
    var(--surface-warm);
  background-size: 100% 50%, calc(100% / 6) 100%, auto, auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quiet-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-w-wide);
  margin: clamp(40px, 6vw, 72px) auto 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quiet-principle {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}
.quiet-principle:last-child { border-right: 0; }
.quiet-principle span {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.quiet-principle p {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 560;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0;
}
@media (max-width: 760px) {
  .quiet-principles { grid-template-columns: 1fr; }
  .quiet-principle {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .quiet-principle:last-child { border-bottom: 0; }
}

/* ── Full-bleed feature sections ────────────────────────────── */
.feature-section {
  padding: clamp(84px, 12vw, 150px) 20px;
  background-image:
    linear-gradient(rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.04) 1px, transparent 1px);
  background-size: 100% 50%, calc(100% / 6) 100%;
}
.feature-section.light {
  background-color: var(--surface);
}
.feature-section.warm {
  background-color: var(--bg);
}
.feature-section.dark {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(rgba(244, 243, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 240, 0.045) 1px, transparent 1px);
  color: var(--text-inv);
}
.feature-section.dark code {
  background: rgba(244, 243, 240, 0.1);
  color: rgba(244, 243, 240, 0.85);
}
.feature-section.dark .muted { color: var(--muted-inv); }
.feature-section.dark kbd {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-inv);
}

.feature-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.feature-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-section.dark .feature-eyebrow { color: var(--muted-inv); }

.feature-section h2 {
  font-family: var(--sans);
  font-size: clamp(2.15rem, 4.8vw, 4.35rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
}

.feature-section .feature-desc {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.feature-section.dark .feature-desc { color: var(--muted-inv); }

.feature-visual {
  max-width: 720px;
  margin: 0 auto;
}
.feature-visual img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(23, 21, 18, 0.08);
}
.feature-section.dark .feature-visual img {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Split layout (text + image) ────────────────────────────── */
.feature-split {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  text-align: left;
  max-width: 1440px;
  margin: 0 auto;
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-split-text {
  grid-column: span 3;
  padding: 0 8px 8px 0;
}
.feature-split-visual {
  grid-column: span 3;
}
.feature-split-visual-contained {
  max-width: 560px;
  justify-self: center;
}

.feature-split-text h2 { text-align: left; }
.feature-split-text .feature-desc { margin-left: 0; text-align: left; }
.feature-split-visual img {
  width: 100%;
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(23, 21, 18, 0.08);
}
.feature-section.dark .feature-split-visual img {
  border-color: var(--border-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 760px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .feature-split-text,
  .feature-split-visual { grid-column: auto; }
  .feature-split.reverse { direction: ltr; }
  .feature-split-text h2,
  .feature-split-text .feature-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Feature tiles (3-up grid) ──────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-tile {
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(28px, 4vw, 48px) 28px;
  text-align: left;
  overflow: hidden;
  transition: border-color 160ms ease;
}
.feature-tile:hover { border-color: rgba(23, 21, 18, 0.18); }
.feature-section.dark .feature-tile {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.feature-section.dark .feature-tile:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.feature-tile-icon {
  font-size: 1.6rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.feature-tile h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: 0;
  line-height: 1.3;
}
.feature-tile p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}
.feature-section.dark .feature-tile p { color: var(--muted-inv); }

/* ── Sticky story section ───────────────────────────────────── */
.story-section {
  background:
    linear-gradient(rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 50%, calc(100% / 6) 100%, auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-copy {
  grid-column: 1 / 4;
}

.story-step {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(88px, 12vh, 148px) clamp(18px, 3vw, 42px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.story-step > div {
  max-width: 560px;
}

.story-step h2 {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
}

.story-step p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.42;
  margin: 0 0 28px;
}

.story-step p:last-child {
  margin-bottom: 0;
}

.story-visual {
  grid-column: 4 / 7;
  position: sticky;
  top: clamp(86px, 13vh, 128px);
  align-self: start;
  height: min(72vh, 680px);
  margin: clamp(96px, 14vh, 150px) clamp(18px, 3vw, 42px) 0 0;
}

.story-shot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 420ms ease, transform 520ms ease;
  pointer-events: none;
}

.story-shot.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-shot img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(23, 21, 18, 0.12), 0 2px 10px rgba(23, 21, 18, 0.06);
  background: var(--surface);
}
.story-phone-stack {
  width: min(100%, 620px);
  min-height: min(70vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-phone-stack img {
  position: relative;
  width: min(31%, 188px);
  max-height: min(68vh, 580px);
  object-fit: contain;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: 0 24px 64px rgba(23, 21, 18, 0.16), 0 2px 10px rgba(23, 21, 18, 0.08);
}
.story-phone-stack img:nth-child(2) {
  transform: translateX(22px) rotate(-4deg);
  z-index: 1;
}
.story-phone-stack img:nth-child(3) {
  width: min(34%, 206px);
  z-index: 3;
}
.story-phone-stack img:nth-child(4) {
  transform: translateX(-22px) rotate(4deg);
  z-index: 2;
}

.story-testflight-strip {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-top: 4px;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(23, 21, 18, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.story-testflight-strip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(23, 21, 18, 0.18);
}

.story-appstore-badge {
  display: inline-block;
  margin-top: 8px;
  line-height: 0;
  transition: transform 120ms ease, opacity 120ms ease;
}
.hero-appstore-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 120ms ease, opacity 120ms ease;
}
.hero-appstore-badge img {
  height: 48px;
  width: auto;
  display: block;
}
.hero-appstore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.story-appstore-badge img {
  height: 48px;
  width: auto;
  display: block;
}
.story-appstore-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.story-testflight-strip-label {
  background: var(--accent);
  color: var(--surface);
  padding: 9px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.story-testflight-strip-cta {
  background: var(--surface, #fff);
  color: var(--ink, #171512);
  padding: 9px 14px;
  border: 1px solid rgba(23, 21, 18, 0.12);
  border-left: none;
}

.story-testflight-banner {
  position: absolute;
  top: clamp(28px, 8%, 72px);
  right: clamp(8px, 4%, 40px);
  z-index: 12;
  font-size: clamp(0.62rem, 1.05vw, 0.74rem);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(23, 21, 18, 0.18);
  transform: rotate(20deg);
  transform-origin: center center;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Full-screen index panels ───────────────────────────────── */
@media (min-width: 861px) and (min-height: 720px) {
  html.snap-page {
    scroll-snap-type: y mandatory;
  }

  .snap-page .hero,
  .snap-page .product-panel,
  .snap-page .feature-section,
  .snap-page .story-step,
  .snap-page .cta-section,
  .snap-page .lp-fullwidth-card,
  .snap-page .lp-cta-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .snap-page .lp-fullwidth-card,
  .snap-page .lp-cta-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .snap-page .hero {
    display: block;
    padding: 62px 0 80px;
  }

  .snap-page .hero-grid {
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    grid-template-rows: minmax(150px, 24vh) minmax(190px, 27vh) 1fr;
    padding-top: 28px;
  }

  .snap-page .feature-section {
    display: flex;
    align-items: center;
    padding: clamp(72px, 8vw, 112px) 20px;
  }

  .snap-page .feature-inner {
    width: 100%;
  }

  .snap-page .feature-split {
    align-items: center;
  }

  .snap-page .section-head {
    margin-bottom: clamp(36px, 5vw, 64px);
  }

  .snap-page .quiet-principles {
    max-width: 980px;
  }

  .snap-page .feature-grid {
    max-width: 980px;
  }

  .snap-page .feature-tile {
    padding: clamp(26px, 3.5vw, 40px) 28px;
  }

  .snap-page .cta-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .story-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .story-copy,
  .story-visual {
    grid-column: auto;
  }
  .story-visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: 360px;
    margin: 64px auto 0;
    width: min(100%, 720px);
    order: -1;
  }
  .story-shot {
    position: relative;
    display: none;
  }
  .story-shot.is-active {
    display: flex;
  }
  .story-step {
    min-height: auto;
    padding: clamp(72px, 12vw, 110px) 0;
  }
}

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

@media (max-width: 860px), (max-height: 719px) {
  html.snap-page {
    scroll-snap-type: none;
  }
}

/* Tile with image */
.feature-tile-with-img { padding: 0; }
.feature-tile-with-img .tile-img {
  overflow: hidden;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border);
}
.feature-section.dark .feature-tile-with-img .tile-img {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}
.feature-tile-with-img .tile-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: top left;
}
.feature-tile-with-img .tile-body {
  padding: 20px 24px 28px;
}

/* ── Centred section headers ────────────────────────────────── */
.section-head {
  text-align: left;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto clamp(44px, 7vw, 86px);
}
.section-head .feature-eyebrow {
  grid-column: 1 / 2;
  margin-top: 0.35em;
}
.section-head h2 {
  grid-column: 2 / 5;
  margin-top: 0;
}
.section-head p {
  grid-column: 5 / 7;
  align-self: end;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.35;
}
.feature-section.dark .section-head p { color: var(--muted-inv); }

/* ── Core value cards ───────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1440px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.value-card {
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: clamp(32px, 5vw, 64px) 28px;
  text-align: left;
}
.value-card h3 {
  font-family: var(--sans);
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
}
.value-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 860px) {
  .feature-section { background-size: 100% 50%, 50% 100%; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head .feature-eyebrow,
  .section-head h2,
  .section-head p { grid-column: auto; }
  .feature-section h2 {
    font-size: clamp(2.25rem, 8vw, 4rem);
    letter-spacing: -0.018em;
  }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { text-align: center; }
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  padding: clamp(72px, 10vw, 120px) 24px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.cta-section p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 32px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer a { color: var(--muted); border: 0; }
.footer a:hover { color: var(--text); }
.footer .footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Docs layout ────────────────────────────────────────────── */
.docs-layout {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 24px clamp(48px, 8vw, 96px);
  padding-top: calc(62px + clamp(32px, 5vw, 56px));
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 76px;
  font-size: 0.95rem;
}
.docs-nav h5 {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.docs-nav ul { list-style: none; padding: 0; margin: 0 0 24px; }
.docs-nav li { margin: 0; }
.docs-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--muted);
  border: 0;
  font-size: 0.93rem;
  line-height: 1.4;
}
.docs-nav a:hover { background: rgba(23, 21, 18, 0.045); color: var(--text); }
.docs-nav a.active {
  background: rgba(23, 21, 18, 0.07);
  color: var(--text);
  font-weight: 500;
}
.docs-content { max-width: 880px; min-width: 0; }
.docs-content h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 620;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.docs-content > p:first-of-type {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 1.6em;
}
.docs-content h2 {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 620;
  margin-top: 2em;
  border-top: 1px solid var(--border);
  padding-top: 1.4em;
  letter-spacing: -0.025em;
}
.docs-content h2:first-of-type { border-top: 0; padding-top: 0; }
.docs-content h3 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  margin-top: 1.8em;
  letter-spacing: 0;
}
.docs-content ul, .docs-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.docs-content li { margin-bottom: 0.4em; }
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.94rem;
}
.docs-content th, .docs-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.docs-content th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-warm);
}
.docs-content figure {
  margin: 1.6em 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.docs-content figure img { border-radius: var(--radius-sm); }
.docs-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 10px 6px 4px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin: 1.6em 0;
  font-size: 0.96rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--text); }

.docs-footer-nav {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.docs-footer-nav a {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.92rem;
  background: var(--surface);
}
.docs-footer-nav a:hover { border-color: rgba(23, 21, 18, 0.2); }
.docs-footer-nav .label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 8px; }
}
