/* ═══════════════════════════════════════════════════════════════════════
   Reminiscent Chronicles — marketing site design system (v2)
   Site version: 2.0.0 (marketing/chronicles-www/VERSION mirrors this)

   Palette (Chronicles family — non-negotiable):
     Midnight Navy  #1A1A2E  (+ deep #0F1220)   ink + statement bands
     Warm Cream     #F5F0E8   base surface (+ #FAF6EF raised)
     Evergreen      #315B4D   accent / CTA (deep #25463B)
     Sage           #9AAEA3   decorative only — never body text
   Type: Cormorant Garamond (display) + Montserrat (UI/body).
   No gold. No RR-MEDIA marks.

   v2 adds the interactive layer: film grain, scroll progress, ghosted
   section numerals, magnetic CTAs, the journey ribbon, tilt cards,
   the plan builder, lens (comparison) tabs, and the interactive arc.
   Product-render mockups live in assets/css/mockups.css.
   Every animation is transform/opacity only and respects
   prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --navy: #1A1A2E;
  --navy-deep: #0F1220;
  --navy-soft: #23233B;
  --cream: #F5F0E8;
  --cream-raised: #FAF6EF;
  --cream-deep: #EDE7D9;
  --evergreen: #315B4D;
  --evergreen-deep: #25463B;
  --sage: #9AAEA3;
  --sage-soft: #D8E1DC;
  --ink: #1A1A2E;
  --ink-soft: #3E3E52;
  --ink-muted: #6B6B7E;
  --cream-on-navy: #F5F0E8;
  --muted-on-navy: #B9B9C6;
  --hairline: rgba(26, 26, 46, 0.12);
  --hairline-navy: rgba(245, 240, 232, 0.16);
  --shadow-soft: 0 2px 24px rgba(26, 26, 46, 0.07);
  --shadow-lift: 0 18px 50px rgba(26, 26, 46, 0.14);
  --font-display: "Cormorant Garamond", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-ui: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset-ish ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--evergreen); text-decoration: none; }
a:hover { color: var(--evergreen-deep); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--evergreen);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--evergreen); color: var(--cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--cream);
  padding: 0.6rem 1.2rem; z-index: 300; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ── Film grain overlay (SVG turbulence, fixed, decorative) ── */
body::after {
  content: "";
  position: fixed;
  inset: -60%;
  width: 220%;
  height: 220%;
  pointer-events: none;
  z-index: 260;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain-shift 1.1s steps(3) infinite; }
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2.5%, 1.8%); }
  66%  { transform: translate(1.8%, -2.2%); }
  100% { transform: translate(0, 0); }
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 280; pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--evergreen), var(--evergreen-deep));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Typography ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.7rem, 6.4vw, 4.9rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h4 { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; margin: 0 0 0.4em; }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 46em; }
.eyebrow {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--evergreen); margin: 0 0 1.1rem; display: block;
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 26px; height: 1px; background: var(--evergreen);
  margin-right: 0.7rem; opacity: 0.65; transform: translateY(-1px);
}
.on-navy .eyebrow { color: var(--sage); }
.on-navy .eyebrow::before { background: var(--sage); }
.on-navy, .on-navy h1, .on-navy h2, .on-navy h3, .on-navy p { color: var(--cream-on-navy); }
.on-navy p { color: var(--muted-on-navy); }
.on-navy .lede { color: var(--muted-on-navy); }
.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); position: relative; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; position: relative; }
.band-navy { background: var(--navy); }
.band-navy-deep { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.band-raised { background: var(--cream-raised); }
.band-deep { background: var(--cream-deep); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.divider { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
[id] { scroll-margin-top: 96px; }

.grid-2 { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split.rev > :first-child { order: 2; }
  .split.rev > :last-child { order: 1; }
}

/* ── Ghosted section numerals ── */
.sec-num {
  position: absolute;
  top: clamp(0.5rem, 2vw, 1.5rem);
  right: clamp(0.25rem, 2vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(7rem, 18vw, 15rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(49, 91, 77, 0.20);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@supports not (-webkit-text-stroke: 1px black) {
  .sec-num { color: rgba(49, 91, 77, 0.08); }
}
.on-navy .sec-num, .band-navy .sec-num, .band-navy-deep .sec-num {
  -webkit-text-stroke-color: rgba(154, 174, 163, 0.22);
}
@supports not (-webkit-text-stroke: 1px black) {
  .on-navy .sec-num { color: rgba(154, 174, 163, 0.09); }
}
.section > .container { position: relative; z-index: 1; }

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: var(--font-ui); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.02em; line-height: 1;
  padding: 0.95rem 1.7rem; border-radius: 6px; border: 1.5px solid transparent;
  cursor: pointer; position: relative;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.35s var(--ease-out), box-shadow 0.25s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) !important; }
.btn-primary { background: var(--evergreen); color: #fff; box-shadow: 0 4px 18px rgba(37, 70, 59, 0.22); }
.btn-primary:hover { background: var(--evergreen-deep); color: #fff; box-shadow: 0 8px 26px rgba(37, 70, 59, 0.3); }
.btn-ghost { border-color: var(--evergreen); color: var(--evergreen); background: transparent; }
.btn-ghost:hover { background: rgba(49, 91, 77, 0.08); color: var(--evergreen-deep); }
.on-navy .btn-ghost { border-color: var(--sage); color: var(--cream); }
.on-navy .btn-ghost:hover { background: rgba(245, 240, 232, 0.08); color: var(--cream); }
.btn-quiet { color: var(--evergreen); background: transparent; padding-left: 0.4rem; padding-right: 0.4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.center .btn-row { justify-content: center; }
.btn-note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 0.7rem; }
.on-navy .btn-note { color: var(--muted-on-navy); }
.arrow-link { font-weight: 600; font-size: 0.9rem; display: inline-block; }
.arrow-link::after { content: " →"; display: inline-block; transition: transform 0.25s var(--ease-out); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 250;
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(245, 240, 232, 0.93);
  border-bottom-color: var(--hairline);
  box-shadow: 0 6px 30px rgba(26, 26, 46, 0.06);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }

.nav-bar > nav { align-self: stretch; display: flex; }
.nav-links { display: flex; align-items: stretch; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-links > .nav-item > a,
.nav-menu-btn {
  color: var(--ink-soft); font-size: 0.9rem; font-weight: 500; position: relative;
  padding: 0.2rem 0; background: none; border: 0; cursor: pointer;
  font-family: var(--font-ui); line-height: 1.65;
  display: inline-flex; align-items: center; gap: 0.42rem;
}
.nav-links > .nav-item > a::after,
.nav-menu-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--evergreen); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s var(--ease-out);
}
.nav-links > .nav-item > a:hover::after,
.nav-links > .nav-item > a[aria-current="page"]::after,
.nav-menu-btn:hover::after,
.nav-item.open > .nav-menu-btn::after,
.nav-menu-btn.current::after { transform: scaleX(1); }
.nav-links > .nav-item > a:hover,
.nav-links > .nav-item > a[aria-current="page"],
.nav-menu-btn:hover,
.nav-item.open > .nav-menu-btn,
.nav-menu-btn.current { color: var(--evergreen-deep); }
.nav-links > .nav-item > a[aria-current="page"], .nav-menu-btn.current { font-weight: 600; }
.caret {
  width: 7px; height: 7px; flex-shrink: 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.22s var(--ease-out);
}
.nav-item.open > .nav-menu-btn .caret { transform: rotate(225deg) translate(-2px, -2px); }

/* dropdown panels */
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 50%;
  min-width: 320px; transform: translate(-50%, -8px);
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: 12px; box-shadow: 0 24px 60px rgba(26, 26, 46, 0.18);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s var(--ease-out), visibility 0s linear 0.16s;
  z-index: 40;
}
.nav-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item.open > .nav-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.15s ease, transform 0.15s var(--ease-out);
}
.nav-menu.align-right { left: auto; right: -8px; transform: translate(0, -8px); }
.nav-item.open > .nav-menu.align-right { transform: translate(0, 0); }
.menu-item {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.6rem 0.7rem; border-radius: 8px; color: var(--ink);
  transition: background 0.15s ease;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(49, 91, 77, 0.07); color: var(--ink); }
.menu-item img { width: 34px; height: 34px; flex-shrink: 0; }
.menu-item .mi-name { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.menu-item .mi-desc { display: block; font-size: 0.74rem; color: var(--ink-muted); line-height: 1.35; }
.menu-item[aria-current="page"] .mi-name { color: var(--evergreen-deep); }
.menu-item[aria-current="page"]::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--evergreen); position: absolute; margin-left: -0.55rem; }
.menu-foot {
  display: block; margin-top: 0.35rem; border-top: 1px solid var(--hairline);
  padding: 0.7rem 0.7rem 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--evergreen);
}
.menu-foot:hover { color: var(--evergreen-deep); }
.nav-cta { display: flex; align-items: center; gap: 0.9rem; }
.nav-cta .btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 5px 0; transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream-raised); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 40px rgba(26, 26, 46, 0.12);
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem; gap: 1.1rem;
    visibility: hidden; opacity: 0; transform: translateY(-10px);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0s linear 0.28s;
  }
  .nav-links.open {
    visibility: visible; opacity: 1; transform: translateY(0);
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
  }
  .nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s var(--ease-out); }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(1) { transition-delay: 0.03s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.06s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.09s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.12s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.15s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.18s; }
  .nav-links.open li:nth-child(7) { transition-delay: 0.21s; }
  .nav-cta .btn { white-space: nowrap; }
  /* dropdown groups become drawer accordions */
  .nav-bar > nav { align-self: auto; display: block; }
  .nav-item { width: 100%; display: block; }
  .nav-menu-btn { width: 100%; justify-content: space-between; font-size: 0.95rem; }
  .nav-menu-btn::after { display: none; }
  .nav-menu {
    position: static; min-width: 0; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: 0; border-radius: 0; background: transparent;
    padding: 0.25rem 0 0.25rem 0.35rem; display: none; transition: none;
  }
  .nav-menu::before { display: none; }
  .nav-item.open > .nav-menu { display: block; transform: none; }
  .nav-menu.align-right { right: auto; }
  .nav-item.open > .nav-menu.align-right { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 519px) {
  .brand img { width: 28px; height: 28px; }
  .brand-name { font-size: 1.02rem; }
  .nav-cta { gap: 0.5rem; }
  .nav-cta .btn { font-size: 0.72rem; padding: 0.55rem 0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-links li { transition: none; }
}

/* ── Hero (generic) ── */
.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero .lede { margin-top: 1.2rem; }
.hero .btn-row { margin-top: 2.2rem; }
.hero > .container { position: relative; z-index: 2; }

/* ── Home hero: the chronicle road ── */
.hero-road-wrap { position: relative; min-height: clamp(540px, 78vh, 760px); display: flex; align-items: center; }
.hero-road {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 24%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.35) 24%, #000 42%);
}
.hero-road svg { width: 100%; height: 100%; display: block; overflow: visible; }
.road-bed { fill: none; stroke: var(--sage-soft); stroke-width: 30; stroke-linecap: round; opacity: 0.55; }
.road-line {
  fill: none; stroke: var(--evergreen); stroke-width: 2.5;
  stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
}
.hero-road.play .road-line { animation: road-draw 3.2s var(--ease-out) 0.3s forwards; }
@keyframes road-draw { to { stroke-dashoffset: 0; } }
/* the translate lives on .road-node (inline style, set from the path by JS);
   the light-up animation lives on the INNER group so it can never clobber
   the placement transform */
.road-node .n-in { opacity: 0; }
.hero-road.play .road-node .n-in { animation: node-in 0.7s ease forwards; animation-delay: var(--nd, 0.8s); }
.road-node circle.halo { fill: rgba(49, 91, 77, 0.10); }
.road-node circle.ring { fill: var(--cream-raised); stroke: var(--evergreen); stroke-width: 2; }
.road-node circle.dot { fill: var(--evergreen); }
.road-node text {
  font: 600 11px var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase;
  fill: var(--ink-soft);
}
@keyframes node-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .road-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .road-node .n-in { opacity: 1 !important; animation: none !important; }
}
.hero-copy { max-width: 640px; }
.hero-copy h1 { text-wrap: balance; }
@media (max-width: 859px) {
  .hero-road { opacity: 0.4; }
}

/* ── Reveal on scroll ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--rd, 0s); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-left { opacity: 0; transform: translateX(-26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--rd, 0s); }
  .reveal-left.in { opacity: 1; transform: none; }
  .reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--rd, 0s); }
  .reveal-scale.in { opacity: 1; transform: none; }
}

/* ── Product trio cards (tilt + peek) ── */
.trio-card {
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) 0;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  position: relative;
}
.trio-card:hover { box-shadow: var(--shadow-lift); }
.trio-card .card-icon { width: 60px; height: 60px; margin-bottom: 1.1rem; transition: transform 0.35s var(--ease-out); }
.trio-card:hover .card-icon { transform: translateY(-4px) scale(1.05); }
.trio-card h3 { margin-bottom: 0.35rem; }
.trio-card .card-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--evergreen); margin-bottom: 0.8rem; }
.trio-card > p { color: var(--ink-soft); font-size: 0.95rem; }
.trio-card .card-link { font-weight: 600; font-size: 0.9rem; margin-bottom: 1.2rem; }
.trio-card .card-link::after { content: " →"; }
.trio-peek {
  margin: auto -1px -6px; height: 118px; overflow: hidden;
  border-radius: 8px 8px 0 0; position: relative; flex-shrink: 0;
  border: 1px solid var(--hairline); border-bottom: 0;
  background: #FFFFFE;
  transform: translateY(26px); opacity: 0.85;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}
.trio-card:hover .trio-peek, .trio-card:focus-within .trio-peek { transform: translateY(8px); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .trio-card, .trio-card .card-icon, .trio-peek { transition: none; transform: none; }
  .trio-peek { transform: translateY(8px); opacity: 1; }
}

/* ── Legacy simple cards (about / signin / contact reuse) ── */
.card {
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card .card-icon { width: 64px; height: 64px; margin-bottom: 1.2rem; }
.card h3 { margin-bottom: 0.35rem; }
.card .card-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--evergreen); margin-bottom: 0.8rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card .card-link { font-weight: 600; font-size: 0.9rem; }
.card .card-link::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* ── Feature rows ── */
.feature-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.feature-list li { padding: 0.45rem 0 0.45rem 1.7rem; position: relative; color: var(--ink-soft); font-size: 0.96rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--sage); border: 2px solid var(--evergreen);
}
.feature-list li strong { color: var(--ink); font-weight: 600; }
.on-navy .feature-list li { color: var(--muted-on-navy); }
.on-navy .feature-list li strong { color: var(--cream); }

/* ── Numbered steps ── */
.steps { counter-reset: step; list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 600;
  color: var(--sage); display: block; line-height: 1; margin-bottom: 0.5rem;
}
.steps h4 { margin-bottom: 0.25rem; }
.steps p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.on-navy .steps p { color: var(--muted-on-navy); }

/* ── Statement band ── */
.statement {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3;
  max-width: 28em; margin: 0 auto; text-align: center;
}
.statement em { font-style: italic; color: var(--sage); }
.on-cream .statement em, .band-deep .statement em { color: var(--evergreen); }

/* ── The Journey Ribbon (scroll-linked pinned sequence) ── */
.journey { position: relative; }
.journey-track { position: relative; }
.journey-stage { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.journey-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
.journey-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.journey-acts { list-style: none; margin: 0; padding: 0; position: relative; }
.journey-acts::before {
  content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px;
  width: 2px; background: var(--hairline-navy);
}
.journey-rail .journey-progress {
  position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px;
  overflow: hidden; pointer-events: none;
}
.journey-rail { position: relative; }
.journey-progress span {
  display: block; width: 100%; height: 100%;
  background: var(--sage);
  transform-origin: 0 0; transform: scaleY(0);
  transition: transform 0.2s linear;
}
.journey-act { position: relative; padding: 0.7rem 0 0.7rem 2.6rem; cursor: pointer; }
.journey-act::before {
  content: ""; position: absolute; left: 4px; top: 1.15rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy-soft); border: 2px solid var(--muted-on-navy);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.journey-act .act-app {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sage); display: block; margin-bottom: 0.1rem;
}
.journey-act h3 {
  font-size: 1.25rem; margin: 0; color: var(--muted-on-navy);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
  transform-origin: 0 50%;
}
.journey-act p {
  font-size: 0.88rem; color: var(--muted-on-navy); margin: 0.15rem 0 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease-out), opacity 0.4s ease;
}
.journey-act.active::before { background: var(--sage); border-color: var(--cream); transform: scale(1.25); }
.journey-act.active h3 { color: var(--cream); transform: scale(1.06); }
.journey-act.active p { max-height: 6em; opacity: 1; }
.journey-vignettes { position: relative; min-height: clamp(340px, 44vh, 460px); }
.journey-vignettes .vignette {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(26px) scale(0.97);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.journey-vignettes .vignette.active { opacity: 1; transform: none; pointer-events: auto; }
.vignette figcaption {
  position: absolute; bottom: -0.4rem; left: 0; right: 0; text-align: center;
  font-size: 0.78rem; color: var(--muted-on-navy);
}
@media (min-width: 900px) {
  .journey-grid { grid-template-columns: 0.9fr 1.1fr; }
}
/* Desktop pinning (JS adds .is-pinned when scroll-link is active) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .journey.is-pinned .journey-track { height: 460vh; }
  .journey.is-pinned .journey-stage {
    position: sticky; top: 0; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
  }
}
/* Mobile / reduced-motion fallback: horizontal swipe cards */
.journey-swipe { display: none; }
@media (max-width: 899px) {
  .journey-vignettes { display: none; }
  .journey-acts::before, .journey-progress { display: none; }
  .journey-act { padding-left: 0; }
  .journey-act::before { display: none; }
  .journey-act h3 { color: var(--cream); font-size: 1.05rem; }
  .journey-act p { max-height: none; opacity: 1; }
  .journey-acts { display: none; }
  .journey-swipe {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
    gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0.5rem 1.25rem 1.5rem; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .journey-swipe::-webkit-scrollbar { display: none; }
  .journey-swipe .swipe-card {
    scroll-snap-align: center;
    background: var(--navy-soft); border: 1px solid var(--hairline-navy);
    border-radius: var(--radius); padding: 1.2rem;
  }
  .journey-swipe .swipe-card .act-app { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }
  .journey-swipe .swipe-card h3 { color: var(--cream); font-size: 1.15rem; margin: 0.2rem 0 0.3rem; }
  .journey-swipe .swipe-card p { color: var(--muted-on-navy); font-size: 0.85rem; margin: 0 0 0.9rem; }
  .journey-swipe .vg { transform: none; }
}

/* ── Better-together interactive diagram ── */
.together-diagram { position: relative; margin-top: 2.5rem; }
.together-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.tg-node { cursor: pointer; }
.tg-node .node-halo { fill: rgba(49, 91, 77, 0.0); transition: fill 0.3s ease; }
.tg-node .node-bg { fill: var(--cream-raised); stroke: var(--hairline); stroke-width: 1.5; transition: stroke 0.3s ease, fill 0.3s ease; }
.tg-node text { font: 600 15px var(--font-ui); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.tg-node .node-sub { font: 500 10.5px var(--font-ui); fill: var(--ink-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.tg-node.hot .node-bg, .tg-node:hover .node-bg, .tg-node:focus-visible .node-bg { stroke: var(--evergreen); stroke-width: 2; }
.tg-node.hot .node-halo { fill: rgba(49, 91, 77, 0.08); }
.tg-core .core-bg { fill: var(--navy); }
.tg-core text { fill: var(--cream); font: 600 14px var(--font-ui); text-anchor: middle; }
.tg-core .core-sub { fill: var(--muted-on-navy); font: 500 10px var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; }
.tg-flow {
  fill: none; stroke: var(--sage); stroke-width: 1.6;
  stroke-dasharray: 6 7; opacity: 0.5;
  transition: opacity 0.3s ease, stroke 0.3s ease;
}
.tg-flow.hot {
  stroke: var(--evergreen); opacity: 1; stroke-width: 2.2;
}
@media (prefers-reduced-motion: no-preference) {
  .tg-flow.hot { animation: flow-dash 1.1s linear infinite; }
}
@keyframes flow-dash { to { stroke-dashoffset: -13; } }
.tg-caption {
  margin: 1.4rem auto 0; max-width: 620px; text-align: center;
  min-height: 3.6em; font-size: 0.95rem; color: var(--ink-soft);
}
.tg-caption strong { color: var(--ink); }

/* ── Stats / credibility band ── */
.stats-band { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
@media (min-width: 780px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--cream);
  display: block; font-variant-numeric: tabular-nums;
}
.stat .stat-num sub { font-size: 0.4em; vertical-align: baseline; color: var(--sage); }
.stat .stat-label { display: block; margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.claims-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2.6rem; }
.claim-chip {
  font-size: 0.78rem; font-weight: 500; color: var(--muted-on-navy);
  border: 1px solid var(--hairline-navy); border-radius: 100px;
  padding: 0.45rem 1rem;
}
.claim-chip::before { content: "✓ "; color: var(--sage); font-weight: 700; }

/* ── Lens (comparison) module ── */
.lens { margin-top: 2.2rem; }
.lens-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.lens-tabs [role="tab"] {
  font-family: var(--font-ui); font-size: 0.84rem; font-weight: 600;
  padding: 0.6rem 1.15rem; border-radius: 100px; cursor: pointer;
  border: 1.5px solid var(--hairline); background: transparent; color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.lens-tabs [role="tab"]:hover { border-color: var(--evergreen); color: var(--evergreen-deep); }
.lens-tabs [role="tab"][aria-selected="true"] { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.lens-panel[hidden] { display: none; }
.lens-note { font-size: 0.78rem; color: var(--ink-muted); margin-top: 0.9rem; }
.table-wrap { overflow-x: auto; }
.lens-table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.9rem; }
.lens-table th, .lens-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.lens-table thead th { font-family: var(--font-ui); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--evergreen); border-bottom-width: 2px; }
.lens-table td:first-child { font-weight: 600; color: var(--ink); width: 24%; }
.lens-table td { color: var(--ink-soft); }
.lens-table td.us { position: relative; background: rgba(49, 91, 77, 0.05); }
.lens-table td.us::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 2px; background: var(--evergreen); }
@media (prefers-reduced-motion: no-preference) {
  .lens-panel.animate tbody tr { opacity: 0; transform: translateX(-10px); animation: lens-row 0.5s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
}
@keyframes lens-row { to { opacity: 1; transform: none; } }

/* ── Capabilities accordion / FAQ ── */
.faq { max-width: 780px; margin: 2rem auto 0; }
.faq.wide { max-width: none; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 0.4rem 0; }
.faq summary {
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 2.2rem 0.8rem 0; cursor: pointer; list-style: none; position: relative;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--evergreen-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.2rem; top: 0.55rem;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--evergreen);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { overflow: hidden; }
.faq p, .faq ul { color: var(--ink-soft); font-size: 0.95rem; padding-bottom: 0.8rem; margin-top: 0; }
.faq ul { margin: 0; padding-left: 1.2rem; }
.faq ul li { margin-bottom: 0.35rem; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq-body { animation: faq-open 0.4s var(--ease-out); }
}
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Pricing cards ── */
.price-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 680px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .price-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } .price-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .price-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .price-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
@media (prefers-reduced-motion: reduce) { .price-card:hover { transform: none; } }
.price-card.featured { border: 2px solid var(--evergreen); position: relative; }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -0.75rem; left: 1.2rem;
  background: var(--evergreen); color: #fff; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 4px;
}
.price-card h3 { font-size: 1.35rem; margin-bottom: 0.2rem; }
.price-card .price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1.1; margin: 0.6rem 0 0.1rem; }
.price-card .price small { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500; color: var(--ink-muted); }
.price-card .price-alt { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 1rem; }
.price-card .plan-for { font-size: 0.85rem; color: var(--ink-soft); min-height: 3.2em; }
.price-card .feature-list { margin-top: 0.8rem; flex: 1; }
.price-card .feature-list li { font-size: 0.86rem; padding-top: 0.3rem; padding-bottom: 0.3rem; }
.price-card .btn { margin-top: 1.4rem; text-align: center; }

/* Pricing teaser row (product pages) */
.teaser-row { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 720px) { .teaser-row { grid-template-columns: repeat(var(--n, 3), 1fr); } }
.teaser {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--cream-raised); padding: 1.1rem 1.2rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.teaser .t-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); display: block; }
.teaser .t-for { font-size: 0.74rem; color: var(--ink-muted); }
.teaser .t-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; white-space: nowrap; }
.teaser .t-price small { font-family: var(--font-ui); font-size: 0.72rem; color: var(--ink-muted); font-weight: 500; }

/* ── Plan builder ── */
.builder {
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: var(--shadow-lift);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 2.6rem;
}
.builder-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.builder-head h3 { margin: 0; }
.billing-switch {
  display: inline-flex; align-items: center; gap: 0; border: 1.5px solid var(--hairline);
  border-radius: 100px; padding: 3px; background: var(--cream);
}
.billing-switch button {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.1rem; border-radius: 100px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.billing-switch button[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.billing-switch .save-tag { font-size: 0.68rem; color: var(--evergreen); font-weight: 700; margin-left: 0.3rem; }
.billing-switch button[aria-pressed="true"] .save-tag { color: var(--sage-soft); }

.builder-apps { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .builder-apps { grid-template-columns: repeat(3, 1fr); } }
.builder-app {
  border: 1.5px solid var(--hairline); border-radius: var(--radius);
  padding: 1.2rem; background: var(--cream);
  transition: border-color 0.3s ease, background 0.3s ease, opacity 0.3s ease;
}
.builder-app.enabled { border-color: var(--evergreen); background: #FDFBF7; }
.builder-app-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.builder-app-head .app-title { display: flex; align-items: center; gap: 0.6rem; }
.builder-app-head img { width: 30px; height: 30px; }
.builder-app-head .app-name { font-weight: 600; font-size: 0.95rem; }
.builder-app-head .app-sub { display: block; font-size: 0.68rem; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }
/* toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 2; }
.switch .track {
  position: absolute; inset: 0; border-radius: 100px;
  background: var(--sage-soft); border: 1px solid var(--hairline);
  transition: background 0.25s ease;
}
.switch .thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(26,26,46,0.3);
  transition: transform 0.25s var(--ease-out);
}
.switch input:checked ~ .track { background: var(--evergreen); }
.switch input:checked ~ .thumb { transform: translateX(20px); }
.switch input:focus-visible ~ .track { outline: 2px solid var(--evergreen); outline-offset: 2px; }

.builder-tiers { margin-top: 1rem; display: none; }
.builder-app.enabled .builder-tiers { display: block; }
.tier-group-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin: 0.8rem 0 0.4rem; }
.tier-options { display: flex; flex-direction: column; gap: 0.4rem; }
.tier-option { position: relative; }
.tier-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tier-option .tier-pill {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem;
  border: 1.5px solid var(--hairline); border-radius: 8px;
  padding: 0.55rem 0.85rem; font-size: 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}
.tier-option:hover .tier-pill { border-color: var(--sage); }
.tier-option input:checked + .tier-pill { border-color: var(--evergreen); background: rgba(49, 91, 77, 0.07); }
.tier-option input:focus-visible + .tier-pill { outline: 2px solid var(--evergreen); outline-offset: 2px; }
.tier-pill .tier-name { font-weight: 600; color: var(--ink); }
.tier-pill .tier-pop { font-size: 0.6rem; font-weight: 700; color: var(--evergreen); letter-spacing: 0.1em; text-transform: uppercase; margin-left: 0.35rem; }
.tier-pill .tier-price { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.builder-app .app-off-note { font-size: 0.8rem; color: var(--ink-muted); margin: 0.9rem 0 0; }
.builder-app.enabled .app-off-note { display: none; }
.bundle-note { font-size: 0.74rem; color: var(--ink-muted); margin: 0.5rem 0 0; }

.builder-total {
  margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.builder-total .total-copy .total-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); display: block; }
.builder-total .total-num {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(2.6rem, 5vw, 3.6rem); font-variant-numeric: tabular-nums;
}
.builder-total .total-num small { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-muted); font-weight: 500; }
.builder-total .total-save { font-size: 0.85rem; color: var(--evergreen-deep); font-weight: 600; min-height: 1.3em; display: block; }
.builder-total .total-breakdown { font-size: 0.78rem; color: var(--ink-muted); }
.builder-cta { text-align: right; }
@media (max-width: 679px) { .builder-cta { text-align: left; } }

/* ── Forms ── */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 680px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.form-panel {
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: var(--shadow-lift);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.form-panel .form-grid { margin-top: 0; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-ui); font-size: 0.95rem; color: var(--ink);
  background: #FFFFFE; border: 1px solid var(--hairline);
  border-radius: 6px; padding: 0.8rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--evergreen); box-shadow: 0 0 0 3px rgba(49, 91, 77, 0.12); }
.field textarea { min-height: 160px; resize: vertical; }
.form-status { margin-top: 1.2rem; font-size: 0.95rem; }
.form-status.ok { color: var(--evergreen-deep); font-weight: 600; position: relative; padding-left: 2.1rem; }
.form-status.ok::before {
  content: ""; position: absolute; left: 0; top: 0.05em;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--evergreen);
}
.form-status.ok::after {
  content: ""; position: absolute; left: 0.36rem; top: 0.42em;
  width: 0.62rem; height: 0.32rem;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg); transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .form-status.ok::before { animation: ok-pop 0.5s var(--ease-out); }
  .form-status.ok::after { animation: ok-check 0.35s var(--ease-out) 0.15s backwards; }
}
@keyframes ok-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ok-check { 0% { opacity: 0; transform: rotate(-45deg) scale(0.4); } 100% { opacity: 1; transform: rotate(-45deg) scale(1); } }
.form-status.err { color: #8A3B2E; }

/* ── Lockup showcase (cream surfaces ONLY) ── */
.lockup-frame { background: var(--cream-raised); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-soft); }
.lockup-frame img { margin: 0 auto; max-width: 520px; width: 100%; }

/* ── Interactive arc (together page) ── */
.arc-stage-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.2rem; }
.arc-stage-btns button {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600;
  border: 1.5px solid var(--hairline); background: transparent; color: var(--ink-soft);
  border-radius: 100px; padding: 0.55rem 1.05rem; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.arc-stage-btns button .n { font-family: var(--font-display); font-weight: 700; color: var(--sage); margin-right: 0.35rem; }
.arc-stage-btns button:hover { border-color: var(--evergreen); color: var(--evergreen-deep); }
.arc-stage-btns button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.arc-stage-btns button[aria-selected="true"] .n { color: var(--sage); }
.arc-viz { margin-top: 2rem; position: relative; }
.arc-viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.arc-path-bed { fill: none; stroke: var(--sage-soft); stroke-width: 22; stroke-linecap: round; opacity: 0.6; }
.arc-path-line { fill: none; stroke: var(--sage); stroke-width: 1.8; stroke-dasharray: 5 7; }
.arc-path-done { fill: none; stroke: var(--evergreen); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--ease-out); }
.arc-node { cursor: pointer; }
.arc-node .ring { fill: var(--cream-raised); stroke: var(--hairline); stroke-width: 1.6; transition: stroke 0.3s ease, fill 0.3s ease; }
.arc-node .dot { fill: var(--sage); transition: fill 0.3s ease; r: 5; }
.arc-node text { font: 600 12px var(--font-ui); fill: var(--ink-soft); text-anchor: middle; letter-spacing: 0.06em; }
.arc-node .app-tag { font: 700 8.5px var(--font-ui); fill: var(--ink-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.arc-node.done .dot { fill: var(--evergreen); }
.arc-node.active .ring { stroke: var(--evergreen); stroke-width: 2.4; fill: #fff; }
.arc-node.active .dot { fill: var(--evergreen); }
.arc-node.active text { fill: var(--ink); }
.arc-record {
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.arc-record circle { fill: var(--navy); stroke: var(--cream); stroke-width: 2.5; }
.arc-record text { font: 700 9px var(--font-ui); fill: var(--cream); text-anchor: middle; letter-spacing: 0.08em; }
@media (prefers-reduced-motion: no-preference) {
  .arc-record.gliding circle { animation: record-pulse 0.8s ease; }
}
@keyframes record-pulse { 50% { stroke-width: 5; } }
.arc-detail {
  margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: center; justify-content: space-between;
  background: var(--cream-raised); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow-soft);
}
.arc-detail [data-arc-detail] {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  align-items: center; flex: 1 1 420px;
}
.arc-detail [data-arc-detail][hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .arc-detail [data-arc-detail]:not([hidden]) { animation: faq-open 0.45s var(--ease-out); }
}
.arc-detail .arc-detail-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--sage); line-height: 1; }
.arc-detail h3 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.arc-detail p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.arc-detail .app-chip {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--evergreen); border: 1px solid var(--evergreen); border-radius: 100px;
  padding: 0.3rem 0.8rem; display: inline-block; margin-bottom: 0.5rem;
}

/* ── Sign-in doors ── */
.door-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 780px) { .door-grid { grid-template-columns: repeat(3, 1fr); } }
.door {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream-raised); border: 1px solid var(--hairline);
  border-radius: 14px 14px var(--radius) var(--radius);
  padding: 2.4rem 1.8rem 1.8rem; overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}
.door::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(49, 91, 77, 0.07), transparent 55%);
  opacity: 0; transition: opacity 0.4s ease;
}
.door::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--evergreen); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}
.door:hover, .door:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(49, 91, 77, 0.4); }
.door:hover::before, .door:focus-within::before { opacity: 1; }
.door:hover::after, .door:focus-within::after { transform: scaleX(1); }
.door .card-icon { width: 62px; height: 62px; margin-bottom: 1.2rem; transition: transform 0.4s var(--ease-out); }
.door:hover .card-icon { transform: translateY(-4px); }
.door .door-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--evergreen); margin: 0 0 0.5rem; }
.door h3 { margin-bottom: 0.4rem; }
.door p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.door .door-meta {
  list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 0.8rem; color: var(--ink-muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s ease;
}
.door:hover .door-meta, .door:focus-within .door-meta { max-height: 8em; opacity: 1; }
.door .door-meta li { padding: 0.16rem 0; }
.door .door-meta li::before { content: "· "; color: var(--sage); font-weight: 700; }
.door .btn { text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .door, .door::before, .door::after, .door .card-icon, .door .door-meta { transition: none; }
  .door .door-meta { max-height: none; opacity: 1; }
}

/* ── Footer ── */
.site-footer { background: var(--navy); color: var(--muted-on-navy); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: 0.88rem; position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand .brand { color: var(--cream); margin-bottom: 0.8rem; }
.footer-brand p { max-width: 26em; }
.site-footer h4 { color: var(--sage); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--muted-on-navy); }
.site-footer a:hover { color: var(--cream); }
.footer-legal {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--hairline-navy);
  display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between;
  font-size: 0.8rem; position: relative; z-index: 1;
}
.footer-ghost {
  position: absolute; bottom: -0.18em; left: 0; right: 0;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(4rem, 11vw, 9.5rem); text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(154, 174, 163, 0.10);
  pointer-events: none; user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) { .footer-ghost { color: rgba(154, 174, 163, 0.05); } }

/* ── 404 road ── */
.lost-road { max-width: 640px; margin: 2rem auto 0; }
.lost-road svg { width: 100%; height: auto; overflow: visible; }
.lost-bed { fill: none; stroke: var(--sage-soft); stroke-width: 22; stroke-linecap: round; opacity: 0.6; }
.lost-line { fill: none; stroke: var(--evergreen); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.play .lost-line { animation: road-draw 2.4s var(--ease-out) 0.2s forwards; }
.lost-q text { font: 700 20px var(--font-display); fill: var(--evergreen); text-anchor: middle; }
.lost-q circle { fill: var(--cream-raised); stroke: var(--evergreen); stroke-width: 2; stroke-dasharray: 4 5; }
@media (prefers-reduced-motion: reduce) { .lost-line { stroke-dashoffset: 0 !important; animation: none !important; } }

/* ── About editorial ── */
.pull-quote {
  border-left: 3px solid var(--evergreen); padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--ink);
  max-width: 30em; margin: 2rem 0;
}
.principle { position: relative; padding-top: 1rem; }
.principle .p-num {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(4.5rem, 9vw, 7rem);
  color: transparent; -webkit-text-stroke: 1px rgba(49, 91, 77, 0.28);
  display: block; margin-bottom: -0.35em;
  user-select: none;
}
@supports not (-webkit-text-stroke: 1px black) { .principle .p-num { color: rgba(49, 91, 77, 0.12); } }

/* ── Founder section (about) ── */
.founder-figure { position: relative; max-width: 460px; margin: 0; }
.founder-figure::after {
  content: ""; position: absolute; top: 18px; left: 18px; right: -14px; bottom: -14px;
  border: 1.5px solid var(--sage); border-radius: 14px; z-index: 0;
  pointer-events: none;
}
.founder-figure img {
  position: relative; z-index: 1; display: block; width: 100%;
  aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 22%;
  border-radius: 12px; box-shadow: var(--shadow-lift);
  border-bottom: 4px solid var(--evergreen);
}
.founder-figure figcaption { position: relative; z-index: 1; margin-top: 1.1rem; }
.founder-figure .f-name { display: block; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.founder-figure .f-title { display: block; font-size: 0.78rem; color: var(--ink-muted); letter-spacing: 0.06em; }

/* ── Utility ── */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.small { font-size: 0.85rem; color: var(--ink-muted); }
.on-navy .small { color: var(--muted-on-navy); }
.nowrap { white-space: nowrap; }

/* ── Global reduced-motion hard guard ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
