/* ==========================================================================
   Zaytana — zaytana.com
   Built on the "claude" design system (designmd), retinted to the Zaytana
   palette: deep olive green, warm bone white, one terracotta accent.

   Surface trinity (mirrors the system's cream / coral / dark-navy trinity):
     bone canvas  →  terracotta voltage  →  deep-olive product surfaces
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — terracotta replaces the system's coral, darkened to hold AA on
     white text and on the bone canvas. */
  --primary: #b0522f;
  --primary-active: #8f3f22;
  --primary-ink: #8f3f22;          /* link colour on cream surfaces */
  --primary-soft: #d08a68;         /* decorative only, on dark surfaces */

  /* Text — warm olive-black rather than the system's warm neutral black */
  --ink: #17190f;
  --body-strong: #262a1c;
  --body: #3d4032;
  --muted: #5f6252;
  --muted-soft: #6f7360;

  /* Cream / bone surfaces */
  --canvas: #faf8f1;
  --surface-soft: #f4f0e4;
  --surface-card: #ece6d6;
  --surface-cream-strong: #e4dcc7;
  --hairline: #e0d9c6;
  --hairline-soft: #ebe5d7;

  /* Deep olive product surfaces (the system's dark navy, retinted) */
  --surface-dark: #1b2416;
  --surface-dark-soft: #212b1b;
  --surface-dark-elevated: #2a3522;
  --hairline-dark: #38452e;

  --on-primary: #ffffff;
  --on-dark: #f7f4e9;
  --on-dark-soft: #9ea592;

  /* Accents (system accent-teal → sage, accent-amber → olive-oil gold) */
  --accent-sage: #7fa47f;
  --accent-sage-bright: #a8c8a3;   /* sage text on dark, for AA */
  --accent-gold: #d7a63f;
  --error: #b23a2e;

  /* Type */
  --font-display: "Cormorant Garamond", "Tiempos Headline", Garamond, "Times New Roman", serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing — 4px base, section rhythm 96px */
  --sp-xxs: 4px;
  --sp-xs: 8px;
  --sp-sm: 12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-section: 96px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  --container: 1200px;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(2.125rem, 1.4rem + 2.9vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -0.014em;
}

h4 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
}

p { margin: 0 0 var(--sp-md); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-active); }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Keep in-page anchors clear of the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-lg)); }

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

.band--dark :focus-visible,
.callout :focus-visible { outline-color: var(--accent-gold); }

.skip-link {
  position: absolute;
  left: var(--sp-md);
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top 140ms ease;
}
.skip-link:focus { top: var(--sp-md); color: var(--on-dark); }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.band { padding-block: var(--sp-section); }
.band--tight { padding-block: 64px; }
.band--soft { background: var(--surface-soft); }
.band--cream { background: var(--surface-cream-strong); }

.band--dark {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
}
.band--dark h2,
.band--dark h3,
.band--dark h4,
.band--dark .lede { color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-xxl);
  align-items: center;
}
.split__text { grid-column: span 6; }
.split__text > h2 { margin-bottom: var(--sp-lg); }
.split__text > h3 { margin-bottom: var(--sp-md); }
.split__art { grid-column: span 6; min-width: 0; }
.split--wide-art .split__text { grid-column: span 5; }
.split--wide-art .split__art { grid-column: span 7; }
.split--top { align-items: start; }

/* Section headers */
.section-head { max-width: 46rem; margin-bottom: var(--sp-xxl); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: var(--sp-md); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  margin: 0 0 var(--sp-md);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-head--center .eyebrow { justify-content: center; }
.band--dark .eyebrow { color: var(--on-dark-soft); }
.eyebrow .mark { width: 12px; height: 12px; flex: none; }

.lede {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--body-strong);
}
.band--dark .lede { color: var(--on-dark); }

.fine {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-soft);
}
.band--dark .fine { color: var(--on-dark-soft); }

/* --------------------------------------------------------------------------
   4. Brand mark + buttons + badges
   -------------------------------------------------------------------------- */

.mark { width: 18px; height: 18px; color: currentColor; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .mark { width: 20px; height: 20px; color: var(--primary); }
.wordmark:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover,
.btn--primary:active { background: var(--primary-active); color: var(--on-primary); }

.btn--secondary {
  background: var(--canvas);
  border-color: var(--hairline);
  color: var(--ink);
}
.btn--secondary:hover,
.btn--secondary:active { border-color: var(--muted-soft); color: var(--ink); }

.btn--on-dark {
  background: var(--surface-dark-elevated);
  border-color: var(--hairline-dark);
  color: var(--on-dark);
}
.btn--on-dark:hover { background: var(--hairline-dark); color: var(--on-dark); }

.btn--on-primary {
  background: var(--canvas);
  color: var(--primary-active);
}
.btn--on-primary:hover { background: #fff; color: var(--primary-active); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--primary-ink);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform 140ms ease; }
.text-link:hover .arrow { transform: translateX(3px); }
.band--dark .text-link { color: var(--primary-soft); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-card);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.badge--outline {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.badge--accent {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  min-height: var(--header-h);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-left: var(--sp-md);
}
.nav__menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}
.nav__menu a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-left: auto;
}
.nav__actions .text-link { color: var(--ink); font-size: 0.875rem; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  color: var(--ink);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: 80px var(--sp-section); }
.hero h1 { margin-bottom: var(--sp-lg); }
.hero .lede { max-width: 34rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-lg);
  margin-top: var(--sp-xxl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .mark { width: 11px; height: 11px; color: var(--primary); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */

.card {
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}
.card--feature { background: var(--surface-card); color: var(--body); }
.card--feature h4 { margin-bottom: var(--sp-xs); }
.card--feature p { color: var(--muted); font-size: 0.9375rem; margin: 0; }

.card--outline {
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.card--outline p { color: var(--muted); font-size: 0.9375rem; margin: var(--sp-xs) 0 0; }

.card__icon {
  width: 40px; height: 40px;
  margin-bottom: var(--sp-lg);
  color: var(--primary);
}

.grid {
  display: grid;
  gap: var(--sp-lg);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.span-all { grid-column: 1 / -1; }

/* Wide feature card (7th feature) */
.card--wide {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-xxl);
  align-items: center;
}
.card--wide .card__icon { margin-bottom: var(--sp-md); }

/* --------------------------------------------------------------------------
   8. Product mockups — shared chrome
   -------------------------------------------------------------------------- */

.mock {
  background: var(--surface-dark);
  border-radius: var(--r-xl);
  color: var(--on-dark-soft);
  margin: 0;
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 14px var(--sp-lg);
  background: var(--surface-dark-elevated);
  border-bottom: 1px solid var(--hairline-dark);
}
.mock__url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--on-dark-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(127, 164, 127, 0.16);
  color: var(--accent-sage-bright);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.mock__chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-sage); }

.mock__body { padding: var(--sp-lg); }

.mock__eyebrow {
  margin: 0 0 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.mock__caption {
  padding: 12px var(--sp-lg);
  background: var(--surface-dark-elevated);
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.75rem;
  color: var(--on-dark-soft);
}
.mock__caption b { color: var(--on-dark); font-weight: 500; }

/* --- Bottle passport ------------------------------------------------------ */

.passport__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid var(--hairline-dark);
}
.passport__head h3 {
  font-size: 1.625rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}
.passport__id {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  text-align: right;
}

.passport__main {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: var(--sp-lg);
  padding: var(--sp-lg) 0;
}

.passport__facts { display: grid; gap: 13px; }
.passport__facts > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: var(--sp-sm);
  align-items: baseline;
}
.passport__facts dt {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.passport__facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--on-dark);
}
.passport__facts dd em {
  font-style: normal;
  color: var(--accent-gold);
}

.qr {
  width: 108px;
  height: 108px;
  padding: 8px;
  border-radius: var(--r-md);
  background: var(--on-dark);
  color: var(--surface-dark);
}
.qr svg { width: 100%; height: 100%; fill: currentColor; }
.qr-label {
  margin-top: 10px;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-dark-soft);
}

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline-dark);
}
.chain li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-dark-elevated);
  font-size: 0.6875rem;
  color: var(--on-dark);
}
.chain li svg { width: 11px; height: 11px; color: var(--accent-sage); flex: none; }

/* --- Phone / consumer story page ------------------------------------------ */

/* The phone is a light surface that can sit inside a dark band, so it resets
   every inherited colour rather than relying on the band's defaults. */
.phone {
  width: 100%;
  max-width: 290px;
  margin: 0;
  border: 8px solid var(--surface-dark-elevated);
  border-radius: 30px;
  background: var(--canvas);
  color: var(--body);
  overflow: hidden;
}
.phone .eyebrow { color: var(--muted); }
.phone__notch {
  height: 22px;
  background: var(--surface-dark-elevated);
  position: relative;
}
.phone__notch::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  transform: translateX(-50%);
  width: 54px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--hairline-dark);
}
.phone__scene { display: block; width: 100%; height: auto; }
.phone__body { padding: var(--sp-md); }
.phone__body h4 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 4px;
  color: var(--ink);
}
.phone__place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}
.phone__place svg { width: 12px; height: 12px; color: var(--primary); flex: none; }

.phone__rows { display: grid; gap: 0; margin-bottom: var(--sp-md); }
.phone__rows li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-sm);
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--muted);
}
.phone__rows li b {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
}
.phone__verified {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-card);
  font-size: 0.75rem;
  color: var(--ink);
}
.phone__verified .mark { width: 13px; height: 13px; color: var(--primary); flex: none; }

/* --- Buyer console -------------------------------------------------------- */

.console__search {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface-dark-soft);
  border: 1px solid var(--hairline-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--on-dark);
}
.console__search svg { width: 14px; height: 14px; color: var(--on-dark-soft); flex: none; }
.console__search .caret {
  display: inline-block;
  width: 1px; height: 13px;
  margin-left: 1px;
  background: var(--accent-gold);
}

.console__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--sp-sm) 0 var(--sp-lg);
}
.console__filters li {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-dark);
  font-size: 0.6875rem;
  color: var(--on-dark-soft);
}
.console__filters li.is-on {
  background: var(--surface-dark-elevated);
  border-color: transparent;
  color: var(--accent-gold);
}

.listing { display: grid; gap: var(--sp-xs); }
.listing > li {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: var(--sp-md);
  align-items: center;
  padding: 13px var(--sp-md);
  border-radius: var(--r-md);
  background: var(--surface-dark-soft);
  border: 1px solid var(--hairline-dark);
}
.listing .swatch { width: 4px; height: 34px; border-radius: 2px; background: var(--accent-gold); }
.listing .swatch--b { background: var(--accent-sage); }
.listing .swatch--c { background: var(--primary-soft); }
.listing b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--on-dark);
}
.listing small { display: block; font-size: 0.6875rem; color: var(--on-dark-soft); }
.listing .listing__num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Problem band — margin diagram
   -------------------------------------------------------------------------- */

.margin-bar {
  display: flex;
  height: 46px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.margin-bar span {
  display: block;
  height: 100%;
}
.margin-bar span + span { border-left: 1px solid var(--canvas); }
.margin-bar .seg-grower { background: var(--primary); flex: 0 0 17%; }
.margin-bar .seg-press  { background: var(--primary-soft); flex: 0 0 11%; }
.margin-bar .seg-broker { background: #9aa886; flex: 0 0 22%; }
.margin-bar .seg-export { background: #b9c3a8; flex: 0 0 18%; }
.margin-bar .seg-import { background: #d5dbc7; flex: 0 0 32%; }

.margin-key {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-lg);
  margin-top: var(--sp-md);
  font-size: 0.75rem;
  color: var(--muted);
}
.margin-key li { display: inline-flex; align-items: center; gap: 7px; }
.margin-key i {
  width: 10px; height: 10px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  flex: none;
}

.rule-list { display: grid; gap: 0; }
.rule-list li {
  padding: var(--sp-lg) 0;
  border-top: 1px solid var(--hairline);
}
.rule-list li:last-child { border-bottom: 1px solid var(--hairline); }
.rule-list h4 { margin-bottom: 6px; }
.rule-list p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   10. How it works — timeline
   -------------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
  counter-reset: step;
}
.timeline > li {
  position: relative;
  padding-top: var(--sp-lg);
  border-top: 2px solid var(--hairline);
  counter-increment: step;
}
.timeline > li::before {
  content: "";
  position: absolute;
  top: -7px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline > li:nth-child(n + 2)::before { background: var(--surface-dark); }
.timeline__step {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.timeline__step::after { content: "0" counter(step); }
.timeline h4 { margin-bottom: var(--sp-xs); }
.timeline p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

.map-frame {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  overflow: hidden;
}
.map-frame > svg { width: 100%; height: auto; }
.map-frame figcaption {
  padding: 12px var(--sp-md);
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */

.tier {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.tier--featured {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--on-dark-soft);
}
.tier--featured .tier__name,
.tier--featured .tier__price { color: var(--on-dark); }
.tier--featured .tier__list li { color: var(--on-dark-soft); border-color: var(--hairline-dark); }
.tier--featured .tier__list svg { color: var(--accent-sage); }
.tier--featured .tier__note { color: var(--on-dark-soft); }

.tier__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.tier__name {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.tier__price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-xxs);
}
.tier__price small {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.tier--featured .tier__price small { color: var(--on-dark-soft); }
.tier__note { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--sp-lg); }

.tier__list {
  display: grid;
  gap: 0;
  margin-bottom: var(--sp-xl);
  flex: 1;
}
.tier__list li {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 0.875rem;
  color: var(--body);
}
.tier__list li:last-child { border-bottom: 0; }
.tier__list svg { width: 14px; height: 14px; margin-top: 4px; flex: none; color: var(--primary); }

.tier .btn { width: 100%; }

/* --------------------------------------------------------------------------
   12. Credibility scoreboard
   -------------------------------------------------------------------------- */

.score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  overflow: hidden;
}
.score > div {
  padding: var(--sp-xl);
  border-right: 1px solid var(--hairline);
}
.score > div:last-child { border-right: 0; }
.score dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
}
.score dd {
  margin: 0 0 var(--sp-xs);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.score p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. CTA callout
   -------------------------------------------------------------------------- */

.callout {
  position: relative;
  border-radius: var(--r-lg);
  padding: 64px;
  background: var(--primary);
  color: var(--on-primary);
  overflow: hidden;
}
.callout__inner { position: relative; max-width: 40rem; }
.callout h2 {
  color: var(--on-primary);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  margin-bottom: var(--sp-md);
}
.callout p { color: rgba(255, 255, 255, 0.94); font-size: 1.0625rem; }
.callout .eyebrow { color: #fff; }
.callout__grove {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 340px;
  opacity: 0.22;
  color: #fff;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding-block: 64px var(--sp-xl);
}
.site-footer .wordmark { color: var(--on-dark); }
.site-footer .wordmark .mark { color: var(--primary-soft); }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xxl);
  padding-bottom: var(--sp-xxl);
}
.footer__brand p {
  margin-top: var(--sp-md);
  max-width: 22rem;
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}
.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: var(--sp-md);
}
.footer__col li { margin-bottom: 10px; }
.footer__col a,
.footer__brand a {
  font-size: 0.875rem;
  color: var(--on-dark-soft);
  text-decoration: none;
}
.footer__col a:hover,
.footer__brand a:hover { color: var(--on-dark); text-decoration: underline; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
  justify-content: space-between;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--hairline-dark);
  font-size: 0.8125rem;
  color: var(--on-dark-soft);
}

/* --------------------------------------------------------------------------
   15. Contact page
   -------------------------------------------------------------------------- */

.page-head { padding-block: 64px var(--sp-xxl); }
.page-head h1 { max-width: 18ch; margin-bottom: var(--sp-lg); }
.page-head .lede { max-width: 42rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--sp-xxl);
  align-items: start;
}

.form-card {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
}

.field { margin-bottom: var(--sp-lg); }
.field:last-of-type { margin-bottom: var(--sp-xl); }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}
.field .opt { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input,
.field select { height: 44px; }
.field textarea { min-height: 140px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235f6252' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(176, 82, 47, 0.16);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field .hint { margin: 7px 0 0; font-size: 0.8125rem; color: var(--muted); }

.field .error {
  display: none;
  margin: 7px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--error);
}
.field .error.is-shown { display: block; }

.form-status {
  display: none;
  gap: var(--sp-sm);
  align-items: flex-start;
  margin-bottom: var(--sp-lg);
  padding: var(--sp-md);
  border-radius: var(--r-md);
  background: var(--surface-dark);
  color: var(--on-dark);
  font-size: 0.9375rem;
}
.form-status.is-shown { display: flex; }
.form-status svg { width: 18px; height: 18px; flex: none; color: var(--accent-sage); margin-top: 2px; }
.form-status p { margin: 0; }
.form-status .fine { color: var(--on-dark-soft); margin-top: 4px; }

.aside-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  background: var(--canvas);
  margin-bottom: var(--sp-lg);
}
.aside-card:last-child { margin-bottom: 0; }
.aside-card h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-md);
}
.aside-card--dark {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--on-dark-soft);
}
.aside-card--dark h2 { color: var(--on-dark); }
.aside-card--dark .fine { color: var(--on-dark-soft); }

.contact-list { display: grid; gap: var(--sp-md); }
.contact-list > div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 3px var(--sp-sm);
  align-items: start;
}
.contact-list svg {
  width: 18px; height: 18px;
  margin-top: 3px;
  color: var(--primary);
  grid-row: span 2;
}
.contact-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 2;
  margin-bottom: 2px;
}
.contact-list dd { grid-column: 2; margin: 0; font-size: 0.9375rem; color: var(--ink); }

.steps { counter-reset: nxt; display: grid; gap: var(--sp-md); }
.steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--sp-sm);
  counter-increment: nxt;
  font-size: 0.9375rem;
}
.steps li::before {
  content: counter(nxt);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--surface-dark);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root { --sp-section: 80px; }

  /* Collapse to a single track — keeping 12 columns would keep 11 gaps too,
     which alone exceeds a phone viewport. */
  .split { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .split__text,
  .split__art,
  .split--wide-art .split__text,
  .split--wide-art .split__art { grid-column: auto; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
  .callout { padding: var(--sp-xxl); }
}

@media (max-width: 860px) {
  .nav__menu,
  .nav__actions { display: none; }
  .nav__toggle { display: inline-flex; }

  .site-header.is-open .nav__menu,
  .site-header.is-open .nav__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-md);
    width: 100%;
    margin: 0;
    order: 3;
  }
  .site-header.is-open .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-bottom: var(--sp-lg);
  }
  .site-header.is-open .nav__menu {
    padding-top: var(--sp-md);
    border-top: 1px solid var(--hairline);
  }
  .site-header.is-open .nav__menu a { padding: 6px 0; font-size: 1rem; }
  .site-header.is-open .nav__actions { order: 4; }
  .site-header.is-open .nav__actions .btn { width: 100%; }

  .passport__main { grid-template-columns: 1fr; }
  .qr { margin-inline: auto; }
  .card--wide { grid-template-columns: 1fr; gap: var(--sp-lg); }
}

@media (max-width: 720px) {
  :root { --sp-section: 64px; }

  .container { padding-inline: var(--sp-md); }

  .grid--3,
  .timeline { grid-template-columns: 1fr; }

  .card { padding: var(--sp-lg); }
  .form-card,
  .aside-card,
  .tier { padding: var(--sp-lg); }

  .score { grid-template-columns: 1fr; }
  .score > div { border-right: 0; border-bottom: 1px solid var(--hairline); padding: var(--sp-lg); }
  .score > div:last-child { border-bottom: 0; }
  .score dd { font-size: 2.5rem; }

  .callout { padding: var(--sp-xl) var(--sp-lg); }
  .callout__grove { width: 220px; right: -60px; opacity: 0.18; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-xl); }

  .hero__meta { gap: var(--sp-xs) var(--sp-md); }
  .btn-row .btn { flex: 1 1 100%; }

  .phone { max-width: 100%; }
  .passport__head { flex-direction: column; gap: var(--sp-xs); }
  .passport__id { text-align: left; }
  .passport__facts > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
