/*
 * RetireMapper &mdash; Main Stylesheet
 * Extracted from index.html during Phase2-v8
 *
 * Sections:
 *   1. Design Tokens (CSS Custom Properties)
 *   2. Reset & Base
 *   3. Layout Shell
 *   4. Map Panel (Panel A)
 *   5. Wizard Panel (Panel B)
 *   6. Results Panel (Panel C)
 *   7. Wizard Steps & Cards
 *   8. Slider Components
 *   9. Category Weight Grid
 *  10. Country Search (Combobox)
 *  11. Checkbox Grid
 *  12. Budget Display
 *  13. Country Popup / Overlay
 *  14. Metric Tooltip
 *  15. Footer
 *  16. Shared / Utility
 */

/* ─── 1. Design Tokens ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:             #0d1821;
  --ocean:          #1a4a72;
  --ocean-deep:     #102840;
  --panel-b:        #0f1e2e;
  --panel-c:        #0c1826;

  /* Map colours */
  --land-grey:      #6b7d8e;
  --land-grey-dark: #3a4a5a;
  --land-green:     #2e9e5a;
  --land-home:      #8c1aff;
  --land-bdr:       #1a2530;

  /* Borders */
  --rim:            rgba(120,160,200,0.18);
  --rim-bright:     rgba(180,210,240,0.35);

  /* Brand gold */
  --gold:           #c9a84c;
  --gold-lt:        #e2c87a;
  --gold-dim:       rgba(201,168,76,0.12);

  /* Text */
  --text:           #d0dae4;
  --text-muted:     #7a92a8;
  --text-dim:       #5a7080;
  --cat-label:      #9dbace;

  /* Status */
  --done:           #3aaa6a;
  --elim:           #c04040;
  --score-hi:       #2e9e5a;
  --score-lo:       #c0392b;

  /* Misc */
  --radius:         8px;
}


/* ─── 2. Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* Static pages (faq, contact, legal) allow scrolling */
html.page,
html.page body {
  height: auto;
  overflow: auto;
}
body.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* ─── 3. Layout Shell ───────────────────────────────────────────── */
#shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#panel-a {
  position: relative;
  flex: 0 0 62vh;
  background: var(--ocean-deep);
  overflow: hidden;
}

#bottom {
  flex: 1;
  display: flex;
  min-height: 0;
  border-top: 1px solid var(--rim);
}

#panel-b {
  flex: 0 0 66.67%;
  display: flex;
  flex-direction: column;
  background: var(--panel-b);
  border-right: 1px solid var(--rim);
  min-height: 0;
  overflow: hidden;
}

#panel-c {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--panel-c);
  min-height: 0;
  overflow: hidden;
}


/* ─── 4. Map Panel (Panel A) ────────────────────────────────────── */
#map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Country paths */
.country {
  stroke: var(--land-bdr);
  stroke-width: .5px;
  cursor: pointer;
  fill: var(--land-grey);
  transition: fill .4s ease, stroke .15s ease, opacity .4s ease;
}
.country.in-contention { opacity: 0.6; }
.country.eliminated    { opacity: 0.5; }
.country:hover                  { stroke: #1a2530; stroke-width: 1.8px; }
.country.in-contention:hover    { opacity: 1; }

/* Map header (logo + tagline) */
#map-header {
  position: absolute;
  top: 0; left: 0;
  padding: 13px 18px;
  pointer-events: none;
  z-index: 10;
}
#map-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
}
#map-header .tagline {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Country hover tray */
#info-tray {
  position: absolute;
  top: 13px; right: 14px;
  width: 188px;
  background: rgba(8,20,34,.93);
  border: 1px solid var(--rim);
  border-radius: 8px;
  padding: 11px 14px;
  z-index: 20;
  transition: opacity .15s;
  pointer-events: none;
  opacity: 0;
}
#info-tray.vis       { opacity: 1; }
#tray-name           { font-family: 'Playfair Display', serif; font-size: 14px; color: var(--gold); margin-bottom: 4px; }
#tray-body           { font-size: 11px; color: var(--text-muted); line-height: 1.6; }
#tray-bar-bg         { height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; margin-top: 7px; }
#tray-bar-fill       { height: 100%; border-radius: 2px; transition: width .35s ease; }
#tray-pct            { font-size: 11.5px; font-weight: 600; margin-top: 4px; }
.tray-hint           { font-size: 9.5px; color: var(--text-dim); margin-top: 5px; }

/* Map stats bar */
#map-stats {
  position: absolute;
  bottom: 11px; left: 12px;
  background: rgba(8,20,34,.82);
  border: 1px solid var(--rim);
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 10px;
  color: var(--text-muted);
  z-index: 10;
}
#map-stats b        { color: var(--land-green); font-weight: 600; }
#map-stats .elim-ct { color: var(--land-grey); margin-left: 8px; }

/* Version watermark */
#watermark {
  position: absolute;
  bottom: 11px; right: 12px;
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--text-dim);
  border-radius: 3px;
  padding: 3px 6px;
  pointer-events: none;
}


/* ─── 5. Wizard Panel (Panel B) ─────────────────────────────────── */
#b-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 20px;
  border-bottom: 1px solid var(--rim);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

/* Chapter progress bar */
#chapter-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  flex: 1;
  min-width: 200px;
}
#chapter-bar::-webkit-scrollbar { display: none; }

.ch-seg {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity .2s;
}
.ch-seg:hover        { opacity: .8; }
.ch-dot              { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); transition: all .22s; }
.ch-seg.active .ch-dot { background: var(--gold); box-shadow: 0 0 5px rgba(201,168,76,.5); }
.ch-seg.done   .ch-dot { background: var(--done); }
.ch-lbl              { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--cat-label); padding: 0 6px; white-space: nowrap; transition: color .22s; opacity: .55; }
.ch-seg.active .ch-lbl { color: var(--gold-lt); opacity: 1; }
.ch-seg.done   .ch-lbl { color: var(--done); opacity: .9; }
.ch-line             { width: 14px; height: 1px; background: var(--rim); flex-shrink: 0; }

/* Restart button */
#btn-restart {
  padding: 6px 14px;
  border-radius: 4px;
  background: var(--gold);
  border: none;
  color: #0d1821;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s;
  white-space: nowrap;
  flex-shrink: 0;
}
#btn-restart:hover { background: var(--gold-lt); }

/* Scrollable step body */
#step-body { flex: 1; overflow-y: auto; padding: 20px 28px 14px; }
#step-body::-webkit-scrollbar       { width: 3px; }
#step-body::-webkit-scrollbar-thumb { background: var(--rim); border-radius: 2px; }

/* Navigation row */
#step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 26px;
  border-top: 1px solid var(--rim);
  flex-shrink: 0;
  flex-wrap: wrap;
}
#step-counter { font-size: 11px; color: var(--cat-label); }


/* ─── 6. Results Panel (Panel C) ────────────────────────────────── */
#panel-c-head {
  padding: 10px 15px;
  border-bottom: 1px solid var(--rim);
  flex-shrink: 0;
}
#panel-c-head h3 { font-family: 'Playfair Display', serif; font-size: 13px; color: var(--gold); }
#results-sub     { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

#results-scroll                       { flex: 1; overflow-y: auto; padding: 3px 0; }
#results-scroll::-webkit-scrollbar       { width: 3px; }
#results-scroll::-webkit-scrollbar-thumb { background: var(--rim); border-radius: 2px; }

.r-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.018);
  transition: background .1s;
}
.r-item:hover   { background: rgba(255,255,255,.025); }
.r-rank         { font-size: 10px; color: var(--text-dim); width: 15px; text-align: center; flex-shrink: 0; }
.r-rank.top     { color: var(--gold); font-weight: 600; }
.r-dot          { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; transition: box-shadow .2s; }
.r-name         { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-bar          { width: 38px; height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; flex-shrink: 0; overflow: hidden; }
.r-fill         { height: 100%; border-radius: 2px; transition: width .45s ease; }
.r-pct          { font-size: 10.5px; font-weight: 600; width: 26px; text-align: right; flex-shrink: 0; }
.empty-msg      { padding: 28px 16px; text-align: center; color: var(--text-muted); font-size: 12px; line-height: 1.8; }

.results-hint   { padding: 24px 28px; text-align: center; color: var(--text-muted); line-height: 1.8; }
.results-hint b { color: var(--gold); font-weight: 600; }


/* ─── 7. Wizard Steps & Cards ───────────────────────────────────── */
.q-card { animation: fadeUp .24s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}

.q-num        { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cat-label); margin-bottom: 7px; }
.q-text       { font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.35; margin-bottom: 16px; }
.q-input-zone { margin-bottom: 16px; }

.q-explain          { background: rgba(255,255,255,.022); border: 1px solid var(--rim); border-radius: 7px; padding: 13px 16px; margin-top: 2px; }
.q-explain .src-tag { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }
.q-explain .src-why { font-size: 12px; color: var(--text-muted); line-height: 1.7; }
.q-explain .src-why b { color: #e8d4a0; font-weight: 500; }


/* ─── 8. Slider Components ──────────────────────────────────────── */
.sl-labels    { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text); margin-top: 4px; }
.sl-current   { text-align: center; font-size: 14px; font-weight: 600; color: var(--gold); margin-top: 9px; }
.sl-scale-sub { font-size: 11.5px; color: #fff; text-align: center; margin-top: 4px; min-height: 18px; line-height: 1.4; }

.slider-container { position: relative; margin: 8px 0; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--gold) 0%, rgba(255,255,255,.1) 0%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-top: 6px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2.5px solid var(--panel-b);
  box-shadow: 0 0 0 1.5px var(--gold);
}
input[type=range]::-moz-range-thumb {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 2.5px solid var(--panel-b);
  box-shadow: 0 0 0 1.5px var(--gold);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: var(--text-dim);
  margin-top: 2px;
  padding: 0 8px;
  pointer-events: none;
}
.tick { width: 1px; height: 4px; background: var(--text-muted); }
/* Slider off state */
.slider-off input[type=range] { opacity: 0.25; cursor: not-allowed; }
.slider-off .slider-ticks     { opacity: 0.25; }

/* Question row: pill before question text, same line */
.q-text-row { display: flex; align-items: baseline; gap: 10px; }
.q-text-row .q-text { flex: 1; margin-bottom: 12px; }

/* Enable pill */
.metric-enable-pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 4px 10px; background: rgba(255,255,255,.022);
  border: 1px solid var(--rim); border-radius: 20px;
  cursor: pointer; user-select: none; white-space: nowrap;
}
.metric-enable-label {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); font-family: 'DM Sans', sans-serif;
}
.metric-enable-pill input[type=checkbox] { display: none; }
.metric-enable-track {
  position: relative; display: inline-block; width: 28px; height: 15px;
  background: rgba(120,160,200,0.15); border: 1px solid var(--rim);
  border-radius: 10px; transition: background 0.2s, border-color 0.2s; flex-shrink: 0;
}
.metric-enable-thumb {
  position: absolute; top: 1px; left: 1px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--text-dim); transition: transform 0.2s, background 0.2s;
}
.metric-enable-pill input[type=checkbox]:checked ~ .metric-enable-track { background: var(--gold-dim); border-color: var(--gold); }
.metric-enable-pill input[type=checkbox]:checked ~ .metric-enable-track .metric-enable-thumb { transform: translateX(13px); background: var(--gold); }


/* ─── 9. Category Weight Grid ───────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 16px;
  padding: 16px 0;
}
.cat-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-slider input[type=range] { width: 100%; height: 4px; margin: 0; }

.cat-slider-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
  order: -1;
  cursor: help;
  position: relative;
}
.cat-slider-label::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.96);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 9.5px;
  color: var(--text);
  width: 200px;
  text-align: center;
  white-space: normal;
  line-height: 1.5;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  font-weight: 400;
}
.cat-slider-label:hover::after { opacity: 1; }

.cat-slider-val   { font-size: 10px; color: var(--gold); font-weight: 600; text-align: center; margin-top: 2px; }
.cat-scale-hints  { display: flex; justify-content: space-between; font-size: 8px; color: var(--text-dim); width: 100%; margin-top: 2px; }


/* ─── 10. Country Search Combobox ───────────────────────────────── */
.cs-wrap   { position: relative; }
.cs-search {
  width: 100%;
  padding: 9px 13px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--rim);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border .15s;
}
.cs-search:focus         { border-color: var(--gold); }
.cs-search::placeholder  { color: var(--text-dim); }

.cs-list {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: #0d1e30;
  border: 1px solid var(--rim);
  border-radius: 6px;
  z-index: 100;
  display: none;
}
.cs-list::-webkit-scrollbar       { width: 3px; }
.cs-list::-webkit-scrollbar-thumb { background: var(--rim); }
.cs-item                           { padding: 8px 14px; font-size: 13px; cursor: pointer; transition: background .1s; }
.cs-item:hover,
.cs-item.sel                       { background: var(--gold-dim); color: var(--gold); }
.cs-chosen                         { margin-top: 9px; font-size: 12.5px; color: var(--text-muted); }
.cs-chosen b                       { color: var(--text); }


/* ─── 11. Checkbox Grid ─────────────────────────────────────────── */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 7px; }
.cb-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--rim);
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255,255,255,.013);
  transition: border-color .15s, background .15s;
}
.cb-tile:hover,
.cb-tile.on        { border-color: var(--gold); background: var(--gold-dim); }
.cb-box {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 8px;
  color: transparent;
  transition: all .15s;
}
.cb-tile.on .cb-box { border-color: var(--gold); background: var(--gold); color: #0d1821; }
.cb-lbl             { font-size: 12px; }


/* ─── 12. Budget Display ────────────────────────────────────────── */
.budget-num       { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--gold); text-align: center; margin: 8px 0 14px; }
.budget-num small { font-size: 14px; color: var(--text-muted); margin-left: 4px; }


/* ─── 13. Shared Buttons ────────────────────────────────────────── */
.btn {
  padding: 7px 18px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .04em;
  border: none;
  transition: all .16s;
}
.btn:disabled                { opacity: .22; pointer-events: none; }
.btn-ghost                   { background: transparent; border: 1px solid var(--rim); color: var(--text-muted); }
.btn-ghost:hover             { border-color: var(--cat-label); color: var(--text); }
.btn-primary                 { background: var(--gold); color: #0d1821; font-weight: 600; }
.btn-primary:hover           { background: var(--gold-lt); }
.btn-primary.done            { background: var(--done); color: #fff; cursor: pointer; opacity: 1; pointer-events: all; }
.btn-primary.done:hover      { background: #4bbf7a; }


/* ─── 14. Country Popup / Overlay ───────────────────────────────── */
#overlay {
  position: fixed; inset: 0;
  background: rgba(4,10,20,.82);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .18s;
}
#overlay.vis          { opacity: 1; pointer-events: all; }

#popup {
  background: #0d1b2e;
  border: 1px solid var(--rim-bright);
  border-radius: 11px;
  width: min(510px, 92vw);
  max-height: 82vh;
  overflow-y: auto;
  position: relative;
  padding: 26px 28px;
}
#popup::-webkit-scrollbar       { width: 3px; }
#popup::-webkit-scrollbar-thumb { background: var(--rim); }

#popup-close {
  position: absolute; top: 13px; right: 14px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--rim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted);
  transition: all .14s;
}
#popup-close:hover { background: rgba(255,255,255,.12); color: var(--text); }

#popup-cname    { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--gold); margin-bottom: 3px; }
#popup-overall  { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
#popup-overall b { font-size: 17px; font-weight: 600; margin-right: 5px; }

#popup-datacov {
  font-size: 10px; color: var(--text-muted);
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,.02);
  border-radius: 4px;
  border-left: 3px solid var(--gold);
}
#popup-datacov.warn { border-left-color: #e67e22; color: #e8c87a; }
#popup-hint {
  font-size: 10px; color: var(--text-dim);
  margin-bottom: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,.02);
  border-radius: 4px;
}

.pop-sec          { margin-bottom: 18px; }
.pop-sec-title    { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; border-bottom: 1px solid var(--rim); padding-bottom: 4px; }
.pm-row           { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; position: relative; }
.pm-name          { flex: 1; font-size: 12px; line-height: 1.4; }
.pm-label         { color: var(--text); cursor: help; border-bottom: 1px dotted rgba(255,255,255,.3); position: relative; }
.pm-raw           { font-size: 10px; color: var(--text-muted); }
.pm-bar-bg        { width: 60px; height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.pm-bar-fill      { height: 100%; border-radius: 2px; }
.pm-sc            { font-size: 11px; font-weight: 600; width: 20px; text-align: right; flex-shrink: 0; }
.pm-flag          { font-size: 10px; width: 13px; flex-shrink: 0; }
.pop-deduct       { background: rgba(192,57,43,.07); border: 1px solid rgba(192,57,43,.22); border-radius: 6px; padding: 10px 13px; font-size: 11px; color: var(--text-muted); line-height: 1.65; margin-top: 12px; }
.pop-deduct b     { color: #e05555; font-weight: 500; }


/* ─── 15. Metric Tooltip ────────────────────────────────────────── */
.metric-tooltip {
  position: fixed;
  background: rgba(0,0,0,.95);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 10px;
  color: var(--text);
  line-height: 1.5;
  width: 280px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  white-space: normal;
  word-wrap: break-word;
  max-height: 240px;
  overflow-y: auto;
}
.metric-tooltip.vis                        { opacity: 1; pointer-events: auto; }
.metric-tooltip::-webkit-scrollbar         { width: 2px; }
.metric-tooltip::-webkit-scrollbar-thumb  { background: var(--gold); border-radius: 1px; }


/* ─── 16. Intro Popup ───────────────────────────────────────────── */
#rm-intro-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}

.intro-box {
  background: #0e1c2d;
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 44px 48px;
  max-width: 520px;
  width: 92%;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.intro-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.intro-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--gold-lt);
  margin-bottom: 14px;
  line-height: 1.3;
}

.intro-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.intro-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.intro-steps li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  align-items: flex-start;
}

.intro-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(201,168,76,.12);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.intro-strong { color: var(--text); }

.intro-pricing {
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
}

.intro-pricing-strong { color: var(--gold-lt); }

.intro-btn {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #0d1821;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.intro-btn:hover { background: var(--gold-lt); }

.intro-save-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}


/* ─── 17. Footer ────────────────────────────────────────────────── */
#site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--rim);
  background: var(--bg);
  padding: 10px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  z-index: 50;
}
#site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
#site-footer a:hover    { color: var(--gold); }
.footer-sep             { margin: 0 6px; opacity: .5; }


/* ─── 17. Static Page Layout (FAQ, Contact, Legal) ──────────────── */
.page-wrap {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 60px;
  width: 100%;
}
.page-header {
  margin-bottom: 36px;
}
.page-header .page-eyebrow {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--gold-lt);
  line-height: 1.3;
  margin-bottom: 10px;
}
.page-header p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--rim);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rim); }
.faq-q {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.faq-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-a a { color: var(--gold); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { margin-top: 8px; }
.form-group   { margin-bottom: 18px; }
.form-label   { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--rim);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border .15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus  { border-color: var(--gold); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-select option   { background: #0d1e30; color: var(--text); }
.form-textarea        { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #0d1821;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--gold-lt); }
.form-notice {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.6;
  text-align: center;
}
.form-message {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.6;
}
.form-message.success { background: rgba(46,158,90,.12); border: 1px solid rgba(46,158,90,.35); color: #4bbf7a; }
.form-message.error   { background: rgba(192,57,43,.10); border: 1px solid rgba(192,57,43,.35); color: #e05555; }

/* Legal page */
.legal-section         { margin-bottom: 32px; }
.legal-section h2      { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--text); margin-bottom: 10px; }
.legal-section p,
.legal-section li      { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.legal-section ul      { padding-left: 20px; }
.legal-last-updated    { font-size: 11px; color: var(--text-dim); margin-bottom: 28px; }
