/* ===================== TOKENS ===================== */
/* Palette matches the Heritage Accounts brand mark: deep forest green,
   warm cream paper, brass gold, and copper/terracotta accents. */
:root {
  --ink: #1B3A2C;
  --ink-deep: #12281E;
  --paper: #F6F1E4;
  --surface: #FFFFFF;
  --surface-dark: #20402F;
  --line: #E7DFC9;
  --line-dark: rgba(255,255,255,0.14);
  --gold: #C69A2E;
  --growth: #2FBE82;
  --indigo: #3654A6;
  --copper: #B36A45;

  --text-on-paper: #201F19;
  --text-muted: #6E6858;
  --text-on-ink: #F5F1E6;
  --text-on-ink-muted: #ABB6A9;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(16,19,28,0.04), 0 12px 32px -12px rgba(16,19,28,0.14);
  --shadow-lift: 0 1px 2px rgba(16,19,28,0.05), 0 24px 48px -16px rgba(16,19,28,0.22);
  --max-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.kente-strip {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--gold) 0% 25%,
    var(--copper) 25% 50%,
    var(--growth) 50% 75%,
    var(--indigo) 75% 100%
  );
}

/* ===================== REVEAL / MOTION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(247,245,240,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.nav-brand span { color: var(--copper); }
.nav-brand-mark { width: 22px; height: auto; flex-shrink: 0; }
.nav-links {
  display: none;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-paper);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-inner .nav-cta { display: none; }

.nav-toggle {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 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); }

.nav-links-mobile {
  display: none;
  flex-direction: column;
  padding: 0 24px 20px;
  gap: 4px;
}
.nav-links-mobile.open { display: flex; }
.nav-links-mobile a {
  text-decoration: none;
  color: var(--text-on-paper);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-inner .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-links-mobile.open { display: none; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { box-shadow: 0 8px 20px -6px rgba(198,154,46,0.55); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }
.btn-large { padding: 18px 32px; font-size: 1.05rem; width: 100%; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-bg-slide.is-active { opacity: 1; }
.hero-bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,40,30,0.66) 0%, rgba(18,40,30,0.6) 45%, rgba(15,33,25,0.8) 100%),
    linear-gradient(100deg, rgba(15,33,25,0.4) 0%, rgba(15,33,25,0.05) 55%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { transition: none; }
}
.kente-strip, .hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 80px;
}
.audience-toggle {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 28px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.audience-toggle::-webkit-scrollbar { display: none; }
.audience-toggle-label {
  font-size: 0.72rem;
  color: var(--text-on-ink-muted);
  padding: 0 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.audience-toggle button {
  background: transparent;
  border: none;
  color: var(--text-on-ink-muted);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.audience-toggle button[aria-checked="true"] {
  background: var(--gold);
  color: var(--ink);
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 20px;
  min-height: 2.2em;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-on-ink-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-disclaimer {
  margin-top: 28px;
  font-size: 0.78rem;
  color: var(--text-on-ink-muted);
}
.hero-disclaimer a { color: var(--text-on-ink); text-decoration: underline; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.card-stage {
  position: relative;
  width: min(480px, 100%);
}
.hero-card {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.hero-card-photo {
  aspect-ratio: 1600 / 933;
}
.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45)) drop-shadow(0 6px 12px rgba(0,0,0,0.3));
}
.card-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28px;
  height: 40px;
  background: radial-gradient(closest-side, rgba(0,0,0,0.45), transparent 75%);
  filter: blur(6px);
  z-index: -1;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* ===================== SECTIONS ===================== */
.section-paper { background: var(--paper); color: var(--text-on-paper); }
.section-ink { background: var(--ink); color: var(--text-on-ink); }

.points-logo { width: 200px; height: auto; margin-bottom: 32px; }

.section-heading {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  max-width: 20ch;
  margin-bottom: 56px;
}
.section-heading-light { color: var(--text-on-ink); }
.section-sub { color: var(--text-muted); margin-top: -36px; margin-bottom: 40px; max-width: 50ch; }
.section-sub-light { color: var(--text-on-ink-muted); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.section-ink .card,
.glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  color: var(--text-on-ink);
}

/* ===================== FEATURE GRID (section 2) ===================== */
.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.feature-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.feature-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.feature-card-body { padding: 24px 28px 28px; }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); margin: 0; }
.clarifying-line {
  margin-top: 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .feature-grid { gap: 14px; }
  .feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-left: 4px solid var(--gold);
  }
  .feature-grid .feature-card:nth-child(2) { border-left-color: var(--copper); }
  .feature-grid .feature-card:nth-child(3) { border-left-color: var(--growth); }
  .feature-card-img {
    width: 76px;
    height: 76px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }
  .feature-card-body { padding: 0; }
  .feature-card h3 { font-size: 0.95rem; margin-bottom: 3px; }
  .feature-card p { font-size: 0.8rem; line-height: 1.4; }
}

/* ===================== OWNERSHIP LAYER (section 2.5) ===================== */
.ownership-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.ownership-step { padding: 26px; flex: 1; }
.ownership-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(198,154,46,0.14);
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.ownership-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ownership-step p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.ownership-flow-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--line);
  font-size: 1.3rem;
}

@media (min-width: 900px) {
  .ownership-flow { flex-direction: row; align-items: stretch; }
  .ownership-flow-arrow { display: flex; }
}

.ownership-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}
.ownership-card { padding: 32px; }
.ownership-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.ownership-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0 0 16px; line-height: 1.6; }
.ownership-card p:last-child { margin-bottom: 0; }
.ownership-callout {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  background: rgba(179,106,69,0.1);
  border-radius: 999px;
  padding: 6px 14px;
}
.ownership-example {
  font-size: 0.82rem !important;
  color: var(--text-muted);
  opacity: 0.85;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px !important;
}

@media (min-width: 900px) {
  .ownership-grid { grid-template-columns: 1fr 1fr; }
}

.ownership-honesty {
  position: relative;
  padding: 32px;
  margin-bottom: 28px;
  background: rgba(179,106,69,0.05);
  border: 1px solid rgba(179,106,69,0.3);
  overflow: hidden;
}
.ownership-honesty::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--copper);
}
.ownership-honesty-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.ownership-honesty h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-bottom: 12px; }
.ownership-honesty p { color: var(--text-on-paper); font-size: 0.95rem; margin: 0; line-height: 1.65; max-width: 80ch; }

.ownership-investor-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  max-width: 80ch;
}

/* ===================== GROW ACCOUNT / CALCULATOR (section 3) ===================== */
.grow-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
.grow-copy p { color: var(--text-muted); font-size: 1.05rem; }
.grow-copy p:first-child { margin-top: 0; }
.calculator {
  position: relative;
  padding: 22px 26px;
  overflow: hidden;
}
.calculator::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--copper));
}
.calc-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.calc-inputs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.calc-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.calc-field label { font-weight: 600; font-size: 0.85rem; }
.calc-field output {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  margin-top: -0.5px;
}
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--surface);
  cursor: pointer;
}
.calc-field-inline label { display: block; margin-bottom: 6px; font-size: 0.85rem; }
.calc-seed-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 160px;
}
.calc-currency {
  padding: 8px 10px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.calc-seed-wrap input {
  border: none;
  padding: 8px 10px;
  font-family: var(--font-mono);
  width: 100%;
  font-size: 0.9rem;
}
.calc-seed-wrap input:focus { outline: none; }
.calc-assumption {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.calc-output { border-top: 1px solid var(--line); padding-top: 18px; }
.calc-projection { display: flex; flex-direction: column; margin-bottom: 12px; }
.calc-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.calc-amount { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 600; color: var(--growth); }
.calc-projection-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.dash-chart { width: 100%; height: auto; overflow: visible; }
.chart-wrap { margin-bottom: 20px; }
.chart-path {
  fill: none;
  stroke: var(--growth);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area { fill: rgba(47,190,130,0.12); stroke: none; }
.chart-path-mini { stroke: var(--gold); stroke-width: 2.5; }
.chart-area-mini { fill: rgba(198,154,46,0.14); }

.calc-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 14px;
}
.calc-bar-contributed { height: 100%; background: var(--ink); transition: width 0.4s ease; }
.calc-bar-growth { height: 100%; background: var(--growth); transition: width 0.4s ease; }

.calc-breakdown { display: flex; flex-wrap: wrap; gap: 20px; }
.calc-breakdown-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.calc-breakdown-item strong { color: var(--text-on-paper); font-weight: 600; }
.calc-multiplier { margin: 14px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.calc-multiplier strong { color: var(--copper); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ink { background: var(--ink); }
.dot-growth { background: var(--growth); }

.calc-ownership-toggle { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-ownership-toggle .lock-toggle { color: var(--text-on-paper); font-size: 0.85rem; font-weight: 600; justify-content: space-between; }
.switch-light[aria-checked="false"] { background: var(--line); }

.calc-ownership-output { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.calc-ownership-split { font-size: 0.88rem; color: var(--text-on-paper); margin: 0 0 14px; line-height: 1.6; }
.calc-ownership-savings { color: var(--ink); }
.calc-ownership-stake { color: var(--copper); }
.calc-ownership-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 8px;
}
.calc-ownership-meter-fill {
  height: 100%;
  background: var(--copper);
  border-radius: 999px;
  transition: width 0.5s ease, background 0.3s ease;
}
.calc-ownership-meter-fill.is-complete { background: var(--growth); }
.calc-ownership-meter-label { display: block; font-size: 0.74rem; color: var(--text-muted); margin-bottom: 16px; }
.calc-ownership-meter-label.is-complete { color: var(--growth); font-weight: 600; }
.calc-ownership-pct { font-size: 0.9rem; margin: 0 0 8px; }
.calc-ownership-pct strong { color: var(--indigo); }
.calc-ownership-disclaimer { font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; margin: 0; }

.fine-print {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 70ch;
}

@media (min-width: 1024px) {
  .grow-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
}

/* ===================== CARD BANNER (section 4) ===================== */
.section-card-banner { background: var(--paper); }
.card-banner-desktop { display: none; }

.card-banner-mobile { padding: 72px 0; }
.card-banner-mobile .section-heading { max-width: 100%; margin-bottom: 12px; }
.card-banner-mobile-sub { color: var(--text-muted); font-size: 1.02rem; max-width: 46ch; margin: 0 0 28px; }
.card-banner-mobile-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto 36px;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,0.28));
}
.card-banner-features {
  display: grid;
  gap: 20px;
}
.card-banner-feature { display: flex; align-items: flex-start; gap: 14px; }
.card-banner-feature span { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.card-banner-feature h4 { font-size: 0.95rem; margin-bottom: 2px; }
.card-banner-feature p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

@media (min-width: 768px) {
  .section-card-banner { line-height: 0; background: none; }
  .card-banner-desktop { display: block; width: 100%; height: auto; }
  .card-banner-mobile { display: none; }
}

/* ===================== REWARDS GRID (section 5) ===================== */
.rewards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.reward-card {
  padding: 18px;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s ease;
}
.rewards-grid .reward-card:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow: var(--shadow-lift);
  z-index: 2;
}
.reward-thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.reward-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.reward-card:hover .reward-thumb { transform: scale(1.12) rotate(1deg); }

.reward-points {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: rotate(-4deg);
  animation: reward-badge-pop 0.5s cubic-bezier(.34,1.56,.64,1) backwards;
}
.reward-card:nth-child(6n+1) .reward-points { background: var(--gold); }
.reward-card:nth-child(6n+2) .reward-points { background: var(--copper); color: var(--text-on-ink); }
.reward-card:nth-child(6n+3) .reward-points { background: var(--growth); }
.reward-card:nth-child(6n+4) .reward-points { background: var(--gold); }
.reward-card:nth-child(6n+5) .reward-points { background: var(--copper); color: var(--text-on-ink); }
.reward-card:nth-child(6n+6) .reward-points { background: var(--growth); }

.rewards-grid .reward-card:nth-child(1) { transition-delay: 0s; }
.rewards-grid .reward-card:nth-child(2) { transition-delay: 0.07s; }
.rewards-grid .reward-card:nth-child(3) { transition-delay: 0.14s; }
.rewards-grid .reward-card:nth-child(4) { transition-delay: 0.21s; }
.rewards-grid .reward-card:nth-child(5) { transition-delay: 0.28s; }
.rewards-grid .reward-card:nth-child(6) { transition-delay: 0.35s; }

@keyframes reward-badge-pop {
  0% { transform: rotate(-4deg) scale(0); }
  70% { transform: rotate(-4deg) scale(1.15); }
  100% { transform: rotate(-4deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .reward-points { animation: none; }
  .reward-card, .reward-thumb { transition: none; }
}

.reward-card h4 { font-size: 1rem; margin-bottom: 6px; }
.reward-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.reward-flag { color: var(--copper) !important; font-weight: 500; }

@media (min-width: 640px) { .rewards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rewards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1440px) { .rewards-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===================== LITERACY (section 6) ===================== */
.literacy-grid {
  display: grid;
  gap: 40px;
}
.literacy-curriculum h3 { font-size: 1.1rem; margin-bottom: 20px; }
.curriculum-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.curriculum-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.curriculum-index { color: var(--gold); font-size: 0.85rem; }

.literacy-callout { padding: 28px; }
.literacy-callout p { color: var(--text-muted); margin: 20px 0 0; }
.lesson-mockup {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
}
.lesson-mockup-bar { height: 28px; background: rgba(255,255,255,0.06); }
.lesson-mockup-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lesson-mockup-badge {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(198,154,46,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.lesson-mockup-line { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.14); }
.lesson-mockup-line-1 { width: 70%; }
.lesson-mockup-line-2 { width: 90%; }
.lesson-mockup-line-3 { width: 55%; }

@media (min-width: 900px) {
  .literacy-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
}

/* ===================== DEMO (section 7) ===================== */
.demo-toggle {
  display: inline-flex;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 32px;
}
.demo-toggle button {
  background: transparent;
  border: none;
  color: var(--text-on-ink-muted);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.demo-toggle button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-on-ink-muted);
  border: 1px dashed var(--line-dark);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 24px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--growth);
  box-shadow: 0 0 0 rgba(47,190,130,0.6);
  animation: live-pulse 2s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,190,130,0.55); }
  70% { box-shadow: 0 0 0 6px rgba(47,190,130,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,190,130,0); }
}

.demo-panel[hidden] { display: none; }

/* Family stats */
.family-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.family-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.family-stat-value { font-size: clamp(1rem, 2.2vw, 1.3rem); font-weight: 700; color: var(--text-on-ink); }
.family-stat-label { font-size: 0.72rem; color: var(--text-on-ink-muted); }

/* Kid switcher */
.kid-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.kid-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  color: var(--text-on-ink-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.kid-pill:hover { transform: translateY(-2px); }
.kid-pill-avatar {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(198,154,46,0.16);
  border-radius: 50%;
  font-size: 0.95rem;
}
.kid-pill[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.kid-pill[aria-selected="true"] .kid-pill-avatar { background: rgba(27,58,44,0.14); }
.kid-pill-add { border-style: dashed; background: transparent; }

/* Quick actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.quick-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-dark);
  color: var(--text-on-ink);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}
.quick-action-btn span { font-size: 1rem; }
.quick-action-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.09); }

.dash-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  transition: opacity 0.18s ease;
}
.dash-grid.is-switching { opacity: 0; }
.dash-card {
  position: relative;
  padding: 26px;
  padding-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dash-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dash-accent-gold::before { background: var(--gold); }
.dash-accent-copper::before { background: var(--copper); }
.dash-accent-growth::before { background: var(--growth); }
.dash-accent-indigo::before { background: var(--indigo); }
.dash-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5); }
.dash-card-wide { grid-column: 1 / -1; }
.dash-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-card-head h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-on-ink-muted); }
.dash-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(198,154,46,0.16);
  color: var(--gold);
  padding: 4px 10px;
  border-radius: 999px;
}
.dash-balance { display: block; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; margin-bottom: 6px; color: var(--growth); }
.dash-balance-small { font-size: 1.7rem; color: var(--text-on-ink); margin-bottom: 18px; }
.dash-trend { display: block; font-size: 0.78rem; color: var(--growth); margin-bottom: 20px; }

.lock-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-on-ink-muted); }
.switch {
  position: relative;
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--growth);
  border: none;
  padding: 0;
}
.switch-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s ease;
}
.switch[aria-checked="false"] { background: rgba(255,255,255,0.15); }
.switch[aria-checked="false"] .switch-knob { transform: translateX(18px); }

.txn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.txn-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-on-ink-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}
.txn-list li:last-child { border-bottom: none; padding-bottom: 0; }
.txn-out { color: #e08a7a; }

.dash-goal-name { font-size: 0.85rem; color: var(--text-on-ink-muted); margin: 0 0 12px; }
.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--growth));
  border-radius: 999px;
  transition: width 0.6s ease;
}
.progress-label { font-size: 0.82rem; color: var(--text-on-ink-muted); }

.chart-wrap-small { margin-top: 4px; }

/* Child app */
.child-app {
  max-width: 440px;
  margin: 0 auto;
  padding: 36px 28px;
  border-radius: 24px;
  text-align: center;
}
.child-order-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  background: rgba(198,154,46,0.14);
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
  margin-bottom: 24px;
}
.child-order-badge span { font-size: 0.85rem; font-weight: 600; color: var(--gold); font-family: var(--font-body); }

.child-balance-card {
  background: linear-gradient(155deg, rgba(198,154,46,0.16), rgba(179,106,69,0.1));
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}
.child-balance-label { display: block; font-size: 0.78rem; color: var(--text-on-ink-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.child-balance-amount { display: block; font-size: clamp(2rem, 7vw, 2.6rem); font-weight: 700; color: var(--text-on-ink); margin-bottom: 16px; }
.child-add-funds-btn { width: 100%; }

.add-funds-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  animation: add-funds-open 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes add-funds-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.add-funds-hint { font-size: 0.8rem; color: var(--text-on-ink-muted); margin: 0 0 12px; }
.add-funds-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.chip-amount {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark);
  color: var(--text-on-ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.chip-amount[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.child-add-funds-btn[aria-expanded="true"] { display: none; }

.progress-ring-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto 28px; }
.progress-ring-wrap-compact { width: 140px; height: 140px; margin-bottom: 24px; }
.progress-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 14; }
.ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 540.35;
  stroke-dashoffset: 540.35;
  transition: stroke-dashoffset 0.8s cubic-bezier(.4,0,.2,1);
}
.progress-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.progress-ring-label span:first-child { font-size: 2rem; font-weight: 700; }
.progress-ring-wrap-compact .progress-ring-label span:first-child { font-size: 1.4rem; }
.progress-ring-label span:last-child { font-size: 0.85rem; color: var(--text-on-ink-muted); }

.child-points {
  margin-top: 4px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.child-points-label { font-size: 0.78rem; color: var(--text-on-ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.child-points-count { font-size: 1.5rem; font-weight: 700; color: var(--growth); }
.child-points-next { font-size: 0.82rem; color: var(--text-on-ink-muted); margin-top: 6px; }

.child-activity { text-align: left; }
.child-activity h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-on-ink-muted); margin-bottom: 14px; }
.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.activity-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.activity-list li:hover { background: rgba(255,255,255,0.04); }
.activity-icon {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.06);
}
.activity-in .activity-icon { background: rgba(47,190,130,0.16); }
.activity-out .activity-icon { background: rgba(224,138,122,0.16); }
.activity-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.activity-info strong { font-size: 0.88rem; font-weight: 600; color: var(--text-on-ink); }
.activity-info span { font-size: 0.75rem; color: var(--text-on-ink-muted); }
.activity-amount { font-size: 0.88rem; font-weight: 600; flex-shrink: 0; }
.activity-in .activity-amount { color: var(--growth); }
.activity-out .activity-amount { color: #e08a7a; }

@media (min-width: 768px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dash-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-card-wide { grid-column: span 2; }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--text-on-ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  z-index: 1200;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .toast { transition: opacity 0.01s linear; }
}

/* ===================== MODAL ===================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16,19,28,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative;
  max-width: 420px;
  width: 100%;
  padding: 32px;
  background: var(--surface);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 6px;
}
.modal h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-sub { color: var(--text-muted); margin: 0 0 20px; }
.modal-rewards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.modal-rewards li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.modal-rewards li:last-child { border-bottom: none; }
.modal-rewards li div { display: flex; flex-direction: column; gap: 2px; }
.modal-rewards li span { font-size: 0.78rem; color: var(--text-muted); }
.redeem-item-btn.redeemed { opacity: 0.5; pointer-events: none; }

/* ===================== TRUST (section 8) ===================== */
.trust-copy { max-width: 80ch; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 48px; }
.trust-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}
.trust-badge { padding: 26px; }
.trust-icon { font-size: 1.6rem; display: block; margin-bottom: 14px; }
.trust-badge h4 { font-size: 1rem; margin-bottom: 8px; }
.trust-badge p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===================== INVESTORS (section 9) ===================== */
.stat-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-bottom: 44px;
}
.stat-card { padding: 32px; position: relative; }
.stat-flag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--copper);
  margin-bottom: 16px;
}
.stat-number { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; color: var(--indigo); margin-bottom: 10px; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }
.investors-copy { max-width: 80ch; color: var(--text-muted); font-size: 1.02rem; margin-bottom: 36px; }

@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-muted);
}
.site-footer .section-inner { padding: 48px 24px; text-align: center; }
.site-footer p { max-width: 70ch; margin: 0 auto 12px; font-size: 0.85rem; }
.footer-fine { font-size: 0.75rem; opacity: 0.7; }
.footer-mark { width: 32px; height: auto; margin: 0 auto 12px; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--copper) !important;
  font-size: 1rem !important;
  margin-bottom: 20px !important;
}

/* ===================== RESPONSIVE TYPE SCALE ===================== */
@media (max-width: 480px) {
  .section-inner { padding: 72px 20px; }
}
