:root {
  /* Warm, comforting light palette */
  --bg: #faf6f0;          /* soft cream */
  --bg-tint: #f3ede3;     /* warmer cream for depth */
  --surface: #ffffff;
  --surface-2: #f7f2ea;
  --line: #ece4d8;
  --text: #3a3532;        /* warm charcoal */
  --muted: #857b70;       /* soft taupe */
  --sage: #7ba591;        /* calm sage green */
  --sage-deep: #5e8a75;
  --sage-soft: #e8f0ea;
  --clay: #e0a284;        /* warm clay accent */
  --clay-soft: #fbeee5;
  --gold: #e8c07d;
  --gold-soft: #fbf1dc;
  --danger: #d98d7f;
  --danger-soft: #fbe9e5;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px rgba(93, 78, 55, 0.08);
  --shadow-soft: 0 4px 20px rgba(93, 78, 55, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Accessibility: skip-to-content link, hidden until keyboard-focused */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--sage); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 12px; outline: none; box-shadow: 0 0 0 4px var(--sage-soft); }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(800px 500px at 88% -5%, var(--sage-soft) 0%, transparent 60%),
    radial-gradient(700px 500px at 2% 3%, var(--clay-soft) 0%, transparent 55%),
    radial-gradient(650px 650px at 100% 55%, var(--sage-soft) 0%, transparent 55%),
    radial-gradient(650px 650px at 0% 92%, var(--clay-soft) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Decorative botanical vines climbing the side gutters (wide screens) */
body::before, body::after {
  content: ""; position: fixed; top: 0; bottom: 0; width: 150px; z-index: -1;
  pointer-events: none; opacity: 0.6;
  background-repeat: repeat-y; background-position: top center; background-size: 132px auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 260'%3E%3Cpath d='M60 0 C30 40 90 90 60 130 C30 170 90 210 60 260' fill='none' stroke='%237ba591' stroke-width='3'/%3E%3Cg fill='%237ba591'%3E%3Cellipse cx='44' cy='48' rx='12' ry='5' transform='rotate(-40 44 48)'/%3E%3Cellipse cx='80' cy='96' rx='12' ry='5' transform='rotate(40 80 96)'/%3E%3Cellipse cx='40' cy='176' rx='12' ry='5' transform='rotate(-40 40 176)'/%3E%3Cellipse cx='80' cy='216' rx='12' ry='5' transform='rotate(40 80 216)'/%3E%3Cellipse cx='60' cy='128' rx='6' ry='12' transform='rotate(10 60 128)'/%3E%3C/g%3E%3Cg transform='translate(80,58)'%3E%3Ccircle cx='0' cy='-8' r='6' fill='%23e0a284'/%3E%3Ccircle cx='8' cy='-2' r='6' fill='%23e0a284'/%3E%3Ccircle cx='5' cy='7' r='6' fill='%23e0a284'/%3E%3Ccircle cx='-5' cy='7' r='6' fill='%23e0a284'/%3E%3Ccircle cx='-8' cy='-2' r='6' fill='%23e0a284'/%3E%3Ccircle r='4.5' fill='%23e8c07d'/%3E%3C/g%3E%3Cg transform='translate(40,202)'%3E%3Ccircle cx='0' cy='-8' r='6' fill='%23e0a284'/%3E%3Ccircle cx='8' cy='-2' r='6' fill='%23e0a284'/%3E%3Ccircle cx='5' cy='7' r='6' fill='%23e0a284'/%3E%3Ccircle cx='-5' cy='7' r='6' fill='%23e0a284'/%3E%3Ccircle cx='-8' cy='-2' r='6' fill='%23e0a284'/%3E%3Ccircle r='4.5' fill='%23e8c07d'/%3E%3C/g%3E%3C/svg%3E");
}
body::before { left: 0; }
body::after { right: 0; transform: scaleX(-1); }
@media (max-width: 1180px) { body::before, body::after { display: none; } }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .brand { font-family: "Fraunces", Georgia, serif; font-weight: 500; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.4rem; font-weight: 600; text-decoration: none; color: var(--text); letter-spacing: -0.3px; }
.logo-mark { display: block; filter: drop-shadow(0 2px 5px rgba(123, 165, 145, 0.3)); }
.brand-name { line-height: 1; }

/* Side-drawer navigation (all screen sizes) */
.nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(300px, 82vw);
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  background: var(--surface); border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(93, 78, 55, 0.12);
  padding: 84px 18px 24px;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  z-index: 30;
}
.nav.open { transform: translateX(0); }
.nav-btn {
  background: transparent; border: none; color: var(--muted); text-decoration: none; text-align: left;
  font-family: inherit; font-size: 1rem; font-weight: 500; padding: 13px 16px;
  border-radius: 12px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.nav-btn:hover { color: var(--text); background: var(--surface-2); }
.nav-btn.active { color: var(--sage-deep); background: var(--sage-soft); }

/* Dimmed backdrop behind the open drawer */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(58, 46, 34, 0.32);
  opacity: 0; pointer-events: none; transition: opacity 0.28s; z-index: 20;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* Sections (single-page scroll) */
.section { padding: 56px 0; scroll-margin-top: 84px; }
.section + .section { border-top: 1px solid var(--line); }
#home { padding-top: 40px; }

h1 { font-size: 3rem; line-height: 1.08; margin: 0 0 18px; letter-spacing: -1px; font-weight: 500; }
h2 { font-size: 2.1rem; margin: 0 0 8px; letter-spacing: -0.5px; }
.hl { color: var(--sage-deep); font-style: italic; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 660px; }
.sub { color: var(--muted); margin: 0 0 26px; }

/* Hero */
.hero { padding: 40px 0 14px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-family: inherit; font-size: 1rem; font-weight: 600; padding: 14px 26px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s, filter 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--sage); color: #fff; box-shadow: 0 6px 18px rgba(123, 165, 145, 0.35); }
.btn.primary:hover { filter: brightness(1.04); box-shadow: 0 10px 24px rgba(123, 165, 145, 0.42); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 54px; }
.card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-ico {
  font-size: 1.5rem; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--sage-soft); border-radius: 16px; margin-bottom: 14px;
}
.card:nth-child(2) .card-ico { background: var(--clay-soft); }
.card:nth-child(3) .card-ico { background: var(--gold-soft); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Panels & forms */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-soft);
}
.panel.narrow { max-width: 480px; display: flex; flex-direction: column; gap: 18px; }

/* Centered page (contact) */
.center-page { text-align: center; }
.center-page .panel { margin-left: auto; margin-right: auto; text-align: left; }
.center-page .sub { margin-left: auto; margin-right: auto; max-width: 560px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; align-items: start; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: 0.92rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
input, select, textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 13px 15px; border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #b7ac9e; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b746e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px;
}

/* Custom dropdown (replaces the native select popup so it matches the site) */
.dd { position: relative; }
.dd-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dd-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 13px 15px; border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  cursor: pointer; text-align: left; transition: border-color 0.2s, box-shadow 0.2s;
}
.dd-toggle:hover { border-color: var(--sage); }
.dd.open .dd-toggle, .dd-toggle:focus-visible { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-caret { color: var(--muted); font-size: 1.15rem; line-height: 1; transform: rotate(90deg); transition: transform 0.22s ease; }
.dd.open .dd-caret { transform: rotate(-90deg); color: var(--sage-deep); }
.dd-menu {
  list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); max-height: 264px; overflow: auto;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.dd.open .dd-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dd-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-size: 0.96rem; color: var(--text); cursor: pointer;
}
.dd-option.hi { background: var(--surface-2); }
.dd-option:hover { background: var(--sage-soft); }
.dd-option.sel { color: var(--sage-deep); font-weight: 600; }
.dd-option.sel::after { content: "✓"; color: var(--sage-deep); font-weight: 700; }
.dd-option[aria-disabled="true"] { color: var(--muted); opacity: 0.65; cursor: default; }
@media (prefers-reduced-motion: reduce) { .dd-menu, .dd-caret { transition: none; } }
.search { width: 100%; margin-bottom: 20px; }

/* Result */
.result {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft);
}
.result.hidden, .hidden { display: none; }
.result h3 { margin-top: 0; font-size: 1.3rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.stat {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; text-align: center;
}
.stat .num { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 600; color: var(--sage-deep); }
.stat .lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.verdict {
  padding: 16px 20px; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 10px;
  font-size: 1.05rem;
}
.verdict.ready { background: var(--sage-soft); border: 1px solid var(--sage); color: var(--sage-deep); }
.verdict.soon { background: var(--gold-soft); border: 1px solid var(--gold); color: #a5792e; }
.verdict.work { background: var(--danger-soft); border: 1px solid var(--danger); color: #b5604f; }
.tips { margin: 14px 0 0; padding-left: 22px; color: var(--muted); }
.tips li { margin-bottom: 8px; }

/* Badge */
.badge {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem; font-weight: 600; background: var(--sage-soft); color: var(--sage-deep);
  border: 1px solid transparent; padding: 4px 11px; border-radius: 999px; vertical-align: middle;
}

/* Progress */
.progress-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.progress-bar { flex: 1; height: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--sage), var(--sage-deep)); border-radius: 999px; transition: width 0.4s ease; }
.progress-label { font-size: 0.86rem; color: var(--muted); white-space: nowrap; font-weight: 500; }

/* Journey */
.journey { display: flex; flex-direction: column; gap: 14px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.phase-head { padding: 20px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phase-head h3 { margin: 0; font-size: 1.15rem; }
.phase-head .caret { color: var(--muted); transition: transform 0.25s; display: inline-block; }
.phase.open .caret { transform: rotate(90deg); }
.phase-body { display: none; padding: 0 22px 18px; }
.phase.open .phase-body { display: block; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.step input { margin-top: 2px; width: 20px; height: 20px; accent-color: var(--sage); flex-shrink: 0; }
.step label { font-weight: 500; font-size: 0.98rem; cursor: pointer; }
.step .desc { display: block; color: var(--muted); font-size: 0.86rem; font-weight: 400; margin-top: 2px; }
.step-main { flex: 1; min-width: 0; }
/* "Learn more" resources under a journey step (collapsed by default) */
.step-res { margin-top: 10px; }
.res-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; padding: 0; cursor: pointer; color: var(--sage-deep); font: 600 0.85rem/1.2 "Inter", sans-serif; }
.res-toggle:hover { text-decoration: underline; }
.res-caret { transition: transform 0.2s ease; }
.step-res.open .res-caret { transform: rotate(90deg); }
.res-panel { display: none; margin-top: 10px; }
.step-res.open .res-panel { display: flex; flex-direction: column; gap: 8px; }
.res-link { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; text-align: left; text-decoration: none; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font: 500 0.9rem/1.3 "Inter", sans-serif; color: var(--text); transition: background 0.15s, border-color 0.15s; }
.res-link:hover { background: var(--sage-soft); border-color: var(--sage); }
.res-ic { flex-shrink: 0; }
.res-t { font-weight: 600; flex: 1; }
.res-m { color: var(--muted); font-weight: 500; font-size: 0.8rem; white-space: nowrap; }
.res-video .res-ic { color: var(--clay); }
.res-embed:not(:empty) { margin-top: 8px; }
.res-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; display: block; }
.res-video.playing .res-play { display: none; }
/* On-site explainer text (keeps people on the site) */
.res-body { display: none; }
.res-item.open .res-body { display: block; margin-top: 8px; }
.res-body-inner { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 17px; font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.res-body-inner p { margin: 0 0 10px; }
.res-body-inner p:last-child { margin-bottom: 0; }
.res-src { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.res-src a { color: var(--sage-deep); font-weight: 600; font-size: 0.82rem; text-decoration: none; }
.res-src a:hover { text-decoration: underline; }
.res-read.open > .res-open .res-ic { transform: none; }
.step.done label { color: var(--muted); text-decoration: line-through; }

/* Glossary */
.glossary { display: flex; flex-direction: column; gap: 12px; }
.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-soft); }
.term-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.term-head .caret { color: var(--muted); transition: transform 0.25s; flex-shrink: 0; }
.term.open .term-head .caret { transform: rotate(90deg); }
.term h4 { font-family: "Fraunces", serif; margin: 0; color: var(--sage-deep); font-size: 1.1rem; font-weight: 600; }
.term p { margin: 6px 0 0; color: var(--muted); font-size: 0.94rem; }
.term-ext { display: none; margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.term.open .term-ext { display: block; }

/* Glossary: learned progress, category chips, "mark as learned" */
.gloss-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.gloss-progress .bar { flex: 0 0 160px; height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.gloss-progress .bar > i { display: block; height: 100%; background: var(--sage); width: 0; transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
.gloss-progress strong { color: var(--sage-deep); }
.gloss-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.gloss-chip { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 15px; border-radius: 999px; font: 600 0.88rem/1 "Inter", sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.gloss-chip:hover { border-color: var(--sage); color: var(--text); }
.gloss-chip.active { background: var(--sage); border-color: var(--sage); color: #fff; }
.term.learned .term-head h4::after { content: " 🎓"; font-size: 0.85em; }
.term-learn { display: none; margin-top: 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 999px; font: 600 0.85rem/1 "Inter", sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.term.open .term-learn { display: inline-block; }
.term-learn:hover { border-color: var(--sage); color: var(--sage-deep); }
.term.learned .term-learn { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-deep); }

/* Resource links (glossary-style, clickable) */
.res {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-soft);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.res:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sage); }
.res h4 { font-family: "Fraunces", serif; margin: 0 0 5px; color: var(--sage-deep); font-size: 1.1rem; font-weight: 600; }
.res p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Tool titles inside grouped sections */
.tool-title { font-size: 1.35rem; margin: 0 0 16px; }

/* Mobile nav toggle */
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: transparent;
  border: none; cursor: pointer; padding: 8px; position: relative; z-index: 60;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Payment breakdown bars */
.breakdown { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.bd-row { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 12px; font-size: 0.9rem; }
.bd-track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bd-fill { height: 100%; border-radius: 999px; }
.bd-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bd-total .num { font-family: "Fraunces", serif; font-size: 1.9rem; font-weight: 600; color: var(--sage-deep); }

/* Savings ring */
.savings-flex { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring { flex-shrink: 0; }
.ring-track { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.ring-fill { fill: none; stroke: var(--sage); stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 0.6s ease; }
.ring-pct { font-family: "Fraunces", serif; font-size: 1.5rem; font-weight: 600; fill: var(--text); }
.savings-detail { flex: 1; min-width: 200px; }
.savings-detail p { margin: 0 0 8px; color: var(--muted); }
.savings-detail strong { color: var(--text); }
.savings-date { font-family: "Fraunces", serif; font-size: 1.4rem; color: var(--sage-deep); }

/* Reset link + celebration */
.btn-link { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px; }
.btn-link:hover { color: var(--danger); }
.celebrate { background: var(--sage-soft); border: 1px solid var(--sage); color: var(--sage-deep); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 18px; font-weight: 500; text-align: center; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-soft); }
.faq-q { padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 500; }
.faq-q .caret { color: var(--muted); transition: transform 0.25s; }
.faq-item.open .caret { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 20px 16px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* Learn: in-depth guides */
.guides { display: flex; flex-direction: column; gap: 12px; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); overflow: hidden; }
.guide-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.guide-ico { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem; background: var(--sage-soft); border-radius: 14px; }
.guide:nth-child(3n) .guide-ico { background: var(--clay-soft); }
.guide:nth-child(3n+1) .guide-ico { background: var(--gold-soft); }
.guide-intro { flex: 1; min-width: 0; }
.guide-intro h4 { font-family: "Fraunces", serif; margin: 0; color: var(--sage-deep); font-size: 1.12rem; font-weight: 600; }
.guide-sum { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.guide-meta { display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.guide-head .caret { flex-shrink: 0; color: var(--muted); transition: transform 0.25s; }
.guide.open .guide-head .caret { transform: rotate(90deg); }
.guide-body { display: none; padding: 0 22px 22px; color: var(--text); }
.guide.open .guide-body { display: block; animation: slideDown 0.28s ease; }
.guide-body h4 { font-family: "Fraunces", serif; color: var(--text); font-size: 1.02rem; margin: 20px 0 6px; }
.guide-body p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.guide-body ul { margin: 0 0 12px; padding-left: 22px; color: var(--muted); line-height: 1.55; }
.guide-body li { margin-bottom: 6px; }
.guide-body strong { color: var(--text); }
.guide-read { margin-top: 8px; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 14px; border-radius: 999px; font: 600 0.85rem/1 "Inter", sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.guide-read:hover { border-color: var(--sage); color: var(--sage-deep); }
.guide.read .guide-read { background: var(--sage-soft); border-color: var(--sage); color: var(--sage-deep); }
.guide.read .guide-intro h4::after { content: " ✓"; color: var(--sage-deep); font-size: 0.85em; }

/* Checklist reference sheet */
.checklist-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.print-btn { flex-shrink: 0; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.doc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-soft); break-inside: avoid;
}
.doc-card.tip-card { background: var(--sage-soft); border-color: var(--sage); }
.doc-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.doc-card ul { margin: 0; padding: 0; list-style: none; }
.doc-card li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; }
.doc-card li:first-of-type { border-top: none; }
.doc-card li::before { content: "🔑"; position: absolute; left: 0; top: 10px; font-size: 0.8rem; }
.doc-card.tip-card li::before { content: "✦"; color: var(--sage-deep); }
.d-name { display: block; font-weight: 500; font-size: 0.96rem; }
.d-desc { display: block; color: var(--muted); font-size: 0.84rem; margin-top: 1px; }

/* Legal pages (privacy / terms) */
.legal { max-width: 760px; }
.legal p { color: var(--text); margin: 0 0 14px; }
.legal h3 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal a { color: var(--sage-deep); }
.legal-list { margin: 0 0 14px; padding-left: 22px; color: var(--text); }
.legal-list li { margin-bottom: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; margin-top: 40px; }
.footer p { color: var(--muted); font-size: 0.85rem; margin: 0; text-align: center; }
.footer-links { margin-top: 8px !important; }
.footer-links a { color: var(--sage-deep); text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* ===== Animations & interaction feedback ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Page content eases in on load */
main .section { animation: fadeUp 0.4s ease both; }

/* Press feedback on clickable things */
.btn:active { transform: translateY(1px) scale(0.985); }
.card:active { transform: translateY(-1px) scale(0.99); }
.res:active { transform: translateY(0) scale(0.99); }
.nav-btn:active { transform: scale(0.97); }
.print-btn:active, .btn-link:active { transform: scale(0.95); }

/* Accordion headers: hover tint + press */
.phase-head, .faq-q, .term-head { transition: background 0.18s; border-radius: 8px; }
.phase-head:hover, .faq-q:hover, .term-head:hover { background: var(--surface-2); }
.phase-head:active, .faq-q:active, .term-head:active { transform: scale(0.995); }

/* Accordion content reveals with a soft slide */
.phase.open .phase-body,
.faq-item.open .faq-a,
.term.open .term-ext { animation: slideDown 0.28s ease; }

/* Results fade up when they appear */
.result { animation: fadeUp 0.4s ease; }

/* Payment breakdown bars grow in */
.bd-fill { transform-origin: left center; animation: growX 0.6s cubic-bezier(.2,.8,.2,1); }

/* Checkbox tick pops */
.step input:checked { animation: pop 0.28s ease; }
.step { transition: opacity 0.2s; }
.step label { transition: color 0.2s; }

/* Celebration banner pops in */
.celebrate:not(.hidden) { animation: pop 0.4s ease; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Gated pages: hide content for guests until auth resolves (auth.js redirects them). */
html.auth-gate body { visibility: hidden; }

/* ===== Combined home: guest vs member ===== */
.member-view { display: none; }
html.is-member .guest-view { display: none; }
html.is-member .member-view { display: block; }

.hero-hi { display: inline-block; background: var(--sage-soft); color: var(--sage-deep); font-weight: 600; font-size: 0.92rem; padding: 7px 16px; border-radius: 999px; margin: 0 0 18px; }
.card-cta { background: var(--sage-soft); border-color: var(--sage); }
.card-cta:hover { border-color: var(--sage-deep); }

/* ===== Dashboard ===== */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); text-align: center; margin-bottom: 18px; }
.dash-card h3 { margin: 0 0 14px; font-size: 1.2rem; }
.dash-card .ring { display: block; margin: 0 auto 12px; }
.dash-card .btn { margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dash-grid .dash-card { margin-bottom: 0; }
.dash-level { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
#dash-level { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.4rem; }
.dash-points { color: var(--sage-deep); font-weight: 600; }
.dash-xpbar { height: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.dash-xpbar > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--sage), var(--sage-deep)); border-radius: 999px; transition: width 0.5s ease; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 0.78rem; text-align: center; }
.badge-item.locked { opacity: 0.4; filter: grayscale(1); }
.badge-item.earned { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-deep); }
.badge-ic { font-size: 1.7rem; }
.dash-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Dashboard header / avatar / streak / next ===== */
.dash-id { display: flex; align-items: center; gap: 16px; }
.dash-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sage-soft); border: 2px solid var(--sage); flex-shrink: 0; }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar .av-emoji { font-size: 1.7rem; }
.dash-avatar .av-initial { font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 600; color: var(--sage-deep); }
.dash-avatar-lg { width: 84px; height: 84px; }
.dash-avatar-lg .av-emoji { font-size: 2.6rem; }
.dash-avatar-lg .av-initial { font-size: 2.4rem; }
.streak-chip { display: inline-block; background: var(--gold-soft); color: #a5792e; font-weight: 600; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; margin-top: 8px; }

.dash-next { display: block; text-decoration: none; background: linear-gradient(120deg, var(--sage-soft), var(--clay-soft)); border: 1px solid var(--sage); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 18px; transition: transform 0.15s, box-shadow 0.2s; }
.dash-next:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.next-label { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: 0.72rem; color: var(--sage-deep); font-weight: 700; margin-bottom: 4px; }
.dash-next strong { display: block; font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--text); }
.next-sub { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }

/* ===== Celebrations ===== */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 14px 24px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); z-index: 9500; opacity: 0; transition: opacity 0.35s, transform 0.35s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9400; }

/* ===== Role picker ===== */
.role-overlay { position: fixed; inset: 0; z-index: 9200; display: grid; place-items: center; background: rgba(58, 46, 34, 0.4); padding: 20px; animation: fadeUp 0.3s ease; }
.role-modal { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 34px; max-width: 520px; width: 100%; text-align: center; }
.role-modal h3 { font-family: "Fraunces", serif; font-size: 1.6rem; margin: 0 0 6px; }
.role-modal p { color: var(--muted); margin: 0 0 20px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.role-grid-sm { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.role-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 500; color: var(--text); transition: transform 0.12s, border-color 0.2s, background 0.2s; }
.role-opt:hover { transform: translateY(-2px); border-color: var(--sage); }
.role-opt.sel { border-color: var(--sage); background: var(--sage-soft); }
.role-ic { font-size: 1.7rem; }

/* ===== Settings ===== */
.set-card { text-align: left; }
.set-card label { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: 0.92rem; margin-bottom: 14px; }
.set-card .btn { margin-top: 4px; }
.set-avatar-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.set-avatar-choices { flex: 1; min-width: 220px; }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.avatar-opt { width: 46px; height: 46px; font-size: 1.5rem; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; cursor: pointer; transition: transform 0.12s, border-color 0.2s; }
.avatar-opt:hover { transform: translateY(-2px); }
.avatar-opt.sel { border-color: var(--sage); background: var(--sage-soft); }
.set-avatar-upload { border-top: 1px solid var(--line); padding-top: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.upload-btn { padding: 10px 18px; font-size: 0.92rem; cursor: pointer; }
.upload-hint { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.set-msg { padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 12px; }
.set-msg.ok { background: var(--sage-soft); border: 1px solid var(--sage); color: var(--sage-deep); }
.set-msg.err { background: var(--danger-soft); border: 1px solid var(--danger); color: #b5604f; }

/* ===== Dashboard spacing + animations ===== */
.dash-grid { gap: 26px; }
.member-view .dash-card, .member-view .dash-next { margin-bottom: 26px; }
.member-view .dash-grid .dash-card { margin-bottom: 0; }
.dash-head { margin-bottom: 32px; }
.member-view .dash-card { padding: 28px; }

/* Staggered entrance for each dashboard block */
html.is-member .member-view > * { animation: fadeUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html.is-member .member-view > *:nth-child(1) { animation-delay: 0.05s; }
html.is-member .member-view > *:nth-child(2) { animation-delay: 0.12s; }
html.is-member .member-view > *:nth-child(3) { animation-delay: 0.19s; }
html.is-member .member-view > *:nth-child(4) { animation-delay: 0.26s; }
html.is-member .member-view > *:nth-child(5) { animation-delay: 0.33s; }
html.is-member .member-view > *:nth-child(6) { animation-delay: 0.40s; }

/* Gradient accent bar + hover lift on each card */
.member-view .dash-card { position: relative; overflow: hidden; transition: transform 0.18s, box-shadow 0.25s; }
.member-view .dash-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--clay), var(--gold)); }
.member-view .dash-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Progress rings draw in from empty */
.member-view .ring-fill { animation: ringDraw 1.1s cubic-bezier(0.34, 0.8, 0.3, 1) forwards; }
@keyframes ringDraw { to { stroke-dashoffset: var(--off); } }

/* Badges pop in, staggered */
@keyframes badgeIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.member-view #dash-badges .badge-item { animation: badgeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.member-view #dash-badges .badge-item:nth-child(1) { animation-delay: 0.34s; }
.member-view #dash-badges .badge-item:nth-child(2) { animation-delay: 0.41s; }
.member-view #dash-badges .badge-item:nth-child(3) { animation-delay: 0.48s; }
.member-view #dash-badges .badge-item:nth-child(4) { animation-delay: 0.55s; }
.member-view #dash-badges .badge-item:nth-child(5) { animation-delay: 0.62s; }
.member-view #dash-badges .badge-item:nth-child(6) { animation-delay: 0.69s; }
.badge-item.earned { transition: transform 0.15s; }
.badge-item.earned:hover { transform: translateY(-3px) scale(1.05); }

/* XP bar shimmer */
.dash-xpbar > div { position: relative; overflow: hidden; }
.dash-xpbar > div::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-100%); animation: shimmer 2.4s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Danger / delete account */
.danger-card::before { background: linear-gradient(90deg, var(--danger), #d98d7f) !important; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }

/* ===== Guided tour ===== */
.tour-spot { position: relative; z-index: 8800; box-shadow: 0 0 0 4px var(--sage), 0 0 0 12px rgba(123, 165, 145, 0.25); border-radius: 16px; transition: box-shadow 0.3s; }
.tour-panel { position: fixed; z-index: 9000; right: 24px; bottom: 24px; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; animation: fadeUp 0.3s ease; }
.tour-panel h4 { font-family: "Fraunces", serif; font-size: 1.25rem; margin: 0 0 8px; }
.tour-panel p { color: var(--muted); margin: 0 0 16px; font-size: 0.95rem; }
.tour-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tour-dots i.on { background: var(--sage); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-actions .right { display: flex; gap: 8px; }
.tour-skip { background: none; border: none; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 0.85rem; text-decoration: underline; }
.tour-btn { font-family: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.tour-btn.primary { background: var(--sage); color: #fff; border-color: transparent; }
@media (max-width: 600px) {
  .tour-panel { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ===== Auth / login ===== */
.auth-card { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.auth-logo { font-size: 2rem; }
.auth-card h2 { margin: 0; }
.auth-card .sub { text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; color: #3a3532; border: 1px solid var(--line); font-weight: 600;
}
.btn-google:hover { background: #f7f2ea; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-error { background: var(--danger-soft); border: 1px solid var(--danger); color: #b5604f; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; }
.auth-alt { color: var(--muted); font-size: 0.9rem; margin: 0; }
.auth-alt a { color: var(--sage-deep); font-weight: 600; }
.auth-nav { color: var(--sage-deep) !important; }

/* ===== Entrance intro (home page) ===== */
body.intro-lock { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background:
    radial-gradient(700px 520px at 50% 42%, var(--sage-soft), transparent 70%),
    radial-gradient(500px 400px at 15% 85%, var(--clay-soft), transparent 60%),
    var(--bg);
  clip-path: circle(150% at 50% 55%);
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.intro.hide { clip-path: circle(0% at 50% 55%); }
.intro-inner { text-align: center; transition: transform 0.6s ease, opacity 0.6s ease; }
.intro.hide .intro-inner { transform: scale(0.9); opacity: 0; }
.intro-logo { width: 132px; height: 132px; display: block; margin: 0 auto 22px; filter: drop-shadow(0 12px 30px rgba(123,165,145,0.35)); }

.intro-ring { transform-origin: 60px 60px; animation: introRing 2.4s ease-out infinite; }
@keyframes introRing { 0% { transform: scale(0.65); opacity: 0.6; } 70% { opacity: 0; } 100% { transform: scale(1.3); opacity: 0; } }

.intro-house {
  fill: var(--sage); fill-opacity: 0; stroke: var(--sage); stroke-width: 4;
  stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 330; stroke-dashoffset: 330;
  animation: introDraw 0.9s ease forwards, introFill 0.5s ease forwards 0.8s;
}
@keyframes introDraw { to { stroke-dashoffset: 0; } }
@keyframes introFill { to { fill-opacity: 1; } }

.intro-key { transform-origin: 60px 62px; transform: rotate(-130deg) scale(0); animation: introKey 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.05s; }
@keyframes introKey { to { transform: rotate(0) scale(1); } }

.intro-word { font-family: "Fraunces", serif; font-weight: 600; font-size: 2.7rem; letter-spacing: -1px; color: var(--text); display: flex; justify-content: center; }
.intro-word span { display: inline-block; opacity: 0; transform: translateY(16px); animation: introRise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes introRise { to { opacity: 1; transform: none; } }
.intro-tag { margin-top: 10px; color: var(--muted); font-size: 1.02rem; opacity: 0; animation: introRise 0.6s ease forwards 1.95s; }
.intro-skip { position: fixed; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.5px; opacity: 0; animation: introRise 0.6s ease forwards 2.3s; }

/* Responsive */
@media (max-width: 760px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .cards, .grid, .stat-row { grid-template-columns: 1fr; }
  .topbar .wrap { height: 60px; }
  .bd-row { grid-template-columns: 100px 1fr 80px; font-size: 0.82rem; }
}

/* Print: clean the checklist for paper / PDF */
@media print {
  .topbar, .footer, .print-btn, body::before, body::after { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .doc-card { box-shadow: none; border-color: #ccc; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
  /* On the Journey page, print only the document checklist, not the journey steps. */
  .journey-section { display: none !important; }
  .doc-section { border-top: none !important; }
}
