/* ============================================================
   Credora — "The Credential Office"
   Palette and type lifted from app/DesignSystem/CredoraDesignSystem.swift
   ============================================================ */

:root {
  color-scheme: light; /* light is the default; dark only via saved choice */
  /* Brand */
  --brand: #34467a;        /* credential indigo */
  --brand-deep: #1f2b49;   /* ink seal */
  --band-bg: #1f2b49;      /* value band + other dark panels (stays dark in dark theme) */
  --card-band-start: #34467a;
  --card-band-end: #1f2b49;
  --brand-soft: #e7eaf3;   /* indigo wash */
  --seal: #b07d2e;         /* embossed brass */
  --seal-soft: #f3e9d4;    /* brass wash */

  /* Paper & ink */
  --paper: #f5f2ea;        /* document ground */
  --surface: #ffffff;      /* card */
  --surface-alt: #faf7f0;  /* inset */
  --hairline: #e5dfd0;
  --ink: #1d2233;          /* primary text */
  --ink-2: #5c6173;        /* secondary text */

  /* Status */
  --active: #2e7d52;       /* forest */
  --expiring: #c2871b;     /* amber */

  /* Type — licensed stack synced via scripts/sync_brand_fonts.mjs */
  --serif: "Garamond Premier Pro", Georgia, "Times New Roman", serif;
  --ui: "Gotham", "Helvetica Neue", sans-serif;
  --mono: "Whitney", "SFMono-Regular", Menlo, monospace;
  /* Brass tuned for small text on paper (AA); --seal stays the graphic brass. */
  --seal-ink: #8a6220;

  /* Shape */
  --r-card: 16px;
  --r-control: 12px;
  --r-cred: 18px;

  --shadow-sm: 0 4px 12px rgba(29, 34, 51, .06);
  --shadow-md: 0 14px 34px rgba(29, 34, 51, .10);
  --shadow-lg: 0 26px 60px rgba(29, 34, 51, .16);

  --maxw: 1140px;
}

/* Dark "archival" theme — keeps the indigo credential + brass seal identity
   on a dark document ground. Light is the default; dark activates via a saved
   choice or the system preference (unless the visitor forced light). */
:root[data-theme="dark"] {
  --brand: #8aa0d8;        /* lifted indigo for contrast on dark */
  --brand-deep: #c3cdec;
  --band-bg: #1f2b49;      /* keep inverted panels dark so white type stays readable */
  --card-band-start: #34467a;
  --card-band-end: #1f2b49;
  --brand-soft: #232a3f;   /* indigo wash, inverted */
  --seal: #d8a44e;         /* brass reads brighter on dark */
  --seal-soft: #2c2718;
  --seal-ink: #d8a44e;

  --paper: #14161f;        /* dark document ground */
  --surface: #1b1e2b;      /* card */
  --surface-alt: #20243300;/* inset (slightly transparent) */
  --surface-alt: #202433;
  --hairline: #2d3142;
  --ink: #eef0f7;          /* primary text */
  --ink-2: #a8adc0;        /* secondary text */

  --active: #54b483;
  --expiring: #e0a93f;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, .55);

  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8aa0d8; --brand-deep: #c3cdec; --band-bg: #1f2b49; --brand-soft: #232a3f;
    --card-band-start: #34467a; --card-band-end: #1f2b49;
    --seal: #d8a44e; --seal-soft: #2c2718; --seal-ink: #d8a44e;
    --paper: #14161f; --surface: #1b1e2b; --surface-alt: #202433; --hairline: #2d3142;
    --ink: #eef0f7; --ink-2: #a8adc0;
    --active: #54b483; --expiring: #e0a93f;
    --shadow-sm: 0 4px 12px rgba(0,0,0,.35);
    --shadow-md: 0 14px 34px rgba(0,0,0,.45);
    --shadow-lg: 0 26px 60px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Marketing preset weights: hero h1 Bold (the one display-size exception),
   every other heading Medium. Regular everywhere else. */
h1 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; }
h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.16; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

/* Visible focus everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--seal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Labels: Medium, sentence case, 13px floor, brass ink tuned for AA on paper. */
.micro-label {
  display: block;
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 500;
  color: var(--seal-ink);
}
.micro-label--seal { color: var(--seal-ink); margin-bottom: 10px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }

.eyebrow {
  font-size: .84rem;
  font-weight: 500;
  color: var(--seal-ink);
  margin-bottom: 14px;
}

/* ---------- Buttons (>=44px hit target) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--ui);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn--lg { min-height: 54px; padding: 15px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #2c3c6b; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghost { background: var(--surface); color: var(--brand); border-color: rgba(52, 70, 122, .4); }
.btn--ghost:hover { background: var(--brand-soft); transform: translateY(-1px); }

.btn--seal { background: var(--seal); color: var(--brand-deep); box-shadow: var(--shadow-md); }
.btn--seal:hover { background: #c08c39; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark__seal { display: inline-flex; filter: drop-shadow(0 1px 1px rgba(31, 43, 73, .3)); }
.wordmark__text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav__links a:hover { color: var(--brand); border-color: var(--seal); }
.nav__cta { margin-left: 4px; }

/* Mobile nav: the header wraps into rows instead of hiding the links
   (the old `display: none` left the section anchors reachable only from
   the page-bottom footer). Row 1 keeps the wordmark and a 44px theme
   toggle; the section links return as a horizontally scrollable row of
   44px targets — usable one-handed, no JS, no menu copy added. The App
   Store CTA keeps its label on one line and drops to a full-width row
   only when row 1 cannot hold it. */
@media (max-width: 860px) {
  .nav__inner { flex-wrap: wrap; gap: 12px; row-gap: 10px; min-height: 0; padding-block: 10px; }
  .wordmark { min-height: 44px; flex-shrink: 0; }
  .theme-toggle { margin-left: auto; flex: 0 0 auto; }
  .nav__links {
    display: flex;
    order: 2;
    flex: 1 1 100%;
    gap: 2px;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 14px;
    border-bottom: 0;
    border-radius: 10px;
  }
  .nav__links a:hover { border-color: transparent; }
  .nav__cta { margin-left: 0; white-space: nowrap; }
}
@media (max-width: 480px) {
  .nav__cta { flex: 1 1 100%; font-size: .9rem; padding: 10px 14px; }
}
/* Below 400px the links row always overflows; fade the right edge so the
   clipping reads as "scrolls sideways", not as broken layout. */
@media (max-width: 400px) {
  .nav__links {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(52, 70, 122, .10), transparent 60%),
    radial-gradient(700px 400px at 8% 110%, rgba(176, 125, 46, .08), transparent 60%),
    var(--paper);
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero__title {
  /* Marketing preset: the one hero, 36-44px, the only Bold on the page. */
  font-size: clamp(2.2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 38ch;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero__note { font-size: .92rem; color: var(--ink-2); max-width: 44ch; }

/* ---------- Phone device frame ---------- */
.hero__device { position: relative; display: flex; justify-content: center; }
.hero__device-glow {
  position: absolute;
  inset: 6% 12% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(52, 70, 122, .22), transparent 75%);
  filter: blur(34px);
}
.phone {
  position: relative;
  width: min(330px, 86vw);
  background: #11162a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
/* Real simulator capture inside the bezel (store-assets refresh 2026-11-29). */
.phone--capture { padding: 10px; border-radius: 52px; }
.phone__capture {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
  background: var(--paper);
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 124px; height: 26px;
  background: #11162a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone__screen {
  position: relative;
  background: var(--paper);
  border-radius: 36px;
  padding: 40px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 560px;
}
.screen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 4px 4px;
}
.screen-head__title { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); }
.screen-head__count { font-size: .76rem; color: var(--ink-2); font-weight: 500; }

/* ============================================================
   SIGNATURE: credential wallet card
   ============================================================ */
.cred-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-cred);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cred-card__band {
  position: relative;
  padding: 16px 18px 18px;
  background: linear-gradient(160deg, var(--card-band-start) 0%, var(--card-band-end) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Faint guilloché security linework */
.guilloche {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 11px);
  pointer-events: none;
}
.cred-card__type,
.cred-card__name,
.cred-card__holder { position: relative; z-index: 1; }
.cred-card__type {
  font-size: .75rem;
  font-weight: 500;
  color: var(--seal-soft);
  margin-bottom: 7px;
}
.cred-card__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.32rem;
  color: #fff;
  line-height: 1.15;
  max-width: 80%;
}
.cred-card__holder {
  font-family: var(--serif);
  font-style: italic;
  font-size: .92rem;
  color: rgba(255, 255, 255, .8);
  margin-top: 4px;
}
.cred-card__body { padding: 14px 18px 16px; background: var(--surface-alt); }
.cred-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cred-card__num .mono { display: block; font-size: 1rem; font-weight: 500; color: var(--ink); margin-top: 4px; }
.cred-card__rule { border: 0; height: 1px; background: var(--hairline); margin: 13px 0; }
.cred-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cred-card__meta--four { grid-template-columns: 1fr 1fr; }
.cred-card__meta .meta-val { display: block; font-size: .92rem; color: var(--ink); margin-top: 3px; font-weight: 500; }

/* ---------- Brass seal (embossed concentric) ---------- */
.seal {
  position: absolute;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seal), #8c6321);
  box-shadow: 0 2px 4px rgba(31, 43, 73, .35), inset 0 0 0 1.5px rgba(243, 233, 212, .8);
}
.seal__ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(243, 233, 212, .85);
}
.seal__disc {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--seal-soft), var(--seal) 78%);
}
.seal__mark { position: relative; z-index: 1; width: 56%; }
.seal--lg { z-index: 2; top: 14px; right: 16px; width: 52px; height: 52px; }
.seal--sm { position: relative; top: auto; right: auto; width: 38px; height: 38px; flex: 0 0 auto; }
.seal--xl {
  position: relative; top: auto; right: auto;
  width: 76px; height: 76px;
  margin: 0 auto 22px;
}

/* ---------- compact stacked credential row ---------- */
.cred-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 11px 13px;
  box-shadow: var(--shadow-sm);
}
.cred-row__text { flex: 1; min-width: 0; }
.cred-row__name { font-family: var(--serif); font-weight: 500; font-size: .95rem; color: var(--ink); }
.cred-row__sub { font-size: .76rem; color: var(--ink-2); margin-top: 2px; }

/* ---------- reminder banner ---------- */
.reminder {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--seal-soft);
  border: 1px solid rgba(176, 125, 46, .35);
  border-radius: var(--r-card);
  padding: 12px 14px;
}
.reminder__seal {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--seal-soft), var(--seal) 75%);
  box-shadow: inset 0 0 0 1px rgba(140, 99, 33, .6);
}
.reminder p { font-size: .82rem; color: #6c4f17; line-height: 1.45; }
.reminder strong { color: var(--brand-deep); font-weight: 500; }

/* ---------- status chips (text + color + dot) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* Chip text uses darkened status inks so 12px labels pass AA on their tints;
   the dot and ring keep the brighter status hue. */
.chip--active { color: #1f6b45; background: rgba(46, 125, 82, .12); box-shadow: inset 0 0 0 1px rgba(46, 125, 82, .28); }
.chip--expiring { color: #8a6117; background: rgba(194, 135, 27, .14); box-shadow: inset 0 0 0 1px rgba(194, 135, 27, .3); }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__device { margin-top: 8px; }
  .hero__sub { max-width: none; }
}

/* ============================================================
   VALUE BAND
   ============================================================ */
.band {
  background: var(--band-bg);
  color: var(--paper);
  padding: clamp(48px, 7vw, 76px) 0;
}
.band__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: #fff;
  max-width: 30ch;
  margin-bottom: 38px;
}
.band__points {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 34px;
}
.band__points .micro-label { color: var(--seal-soft); margin-bottom: 9px; }
.band__points p { color: rgba(255, 255, 255, .82); font-size: 1rem; }
@media (max-width: 760px) { .band__points { grid-template-columns: 1fr; gap: 26px; } }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head { max-width: 56ch; margin-bottom: clamp(34px, 5vw, 54px); }
/* h2 stays inside the Marketing preset's 22-26px section-heading band. */
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.625rem); letter-spacing: -.01em; }
.section-sub { color: var(--ink-2); margin-top: 14px; font-size: 1.08rem; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: clamp(56px, 9vw, 104px) 0; }

.feature--hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.feature__text h3 { font-size: clamp(1.2rem, 2.2vw, 1.375rem); margin-bottom: 16px; }
.feature__lead { color: var(--ink-2); font-size: 1.08rem; margin-bottom: 22px; }
.feature__art { display: flex; justify-content: center; }

.cred-card--showcase { width: 100%; max-width: 420px; }
.cred-card--showcase .cred-card__band { padding: 20px 22px 22px; }
.cred-card--showcase .cred-card__name { font-size: 1.5rem; }
.cred-card--showcase .seal--lg { width: 58px; height: 58px; }
.cred-card--showcase .cred-card__meta--four { grid-template-columns: 1fr 1fr; row-gap: 15px; }

/* ticks list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: .98rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .28em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--seal-soft);
  box-shadow: inset 0 0 0 1px rgba(176, 125, 46, .5);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5.5px; top: .55em;
  width: 6px; height: 3.5px;
  border-left: 2px solid var(--seal);
  border-bottom: 2px solid var(--seal);
  transform: rotate(-45deg);
}

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__glyph {
  display: inline-grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 13px;
  margin-bottom: 18px;
  color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px rgba(52, 70, 122, .14);
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .96rem; }

@media (max-width: 920px) {
  .feature--hero { grid-template-columns: 1fr; }
  .feature__art { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .cred-card__meta--four { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: clamp(56px, 9vw, 104px) 0; background: var(--surface-alt); border-block: 1px solid var(--hairline); }
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 40px);
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--seal-soft);
  background: linear-gradient(155deg, var(--brand), var(--brand-deep));
  box-shadow: inset 0 0 0 2px rgba(176, 125, 46, .55);
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: clamp(56px, 9vw, 104px) 0; }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
  position: relative;
}
.tier__badge {
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 500;
  color: var(--brand-deep);
  background: var(--seal-soft);
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(176, 125, 46, .4);
}
.tier__name { font-size: 1.4rem; }
.tier__price { display: flex; align-items: baseline; gap: 6px; }
.tier__amount { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; color: var(--ink); letter-spacing: -.02em; }
.tier__per { color: var(--ink-2); font-weight: 500; }
.tier__tag { color: var(--ink-2); font-size: .92rem; margin-top: -6px; }
.tier .ticks { margin: 6px 0 8px; }
.tier .ticks li { font-size: .94rem; }
.tier .btn { margin-top: auto; }
.pricing__fine { margin-top: 26px; color: var(--ink-2); font-size: .88rem; max-width: 70ch; }
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: clamp(56px, 9vw, 104px) 0; background: var(--surface-alt); border-block: 1px solid var(--hairline); }
.faq__list { display: grid; gap: 14px; max-width: 820px; }
.qa {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.12rem;
  color: var(--ink);
  min-height: 44px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--seal);
  border-bottom: 2px solid var(--seal);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa p { padding: 0 24px 22px; color: var(--ink-2); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  padding: clamp(64px, 10vw, 120px) 0;
  background:
    radial-gradient(700px 400px at 50% -20%, rgba(176, 125, 46, .16), transparent 60%),
    linear-gradient(160deg, var(--brand) 0%, var(--band-bg) 100%);
  color: #fff;
  text-align: center;
}
.cta__inner { max-width: 640px; }
/* Closing CTA is an h2, not a second hero: capped at the 26px preset ceiling. */
.cta__title { font-size: clamp(1.4rem, 3vw, 1.625rem); color: #fff; margin-bottom: 16px; }
.cta__sub { color: rgba(255, 255, 255, .82); font-size: 1.12rem; margin-bottom: 30px; }
.cta__fine { margin-top: 18px; font-size: .86rem; color: rgba(255, 255, 255, .68); }
.cta .seal--xl { box-shadow: 0 6px 18px rgba(0, 0, 0, .3), inset 0 0 0 2px rgba(243, 233, 212, .8); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--paper); border-top: 1px solid var(--hairline); padding: clamp(44px, 6vw, 72px) 0 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 38px;
  border-bottom: 1px solid var(--hairline);
}
.wordmark--footer { min-height: 44px; }
.wordmark--footer .wordmark__text { font-size: 1.25rem; }
.footer__tag { color: var(--ink-2); font-size: .94rem; max-width: 38ch; margin-top: 14px; }
.footer__col h3 {
  font-family: var(--ui);
  font-size: .82rem;
  font-weight: 500;
  color: var(--seal-ink);
  margin-bottom: 14px;
}
/* 44px touch targets on phone as well as pointer navigation. */
.footer__col a { display: flex; align-items: center; min-height: 44px; color: var(--ink-2); padding: 8px 0; font-size: .96rem; transition: color .15s ease; }
.footer__col a:hover { color: var(--brand); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 24px;
}
.footer__bar p { font-size: .82rem; color: var(--ink-2); }
.footer__disclaimer { max-width: 64ch; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

/* Theme toggle (added in audit) — brass-ringed disc matching the seal motif.
   44px so it clears the touch-target floor on phones as well as desktop. */
.theme-toggle {
  width: 44px; height: 44px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--surface); color: var(--brand);
  cursor: pointer; transition: border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--seal); transform: translateY(-1px); }
.theme-toggle__mark {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
}
