/* =====================================================================
   The Freedom Filled® Pathway Audit — experience styles
   Built on Tracy Harris Co tokens (styles/tokens.css + fonts.css).
   Audit surface = FFB (oatmeal/cream + aztek/sage); results can route
   to FFM premium (charcoal/gold).
   ===================================================================== */

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-sans);
  color: var(--ink-body);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }

/* ---------- App root: pin FFB surface ---------- */
#app { min-height: 100vh; }

/* ---------- Type helpers ---------- */
.serif        { font-family: var(--f-serif-display); font-weight: var(--w-regular); }
.serif em, .ital { font-family: var(--f-serif-italic); font-style: italic; }
.script       { font-family: var(--f-script); color: var(--type-script-color, var(--p-sage)); font-weight: 400; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px; font-weight: var(--w-medium);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.rule {
  display: block; width: 56px; height: 1px;
  background: var(--p-sage); border: 0; margin: 0;
}
.rule--center { margin-left: auto; margin-right: auto; }

.reg { font-feature-settings: "sups"; font-size: 0.62em; vertical-align: 0.42em; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--f-sans); font-size: 12px; font-weight: var(--w-medium);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 17px 34px; text-decoration: none; cursor: pointer;
  border: 0; background: var(--accent); color: var(--accent-on);
  transition: background .2s ease, transform .12s ease, color .2s ease, border-color .2s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; }
.btn--ghost {
  background: transparent; color: var(--ink-heading);
  border-bottom: 1px solid var(--ink-heading); padding: 15px 4px;
  letter-spacing: 0.2em;
}
.btn--ghost:hover { background: transparent; color: var(--p-sage); border-color: var(--p-sage); }
.btn--outline {
  background: transparent; color: var(--ink-heading);
  border: 1px solid var(--border-divider); padding: 16px 33px;
}
.btn--outline:hover { background: var(--accent); color: var(--accent-on); }
.btn--light { background: var(--p-oatmeal); color: var(--p-aztek); }
.btn--light:hover { background: var(--p-white); }
.btn--gold {
  background: linear-gradient(135deg, var(--p-gold-dark) 0%, var(--p-gold-mid) 100%);
  color: var(--p-charcoal); font-weight: var(--w-semibold);
}
.btn--gold:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--p-gold-dark) 0%, var(--p-gold-mid) 100%); }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.32; cursor: not-allowed; pointer-events: none;
}

/* ---------- Wordmark / nav ---------- */
.brandmark { width: auto; display: inline-block; color: var(--p-aztek); }
.brandmark svg { display: block; height: 100%; width: auto; fill: currentColor; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface-canvas) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}
.topbar__inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__id { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.topbar__id .brandmark { height: 30px; }
.topbar__name {
  font-family: var(--f-serif-display); font-size: 19px; letter-spacing: -0.01em;
  color: var(--ink-heading); line-height: 1;
}
.topbar__name b { font-weight: var(--w-regular); }
.topbar__meta {
  font-family: var(--f-sans); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.topbar__step { display: flex; align-items: center; gap: 16px; }

/* ---------- Generic page scaffold ---------- */
.screen { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.wrap--narrow { max-width: 760px; }
.wrap--mid { max-width: 960px; }

/* =====================================================================
   LANDING
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--surface-canvas);
}
.hero__grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch;
  gap: 0;
}
.hero__copy { padding: clamp(56px, 7vw, 104px) clamp(32px,5vw,72px) clamp(56px,7vw,96px) 32px; align-self: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-size: 11px; font-weight: var(--w-medium);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--p-aztek);
  background: color-mix(in srgb, var(--p-sage) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--p-sage) 38%, transparent);
  padding: 9px 16px; border-radius: var(--r-pill); margin-bottom: 30px;
}
.hero__pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--p-sage); }
.hero__title {
  font-family: var(--f-serif-display); font-weight: var(--w-regular);
  font-size: clamp(46px, 5.6vw, 82px); line-height: 0.98; letter-spacing: -0.025em;
  color: var(--ink-heading); margin: 0 0 26px; text-wrap: balance;
}
.hero__title em { font-family: var(--f-serif-italic); font-style: italic; color: var(--p-aztek); }
.hero__sub {
  font-family: var(--f-sans); font-size: 18px; line-height: 1.62; color: var(--ink-body);
  max-width: 46ch; margin: 0 0 36px;
}
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__meta-row {
  display: flex; gap: 36px; margin-top: 44px; padding-top: 28px;
  border-top: 1px solid var(--border-hairline); flex-wrap: wrap;
}
.hero__meta { display: flex; flex-direction: column; gap: 4px; }
.hero__meta dt { font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.hero__meta dd { margin: 0; font-family: var(--f-serif-display); font-size: 22px; color: var(--ink-heading); }
.hero__media { position: relative; min-height: 520px; background: var(--surface-elevated); overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media-tag {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  background: color-mix(in srgb, var(--p-aztek) 88%, transparent);
  color: var(--p-oatmeal); padding: 12px 18px; max-width: 240px;
}
.hero__media-tag .script { font-size: 26px; line-height: 1; color: var(--p-gold-mid); }
.hero__media-tag p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: rgba(246,244,241,0.85); }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { min-height: 340px; order: -1; }
  .hero__copy { padding: 48px 24px 56px; }
}

/* Landing sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--elevated { background: var(--surface-elevated); }
.section--ink { background: var(--p-aztek); color: var(--p-oatmeal); }
.section--ink .eyebrow { color: rgba(246,244,241,0.6); }
.section--ink .rule { background: var(--p-sage); }
.section__head { max-width: 660px; margin: 0 auto clamp(40px,5vw,68px); text-align: center; }
.section__head .eyebrow { margin-bottom: 16px; }
.section__head .rule { margin: 0 auto 22px; }
.section__title {
  font-family: var(--f-serif-display); font-weight: var(--w-regular);
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink-heading); margin: 0 0 18px; text-wrap: balance;
}
.section--ink .section__title { color: var(--p-oatmeal); }
.section__title em { font-family: var(--f-serif-italic); font-style: italic; }
.section__lead { font-family: var(--f-sans); font-size: 16px; line-height: 1.65; color: var(--ink-body); margin: 0; }
.section--ink .section__lead { color: rgba(246,244,241,0.82); }

/* Reveal grid (what the audit reveals) */
.reveal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-hairline); border: 1px solid var(--border-hairline); }
.reveal-cell { background: var(--surface-canvas); padding: 34px 28px; display: flex; flex-direction: column; gap: 12px; }
.reveal-cell__n { font-family: var(--f-serif-display); font-size: 15px; color: var(--p-sage); }
.reveal-cell__t { font-family: var(--f-serif-display); font-size: 22px; line-height: 1.15; color: var(--ink-heading); margin: 0; }
.reveal-cell__d { font-family: var(--f-sans); font-size: 13.5px; line-height: 1.55; color: var(--ink-body); margin: 0; }
@media (max-width: 900px) { .reveal-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .reveal-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; max-width: 980px; margin: 0 auto; }
.step__n { font-family: var(--f-serif-display); font-size: 40px; color: var(--p-sage); line-height: 1; }
.step__t { font-family: var(--f-serif-display); font-size: 24px; color: var(--p-oatmeal); margin: 14px 0 8px; }
.step__d { font-family: var(--f-sans); font-size: 14px; line-height: 1.6; color: rgba(246,244,241,0.78); margin: 0; }
.step + .step, .reveal-cell {}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Closing CTA band */
.closing { text-align: center; }
.closing .section__title { max-width: 16ch; margin-left: auto; margin-right: auto; }
.closing .signoff { font-family: var(--f-script); font-size: 34px; color: var(--p-sage); margin-top: 28px; }

/* =====================================================================
   PROFILE / LEAD CAPTURE
   ===================================================================== */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: calc(100vh - 63px); }
.split__aside {
  background: var(--p-aztek); color: var(--p-oatmeal);
  padding: clamp(48px,6vw,80px) clamp(36px,4vw,64px);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.split__aside-inner { position: relative; z-index: 2; margin-top: auto; }
.split__aside .eyebrow { color: rgba(246,244,241,0.6); }
.split__aside h2 { font-family: var(--f-serif-display); font-weight: 400; font-size: clamp(30px,3.2vw,44px); line-height: 1.08; margin: 18px 0 0; color: var(--p-oatmeal); }
.split__aside h2 em { font-family: var(--f-serif-italic); font-style: italic; color: var(--p-sage); }
.split__aside p { font-size: 15px; line-height: 1.65; color: rgba(246,244,241,0.82); max-width: 40ch; }
.split__aside-photo { position: absolute; inset: 0; opacity: 0.16; }
.split__aside-photo img { width: 100%; height: 100%; object-fit: cover; }
.split__aside-marks { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.split__aside-mark { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(246,244,241,0.85); }
.split__aside-mark svg { width: 17px; height: 17px; color: var(--p-sage); flex: 0 0 auto; margin-top: 2px; }

.split__form { padding: clamp(44px,5vw,80px) clamp(32px,4vw,80px); display: flex; flex-direction: column; justify-content: center; background: var(--surface-canvas); }
.form-shell { width: 100%; max-width: 520px; margin: 0 auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__aside { min-height: 280px; } }

.field { margin-bottom: 20px; }
.field__label { display: block; font-family: var(--f-sans); font-size: 12px; font-weight: var(--w-medium); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-heading); margin-bottom: 9px; }
.field__label .opt { color: var(--ink-mute); font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.field__req { color: var(--p-sage); }
.input, .select {
  width: 100%; font-family: var(--f-sans); font-size: 15px; color: var(--ink-heading);
  background: var(--surface-canvas); border: 1px solid var(--border-divider);
  border-radius: var(--r-md); padding: 14px 15px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-mute); }
.input:focus, .select:focus { outline: 0; border-color: var(--p-sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-sage) 22%, transparent); }
.input--error { border-color: #b4493b; }
.input--error:focus { box-shadow: 0 0 0 3px rgba(180,73,59,0.18); }
.field__error { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: #b4493b; }
.field__error svg { width: 13px; height: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.chip-set { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--f-sans); font-size: 13px; color: var(--ink-body);
  background: var(--surface-canvas); border: 1px solid var(--border-divider);
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--p-sage); }
.chip[aria-pressed="true"] { background: var(--p-aztek); color: var(--p-oatmeal); border-color: var(--p-aztek); }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 26px; font-size: 13px; line-height: 1.5; color: var(--ink-body); }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--p-aztek); flex: 0 0 auto; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 6px; }

/* =====================================================================
   QUESTION FLOW
   ===================================================================== */
.q-screen { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface-canvas); }
.q-progress { height: 3px; background: var(--border-hairline); width: 100%; }
.q-progress__bar { height: 100%; background: var(--p-sage); transition: width .5s cubic-bezier(.22,1,.36,1); }
.q-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 32px 56px; }
.q-inner { max-width: 760px; margin: 0 auto; width: 100%; }
.q-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.q-count { font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.q-count b { color: var(--ink-heading); font-weight: var(--w-semibold); }
.q-dim { font-family: var(--f-sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--p-sage); display: inline-flex; align-items: center; gap: 8px; }
.q-dim .rule { width: 22px; }
.q-text {
  font-family: var(--f-serif-display); font-weight: var(--w-regular);
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.018em;
  color: var(--ink-heading); margin: 0 0 36px; text-wrap: pretty;
}
.q-options { display: flex; flex-direction: column; gap: 12px; }
.q-option {
  display: flex; align-items: flex-start; gap: 16px; width: 100%; text-align: left;
  background: var(--surface-canvas); border: 1px solid var(--border-divider);
  border-radius: var(--r-md); padding: 19px 22px; cursor: pointer;
  font-family: var(--f-sans); transition: border-color .15s, background .15s, box-shadow .15s;
}
.q-option:hover { border-color: var(--p-sage); background: color-mix(in srgb, var(--p-sage) 6%, var(--surface-canvas)); }
.q-option__key {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-divider); display: grid; place-items: center;
  font-size: 11px; font-weight: var(--w-semibold); color: var(--ink-mute);
  letter-spacing: 0; transition: all .15s;
}
.q-option__text { font-size: 16px; line-height: 1.45; color: var(--ink-body); padding-top: 2px; }
.q-option[aria-pressed="true"] { border-color: var(--p-aztek); background: color-mix(in srgb, var(--p-sage) 9%, var(--surface-canvas)); box-shadow: inset 0 0 0 1px var(--p-aztek); }
.q-option[aria-pressed="true"] .q-option__key { background: var(--p-aztek); color: var(--p-oatmeal); border-color: var(--p-aztek); }
.q-foot { border-top: 1px solid var(--border-hairline); padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-canvas); }
.q-back { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); padding: 8px 4px; transition: color .15s; }
.q-back:hover { color: var(--ink-heading); }
.q-back svg { width: 15px; height: 15px; }
.q-save { font-family: var(--f-sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); background: none; border: 0; cursor: pointer; }
.q-save:hover { color: var(--p-sage); }

/* =====================================================================
   GENERATING
   ===================================================================== */
.gen { min-height: 100vh; display: grid; place-items: center; background: var(--p-aztek); color: var(--p-oatmeal); text-align: center; padding: 40px; }
.gen__inner { max-width: 520px; }
.gen__ring { margin: 0 auto 34px; }
.gen__title { font-family: var(--f-serif-display); font-weight: 400; font-size: clamp(30px,4vw,44px); line-height: 1.1; margin: 0 0 16px; color: var(--p-oatmeal); }
.gen__title em { font-family: var(--f-serif-italic); font-style: italic; color: var(--p-sage); }
.gen__sub { font-size: 15px; line-height: 1.6; color: rgba(246,244,241,0.8); margin: 0 0 32px; }
.gen__steps { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-direction: column; gap: 13px; text-align: left; }
.gen__steps li { display: flex; align-items: center; gap: 13px; font-size: 14px; color: rgba(246,244,241,0.55); transition: color .4s; }
.gen__steps li.done { color: var(--p-oatmeal); }
.gen__steps li.active { color: var(--p-oatmeal); }
.gen__tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(246,244,241,0.3); display: grid; place-items: center; flex: 0 0 auto; transition: all .3s; }
.gen__tick svg { width: 12px; height: 12px; opacity: 0; transition: opacity .3s; }
.gen__steps li.done .gen__tick { background: var(--p-sage); border-color: var(--p-sage); }
.gen__steps li.done .gen__tick svg { opacity: 1; }
.gen__steps li.active .gen__tick { border-color: var(--p-sage); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   RESULTS — shared
   ===================================================================== */
.results { background: var(--surface-canvas); }
.var-switch {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface-canvas) 94%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-hairline);
}
.var-switch__inner { max-width: 1200px; margin: 0 auto; padding: 11px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.var-switch__label { font-family: var(--f-sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); display: flex; align-items: center; gap: 9px; }
.var-switch__label svg { width: 14px; height: 14px; color: var(--p-sage); }
.seg { display: inline-flex; background: var(--surface-elevated); border: 1px solid var(--border-hairline); border-radius: var(--r-pill); padding: 3px; }
.seg button { font-family: var(--f-sans); font-size: 12px; font-weight: var(--w-medium); letter-spacing: 0.02em; color: var(--ink-body); background: none; border: 0; padding: 8px 18px; border-radius: var(--r-pill); cursor: pointer; transition: all .18s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--p-aztek); color: var(--p-oatmeal); }
.var-switch__actions { display: flex; gap: 10px; align-items: center; }

.severity-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sev-active { background: #b4493b; }
.sev-watch { background: var(--p-gold-mid); }
.sev-strong { background: var(--p-sage); }

/* Pills/tags */
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-sans); font-size: 11px; font-weight: var(--w-medium); letter-spacing: 0.14em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill); }
.tag--band { background: color-mix(in srgb, var(--p-sage) 18%, transparent); color: var(--p-aztek); }
.tag--leak { background: rgba(180,73,59,0.12); color: #9a3d31; }
.tag--gold { background: color-mix(in srgb, var(--p-gold-mid) 24%, transparent); color: var(--p-gold-dark); }

/* Result cards */
.rcard { background: var(--surface-canvas); border: 1px solid var(--border-hairline); border-radius: 8px; padding: 30px 32px; box-shadow: var(--shadow-sm); }
.rcard--flush { padding: 0; overflow: hidden; }
.rcard__label { font-family: var(--f-sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }

/* Dimension list (bars) */
.dim-list { display: flex; flex-direction: column; gap: 16px; }
.dim-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.dim-row__name { font-family: var(--f-sans); font-size: 14px; color: var(--ink-heading); display: flex; align-items: center; gap: 10px; }
.dim-row__score { font-family: var(--f-serif-display); font-size: 19px; color: var(--ink-heading); }
.dim-row__track { grid-column: 1 / -1; height: 6px; background: var(--border-hairline); border-radius: var(--r-pill); overflow: hidden; }
.dim-row__fill { height: 100%; border-radius: var(--r-pill); transition: width .8s cubic-bezier(.22,1,.36,1); }

.plan-list { counter-reset: plan; display: flex; flex-direction: column; gap: 0; }
.plan-item { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--border-hairline); }
.plan-item:first-child { border-top: 0; }
.plan-item__n { font-family: var(--f-serif-display); font-size: 30px; color: var(--p-sage); line-height: 1; }
.plan-item__t { font-family: var(--f-serif-display); font-size: 21px; line-height: 1.25; color: var(--ink-heading); margin: 0 0 8px; }
.plan-item__d { font-family: var(--f-sans); font-size: 14.5px; line-height: 1.6; color: var(--ink-body); margin: 0; }

/* Footer (shared) */
.foot { background: var(--p-charcoal); color: rgba(246,244,241,0.7); padding: 56px 0 30px; }
.foot__inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.foot__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(246,244,241,0.12); flex-wrap: wrap; }
.foot__brand { font-family: var(--f-serif-display); font-size: 24px; color: var(--p-oatmeal); }
.foot__brand .reg { color: var(--p-gold-mid); }
.foot__tag { font-size: 13px; max-width: 38ch; line-height: 1.6; margin: 10px 0 0; }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: rgba(246,244,241,0.7); transition: color .15s; }
.foot__links a:hover { color: var(--p-oatmeal); }
.foot__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 11.5px; color: rgba(246,244,241,0.45); flex-wrap: wrap; }

/* =====================================================================
   PROTOTYPE NAV (review aid — hidden in print)
   ===================================================================== */
.pnav { position: fixed; left: 18px; bottom: 18px; z-index: 200; font-family: var(--f-sans); }
.pnav__toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--p-charcoal); color: var(--p-oatmeal); border: 0;
  padding: 11px 16px; border-radius: var(--r-pill); box-shadow: 0 8px 24px rgba(16,16,16,0.22);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.pnav__toggle .brandmark { height: 15px; color: var(--p-gold-mid); }
.pnav__panel {
  position: absolute; left: 0; bottom: calc(100% + 12px); width: 248px;
  background: var(--p-white); border: 1px solid var(--border-hairline);
  border-radius: 10px; box-shadow: 0 18px 48px rgba(16,16,16,0.22); padding: 8px;
}
.pnav__group { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); padding: 12px 12px 6px; }
.pnav__item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 9px 12px; border-radius: 6px; font-size: 13px; color: var(--ink-body); transition: background .12s; }
.pnav__item:hover { background: var(--surface-elevated); }
.pnav__item[aria-current="true"] { color: var(--ink-heading); font-weight: var(--w-semibold); background: var(--surface-elevated); }
.pnav__item .n { font-family: var(--f-serif-display); font-size: 12px; color: var(--p-sage); width: 16px; }

@media print { .pnav, .var-switch, .topbar { display: none !important; } }

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.muted { color: var(--ink-mute); }
.fadein { animation: none; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.delay-1 { animation-delay: .08s; } .delay-2 { animation-delay: .16s; } .delay-3 { animation-delay: .24s; } .delay-4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .fadein { animation: none; } * { scroll-behavior: auto; } }

/* =====================================================================
   BRAND THEMES — set [data-theme] on <html>. Overrides the brand
   primitives so every section that references --p-aztek / --p-sage
   re-skins at once. ffb = default (no override).
   ===================================================================== */

/* Gunmetal: gunmetal-gray to black gradient, cool steel accent. */
[data-theme="gunmetal"] {
  --p-aztek:    #2c343a;
  --p-ffb-dark: #2c343a;
  --p-sage:     #84949e;   /* cool steel/pewter-blue accent */
}
[data-theme="gunmetal"] .section--ink,
[data-theme="gunmetal"] .split__aside,
[data-theme="gunmetal"] .gen,
[data-theme="gunmetal"] .leak-dive,
[data-theme="gunmetal"] .dash__rail,
[data-theme="gunmetal"] .pathway--ffb {
  background-image: linear-gradient(158deg, #3e4951 0%, #1b2024 52%, #0d0e10 100%);
}

/* Clay: warm terracotta / clay earth. */
[data-theme="clay"] {
  --p-aztek:    #41302a;
  --p-ffb-dark: #41302a;
  --p-sage:     #bd7149;   /* terracotta clay accent */
  --p-cream:    #ece0d5;   /* warm clay-tinted elevated surface */
}
[data-theme="clay"] .section--ink,
[data-theme="clay"] .split__aside,
[data-theme="clay"] .gen,
[data-theme="clay"] .leak-dive,
[data-theme="clay"] .dash__rail,
[data-theme="clay"] .pathway--ffb {
  background-image: linear-gradient(155deg, #5a4339 0%, #3c2c26 55%, #281d19 100%);
}

/* Freedom Filled Mastermind: charcoal + gold, premium. */
[data-theme="ffm"] {
  --p-aztek:    #161616;   /* charcoal dark sections */
  --p-ffb-dark: #1d1d1d;
  --p-sage:     #c9a46c;   /* gold accent + rule */
  --p-cream:    #f1ece3;   /* slightly lighter elevated surface */
}
/* gold gradient CTAs stay gold; in FFM theme, lift the primary buttons to gold too */
[data-theme="ffm"] .btn:not(.btn--ghost):not(.btn--outline):not(.btn--light):not(.btn--gold) {
  background: linear-gradient(135deg, var(--p-gold-dark) 0%, var(--p-gold-mid) 100%);
  color: var(--p-charcoal); font-weight: var(--w-semibold);
}
[data-theme="ffm"] .btn:not(.btn--ghost):not(.btn--outline):not(.btn--light):not(.btn--gold):hover {
  filter: brightness(1.06);
}
