/* ==========================================================================
   Styles
   --------------------------------------------------------------------------
   Colours live in the theme tokens below (dark is the default, light is the
   option). Change --accent to re-brand the whole site.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-soft: #0f0f11;
  --raised: #151517;
  --ink: #f3f2ee;
  --muted: #9b9a95;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --veil: rgba(255, 255, 255, 0.035);
  --header-bg: rgba(10, 10, 11, 0.72);
  --glow: rgba(255, 91, 31, 0.32);
  --glow-soft: rgba(255, 91, 31, 0.12);
  --haze: rgba(255, 255, 255, 0.05);
  --shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9), 0 20px 40px -30px rgba(0, 0, 0, 0.6);
  --grain: 0.07;
  --focus: var(--accent);
  --error: #ff6b5b;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f5f4ef;
  --bg-soft: #efede7;
  --raised: #ffffff;
  --ink: #111110;
  --muted: #5d5c56;
  --line: rgba(17, 17, 16, 0.1);
  --line-strong: rgba(17, 17, 16, 0.24);
  --veil: rgba(17, 17, 16, 0.025);
  --header-bg: rgba(245, 244, 239, 0.78);
  --glow: rgba(255, 91, 31, 0.22);
  --glow-soft: rgba(255, 91, 31, 0.08);
  --haze: rgba(255, 255, 255, 0.7);
  --shadow: 0 50px 100px -50px rgba(17, 17, 16, 0.35), 0 20px 40px -30px rgba(17, 17, 16, 0.2);
  --grain: 0.045;
  --focus: var(--ink);
  --error: #b42318;
  color-scheme: light;
}

:root {
  --accent: #ff5b1f;
  --accent-hover: #ff7442;
  --accent-ink: #0a0a0b;

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4.5vw, 2.5rem);
  --section-y: clamp(6rem, 13vw, 11rem);
  --header-h: 68px;
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  interpolate-size: allow-keywords;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-scroll { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: 0.875rem;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }
.noscript { padding: 2rem var(--gutter); text-align: center; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }
/* glows bleed softly but never widen the page (clip keeps sticky working) */
main > section { overflow-x: clip; }
html, body { overflow-x: clip; }

/* ---------- Type ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--glow);
}
.h1 {
  font-size: clamp(2.875rem, 1.3rem + 6.6vw, 7.25rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.048em;
}
.h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.042em;
}
.h3 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.lead {
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
}
.muted { color: var(--muted); }
.section-head { max-width: 52rem; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.section-head .label { margin-bottom: 1.5rem; }
.section-head .lead { margin-top: 1.5rem; }

/* ---------- Buttons & links ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: var(--h);
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.5s var(--ease), transform 0.35s var(--ease);
}
.btn .icon { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn-sm { --h: 40px; padding: 0 1.125rem; font-size: 0.875rem; }
.btn-lg { --h: 56px; padding: 0 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--glow-soft), 0 10px 30px -12px var(--glow);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 0 6px var(--glow-soft), 0 16px 40px -12px var(--glow); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.text-link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.text-link:hover .icon { transform: translate(2px, -2px); }
.text-link.down:hover .icon { transform: translateY(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.menu-open { background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 0.25rem; height: 100%; }
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.header-cta { display: none; margin-left: 0.5rem; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

.theme-toggle, .menu-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--ink); background: var(--veil); }
.theme-toggle .icon { width: 18px; height: 18px; transition: transform 0.6s var(--ease); }
.theme-toggle:hover .icon { transform: rotate(20deg); }
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun { display: none; }
.menu-toggle { color: var(--ink); margin-right: -10px; }
.menu-icon, .menu-icon::before {
  display: block;
  width: 20px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.menu-icon { position: relative; transform: translateY(-3.5px); }
.menu-icon::before { content: ""; position: absolute; top: 7px; left: 0; }
.menu-open .menu-icon { transform: translateY(0) rotate(45deg); }
.menu-open .menu-icon::before { transform: translateY(-7px) rotate(-90deg); }

/* Mobile nav sheet. Explicit height: the header's backdrop-filter makes it the containing block. */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  padding: 1.5rem var(--gutter) 2rem;
  background: var(--bg);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
}
.menu-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}
.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.nav-cta-mobile { margin-top: 2rem; }
.nav-cta-mobile .btn { width: 100%; --h: 56px; }

@media (min-width: 960px) {
  .menu-toggle, .nav-cta-mobile { display: none; }
  .site-nav {
    position: static;
    height: auto;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
    margin-right: 0.25rem;
  }
  .nav-list { flex-direction: row; gap: 0.25rem; }
  .nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.25s var(--ease);
  }
  .nav-link:hover, .nav-link[aria-current] { color: var(--ink); }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0);
    transition: transform 0.35s var(--ease);
  }
  .nav-link[aria-current]::after { transform: translateX(-50%) scale(1); }
}

/* ---------- Back pill (appears after an in-page jump) ---------- */
.back-pill {
  position: fixed;
  left: max(var(--gutter), env(safe-area-inset-left));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 1rem 0 0.8rem;
  border-radius: 999px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.back-pill.is-visible { opacity: 1; transform: none; }
.back-pill .icon { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.back-pill:hover .icon { transform: translateX(-3px); }

/* ---------- Glow ---------- */
.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero .glow-a { width: 900px; height: 900px; top: -420px; right: -280px; z-index: -1; opacity: 0.9; }
.hero .glow-b { width: 700px; height: 700px; bottom: -420px; left: -260px; z-index: -1; background: radial-gradient(closest-side, var(--haze), transparent); }
.hero-grid { display: grid; gap: clamp(3.5rem, 8vw, 4.5rem); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; } }
.hero .label { margin-bottom: 2rem; }
.h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.h1 .line > span { display: block; }
.h1 .line.muted { color: var(--muted); }
.hero-sub { margin-top: 2rem; max-width: 32em; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }

/* Hero visual: layered planes, before → after (pure CSS, crisp at any size) */
.hero-visual {
  --mx: 0;
  --my: 0;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.9;
}
.plane-glow {
  position: absolute;
  inset: 10% -5% -5% 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.mock {
  position: absolute;
  border-radius: 2.6cqw;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  transition: transform 1.2s var(--ease);
}
.mock-bar { display: flex; align-items: center; gap: 1cqw; height: 6.4cqw; padding: 0 2.6cqw; background: #f4f3ef; border-bottom: 1px solid #e7e5de; }
.mock-bar i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #d8d5cc; }
.mock-bar span { margin-left: 2cqw; padding: 0.5cqw 2cqw; border-radius: 99px; background: #e9e7e0; font-size: 1.9cqw; line-height: 1.4; color: #6b6a64; white-space: nowrap; }
.mock-tag {
  position: absolute;
  top: 1.15cqw;
  right: 2.4cqw;
  padding: 0.7cqw 1.8cqw;
  border-radius: 99px;
  background: #111110;
  color: #f5f4ef;
  font-size: 1.8cqw;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mock-tag.is-accent { background: var(--accent); color: var(--accent-ink); }
.mock-old {
  top: 0; left: 0;
  width: 66%;
  aspect-ratio: 1 / 0.82;
  transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0) rotate(-5deg);
  filter: saturate(0.75) brightness(0.9);
}
.old-body { height: 100%; background: #d9d9d9; font-family: "Times New Roman", Times, serif; color: #111; }
.old-banner {
  padding: 2.4cqw 2cqw;
  background: linear-gradient(#2a4bb5, #16297a);
  color: #ffe94a;
  font-size: 3.4cqw; font-weight: 700; font-style: italic;
  text-align: center;
  text-shadow: 0.3cqw 0.3cqw 0 #000;
}
.old-cols { display: grid; grid-template-columns: 30% 1fr; }
.old-nav { display: flex; flex-direction: column; gap: 1.2cqw; padding: 2cqw; background: #c0c0c0; font-size: 2.1cqw; color: #0000ee; }
.old-main { padding: 2cqw 2.4cqw; font-size: 2.1cqw; line-height: 1.3; }
.old-img { height: 12cqw; margin: 1.6cqw 0; background: repeating-linear-gradient(45deg, #b9b9b9 0 1cqw, #cfcfcf 1cqw 2cqw); }
.old-small { font-size: 1.6cqw; color: #555; }
.mock-new {
  right: 0; bottom: 0;
  width: 80%;
  aspect-ratio: 1 / 0.74;
  transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 12px), 0);
}
.mini { padding: 3cqw 3.4cqw; background: #fff; }
.mini-nav { display: flex; align-items: center; gap: 2cqw; }
.mini-nav b { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #111; margin-right: auto; }
.mini-nav span { width: 5.5cqw; height: 0.9cqw; border-radius: 9px; background: #d6d3ca; }
.mini-nav em { width: 10cqw; height: 3.6cqw; border-radius: 99px; background: #111; }
.mini-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3cqw; align-items: center; margin-top: 5cqw; }
.mini-h { display: grid; gap: 1.3cqw; }
.mini-h span { height: 3.2cqw; border-radius: 1cqw; background: #111; }
.mini-h span:last-child { width: 70%; }
.mini-p { display: grid; gap: 1cqw; margin-top: 2.6cqw; }
.mini-p span { height: 1.1cqw; border-radius: 9px; background: #d6d3ca; }
.mini-p span:last-child { width: 80%; }
.mini-btns { display: flex; gap: 1.4cqw; margin-top: 3cqw; }
.mini-btns i { width: 12cqw; height: 4cqw; border-radius: 99px; border: 1px solid #d6d3ca; }
.mini-btns i.is-accent { background: var(--accent); border-color: var(--accent); }
.mini-img {
  aspect-ratio: 1 / 1.05;
  border-radius: 2cqw;
  background:
    radial-gradient(120% 90% at 85% 10%, #ffb48f 0%, transparent 55%),
    radial-gradient(90% 90% at 10% 100%, #ff5b1f 0%, transparent 60%),
    linear-gradient(160deg, #ffd9c4, #ff8a5b);
}
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 4cqw; }
.mini-cards i { height: 9cqw; border-radius: 1.6cqw; background: #efede7; }

/* ---------- Problem ---------- */
.problem .label { margin-bottom: 2rem; }
.statement {
  max-width: 20em;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 3vw, 3.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.points { display: grid; margin-top: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.point { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.point .label { margin-bottom: 1rem; }
.point .label span { color: var(--accent); }
.point p { margin-top: 0.6rem; color: var(--muted); max-width: 26em; }
@media (min-width: 860px) {
  .points { grid-template-columns: repeat(3, 1fr); }
  .point { padding: 2rem 2rem 0; border-bottom: 0; }
  .point:first-child { padding-left: 0; }
  .point + .point { border-left: 1px solid var(--line); }
}

/* ---------- What you get ---------- */
.included-grid { display: grid; gap: clamp(3.5rem, 7vw, 5rem); align-items: center; }
@media (min-width: 1024px) { .included-grid { grid-template-columns: 1.15fr 0.85fr; gap: 5rem; } }
.feature-list { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.feature-list li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-list .num { font-size: 0.6875rem; letter-spacing: 0.18em; color: var(--muted); padding-top: 0.45rem; font-variant-numeric: tabular-nums; }
.feature-list p { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--muted); }

/* The ZIP: a quiet discovery - hover or tap to look inside */
.zip { position: relative; max-width: 400px; width: 100%; margin-inline: auto; isolation: isolate; }
.zip > .glow { inset: -30% -25%; z-index: -1; opacity: 0.6; transition: opacity 0.8s var(--ease); }
.zip.is-open > .glow { opacity: 1; }
.zip-file {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--raised);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  text-align: left;
  transition: transform 0.6s var(--ease);
}
.zip-file:hover { transform: translateY(-2px); }
.zip-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: end center;
  width: 54px; height: 66px;
  padding-bottom: 8px;
  border-radius: 8px 18px 8px 8px;
  background: linear-gradient(160deg, #ff8a5b, var(--accent));
  color: var(--accent-ink);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  box-shadow: 0 12px 30px -10px var(--glow);
}
.zip-icon::before {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 6px; height: 30px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0 4px, transparent 4px 8px);
}
.zip-name { display: block; font-family: var(--font-display); font-size: 1.0625rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.zip-meta { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--muted); }
.zip-hint { display: block; margin-top: 0.6rem; font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.zip-tree { display: grid; grid-template-rows: 0fr; margin-top: 0.75rem; transition: grid-template-rows 0.6s var(--ease); }
.zip.is-open .zip-tree { grid-template-rows: 1fr; }
.zip-tree > div { min-height: 0; overflow: hidden; border-radius: var(--radius); background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.zip-tree ul { padding: 1rem 1.25rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.8125rem; line-height: 2; color: var(--muted); }
.zip-tree li { opacity: 0; transform: translateX(-6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); white-space: pre; }
.zip-tree li::before { content: "└ "; opacity: 0.4; }
.zip.is-open .zip-tree li { opacity: 1; transform: none; transition-delay: calc(0.15s + var(--i) * 45ms); }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: clamp(5rem, 11vw, 9rem); }
.case { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) {
  .case { grid-template-columns: 1.45fr 1fr; gap: 4.5rem; }
  .case:nth-child(even) .case-media { order: 2; }
}
.case-media { position: relative; isolation: isolate; }
.case-media > .glow { inset: 5% 10% -10%; z-index: -1; opacity: 0.5; transition: opacity 0.8s var(--ease); }
.case-media img, .case-media video { width: 100%; border-radius: 14px; box-shadow: var(--shadow); transition: transform 1s var(--ease); }
@media (hover: hover) {
  .case:hover .case-media img, .case:hover .case-media video { transform: translateY(-6px); }
  .case:hover .case-media > .glow { opacity: 0.85; }
}
.case-num { font-size: 0.6875rem; letter-spacing: 0.22em; color: var(--muted); }
.case-name {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
}
.case-result { color: var(--muted); max-width: 30em; margin-bottom: 1.75rem; }
.placeholder-badge {
  display: inline-block;
  margin: 0 0 0 0.75rem;
  padding: 2px 8px;
  border: 1px dashed var(--accent);
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}

/* ---------- Reviews ---------- */
.quotes { position: relative; max-width: 980px; }
.quote-stage { display: grid; }
.quote-panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.3s var(--ease-in-out), transform 0.3s var(--ease-in-out), visibility 0s 0.3s;
}
.quote-panel.is-leaving { transform: translate3d(0, -18px, 0); }
.quote-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  /* the outgoing quote fully leaves before this one arrives */
  transition: opacity 0.6s var(--ease) 0.32s, transform 0.8s var(--ease) 0.32s, visibility 0s;
}
.quote-panel blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.quote-panel blockquote::before { content: "\201C"; display: block; height: 0.5em; color: var(--accent); font-size: 1.6em; line-height: 1; }
.quote-panel figcaption { display: flex; align-items: center; gap: 0.875rem; margin-top: 2rem; }
.quote-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.quote-tabs::-webkit-scrollbar { display: none; }
.quote-tabs button {
  flex: none;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.quote-tabs button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.quote-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); box-shadow: none; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--veil); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.75rem; font-weight: 500; }
.review-name { display: block; font-size: 0.9375rem; font-weight: 500; }
.review-biz { display: block; font-size: 0.8125rem; color: var(--muted); }

/* ---------- Process: sticky stage with the iPhone ---------- */
.stage { position: relative; }
.stage-sticky { position: relative; padding-block: var(--section-y); overflow: hidden; isolation: isolate; }
.stage-sticky > .glow { width: 760px; height: 760px; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; opacity: 0.6; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
.rail-wrap, .stage-copy { min-width: 0; }
.stage-copy .label { margin-bottom: 1.5rem; }
.stage-counter, .stage-titles, .stage-progress { display: none; }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.phone-caption { font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Phones: swipe through the steps (no pinning) */
.step-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 340px);
  gap: 0.75rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.step-rail::-webkit-scrollbar { display: none; }
.step-card {
  scroll-snap-align: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--veil);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.5s var(--ease);
}
.step-card.is-active { box-shadow: inset 0 0 0 1px var(--line-strong); }
.step-card .label span { color: var(--accent); }
.step-card .h3 { margin-top: 0.9rem; }
.step-card p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--muted); }
.rail-dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: 0.75rem; }
.rail-dots button { width: 32px; height: 32px; display: grid; place-items: center; }
.rail-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--line-strong); transition: width 0.4s var(--ease), background-color 0.4s var(--ease); }
.rail-dots button[aria-current="true"]::before { width: 20px; background: var(--accent); }

/* Larger screens: one pinned frame whose contents change as you scroll */
@media (min-width: 960px) {
  .stage.is-pinned { height: calc(var(--steps) * 80vh + 100vh); }
  .stage.is-pinned .stage-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    padding-block: calc(var(--header-h) + 1rem) 2rem;
    display: flex;
    align-items: center;
  }
  .stage.is-pinned .stage-sticky > .glow { left: auto; right: -160px; transform: translateY(-50%); }
  .stage.is-pinned .stage-grid { grid-template-columns: 1fr auto; align-items: center; gap: 5rem; width: 100%; }
  .stage.is-pinned .rail-wrap { display: none; }
  .stage.is-pinned .stage-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stage.is-pinned .stage-counter {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .stage-counter b { color: var(--ink); font-weight: 500; }
  .stage.is-pinned .stage-titles { display: grid; margin-top: 1.75rem; }
  .stage-title {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.3s var(--ease-in-out), transform 0.3s var(--ease-in-out);
    pointer-events: none;
  }
  .stage-title.is-leaving { transform: translate3d(0, -28px, 0); }
  .stage-title.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    /* waits for the outgoing headline to fully leave: never overlapping */
    transition: opacity 0.6s var(--ease) 0.32s, transform 0.8s var(--ease) 0.32s;
  }
  .stage-title .h2 { font-size: clamp(2.75rem, 1.4rem + 3vw, 4.75rem); }
  .stage-title p { margin-top: 1.5rem; max-width: 24em; font-size: 1.125rem; color: var(--muted); }
  .stage.is-pinned .stage-progress { display: flex; gap: 0.5rem; margin-top: 3rem; max-width: 280px; }
  .stage-progress i { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .stage-progress i::before { content: ""; display: block; height: 100%; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform 0.2s linear; }
}

/* ---------- iPhone, built in code ---------- */
.iphone {
  --w: min(262px, 70vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 71.6 / 147.6;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(150deg, #55555a 0%, #1d1d20 18%, #121214 55%, #3c3c40 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.011) #0b0b0c,
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 60px 90px -50px rgba(0, 0, 0, 0.75),
    0 30px 90px -30px var(--glow);
  flex: none;
}
@media (min-width: 960px) {
  .iphone { --w: min(310px, calc((100svh - var(--header-h) - 7rem) * 0.485)); }
}
.iphone::before, .iphone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2a2d, #4a4a4e);
}
.iphone::before { left: -2px; top: 20%; height: 6%; box-shadow: 0 calc(var(--w) * 0.13) 0 #38383b, 0 calc(var(--w) * 0.26) 0 #38383b; }
.iphone::after { right: -2px; top: 27%; height: 11%; }
.screen {
  container-type: inline-size;
  position: relative;
  height: 100%;
  border-radius: calc(var(--w) * 0.148);
  overflow: hidden;
  background: linear-gradient(180deg, #141416, #0c0c0d);
  color: #f2f2f2;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.island {
  position: absolute;
  top: 3.2cqw;
  left: 50%;
  width: 31cqw;
  height: 9.2cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
  z-index: 3;
}
.island::after { content: ""; position: absolute; right: 8%; top: 50%; width: 3cqw; height: 3cqw; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3550, #050608 70%); }
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 15.5cqw;
  padding: 0 8cqw 0 10cqw;
  font-size: 4.3cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.status-icons { display: flex; align-items: center; gap: 1.6cqw; }
.status-icons svg { height: 3.4cqw; width: auto; }
.chat-head { display: flex; align-items: center; gap: 2.6cqw; padding: 1cqw 4.5cqw 3.4cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.chat-back { width: 4.4cqw; color: var(--accent); }
.chat-avatar { display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; background: linear-gradient(150deg, #ff8a5b, var(--accent)); color: #0a0a0b; font-size: 4cqw; font-weight: 600; }
.chat-name { display: block; font-size: 4.1cqw; font-weight: 600; line-height: 1.2; }
.chat-status { display: block; font-size: 3.1cqw; color: #8e8e93; line-height: 1.3; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 2cqw 3.4cqw 1cqw; overflow: hidden; min-height: 0; }
.msg { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); flex: none; }
.msg.is-in { grid-template-rows: 1fr; }
.msg > div { min-height: 0; overflow: hidden; display: flex; padding-top: 1.5cqw; }
.msg-me > div { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 2.3cqw 3.6cqw;
  border-radius: 4.8cqw;
  font-size: 3.8cqw;
  line-height: 1.35;
  opacity: 0;
  transform: translate3d(0, 3cqw, 0) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.msg-them .bubble { background: #26262a; border-bottom-left-radius: 1.4cqw; transform-origin: left bottom; }
.msg-me .bubble { background: var(--accent); color: #0a0a0b; border-bottom-right-radius: 1.4cqw; transform-origin: right bottom; }
.msg.is-in .bubble { opacity: 1; transform: none; }
.bubble-card { width: 74%; max-width: 74%; padding: 1.6cqw; }
.typing { display: inline-flex; gap: 1.2cqw; padding: 3.4cqw 4cqw; }
.typing i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #8e8e93; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: typing 1.1s infinite ease-in-out; }
  .typing i:nth-child(2) { animation-delay: 0.15s; }
  .typing i:nth-child(3) { animation-delay: 0.3s; }
}
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-0.8cqw); } }
.card-mock { container-type: inline-size; border-radius: 3.2cqw; overflow: hidden; }
.card-mock .mini { padding: 4cqw; }
.card-caption { padding: 1.8cqw 1.4cqw 0.4cqw; font-size: 3cqw; color: #a1a1a6; }
.card-build { padding: 2cqw 1.6cqw; }
.card-build-row { display: flex; justify-content: space-between; gap: 2cqw; font-size: 3.3cqw; }
.card-build-row span:last-child { color: #a1a1a6; }
.card-bar { height: 1.4cqw; margin-top: 2.2cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.card-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transform: scaleX(0.04); transform-origin: left; transition: transform 2.2s var(--ease-in-out); }
.card-bar.is-done i { transform: scaleX(1); }
.card-zip { display: flex; align-items: center; gap: 3cqw; padding: 1.6cqw; }
.card-zip .zip-icon { width: 10cqw; height: 12.5cqw; padding-bottom: 1.3cqw; font-size: 2cqw; border-radius: 1.5cqw 3.5cqw 1.5cqw 1.5cqw; box-shadow: none; }
.card-zip .zip-icon::before { top: 1cqw; width: 1.2cqw; height: 5.5cqw; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0 0.8cqw, transparent 0.8cqw 1.6cqw); }
.card-zip b { display: block; font-size: 3.3cqw; font-weight: 600; overflow-wrap: anywhere; }
.card-zip small { display: block; font-size: 2.9cqw; color: #a1a1a6; }
.chat-input { display: flex; align-items: center; gap: 2.4cqw; padding: 2.4cqw 3.4cqw 2.6cqw; }
.chat-input span { flex: 1; height: 8.6cqw; padding: 0 3.6cqw; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); font-size: 3.6cqw; line-height: 8.6cqw; color: #6e6e73; }
.chat-input i { width: 8.6cqw; height: 8.6cqw; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.chat-input i::before { content: ""; width: 2.4cqw; height: 2.4cqw; border: solid #0a0a0b; border-width: 0.6cqw 0.6cqw 0 0; transform: translateY(0.5cqw) rotate(-45deg); }
.home-bar { flex: none; width: 36cqw; height: 1.3cqw; margin: 0.6cqw auto 2.4cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.85); }

/* ---------- Before / after ---------- */
.ba-list { display: grid; gap: clamp(3rem, 6vw, 4rem); }
@media (min-width: 900px) { .ba-list.has-2 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.ba-list.has-1 { max-width: 980px; }
.ba { --pos: 50%; position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); user-select: none; -webkit-user-select: none; }
.ba img { width: 100%; pointer-events: none; }
.ba .ba-before { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 11, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1.5px; background: rgba(255, 255, 255, 0.9); transform: translateX(-50%); pointer-events: none; }
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.35s var(--ease);
}
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid #111; border-width: 0 0 1.5px 1.5px; }
.ba-handle span::before { left: 13px; transform: translateY(-50%) rotate(45deg); }
.ba-handle span::after { right: 13px; transform: translateY(-50%) rotate(-135deg); }
.ba:hover .ba-handle span { transform: translate(-50%, -50%) scale(1.08); }
.ba.is-focused .ba-handle span { box-shadow: 0 0 0 3px var(--accent), 0 10px 30px rgba(0, 0, 0, 0.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; }

/* ---------- Pricing ---------- */
.pricing { text-align: center; isolation: isolate; overflow: hidden; }
.pricing > .glow { width: 1000px; height: 760px; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: -1; opacity: 0.55; }
.pricing .label { margin-bottom: 2.5rem; }
.price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(5rem, 2.5rem + 12vw, 12rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.065em;
}
.price-cur { font-size: 0.3em; margin: 0.14em 0.12em 0 0; letter-spacing: 0; color: var(--accent); }
.price-plan { margin-top: 2.25rem; font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; letter-spacing: -0.02em; }
.price-note { margin-top: 0.5rem; color: var(--muted); }
.checklist { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 760px; margin: 2.75rem auto 0; }
.checklist li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: 99px;
  background: var(--veil);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.875rem;
}
.checklist .icon { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.2; }
.ownership { max-width: 32em; margin: 2.25rem auto 2.5rem; color: var(--muted); }

/* Optional monthly add-on: quieter than the main offer, no second button */
.care {
  display: grid;
  gap: 1.75rem;
  max-width: 820px;
  margin: clamp(4rem, 9vw, 6rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--veil);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
@media (min-width: 760px) { .care { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.care-name {
  margin-top: 0.9rem;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.care-price {
  display: flex;
  align-items: baseline;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}
.care-cur { font-size: 0.45em; margin-right: 0.08em; color: var(--accent); letter-spacing: 0; align-self: flex-start; margin-top: 0.15em; }
.care-period { margin-left: 0.25rem; font-family: var(--font-body); font-size: 0.875rem; letter-spacing: 0; color: var(--muted); }
.care-summary { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }
.care-list { display: grid; gap: 0.75rem; }
.care-list li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.9375rem; }
.care-list .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); stroke-width: 2.2; }

/* ---------- FAQ ---------- */
.split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .split > .section-head { position: sticky; top: calc(var(--header-h) + 2.5rem); margin-bottom: 0; }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none;
  width: 32px; height: 32px;
  padding: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform 0.5s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.faq-a p { padding-bottom: 1.75rem; max-width: 36em; color: var(--muted); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* ---------- Contact ---------- */
.contact { isolation: isolate; overflow: hidden; }
.contact > .glow { width: 800px; height: 800px; left: -300px; bottom: -400px; z-index: -1; opacity: 0.5; }
.contact-grid { display: grid; gap: clamp(3rem, 6vw, 4rem); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact .section-head { margin-bottom: 0; }
.contact-alt { margin-top: 2rem; font-size: 0.9375rem; color: var(--muted); }
.contact-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); transition: text-decoration-color 0.3s; }
.contact-alt a:hover { text-decoration-color: currentColor; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg); background: var(--raised); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.form-grid { display: grid; gap: 1.25rem 1rem; margin-bottom: 1.75rem; }
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
.field label { display: flex; justify-content: space-between; margin-bottom: 0.55rem; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.optional { letter-spacing: 0.1em; opacity: 0.8; }
.field input, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--veil);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1rem; /* 16px stops iOS zoom */
  line-height: 1.4;
  transition: box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--glow-soft); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--error); }
.field-error { font-size: 0.8125rem; color: var(--error); }
.field-error:not(:empty) { margin-top: 0.4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn.is-loading .icon { animation: nudge 0.9s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.form-success { padding: 2.5rem 0; text-align: center; outline: none; }
.success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 40px var(--glow); }
.success-icon .icon { width: 26px; height: 26px; stroke-width: 2.2; }
.form-success p { margin-top: 0.5rem; color: var(--muted); }

/* ---------- Footer (slim) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.75rem 0 calc(1.75rem + env(safe-area-inset-bottom)); font-size: 0.8125rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Motion: arrivals and reveals ---------- */
.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

.js-motion .hero .line > span { transform: translate3d(0, 105%, 0); }
.js-motion .hero .fade-up { opacity: 0; transform: translate3d(0, 16px, 0); }
.js-motion .hero .hero-visual { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.97); }
.js-motion .hero .glow { opacity: 0; }
.js-motion.is-loaded .hero .line > span { transform: none; transition: transform 1.3s var(--ease) calc(0.1s + var(--d, 0) * 0.12s); }
.js-motion.is-loaded .hero .fade-up { opacity: 1; transform: none; transition: opacity 1s var(--ease) calc(0.45s + var(--d, 0) * 0.08s), transform 1s var(--ease) calc(0.45s + var(--d, 0) * 0.08s); }
.js-motion.is-loaded .hero .hero-visual { opacity: 1; transform: none; transition: opacity 1.4s var(--ease) 0.35s, transform 1.6s var(--ease) 0.35s; }
.js-motion.is-loaded .hero .glow-a { opacity: 0.9; transition: opacity 2.2s var(--ease); }
.js-motion.is-loaded .hero .glow-b { opacity: 1; transition: opacity 2.2s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
