﻿/* ============ Tokens ============ */
:root {
  /* Primary (Galaxy Purple) — every CTA, every brand accent, italic serif moment */
  --scene-red:        #9B43FF;
  --scene-red-deep:   #7F2DD8;
  --scene-red-bright: #B36DFF;
  --scene-red-tint:   #F0E6FF;

  /* Scotiabank Red — hero section accents */
  --scotia-red:       #EC111A;
  --scotia-red-deep:  #C0000B;
  --scotia-red-tint:  #FFEBEC;
  --shadow-scotia:    0 16px 40px -12px rgba(236, 17, 26, 0.45);

  --ink:    #0A0A0A;
  --ink-2:  #1A1A1A;
  --ink-3:  #2A2A2A;

  --paper:   #FAFAF7;
  --paper-2: #F4F3EE;
  --white:   #FFFFFF;

  --n-50:  #F7F6F2;
  --n-100: #ECEBE5;
  --n-200: #DDDBD3;
  --n-300: #C4C1B7;
  --n-400: #A09D92;
  --n-500: #7A776D;
  --n-600: #565449;
  --n-700: #3A382F;
  --n-800: #232218;

  /* Semantic palette */
  --positive:        #23B574;   /* Jungle Green — gains */
  --positive-tint:   #DDF3E8;
  --negative:        #FF3B48;   /* Strawberry Red — losses, warnings */
  --negative-deep:   #D6232F;
  --negative-tint:   #FFE5E8;
  --info:            #2C76EC;   /* Crayola Blue — ETF, information */
  --info-tint:       #E0EDFC;
  --warm:            #FF93AA;   /* Cotton Candy — soft, balanced asset, hero atmosphere */
  --warm-tint:       #FFE9EF;

  --fg-1: var(--ink);
  --fg-2: var(--n-600);
  --fg-3: var(--n-500);

  --border:        rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.16);

  --font-sans:    'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  --shadow-sm:  0 2px 8px rgba(10, 10, 10, 0.04), 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md:  0 8px 24px rgba(10, 10, 10, 0.06), 0 2px 6px rgba(10, 10, 10, 0.04);
  --shadow-lg:  0 24px 64px -16px rgba(10, 10, 10, 0.18), 0 8px 24px -8px rgba(10, 10, 10, 0.08);
  --shadow-xl:  0 40px 96px -24px rgba(10, 10, 10, 0.24), 0 12px 32px -8px rgba(10, 10, 10, 0.10);
  --shadow-red: 0 16px 40px -12px rgba(155, 67, 255, 0.45);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    140ms;
  --dur-base:    220ms;
  --dur-slow:    420ms;

  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--fg-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--scene-red); color: var(--white); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--scene-red);
  border-radius: 50%;
  display: inline-block;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--scene-red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--scene-red-deep);
  box-shadow: 0 24px 56px -12px rgba(155, 67, 255, 0.6);
  transform: translateY(-1px);
}
.btn-primary.lg { padding: 18px 30px; font-size: 17px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--ink-3); }

.arrow-r {
  width: 16px; height: 16px;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .arrow-r { transform: translateX(4px); }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(250, 250, 247, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: transform var(--dur-base) var(--ease-out);
}
.logo:hover .logo-img { transform: scale(1.04); }
.logo-suffix {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-left: 2px;
  position: relative;
  top: 2px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--fg-2);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--fg-1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
  padding: 8px 14px;
  border-radius: var(--r-pill);
}
.nav-signin:hover { background: var(--n-100); }
.nav-btn {
  padding: 9px 16px;
  font-size: 14px;
  background: var(--scotia-red);
  box-shadow: 0 4px 14px -4px rgba(236, 17, 26, 0.45);
}
.nav-btn:hover {
  background: var(--scotia-red-deep);
  box-shadow: 0 8px 20px -6px rgba(236, 17, 26, 0.55);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 48px;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orbit 18s ease-in-out infinite;
}
.hero-bg::before {
  width: 540px; height: 540px;
  background: radial-gradient(circle at center, rgba(236, 17, 26, 0.38), transparent 70%);
  top: -120px; right: -120px;
}
.hero-bg::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle at center, rgba(255, 147, 170, 0.38), transparent 70%);
  bottom: -100px; left: -80px;
  animation-delay: -6s;
}
@keyframes orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 40px) scale(0.95); }
}
.hero-grid {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 72px);
}
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(10,10,10,0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--scotia-red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(236,17,26,0.18);
  animation: pulse 2s ease-in-out infinite;
}
.hero-badge .tag {
  margin-left: 6px;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(236,17,26,0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(236,17,26,0.05); }
}

.hero h1 {
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 0 0 24px 0;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--scotia-red);
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--fg-2);
  max-width: 520px;
  margin: 0 0 36px 0;
  letter-spacing: -0.01em;
}
.hero-sub strong { color: var(--fg-1); font-weight: 600; }

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  font-size: 13px;
  color: var(--fg-3);
}
.hero-meta .sep { width: 1px; height: 16px; background: var(--border-strong); }
.hero-meta strong { color: var(--fg-1); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Hero entry — kept visually static for capture reliability. */
.fade-up { /* no-op; reserved class for future entry effects */ }

/* Hero — Scotiabank red button overrides */
.hero .btn-primary {
  background: var(--scotia-red);
  box-shadow: var(--shadow-scotia);
}
.hero .btn-primary:hover {
  background: var(--scotia-red-deep);
  box-shadow: 0 24px 56px -12px rgba(236, 17, 26, 0.55);
  transform: translateY(-1px);
}

/* ============ Phone mockup ============ */
.phone-wrap {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.phone {
  position: relative;
  width: 320px;
  height: 660px;
  background: var(--ink);
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 60px 120px -30px rgba(10,10,10,0.45),
    0 30px 60px -20px rgba(155,67,255,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(-1.2deg); }
}
.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #F7F6F2 0%, #FAFAF7 100%);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  padding: 44px 18px 18px;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  background: var(--ink);
  border-radius: var(--r-pill);
  z-index: 2;
}
.phone-status {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  z-index: 1;
}
.phone-icons { display: flex; gap: 4px; align-items: center; }
.phone-icons svg { width: 14px; height: 14px; }

.mini-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mini-greeting { font-size: 13px; color: var(--fg-2); }
.mini-greeting b { color: var(--fg-1); font-weight: 600; }
.mini-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #9B43FF, #FF93AA);
  display: grid; place-items: center;
  color: white; font-size: 12px; font-weight: 700;
}

.bal-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.bal-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(155,67,255,0.6), transparent 70%);
  filter: blur(10px);
}
.bal-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
  position: relative;
}
.bal-num {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  position: relative;
}
.bal-num small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}
.bal-delta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-pill);
  font-size: 12px;
  position: relative;
}
.bal-delta .up { color: #6FE2A0; }

.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
  transition: transform var(--dur-base) var(--ease-out);
}
.mini-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mini-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--scene-red-tint);
  color: var(--scene-red);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-serif);
  font-style: italic;
}
.mini-icon.etf  { background: var(--info-tint); color: var(--info); }
.mini-icon.gic  { background: var(--positive-tint); color: var(--positive); }
.mini-icon.bal  { background: var(--warm-tint); color: #C53F60; }
.mini-info { flex: 1; min-width: 0; }
.mini-info .nm { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.mini-info .sub { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); }
.mini-pct {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--positive);
}
.mini-pct.dn { color: var(--negative); }

/* Floating chips around the phone */
.float-chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.float-chip .ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--scene-red);
  color: var(--white);
  font-size: 12px;
}
.float-chip strong { font-weight: 600; }
.float-chip .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.float-chip .lbl { color: var(--fg-3); font-size: 11px; }
.float-chip.tl {
  top: 8%; left: -8%;
  animation: floatA 6s ease-in-out infinite;
}
.float-chip.br {
  bottom: 18%; right: -6%;
  animation: floatB 7s ease-in-out infinite;
}
.float-chip.bl {
  bottom: 8%; left: -4%;
  animation: floatC 8s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-6px,-10px); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(8px,-8px); }
}
@keyframes floatC {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-4px,8px); }
}
@media (max-width: 920px) {
  .float-chip.tl { left: 0; top: 0; }
  .float-chip.br { right: 0; bottom: 8%; }
  .float-chip.bl { display: none; }
}

/* ============ Section scaffold ============ */
section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 16px 0 28px;
  text-wrap: balance;
}
.section-head h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--scene-red);
  padding-bottom: 0.08em;
  display: inline-block;
}
.serif.green { color: var(--positive) !important; }
.serif.blue  { color: var(--info) !important; }
.serif.pink  { color: #E94B6F !important; }
.serif.red   { color: var(--negative) !important; }
.section-head p {
  font-size: 18px;
  color: var(--fg-2);
  margin: 0;
  max-width: 620px;
  line-height: 1.55;
}

/* Scroll-in helper — JS-gated so default state is visible */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.js-anim .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 280ms; }
.reveal.d4 { transition-delay: 380ms; }

/* ============ Problem ============ */
.problem { background: var(--paper); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px 36px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--scotia-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.stat:hover::before { transform: scaleX(1); }
.stat-num {
  font-size: clamp(64px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
  color: var(--scotia-red);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: flex-start;
}
.stat-num .unit {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--scotia-red);
  margin-top: 0.55em;
  margin-left: 2px;
  letter-spacing: -0.02em;
}
.stat-text {
  font-size: 17px;
  line-height: 1.4;
  color: var(--fg-1);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat-text .small { color: var(--fg-2); font-weight: 400; display: block; margin-top: 6px; font-size: 14px;}

.problem-summary {
  margin-top: 56px;
  padding: 32px 36px;
  border-left: 3px solid var(--ink);
  max-width: 760px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-1);
  letter-spacing: -0.01em;
}
.problem-summary strong { font-weight: 600; }
.problem-summary em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--scene-red);
  font-weight: 400;
  font-size: 1.05em;
}

/* ============ How it works ============ */
.how { background: var(--paper-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 12%; right: 12%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}
.step {
  position: relative;
  z-index: 1;
  text-align: left;
}
.step-icon {
  width: 76px; height: 76px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-icon svg { width: 32px; height: 32px; stroke: var(--ink); }
.step-icon .num {
  position: absolute;
  top: -8px; right: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--scene-red);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.step h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
}
.step p {
  color: var(--fg-2);
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}

/* ============ The App ============ */
.app-section { background: var(--paper); }
.app-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.app-chrome {
  height: 44px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
  background: var(--paper-2);
}
.app-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--n-300);
}
.app-chrome .dot.r { background: #FF5F57; }
.app-chrome .dot.y { background: #FEBC2E; }
.app-chrome .dot.g { background: #28C840; }
.app-chrome .url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  gap: 0;
  background: var(--white);
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
}
.tab {
  background: none;
  border: 0;
  padding: 18px 4px;
  margin-right: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-3);
  position: relative;
  transition: color var(--dur-fast);
  letter-spacing: -0.01em;
}
.tab:hover { color: var(--fg-1); }
.tab.active { color: var(--ink); font-weight: 600; }
.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--scene-red);
  border-radius: 2px 2px 0 0;
}
.tab .count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--n-100);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-2);
  vertical-align: 1px;
}
.tab.active .count { background: var(--scene-red-tint); color: var(--scene-red); }

.tab-panels { padding: 32px clamp(24px, 3vw, 40px) 40px; }
.panel { display: none; }
.panel.active {
  display: block;
  animation: panelIn 460ms var(--ease-out);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Portfolio ---- */
.bal-banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.bal-banner::before {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(155,67,255,0.42), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.bal-banner > * { position: relative; }
.bal-banner-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.bal-banner-amount {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.bal-banner-amount small {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-left: 6px;
  letter-spacing: 0;
}
.bal-banner-gain {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bal-banner-gain .delta {
  font-size: 22px;
  font-weight: 600;
  color: #6FE2A0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.bal-banner-gain .delta.dn { color: var(--negative); }
.bal-banner-gain .sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.bal-banner .btn-primary {
  background: var(--scotia-red);
  box-shadow: 0 12px 32px -8px rgba(236,17,26,0.5);
}
.bal-banner .btn-primary:hover {
  background: var(--scotia-red-deep);
  box-shadow: 0 20px 40px -10px rgba(236,17,26,0.6);
}
@media (max-width: 720px) {
  .bal-banner { grid-template-columns: 1fr; }
  .bal-banner-amount { font-size: 44px; }
}

.invest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 720px) { .invest-grid { grid-template-columns: 1fr; } }

.invest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.invest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.invest-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.asset-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--scene-red-tint);
  color: var(--scene-red);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  flex-shrink: 0;
}
.asset-icon.etf { background: var(--info-tint); color: var(--info); }
.asset-icon.gic { background: var(--positive-tint); color: var(--positive); }
.asset-icon.bal { background: var(--warm-tint); color: #C53F60; }
.invest-card-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.invest-card-sub {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.invest-card-mid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}
.invest-card-alloc {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.invest-card-alloc small {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  margin-left: 4px;
  letter-spacing: 0;
}
.pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: -0.01em;
}
.pct.up { background: var(--positive-tint); color: var(--positive); }
.pct.dn { background: var(--negative-tint); color: var(--negative); }
.spark {
  width: 100%;
  height: 36px;
  margin-top: 6px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr; } }
.stat-tile {
  background: var(--paper-2);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}
.stat-tile .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.stat-tile .v {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-tile .v .flame {
  font-size: 18px;
  filter: hue-rotate(-10deg);
}

.grad-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1A1A1A 100%);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.grad-banner::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -10%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(155,67,255,0.52), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.grad-banner > * { position: relative; }
.grad-banner-text { flex: 1; }
.grad-banner-text .eyebrow { color: rgba(255,255,255,0.6); }
.grad-banner-text .eyebrow::before { background: var(--scene-red-bright); }
.grad-banner-text h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}
.grad-banner-text h4 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--positive);
}
@media (max-width: 720px) {
  .grad-banner { flex-direction: column; align-items: flex-start; }
}

/* ---- Invest tab ---- */
.invest-intro {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 580px;
  margin: 0 0 28px;
}
.invest-intro strong { color: var(--fg-1); font-weight: 600; }

.alloc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.alloc-summary.over { border-color: var(--negative); background: var(--negative-tint); }
.alloc-summary .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.alloc-summary .v {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  line-height: 1;
}
.alloc-summary .progress {
  flex: 1;
  margin: 0 28px;
  height: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  min-width: 160px;
}
.alloc-summary .progress-fill {
  height: 100%;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: width var(--dur-base) var(--ease-out), background var(--dur-fast);
}
.alloc-summary.over .progress-fill { background: var(--negative); }

.slider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 720px) { .slider-grid { grid-template-columns: 1fr; } }
.slider-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
}
.slider-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 12px;
}
.slider-card-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.badge {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.low { background: var(--positive-tint); color: var(--positive); }
.badge.med { background: var(--warm-tint); color: #C53F60; }
.badge.none { background: var(--n-100); color: var(--fg-2); }
.slider-card-sub {
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 18px;
}
.slider-card-sub b { color: var(--fg-1); font-weight: 600; }
.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.slider-row input[type="range"] {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--n-100);
  outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(10,10,10,0.2);
  cursor: pointer;
  transition: transform var(--dur-fast);
}
.slider-row input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); }
.slider-row input[type="range"]:active::-webkit-slider-thumb { background: var(--scene-red); }
.slider-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(10,10,10,0.2);
  cursor: pointer;
}
.slider-val {
  width: 80px;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.slider-val small { color: var(--fg-3); font-weight: 500; font-size: 11px; margin-left: 2px; }

.warn-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--negative-tint);
  border-radius: var(--r-md);
  color: var(--negative-deep);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid rgba(255,59,72,0.25);
}
.warn-bar.show { display: flex; }
.warn-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

.confirm-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ---- Learn ---- */
.learn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #F4F3EE 0%, #FAFAF7 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 22px;
}
.learn-head-text {
  font-size: 15px;
  color: var(--fg-2);
}
.learn-head-text strong { color: var(--fg-1); font-weight: 600; }
.learn-counter {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--scene-red);
}
.learn-counter small { font-size: 14px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }

.lessons { display: flex; flex-direction: column; gap: 14px; }
.lesson {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}
.lesson:hover:not(.locked) { border-color: var(--border-strong); }
.lesson.locked { opacity: 0.55; }
.lesson-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lesson-num {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-2);
  flex-shrink: 0;
}
.lesson.done .lesson-num { background: var(--positive-tint); color: var(--positive); }
.lesson-body { flex: 1; min-width: 0; }
.lesson h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lesson .meta {
  font-size: 13px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.lesson .meta .sep { margin: 0 8px; opacity: 0.5; }
.lesson .meta .reward { color: var(--scene-red); }
.lesson-cta {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.lesson-cta.start { background: var(--ink); color: var(--paper); border: 0; }
.lesson-cta.start:hover { background: var(--ink-3); }
.lesson-cta.done { background: var(--positive-tint); color: var(--positive); pointer-events: none; border: 0; display: inline-flex; gap: 6px; align-items: center; }
.lesson-cta.locked { background: var(--n-100); color: var(--fg-3); cursor: not-allowed; border: 0; display: inline-flex; gap: 6px; align-items: center; }

.lesson-progress {
  margin-top: 14px;
  height: 4px;
  background: var(--n-100);
  border-radius: var(--r-pill);
  overflow: hidden;
  display: none;
}
.lesson-progress.show { display: block; }
.lesson-progress-fill {
  height: 100%;
  background: var(--scene-red);
  border-radius: var(--r-pill);
  transition: width var(--dur-slow) var(--ease-out);
}

.lesson-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.lesson-content.open { max-height: 600px; }
.lesson-content-inner {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--border);
}
.lesson-content h5 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lesson-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0 0 12px;
}
.lesson-content p:last-of-type { margin-bottom: 18px; }
.lesson-content em.kw {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--scene-red);
  font-weight: 400;
}

/* ============ Why Scotia ============ */
.why { background: var(--paper-2); }
.why .section-head h2 .serif { color: var(--scotia-red); }
.why .eyebrow::before { background: var(--scotia-red); }
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  position: relative;
}
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  position: relative;
}
.compare-card.ours {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.compare-card .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-3);
  margin-bottom: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-card.ours .name { color: rgba(255,255,255,0.5); }
.compare-card h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.compare-card h3 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #E94B6F;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.compare-list .ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 700;
}
.compare-list .ico.x { background: var(--n-100); color: var(--fg-3); }
.compare-list .ico.dot { background: var(--n-100); color: var(--fg-3); font-size: 11px; }
.compare-list .ico.chk { background: var(--positive); color: var(--white); }
.compare-card.ours .compare-list .ico.x { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.compare-card.ours .compare-list .ico.dot { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }

.compare-kicker {
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  text-align: left;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}
.compare-kicker em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--scotia-red);
  font-weight: 400;
}

/* ============ Graduation flow ============ */
.grad { background: var(--paper); }
.grad-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .grad-inner { grid-template-columns: 1fr; gap: 32px; } }
.grad-text h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 16px 0 20px;
  text-wrap: balance;
}
.grad-text h2 em,
.grad-text h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--scene-red);
}
.grad-text p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 28px;
  max-width: 460px;
}
.grad-text p strong { color: var(--fg-1); font-weight: 600; }

.grad-phone {
  background: var(--ink);
  border-radius: 48px;
  padding: 10px;
  width: 320px;
  height: 660px;
  margin-inline: auto;
  box-shadow: 0 60px 120px -30px rgba(10,10,10,0.45),
              0 30px 60px -20px rgba(155,67,255,0.22);
  position: relative;
}
.grad-phone .phone-screen {
  display: flex;
  flex-direction: column;
  padding: 44px 18px 22px;
}
.grad-msg {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  position: relative;
}
.grad-msg .from {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.grad-msg .from .av {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px;
}
.grad-msg .from .lb {
  font-size: 13px; font-weight: 600;
}
.grad-msg .from .tm {
  margin-left: auto;
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.grad-msg h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.grad-msg h4 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--positive);
  font-weight: 400;
}
.grad-msg p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 14px;
}
.grad-comparison {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.grad-comparison .col .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 2px;
}
.grad-comparison .col .v {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.grad-comparison .col .v.pos { color: var(--positive); }
.grad-comparison .arrow svg { width: 18px; height: 18px; color: var(--fg-3); }
.grad-msg .open-btn {
  width: 100%;
  background: var(--scene-red);
  color: var(--white);
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -8px rgba(155,67,255,0.55);
  transition: transform var(--dur-fast);
}
.grad-msg .open-btn:hover { transform: translateY(-1px); }
.grad-msg .skip {
  text-align: center;
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-3);
}

/* ============ Footer ============ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 36px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.footer-logo .logo-chip {
  background: var(--paper);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
}
.footer-logo .logo-chip img {
  height: 22px;
  width: auto;
  display: block;
}
.footer-logo .suffix {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--paper);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer-built {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  letter-spacing: 0;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { margin: 0; max-width: 720px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}