/* ============================================================
   ASB concept landing — design system
   Palette: ASB yellow #FCBD1B, ink #262626, accent blue #0064AC,
   neutrals from the real asb.co.nz CSS (#F0F1F3 / #F6F7FB family)
   ============================================================ */

:root {
  --yellow: #FCBD1B;
  --yellow-soft: #FBD350;
  --yellow-wash: #FFF4D6;
  --ink: #262626;
  --ink-soft: #565656;
  --ink-faint: #6e7178;
  --blue: #0064AC;
  --paper: #ffffff;
  --tint: #f6f7f9;
  --line: #e4e6ea;
  --dark: #1d1d1f;
  --dark-card: #2a2a2d;
  --cream: #f5f2ea;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(26,26,28,.05), 0 8px 28px rgba(26,26,28,.07);
  --shadow-pop: 0 2px 6px rgba(26,26,28,.08), 0 18px 48px rgba(26,26,28,.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lbl { color: var(--ink-soft); font-size: .8rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { border-radius: 10px; box-shadow: var(--shadow); }
.brand-tag { font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 999px; transition: background .18s ease;
}
.main-nav a:hover { background: var(--yellow-wash); }
.main-nav a.is-active { background: var(--yellow); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.explorer-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--tint); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  transition: all .25s ease;
}
.explorer-pill.is-bump { background: var(--yellow); color: var(--ink); transform: scale(1.06); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-login { background: var(--ink); color: #fff; padding: 9px 18px; font-size: .88rem; }
.btn-login:hover { background: #000; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--yellow-soft); box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .85rem; background: var(--tint); border-color: var(--line); color: var(--ink); }
.btn-small:hover { background: var(--yellow-wash); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 12px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -10%, var(--yellow-wash), transparent 60%),
    linear-gradient(180deg, #fffdf6 0%, var(--paper) 70%);
  padding: 72px 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 72px; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em;
  margin: 14px 0 20px; font-weight: 850;
}
.hl {
  background: linear-gradient(180deg, transparent 62%, var(--yellow) 62%, var(--yellow) 94%, transparent 94%);
  padding: 0 .08em;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; margin: 0; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 1.9rem; display: block; }
.hero-stats .stat dd { margin: 2px 0 0; font-size: .82rem; color: var(--ink-soft); max-width: 12rem; }

.hero-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.board-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.pulse-card { grid-column: 1 / -1; padding: 18px 18px 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-title { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.chip {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--tint); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.chip-live { display: inline-flex; align-items: center; gap: 6px; color: #1e7a38; border-color: #cde8d4; background: #effaf1; }
.chip-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e4f; animation: blink 1.6s ease-in-out infinite; }
.chip-tool { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.pulse-chart { width: 100%; height: auto; display: block; }
.pulse-meta { display: flex; gap: 28px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pulse-meta .num { font-size: 1.35rem; display: block; }
.photo-card { position: relative; }
.photo-card img { height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.photo-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; font-size: .74rem; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
}
.mini-card { padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 2px; background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-card .mini-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.mini-card .num { font-size: 1.7rem; color: var(--yellow); }
.mini-card .lbl { color: #b9bac0; }

.hero-marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper); overflow: hidden; padding: 14px 0;
}
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-weight: 800; font-size: .95rem; letter-spacing: .02em; white-space: nowrap; }
.marquee-track i { color: var(--yellow); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: var(--cream); }
.section-dark .section-lede, .section-dark .kicker { color: #c9c6bc; }
.section-head { max-width: 46rem; margin-bottom: 44px; }
.kicker {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 10px;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 14px; font-weight: 830; }
.section-lede { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-goal { grid-template-columns: 1.5fr 1fr; align-items: start; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.section-dark .card { background: var(--dark-card); border-color: #3a3a3e; color: var(--cream); }
.card-text { color: var(--ink-soft); margin: 0 0 16px; font-size: .95rem; }
.section-dark .card-text { color: #c9c6bc; }
.card-note { font-size: .78rem; color: var(--ink-faint); margin: 14px 0 0; }
.section-dark .card-note { color: #9a978e; }
.card-icon { flex-shrink: 0; }

.tick-list { list-style: none; margin: 0 0 16px; padding: 0; }
.tick-list li { position: relative; padding: 7px 0 7px 30px; font-size: .93rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--yellow);
  -webkit-mask: none;
}
.tick-list li::after {
  content: ""; position: absolute; left: 5px; top: 13px; width: 8px; height: 5px;
  border-left: 2.4px solid var(--ink); border-bottom: 2.4px solid var(--ink);
  transform: rotate(-45deg);
}
.text-link { font-weight: 700; text-decoration: none; color: var(--blue); }
.text-link:hover { text-decoration: underline; }

/* ---------- sliders & chips ---------- */
.slider-row { display: block; margin-bottom: 18px; }
.slider-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: .88rem; font-weight: 600; margin-bottom: 8px;
}
.slider-label output { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px;
  background: transparent; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow) var(--fill, 50%), var(--line) var(--fill, 50%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px;
  border-radius: 50%; background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.3); transition: transform .15s ease;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow) var(--fill, 50%), var(--line) var(--fill, 50%));
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.3);
}

.chip-row, .stc-controls, .rate-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-btn {
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: .88rem; cursor: pointer; font-family: inherit;
  transition: all .18s ease;
}
.section-dark .chip-btn { background: var(--dark); border-color: #44454a; color: var(--cream); }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-on { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.section-dark .chip-btn.is-on { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Save the Change ---------- */
.stc-list { list-style: none; margin: 0 0 14px; padding: 0; }
.stc-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; font-size: .88rem; background: var(--tint);
}
.stc-list .stc-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.stc-list .stc-roundup { color: #1e7a38; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
.stc-jar {
  position: relative; height: 64px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid var(--ink); background: var(--yellow-wash);
  display: flex; align-items: center; justify-content: center;
}
.stc-jar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--yellow); transition: width .5s cubic-bezier(.22,.8,.3,1);
}
.stc-jar-num { position: relative; z-index: 1; font-size: 1.25rem; }

/* ---------- charts ---------- */
.bar-chart, .line-chart { width: 100%; height: auto; display: block; }
.axis-label { font-size: 10.5px; fill: var(--ink-faint); font-family: var(--font); }
.axis-value { font-size: 11px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.section-dark .axis-label { fill: #9a978e; }
.section-dark .axis-value { fill: var(--cream); }
.grid-line { stroke: var(--line); stroke-width: 1; }
.section-dark .grid-line { stroke: #3a3a3e; }

/* ---------- paycheque flow ---------- */
.flow-card { margin-top: 20px; }
.flow-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.alloc-row { margin-bottom: 14px; }
.alloc-row .slider-label { margin-bottom: 4px; }
.alloc-row input[type="range"] { height: 28px; }
.flow-leftover { font-size: .86rem; font-weight: 700; margin: 10px 0 0; }
.flow-leftover.warn { color: #b3261e; }
.flow-leftover.ok { color: #1e7a38; }

/* ---------- KPIs ---------- */
.kpi-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kpi {
  flex: 1; min-width: 120px; background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.section-dark .kpi { background: var(--dark); border-color: #44454a; }
.kpi .num { font-size: 1.4rem; display: block; }
.kpi .lbl { font-size: .76rem; }
.section-dark .kpi .lbl { color: #9a978e; }

/* ---------- journey ---------- */
.journey { margin-top: 56px; position: relative; }
.journey h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 26px; }
.journey-rail {
  position: absolute; left: 21px; top: 90px; bottom: 12px; width: 4px;
  background: var(--line); border-radius: 4px;
}
.journey-fill { width: 100%; height: 0%; background: var(--yellow); border-radius: 4px; transition: height .3s ease; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.journey-step {
  position: relative; padding: 18px 22px 18px 64px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.journey-step .j-badge {
  position: absolute; left: 12px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); font-weight: 800;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.journey-step h4 { margin: 0 0 4px; font-size: 1.02rem; }
.journey-step p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
@media (min-width: 860px) {
  .journey-steps { grid-template-columns: repeat(5, 1fr); }
  .journey-rail { left: 0; right: 0; top: 33px; bottom: auto; width: auto; height: 4px; }
  .journey-fill { height: 100%; width: 0%; transition: width .3s ease; }
  .journey-step { padding: 60px 16px 16px; }
  .journey-step .j-badge { left: 14px; top: 12px; }
}

/* ---------- goal projector ---------- */
.goal-verdict {
  margin-top: 12px; font-weight: 700; font-size: .95rem;
  background: var(--yellow-wash); border: 1px solid var(--yellow);
  padding: 10px 16px; border-radius: var(--radius-sm);
}
.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table th, .mini-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.mini-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.mini-table td:nth-child(2) { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- KiwiSaver facts ---------- */
.ks-facts { margin-top: 20px; }
.fact {
  background: var(--dark-card); border: 1px solid #3a3a3e; border-radius: var(--radius); padding: 22px;
}
.fact .num { font-size: 1.9rem; color: var(--yellow); display: block; margin-bottom: 8px; }
.fact p { margin: 0; color: #c9c6bc; font-size: .92rem; }

/* ---------- business ---------- */
.biz-card h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.biz-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.biz-strip {
  margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap;
  background: var(--ink); border-radius: var(--radius); padding: 22px 26px; color: #fff;
}
.biz-stat { flex: 1; min-width: 160px; }
.biz-stat .num { font-size: 1.8rem; color: var(--yellow); display: block; }
.biz-stat .lbl { color: #b9bac0; font-size: .8rem; }

/* ---------- quest ---------- */
.quest-card { max-width: 760px; margin: 0 auto; padding: 36px; }
.quest-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.q-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: background .25s ease; flex-shrink: 0; }
.q-dot.is-on { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-wash); }
.q-line { flex: 1; height: 3px; background: var(--line); border-radius: 3px; }
.quest-q { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; }
.quest-opts { display: grid; gap: 12px; }
.quest-opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--paper); font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit;
  color: var(--ink); transition: all .16s ease; min-height: 56px;
}
.quest-opt:hover { border-color: var(--ink); background: var(--yellow-wash); transform: translateX(4px); }
.quest-opt .q-emoji { font-size: 1.4rem; }
.quest-result { text-align: left; }
.quest-result .q-badge {
  display: inline-block; background: var(--yellow); font-weight: 800; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.quest-result h3 { font-size: 1.5rem; margin: 0 0 10px; letter-spacing: -0.02em; }
.quest-result p { color: var(--ink-soft); margin: 0 0 18px; }
.quest-again { margin-top: 18px; }

/* ---------- shield ---------- */
.shield-card { display: grid; gap: 18px; }
#shield-svg { width: 100%; max-width: 300px; margin: 0 auto; display: block; }
.shield-layer { cursor: pointer; transition: opacity .2s ease; }
.shield-layer path { transition: filter .2s ease; }
.shield-layer:hover path, .shield-layer:focus-visible path { filter: brightness(1.08); }
.shield-layer.is-on path { filter: drop-shadow(0 0 8px rgba(252,189,27,.7)); }
.shield-readout { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.shield-readout h3 { margin: 0 0 6px; font-size: 1.05rem; }
.shield-readout p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.scam-meter { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.scam-verdict { font-weight: 700; font-size: .92rem; margin: 6px 0 0; }
.scam-verdict.danger { color: #b3261e; }
.scam-verdict.caution { color: #8a5a00; }
.scam-verdict.safe { color: #1e7a38; }

/* ---------- help ---------- */
.help-grid { grid-template-columns: repeat(4, 1fr); }
.help-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none;
  background: var(--dark-card); border: 1px solid #3a3a3e; border-radius: var(--radius);
  padding: 24px; transition: all .18s ease;
}
.help-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.help-num { font-size: 1.3rem; font-weight: 800; color: var(--yellow); letter-spacing: -0.01em; }
.help-lbl { color: #c9c6bc; font-size: .86rem; }

/* ---------- footer ---------- */
.site-footer { background: #141415; color: #b9bac0; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { font-size: .9rem; margin: 14px 0 0; max-width: 20rem; }
.footer-col h3 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.footer-col a { display: block; color: #b9bac0; text-decoration: none; font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--yellow); }
.footer-legal { border-top: 1px solid #2c2c2f; padding-top: 20px; padding-bottom: 24px; }
.footer-legal p { font-size: .78rem; margin: 0; color: #7d7e85; }

/* ---------- toasts ---------- */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 18px;
  box-shadow: var(--shadow-pop); max-width: 320px;
  animation: toast-in .35s cubic-bezier(.2,.9,.3,1.2);
  font-size: .9rem;
}
.toast .t-star { color: var(--yellow); flex-shrink: 0; }
.toast strong { color: var(--yellow); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all .3s ease; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; }
  .grid-goal { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 20px 18px; gap: 2px;
    box-shadow: var(--shadow-pop);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; min-height: 44px; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .main-nav { margin-left: 0; }
  .explorer-pill { display: none; }
  .section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .quest-card { padding: 22px; }
  .kpi-row .kpi { min-width: calc(50% - 8px); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-tag { display: none; }
  .toast-stack { left: 14px; right: 14px; }
  .toast { max-width: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
