/*
 * ZEN Z public website — design system.
 *
 * Premium white canvas, navy foundation, gold used sparingly as an accent
 * rather than a fill. Everything is hand-authored: no framework, no reset
 * library, no utility CSS. One stylesheet, no render-blocking JS.
 *
 * Motion is CSS-driven and reveal is IntersectionObserver-driven, so nothing
 * animates before first paint and everything collapses cleanly under
 * prefers-reduced-motion.
 */

/* ============ tokens ============ */
:root {
  /* Navy foundation. --ink is the deepest, used for dark sections and text. */
  --ink: #0a1730;
  --ink-800: #12233f;
  --ink-700: #1c3556;
  --ink-600: #2c4666;
  --slate: #5a6b83;
  --slate-400: #8493a8;

  /* Gold accent — reserved for emphasis, never large fills. */
  --gold: #b8873b;
  --gold-bright: #d8ab55;
  --gold-soft: #f6efe1;

  --paper: #ffffff;
  --paper-2: #fbfbfc;
  --paper-3: #f4f6f9;
  --line: #e6eaf0;
  --line-strong: #d3dae4;

  --ok: #1d7a4f;
  --warn: #9a6a12;
  --err: #b3261e;

  --shell: min(1180px, 100% - 2.5rem);
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(10, 23, 48, .05), 0 1px 3px rgba(10, 23, 48, .04);
  --shadow: 0 8px 24px -12px rgba(10, 23, 48, .16), 0 2px 6px rgba(10, 23, 48, .05);
  --shadow-lg: 0 28px 64px -32px rgba(10, 23, 48, .30), 0 6px 16px rgba(10, 23, 48, .06);

  --ease: cubic-bezier(.22, .68, 0, 1);

  /* Fluid type scale. clamp() keeps headings proportionate from 360px up
     without a single media query per step. */
  --t-display: clamp(2.25rem, 1.35rem + 3.9vw, 4.25rem);
  --t-h1: clamp(1.95rem, 1.3rem + 2.6vw, 3.1rem);
  --t-h2: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  --t-h3: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  --t-lead: clamp(1.02rem, .98rem + .3vw, 1.18rem);
}

/* ============ base ============ */
@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.022em;
  font-weight: 640;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* Visible focus for keyboard users only — never suppressed. */
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.15rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ layout ============ */
.shell { width: var(--shell); margin-inline: auto; }
.sec { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.sec--tight { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }
.sec--paper2 { background: var(--paper-2); }
.sec--paper3 { background: var(--paper-3); }

.sec--ink {
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(216, 171, 85, .16), transparent 60%),
    linear-gradient(168deg, var(--ink) 0%, var(--ink-800) 62%, #0d1d36 100%);
  color: #fff;
}
.sec--ink h1, .sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--ink .lead, .sec--ink p { color: #c9d4e3; }

.grid { display: grid; gap: clamp(1.1rem, .8rem + 1vw, 1.9rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(1.75rem, 1rem + 4vw, 4rem); align-items: center; grid-template-columns: 1fr 1fr; }
.split--wide { grid-template-columns: 1.08fr .92fr; }

@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: .5rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* ============ type helpers ============ */
.display { font-size: var(--t-display); font-weight: 680; letter-spacing: -.03em; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); font-weight: 620; }
.lead { font-size: var(--t-lead); color: var(--slate); line-height: 1.72; }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.muted { color: var(--slate); }
.muted-2 { color: var(--slate-400); }
.gold-text { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 660; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1.5px; background: currentColor; opacity: .55; }
.sec--ink .eyebrow { color: var(--gold-bright); }

/* Gold rule under a section heading — the recurring accent motif. */
.rule { width: 3rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.rule--center { margin-inline: auto; }

/* ============ buttons ============ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font-size: .945rem; font-weight: 590; letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .2s, color .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn__arrow { transition: transform .28s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold-bright), var(--gold)); --btn-fg: #1c1204; font-weight: 640; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-ink { --btn-bg: rgba(255, 255, 255, .07); --btn-fg: #fff; border-color: rgba(255, 255, 255, .26); backdrop-filter: blur(6px); }
.btn--on-ink:hover { --btn-bg: rgba(255, 255, 255, .14); }
.btn--sm { min-height: 2.5rem; padding: 0 1.05rem; font-size: .87rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ============ header ============ */
.head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.head[data-stuck="true"] { border-bottom-color: var(--line); box-shadow: 0 1px 16px rgba(10, 23, 48, .05); }
.head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand__name { display: block; font-weight: 700; letter-spacing: -.03em; font-size: 1.06rem; line-height: 1.05; }
.brand__name i { font-style: normal; color: var(--gold); }
.brand__sub { display: block; font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--slate-400); }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  padding: .5rem .72rem; border-radius: 8px;
  font-size: .9rem; font-weight: 520; color: var(--ink-600);
  transition: color .18s, background-color .18s;
}
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 620; }

.head__cta { display: flex; align-items: center; gap: .55rem; }

.burger {
  display: none; width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }
.burger[aria-expanded="true"] span { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }
.burger[aria-expanded="true"] span::after { top: 0; opacity: 0; }

.drawer {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: .85rem 0 1.35rem;
}
.drawer[data-open="true"] { display: block; }
.drawer a { display: block; padding: .8rem .25rem; font-size: 1rem; font-weight: 540; border-bottom: 1px solid var(--line); }
.drawer .btn-row { margin-top: 1.1rem; }

@media (max-width: 1040px) {
  .nav, .head__cta .btn--ghost { display: none; }
  .burger { display: inline-flex; }
}

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 5vw, 4.5rem); align-items: center; grid-template-columns: 1.05fr .95fr; padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3.5rem, 2rem + 6vw, 6.5rem); }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .1);
}
.hero__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.5rem 1.15rem .9rem;
  background: linear-gradient(transparent, rgba(6, 14, 28, .82));
  color: #eaf0f8; font-size: .8rem;
}

/* Facts, not counters. Each states what the model is, not what has been sold. */
.facts { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 1rem + 1.5vw, 2.75rem); }
.fact b { display: block; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 660; letter-spacing: -.03em; }
.fact span { display: block; font-size: .8rem; color: var(--slate-400); }
.sec--ink .fact b { color: #fff; }

/* ============ cards ============ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + .7vw, 1.75rem);
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s;
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
  border-radius: 11px; background: var(--gold-soft); color: var(--gold);
  font-size: 1.25rem;
}
.card--ink { background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .12); }
.card--ink:hover { border-color: rgba(216, 171, 85, .4); }

.photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.photo img { width: 100%; object-fit: cover; }
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 16 / 10; }

/* ============ steps / timeline ============ */
.steps { counter-reset: step; display: grid; gap: 1.15rem; }
.step { position: relative; padding-left: 3.65rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.55rem; height: 2.55rem; border-radius: 50%;
  background: var(--paper-3); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 680; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sec--ink .step::before { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); color: var(--gold-bright); }

.timeline { display: grid; gap: 0; }
.tl {
  position: relative; padding: 0 0 1.9rem 2.1rem;
  border-left: 2px solid var(--line);
}
.tl:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl::before {
  content: ""; position: absolute; left: -7px; top: .38rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft);
}
.tl__when { font-size: .76rem; font-weight: 660; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ============ checklist ============ */
.checks { display: grid; gap: .7rem; padding: 0; margin: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .78rem; height: .44rem;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ============ FAQ (native disclosure — no JS) ============ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem;
  padding: 1.2rem .25rem; cursor: pointer; list-style: none;
  font-weight: 580; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-size: 1.35rem; font-weight: 400; line-height: 1;
  color: var(--gold); transition: transform .28s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 .25rem 1.35rem; color: var(--slate); max-width: 68ch; }

/* ============ forms ============ */
.form { display: grid; gap: .95rem; }
.field { display: grid; gap: .4rem; }
.field > label { font-size: .84rem; font-weight: 580; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3.5px rgba(184, 135, 59, .14);
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--err); }
.field__hint { font-size: .78rem; color: var(--slate-400); }

.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; color: var(--slate); }
.consent input { width: 1.05rem; height: 1.05rem; margin-top: .18rem; flex: none; accent-color: var(--gold); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 1rem + 1.4vw, 2.25rem);
  box-shadow: var(--shadow);
}

/* Injected by zenz-lead-form.js */
[data-zenz-status] { margin: 0; font-size: .875rem; min-height: 1.25rem; }

/* ============ notes / disclaimers ============ */
.note {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .9rem 1.05rem; border-radius: 11px;
  background: var(--paper-3); border: 1px solid var(--line);
  font-size: .84rem; color: var(--slate);
}
.note--warn { background: #fdf6e7; border-color: #f0dfb4; color: #6d5314; }
.note--ink { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .13); color: #c9d4e3; }
.note b { color: inherit; }

/* An explicit marker for anything not yet independently verified. */
.pending {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .12rem .5rem; border-radius: 999px;
  background: #fdf6e7; border: 1px solid #f0dfb4;
  font-size: .7rem; font-weight: 620; letter-spacing: .02em; color: #6d5314;
  vertical-align: middle;
}

/* ============ footer ============ */
.foot { background: var(--ink); color: #b8c6d8; padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem; }
.foot__grid { display: grid; gap: 2.25rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h4 { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 640; }
.foot a { display: block; padding: .32rem 0; font-size: .9rem; color: #b8c6d8; transition: color .18s; }
.foot a:hover { color: var(--gold-bright); }
.foot .brand__name { color: #fff; }
.foot__legal {
  margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .775rem; line-height: 1.7; color: #8497ad;
}
.powered { margin-top: 1.1rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #7f92a9; }
.powered b { display: block; margin-top: .2rem; font-size: .92rem; letter-spacing: -.01em; text-transform: none; color: #fff; }

/* ============ sticky mobile CTA ============ */
.dock {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: none; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .dock { display: flex; } body { padding-bottom: 4.75rem; } }
.dock .btn { flex: 1; min-height: 2.85rem; }

/* ============ reveal ============ */
/*
 * Control is inverted on purpose: CSS hides nothing by default, and JS adds
 * `.rv-armed` only to elements that are BELOW the fold when the page loads.
 *
 * The obvious approach — hide every .rv in CSS and let JS un-hide — has a nasty
 * failure mode. Bringing content back from opacity 0 needs a transition (or
 * animation) to actually tick, and a compositor that never ticks leaves the
 * hero headline permanently invisible. Verified in-browser during Phase F: the
 * class was applied to all 22 elements while computed opacity stayed at 0.
 *
 * With control inverted, above-the-fold content is never hidden under any
 * circumstance, and the worst case for below-fold content is the 2s failsafe in
 * zenz.js. A missing animation is cosmetic; invisible copy is a broken page.
 */
.rv-armed { opacity: 0; transform: translateY(18px); }
.rv-armed.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: var(--rv-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv-armed, .rv-armed.is-in { opacity: 1; transform: none; }
  .btn:hover, .card--lift:hover { transform: none; }
}

@media print {
  .head, .dock, .foot { display: none; }
  body { color: #000; }
}
