/* ─── VARIABLES ─────────────────────────────────── */
:root {
  --bg:          #F5F5F5;
  --bg-2:        #FFFFFF;
  --bg-3:        #F5F5F5;
  --bg-4:        #EBEBEB;
  --border:      rgba(0,0,0,0.07);
  --border-md:   rgba(0,0,0,0.11);
  --border-hi:   rgba(0,0,0,0.20);
  --text:        #090B14;
  --text-2:      #5A6278;
  --text-3:      #9BA3BA;
  --accent:      #10B981;
  --accent-dim:  rgba(16,185,129,0.10);
  --accent-glow: rgba(16,185,129,0.06);
  --blue:        #2563EB;
  --blue-dim:    rgba(37,99,235,0.10);
  --positive:    #10B981;
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.10);
  --nav-h:       68px;
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding: 12px 12px 0; /* no bottom padding — footer wordmark touches screen edge */
}

/* ─── CALLOUT SCROLL ZONE ────────────────────────── */
#callout-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}
.callout-scroll-zone .callout {
  position: relative;
  z-index: 201;
}
.callout.callout-dark .callout-text { color: #fff; }
.callout.callout-dark .ct-chaos     { color: rgba(255,255,255,0.5); }
.callout.callout-dark .ct-fix       { color: var(--accent); }
.callout.callout-dark .callout-rule { background: rgba(255,255,255,0.3); }
.callout-text, .callout-rule {
  transition: color 0.3s ease, background-color 0.3s ease;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ─── CUSTOM CURSOR ──────────────────────────────── */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 999999;
  will-change: transform;
  transition: opacity 0.25s ease;
}

/* ─── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; }
.desktop-br { display: block; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.65;
}
.section-header { margin-bottom: 72px; }

/* ─── REVEAL ANIMATIONS ──────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="80"]  { transition-delay: 80ms; }
[data-reveal-delay="160"] { transition-delay: 160ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="240"] { transition-delay: 240ms; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 100px;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary.large { font-size: 16px; padding: 15px 28px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 4px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform 0.2s var(--ease-spring); }
.btn-ghost:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border-md);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.btn-outline:hover {
  background: rgba(0,0,0,0.04);
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.btn-outline.large { font-size: 16px; padding: 15px 28px; }

/* ─── BUTTON CHAR ANIMATION ─────────────────────── */
.char-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: none; /* prevent flex-grow inside button */
}
.char-space {
  display: inline-block;
  width: 0.25em;
}
.char-wrap {
  display: inline-block;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}
.char-top {
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ci) * 0.022s);
}
.char-bot {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  white-space: pre;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--ci) * 0.022s);
}
.btn-char-animated:hover .char-top { transform: translateY(-100%); }
.btn-char-animated:hover .char-bot  { transform: translateY(-100%); }

/* ─── NAV ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100vw - 88px);
  max-width: 1096px;
  z-index: 100;
  height: var(--nav-h);
  border-radius: 100px;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  background: transparent;
  border: 1px solid transparent;
}
.nav.scrolled {
  /* iOS 26 liquid glass */
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(210, 235, 255, 0.12) 45%,
    rgba(230, 255, 245, 0.16) 75%,
    rgba(255, 255, 255, 0.22) 100%
  );
  backdrop-filter: blur(12px) saturate(1.6) brightness(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.6) brightness(1.08);
  border-color: rgba(255, 255, 255, 0.70);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.60),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.30);
}
.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled .nav-inner {
  padding: 0 16px 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.4s var(--ease);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 16px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-link-active { color: var(--text); }
.nav-cta { margin-left: auto; }
.btn-nav {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), opacity 0.2s;
}
.btn-nav:hover {
  opacity: 0.82;
}
.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-mobile-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: background 0.4s var(--ease);
}
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 32px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: rgba(245,245,245,0.97);
  backdrop-filter: blur(20px);
}
.nav-mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); }
.nav-mobile-menu .btn-nav {
  margin-top: 8px;
  display: inline-block;
  width: fit-content;
}
.nav-mobile-menu.open { display: flex; }

/* Nav dark mode (over dark backgrounds) */
.nav.nav-dark .logo-text { color: #fff; }
.nav.nav-dark .nav-links a { color: rgba(255,255,255,0.70); }
.nav.nav-dark .nav-links a:hover { color: #fff; }
.nav.nav-dark .btn-nav { background: #fff; border-color: #fff; color: #000; }
.nav.nav-dark .nav-mobile-btn span { background: rgba(255,255,255,0.80); }
.nav.nav-dark.scrolled {
  background: linear-gradient(160deg,
    rgba(30,35,45,0.55) 0%,
    rgba(20,28,40,0.40) 50%,
    rgba(25,35,45,0.50) 100%
  );
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 4px 24px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ─── HERO v2 ────────────────────────────────────── */
.hero-v2 {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: calc(100vh - 24px);
  margin-bottom: 12px;
}
@keyframes heroImgFadeIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-v2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  animation: heroImgFadeIn 2.4s var(--ease-out) both;
}
.hero-v2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.04) 50%, transparent 100%);
  pointer-events: none;
}
.hero-v2-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero-v2-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
}
.hero-v2-headline {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #ffffff;
  margin: 0;
}
.hero-v2-accent { color: var(--accent); }
.hero-v2-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}
.hero-v2-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: fit-content;
}
.btn-primary-inv {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  height: 56px;
  padding: 0 18px;
}
.btn-primary-inv:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost-inv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  background: rgba(255,255,255,0.25);
  border: none;
  width: fit-content;
  padding: 0 24px;
  height: 56px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost-inv:hover { background: rgba(255,255,255,0.32); color: #fff; }
.hero-v2-proof {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-v2-proof p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.60);
}
.hero-v2-proof strong { color: rgba(255,255,255,0.90); }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  height: calc(100vh - 24px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg-2);
  border-radius: 48px;
  margin-bottom: 12px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
  top: -100px; right: -100px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #93C5FD 0%, transparent 70%);
  bottom: -100px; left: -50px;
  opacity: 0.28;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 100px;
  width: 100%;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--accent); }
  50% { box-shadow: 0 0 14px var(--accent); }
}
.hero-headline {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--text);
  background: linear-gradient(135deg, #090B14 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 40px;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}
.proof-avatars {
  display: flex;
}
.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
  display: block;
  margin-left: -8px;
}
.proof-avatars .proof-avatar:first-child { margin-left: 0; }
.hero-social-proof p {
  font-size: 13px;
  color: var(--text-3);
}
.hero-social-proof strong { color: var(--text-2); }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-mockup-img {
  max-height: 580px;
  width: auto;
  max-width: 100%;
  display: block;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.hero-scroll-hint:hover { opacity: 0.6; }
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
  animation: scroll-fade 2s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ─── PHONE MOCKUP ───────────────────────────────── */
.phone-float-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.phone-mockup {
  position: relative;
  width: 288px;
  flex-shrink: 0;
}
.phone-frame {
  position: relative;
  width: 288px;
  height: 620px;
  border-radius: 52px;
  background: linear-gradient(160deg, #1A2035 0%, #0C1120 50%, #091018 100%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}
.dynamic-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 36px;
  background: #000;
  border-radius: 20px;
  z-index: 20;
}
.phone-screen {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-radius: 44px;
  background: #080C18;
  overflow: hidden;
}
.phone-reflection {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 200px;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Phone side buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 120px;
  width: 3px;
  height: 70px;
  background: rgba(255,255,255,0.12);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 80px 0 rgba(255,255,255,0.12), 0 -80px 0 rgba(255,255,255,0.12);
}
.phone-frame::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 150px;
  width: 3px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 60px 0 rgba(255,255,255,0.1);
}

/* ─── PHONE DARK SCOPE ───────────────────────────────
   Restores dark-mode CSS variables for the phone mockup
   so the app UI stays dark while the page is light.      */
.phone-frame,
.showcase-screen {
  --text:        #EDF0FF;
  --text-2:      #828AA0;
  --text-3:      #444C62;
  --bg-2:        #0C0F1C;
  --bg-3:        #111827;
  --bg-4:        #161D2E;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.12);
  --accent:      #10B981;
  --accent-dim:  rgba(16,185,129,0.15);
  --positive:    #10B981;
}

/* ─── APP UI (HERO PHONE) ─────────────────────────── */
.app-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #080C18;
}
.app-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 24px 6px;
  flex-shrink: 0;
}
.status-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px 12px;
  flex-shrink: 0;
}
.app-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4E8AFF, #10B981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.app-avatar.sm { width: 28px; height: 28px; font-size: 11px; }

.app-value-block {
  padding: 4px 24px 16px;
  flex-shrink: 0;
}
.app-value-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.app-value-main {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}
.app-value-change {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.app-value-change.positive {
  background: rgba(16,185,129,0.12);
  color: var(--accent);
}

.app-chart {
  padding: 0 24px 4px;
  flex-shrink: 0;
  height: 70px;
}
.app-chart svg {
  width: 100%;
  height: 58px;
  display: block;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text-3);
  padding-top: 3px;
}

.app-holdings {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
}
.holdings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.holdings-count {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.holding-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: background 0.2s;
}
.holding-ticker {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.holding-ticker.aapl { background: rgba(78,138,255,0.2); color: #4E8AFF; }
.holding-ticker.msft { background: rgba(16,185,129,0.18); color: var(--accent); }
.holding-ticker.vti  { background: rgba(155,100,255,0.18); color: #9B64FF; }
.holding-ticker.voo  { background: rgba(255,160,50,0.18); color: #FFA032; }

.holding-meta {
  flex: 1;
  min-width: 0;
}
.h-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-value {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  margin-top: 2px;
}
.holding-change {
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.holding-change.positive { color: var(--accent); }
.holding-change.negative { color: #FF5C72; }

.app-bottom-nav {
  display: flex;
  padding: 10px 24px 28px;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.bnav-item {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-3);
}
.bnav-item.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── CALLOUT ────────────────────────────────────────── */
.callout {
  position: relative;
  background: transparent;
  padding: 160px 0;
  text-align: left;
  overflow: hidden;
  margin-bottom: 12px;
}
.callout-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.callout-orb-l {
  background: rgba(16,185,129,0.10);
  top: -100px;
  left: -140px;
}
.callout-orb-r {
  background: rgba(37,99,235,0.08);
  bottom: -100px;
  right: -140px;
}
.callout-bg-quote { display: none; }
.callout-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  position: relative;
}
.callout-rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
}
.callout-text {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 100%;
  margin: 0;
}
.ct-chaos {
  color: var(--text-2);
  font-style: italic;
}
.ct-fix {
  color: var(--accent);
}

/* Per-character animation */
.callout-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.callout-text.animated .callout-char {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PROBLEM ─────────────────────────────────────── */
.problem { background: var(--bg-2); border-radius: 48px; margin-bottom: 12px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.problem-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.problem-card:hover {
  border-color: var(--border-md);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  margin-bottom: 20px;
}
.problem-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.35;
}
.problem-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── FEATURES ────────────────────────────────────── */
.features { background: none; border-radius: 48px; margin-bottom: 160px; padding-top: 0; padding-bottom: 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.feature-card {
  background: var(--bg-2);
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
}
.feature-card.feature-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.feature-card-content .feature-icon { margin-bottom: 18px; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.feature-pill {
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

/* Overview preview */
.feature-preview.overview-preview {
  display: flex;
  align-items: stretch;
}
.portfolio-widget {
  flex: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--border);
}
.pw-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.pw-value-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.pw-number {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pw-cents {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.02em;
}
.pw-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pw-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.pw-badge-pct {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  line-height: 1;
}
.pw-period {
  font-size: 12px;
  color: var(--text-3);
}
.pw-chart-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  margin: 0 -24px;
}
.pw-line-svg {
  width: 100%;
  height: 100px;
  display: block;
}
#pw-line-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}

/* Allocation stacked bar */
.alloc-bar-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.alloc-stacked-bar {
  display: flex;
  height: 10px;
  border-radius: 100px;
  overflow: hidden;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.alloc-stacked-bar.animated { width: 100%; }
.alloc-seg { flex-shrink: 0; height: 100%; border-right: 1px solid #fff; }
.alloc-seg:last-child { border-right: none; }
.alloc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.alloc-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.alloc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alloc-ticker {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.03em;
}

/* Dividend list */
.div2-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
}
.div2-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.div2-row:last-child { border-bottom: none; }
.div2-row.visible { opacity: 1; transform: translateY(0); }
.div2-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.div2-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.div2-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.div2-ticker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.div2-date { font-size: 12px; color: var(--text-2); }
.div2-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.div2-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.div2-meta { font-size: 11px; color: var(--text-2); }

.div-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.div-date { color: var(--text-3); }
.div-ticker {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
  background: var(--bg-4);
  padding: 2px 8px;
  border-radius: 6px;
}
.div-amount.positive { color: var(--accent); font-weight: 600; }

/* Tax rows */
.tax-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.tax-row:last-child { border-bottom: none; }
.tax-row span:first-child { color: var(--text-2); }
.tax-row span:last-child { font-weight: 600; color: var(--text); }
.tax-row.highlight {
  background: var(--bg-3);
}
.tax-row.highlight span:first-child { color: var(--text-2); }
.tax-countries {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tax-countries-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tax-flags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tf-flag {
  font-size: 22px;
  line-height: 1;
  cursor: default;
  transition: transform 0.15s ease;
  display: inline-block;
}
.tf-flag:hover { transform: scale(1.2); }
.tf-more-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-md);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.tf-more-badge:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
#tf-popup {
  position: fixed;
  z-index: 9999;
  background: #1a1d27;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
  min-width: 260px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#tf-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.tf-popup-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.tf-popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.tf-popup-grid span {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
#tf-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1a1d27;
  color: rgba(255,255,255,0.90);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 7px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
}
#tf-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Multi portfolio card: 1 column, vertical */
.feature-card.feature-right {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-card.feature-right .feature-card-content .feature-icon { margin-bottom: 14px; }

/* Multi portfolio preview */
.multi-portfolio-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.mp-logo-stack {
  display: flex;
  align-items: center;
}
.mp-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.mp-logo:first-child { margin-left: 0; }
.mp-logo img { width: 100%; height: 100%; object-fit: cover; }
.mp-logo-more {
  background: var(--bg-4);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: -0.02em;
}
.mp-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.mp-card-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.mp-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.mp-sparkline {
  width: 70px;
  height: 32px;
  display: block;
}
.mp-card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mp-card-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.mp-card-value-muted { color: var(--text-2); }
.mp-card-pct {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(16,185,129,0.12);
  color: var(--accent);
  line-height: 1;
}
.mp-card-pct-muted {
  background: var(--bg-4);
  color: var(--text-2);
}

/* ─── HIGHLIGHTS SECTION ─────────────────────────── */
.highlights-section {
  margin-bottom: 12px;
  padding-top: 0;
  padding-bottom: 0;
}
.hl-block {
  background: var(--bg-2);
  border-radius: 48px;
  overflow: hidden;
  padding: 100px 0;
}
/* Highlight reveal: horizontal slide, slower, left-first */
.hl-layout > [data-reveal] {
  transition-duration: 1.5s;
}
.hl-layout > [data-reveal]:first-child {
  transform: translateX(-28px);
}
.hl-layout > [data-reveal]:nth-child(2) {
  transform: translateX(28px);
}
.hl-layout > [data-reveal].revealed {
  transform: translateX(0);
}

.hl-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
.hl-layout-flip { }
.hl-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 8px;
}
.hl-content .section-eyebrow { margin-bottom: -8px; }
.hl-title {
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin: 0;
}
.hl-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}
.hl-media { display: flex; }
.hl-bleed-left .hl-img {
  width: calc(100% + 64px);
  margin-left: -64px;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hl-bleed-right .hl-img {
  width: calc(100% + 64px);
  margin-right: -64px;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Comparison stack */
.import-compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.compare-item strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.compare-item span {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.compare-bad strong { color: #EF4444; }
.compare-good strong { color: var(--accent); }
.compare-icon { flex-shrink: 0; margin-top: 2px; width: 28px; height: 28px; }
.compare-divider { display: none; }

/* ─── SHOWCASE ────────────────────────────────────── */
.showcase { background: var(--bg-2); border-radius: 48px; margin-bottom: 12px; padding: 120px 0 160px; }
.showcase .section-header { padding: 0 32px; max-width: 1160px; margin: 0 auto 80px; }
.showcase-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}
.showcase-steps {
  display: flex;
  flex-direction: column;
}
.showcase-step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  opacity: 0.25;
  transition: opacity 0.5s var(--ease);
}
.showcase-step.active { opacity: 1; }
.step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}
.showcase-step h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.showcase-step p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 24px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.step-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Showcase phone */
.showcase-phone-col {
  position: relative;
}
.showcase-phone-sticky {
  position: sticky;
  top: calc(50vh - 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.showcase-phone {
  width: 280px;
  flex-shrink: 0;
}
.showcase-phone .phone-frame {
  width: 280px;
  height: 600px;
  border-radius: 50px;
}
.showcase-phone .phone-screen {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-radius: 42px;
  background: #080C18;
  overflow: hidden;
}

/* Showcase screens */
.showcase-screen {
  position: absolute;
  inset: 0;
  background: #080C18;
  padding: 60px 20px 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
  border-radius: 42px;
  overflow: hidden;
}
.showcase-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.ss-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.ss-header > span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ss-value {
  margin-bottom: 12px;
}
.ss-value p {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ss-value h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.positive-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(16,185,129,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}
.ss-chart {
  width: 100%;
  height: 50px;
  display: block;
  margin-bottom: 12px;
}
.ss-holdings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ss-holding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.ss-holding > span:nth-child(2) { color: var(--text-2); }
.ss-holding .positive { color: var(--accent); font-weight: 600; }
.ss-tk {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.ss-tk.aapl { background: rgba(78,138,255,0.18); color: #4E8AFF; }
.ss-tk.msft { background: rgba(16,185,129,0.16); color: var(--accent); }
.ss-tk.vti  { background: rgba(155,100,255,0.16); color: #9B64FF; }

/* Screen 1 - Performance */
.ss-perf {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.perf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.perf-row:last-child { border-bottom: none; }
.perf-row span:first-child { color: var(--text-2); }
.perf-row span:last-child { font-weight: 600; color: var(--text); }
.perf-row.accent { background: rgba(16,185,129,0.05); }
.perf-row .positive { color: var(--accent); }
.ss-period-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-3);
  padding: 6px;
  border-radius: 12px;
}
.ss-period-tabs span {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
}
.ss-period-tabs span.active {
  background: var(--bg-4);
  color: var(--text);
  font-weight: 600;
}

/* Screen 2 - Dividends */
.ss-div-summary {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, transparent 100%);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.ss-div-summary p { font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.ss-div-summary h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin-bottom: 4px; }
.muted-text { font-size: 12px; color: var(--text-3); }
.ss-section-label { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.ss-div-list { display: flex; flex-direction: column; gap: 6px; }
.ss-div-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
}
.div-d { color: var(--text-3); font-size: 11px; }
.ss-div-item .positive { color: var(--accent); font-weight: 600; }

/* Screen 3 - Taxes */
.ss-tax-year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  padding: 5px 12px;
  background: var(--bg-3);
  border-radius: 100px;
  display: inline-block;
}
.ss-tax-rows {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.ss-tax-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.ss-tax-row:last-child { border-bottom: none; }
.ss-tax-row span:first-child { color: var(--text-2); }
.ss-tax-row span:last-child { font-weight: 600; color: var(--text); }
.ss-tax-divider { height: 1px; background: var(--border-md); }
.ss-tax-row.total { background: rgba(16,185,129,0.05); }
.accent-text { color: var(--accent) !important; }
.ss-tax-note { font-size: 10.5px; color: var(--text-3); line-height: 1.5; }

/* Showcase progress dots */
.showcase-dots {
  display: flex;
  gap: 8px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-md);
  transition: background 0.3s, transform 0.3s var(--ease-spring);
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* ─── WHY RECAP ───────────────────────────────────── */
.why { background: var(--bg-2); border-radius: 48px; margin-bottom: 12px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.why-card {
  padding: 48px 36px;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}
.why-card:last-child { border-right: none; }
.why-card:hover { background: var(--bg-3); }
.why-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  opacity: 0.7;
}
.why-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.why-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── FINAL CTA ───────────────────────────────────── */
.final-cta[data-reveal] { transform: translateY(60px); }
.final-cta[data-reveal].revealed { transform: translateY(0); }
/* Dark section — deliberate contrast anchor at page end */
.final-cta {
  position: relative;
  padding: 0 0 120px;
  text-align: center;
  overflow: hidden;
  background: #000;
  border-radius: 48px;
  margin-bottom: 12px;
  /* re-declare dark vars so children inherit correctly */
  --text:    #EDF0FF;
  --text-2:  #828AA0;
  --text-3:  #444C62;
  --border:  rgba(255,255,255,0.10);
  --accent:  #10B981;
}
.cta-hero-img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  margin-bottom: 0;
}
.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
}
.cta-orb-1 {
  width: 500px; height: 500px;
  background: #10B981;
  top: -100px; left: 50%;
  transform: translateX(-50%);
}
.cta-orb-2 {
  width: 400px; height: 400px;
  background: #4E8AFF;
  bottom: -100px; right: 10%;
  opacity: 0.10;
}
.final-cta .container { margin-top: -100px; position: relative; z-index: 1; }
.cta-inner { position: relative; }
.cta-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 48px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cta-footnote {
  font-size: 13px;
  color: var(--text-3);
}
/* In the dark CTA, primary button should be white */
.final-cta .btn-primary {
  background: #EDF0FF;
  color: #06080F;
}
.final-cta .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.final-cta .btn-outline {
  border-color: rgba(255,255,255,0.18);
  color: #EDF0FF;
}
.final-cta .btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
}

/* ─── FAQ ─────────────────────────────────────────── */
.faq-section {
  padding-top: 160px;
  padding-bottom: 80px;
}
.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.faq-left {
  position: sticky;
  top: 100px;
}
.faq-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}
.faq-support {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
}
.faq-support a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.faq-support a:hover { text-decoration: underline; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--text-3);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s;
}
.faq-icon-minus {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.faq-question[aria-expanded="true"] .faq-icon-plus {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
.faq-question[aria-expanded="true"] .faq-icon-minus {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--accent);
}
.faq-question[aria-expanded="true"] { color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
}
.faq-answer.open {
  max-height: 400px;
}
.faq-answer p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── FOOTER ──────────────────────────────────────── */
.footer {
  border-radius: 48px 48px 0 0; /* flat bottom — wordmark bleeds to screen edge */
  padding-top: 80px;
  overflow: hidden;
  background: var(--bg);
}
.footer-separator {
  height: 1px;
  background: var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-meta .nav-logo { margin-bottom: 14px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.footer-copyright {
  font-size: 13px;
  color: var(--text-3);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

/* Big wordmark */
.footer-wordmark-wrap {
  overflow: hidden;
  line-height: 1;
  margin-top: 32px;
  /* height set by JS to 80% of text height (crop bottom 20%) */
  /* horizontally centered to align with .container */
  display: flex;
  justify-content: center;
}
.footer-wordmark {
  display: block;
  font-size: 200px; /* JS will override this */
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  padding: 0;
  flex-shrink: 0;
}


/* ─── UTILITY CLASSES ────────────────────────────── */
.positive { color: var(--accent) !important; }
.negative { color: #FF5C72 !important; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1100px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-card:nth-child(2) { border-right: none; }
  .why-card:nth-child(3) { border-top: 1px solid var(--border); }
  .why-card:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .showcase-wrapper { grid-template-columns: 1fr 360px; gap: 60px; }
}

@media (max-width: 900px) {
  .section { padding: 90px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; padding-top: 80px; padding-bottom: 60px; }
  .hero-content { max-width: 100%; }
  .hero-visual { justify-content: center; }
  .hero-headline { font-size: clamp(44px, 8vw, 64px); }
  .desktop-br { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.feature-large { grid-column: 1 / -1; }
  .showcase-wrapper { grid-template-columns: 1fr; }
  .showcase-phone-col { display: flex; justify-content: center; order: -1; margin-bottom: 60px; }
  .showcase-phone-sticky { position: relative; top: auto; }
  .showcase-step { min-height: auto; padding: 40px 0; opacity: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  body { padding: 8px 8px 0; }
  .hero, .callout, .problem, .features, .showcase, .why, .final-cta, .footer {
    border-radius: 24px;
  }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .nav-inner { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav { height: auto; min-height: var(--nav-h); width: calc(100vw - 56px); top: 8px; }
  .hero { padding-top: 80px; }
  .hero-headline { font-size: clamp(38px, 10vw, 52px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.feature-large { display: flex; flex-direction: column; gap: 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { border-right: none; border-top: 1px solid var(--border); }
  .why-card:first-child { border-top: none; }
  .showcase-wrapper { padding: 0 20px; }
  .phone-mockup { width: 260px; }
  .phone-frame { width: 260px; height: 560px; border-radius: 46px; }
  .showcase-phone .phone-frame { width: 252px; height: 540px; border-radius: 44px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn-primary, .cta-actions .btn-outline { justify-content: center; }
  .showcase .section-header { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .section-title { font-size: 30px; }
  .phone-mockup { width: 240px; }
  .phone-frame { width: 240px; height: 520px; border-radius: 44px; }
}
