/* ========================================================
   Meridian Landing — design tokens & global type
   ======================================================== */

:root{
  /* Brand — blue → purple */
  --grad: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #A78BFA 100%);
  --grad-h: linear-gradient(90deg, #3B82F6 0%, #6366F1 50%, #A78BFA 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,130,246,.18), rgba(99,102,241,.18), rgba(167,139,250,.18));
  --c-blue:    #3B82F6;
  --c-indigo:  #6366F1;
  --c-purple:  #A78BFA;

  /* Neutrals — light theme (warm) — hero only */
  --bg:        #F7F8F6;
  --bg-warm:   #F5F1EA;
  --bg-elev:   #FFFFFF;
  --bg-dark:   #0A0F1A;
  --ink-1:     #0A0F1A;
  --ink-2:     #4A5468;
  --ink-3:     #8692A6;
  --line:      rgba(10,15,26,.08);
  --line-2:    rgba(10,15,26,.14);
  --card:      #FFFFFF;

  /* Type — Origin-inspired stack:
     --f-display: serif headlines (Lyon Display → Newsreader)
     --f-sans:    neutral grotesque body (Suisse Int'l → Inter)
     --f-mono:    UI labels, buttons, nav (Roboto Mono, same as Origin) */
  --f-display: "Newsreader", "Lyon Display", Georgia, "Times New Roman", serif;
  --f-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii / shadow */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.7) inset, 0 14px 40px -16px rgba(10,15,26,.18), 0 2px 6px -2px rgba(10,15,26,.08);
  --shadow-phone: 0 30px 80px -30px rgba(10,15,26,.45), 0 12px 30px -12px rgba(10,15,26,.25), 0 0 0 1px rgba(10,15,26,.06);
  --shadow-btn: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px -8px rgba(10,15,26,.45);
}

/* ── Dark surface overrides — closing sections ── */
.who,
.plaid-trust{
  --bg:      #0C1017;
  --bg-warm: #12151E;
  --bg-elev: #161B28;
  --ink-1:   #F0F2F5;
  --ink-2:   rgba(240,242,245,.6);
  --ink-3:   rgba(240,242,245,.35);
  --line:    rgba(255,255,255,.07);
  --line-2:  rgba(255,255,255,.12);
  --card:    #161B28;
  --shadow-card: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 40px -16px rgba(0,0,0,.5), 0 2px 6px -2px rgba(0,0,0,.3);
  color: var(--ink-1);
}

*,*::before,*::after{ box-sizing: border-box; }
html,body{ margin:0; padding:0; overflow-x: hidden; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--f-sans);
  color: var(--ink-1);
  background: #F7F8F6;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; }

.container{
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================================
   Buttons
   ======================================================== */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 999px;
  padding: 16px 26px;
  font-family: var(--f-mono);
  font-weight: 500; font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-dark{
  background: var(--ink-1);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-dark:hover{ transform: translateY(-1px); background: #1a2236; }
.btn-dark:active{ transform: translateY(0); }
.btn-sm{ padding: 11px 18px; font-size: 14px; }
.btn[disabled]{ opacity: .85; cursor: default; transform: none !important; }
.btn-arrow{ font-size: 1.05em; transition: transform .25s ease; }
.btn:hover .btn-arrow{ transform: translateX(3px); }

/* ========================================================
   Logo
   ======================================================== */
.logo{ display: inline-flex; align-items: center; gap: 10px; }
.logo-mark{
  width: 30px; height: 30px;
  border-radius: 9px;
  background: url("assets/apogee-mark.png") center/cover no-repeat;
  display: inline-grid; place-items: center;
  box-shadow: 0 4px 14px -4px rgba(37,71,221,.55);
  position: relative;
  overflow: hidden;
}
.logo-mark-inner{ display: none; }
.logo-word{
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
}

/* ========================================================
   NAV — hero overlay → compact sticky pills
   ======================================================== */
.nav{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 40px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1344px;
  margin: 0 auto;
}

/* ── left group: brand + separator + links ── */
.nav-left{
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition:
    background .45s cubic-bezier(.22,.61,.36,1),
    border-color .45s ease,
    box-shadow .45s ease,
    padding .45s cubic-bezier(.22,.61,.36,1),
    gap .45s cubic-bezier(.22,.61,.36,1),
    -webkit-backdrop-filter .45s ease,
    backdrop-filter .45s ease;
}

.nav-brand{
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand .logo-word{
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.3);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
  transition: opacity .35s ease, max-width .4s cubic-bezier(.22,.61,.36,1), margin .4s ease;
  max-width: 120px;
  overflow: hidden;
}

.nav-sep{
  width: 1px; height: 16px;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .35s ease;
}

.nav-links{
  display: flex; align-items: center; gap: 24px;
  white-space: nowrap;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.nav-links a{
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
  font-family: var(--f-mono);
  font-weight: 400; font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color .15s, text-shadow .35s ease, font-weight .35s ease;
  text-decoration: none;
}
.nav-links a:hover{ color: #fff; }

/* ── right: CTA ── */
.nav-cta{
  pointer-events: auto;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--f-mono);
  font-weight: 500; font-size: 12px; letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: var(--ink-1);
  color: #fff;
  border: 1px solid var(--ink-1);
  text-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px -8px rgba(10,15,26,.45);
  transition:
    background .4s ease,
    color .4s ease,
    border-color .4s ease,
    box-shadow .4s ease,
    text-shadow .35s ease,
    transform .15s ease,
    -webkit-backdrop-filter .4s ease,
    backdrop-filter .4s ease;
}
.nav-cta:hover{ transform: translateY(-1px); background: #1a2236; }

/* ========================================================
   NAV — scrolled compact state
   ======================================================== */
.nav.nav-scrolled{ padding: 14px 32px; }

.nav.nav-scrolled .nav-left{
  background: rgba(255,255,255,.68);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 28px -10px rgba(10,15,26,.18);
  padding: 8px 20px 8px 12px;
  gap: 18px;
}

.nav.nav-scrolled .nav-brand .logo-word{
  color: var(--ink-1);
  text-shadow: none;
  max-width: 0;
  opacity: 0;
  margin-left: -6px;
}

.nav.nav-scrolled .nav-sep{
  opacity: 1;
  background: rgba(10,15,26,.12);
}

.nav.nav-scrolled .nav-links a{
  color: var(--ink-2);
  text-shadow: none;
  font-weight: 500;
}
.nav.nav-scrolled .nav-links a:hover{ color: var(--ink-1); }

.nav.nav-scrolled .nav-cta{
  background: var(--ink-1);
  color: #fff;
  border-color: var(--ink-1);
  text-shadow: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px -8px rgba(10,15,26,.45);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav.nav-scrolled .nav-cta:hover{ background: #1a2236; }

/* ========================================================
   HERO
   ======================================================== */
.hero{
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  align-content: center;
  row-gap: 42px;
  padding: 124px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg{
  position: absolute; inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero-bg-photo{
  background: url("assets/hero-hilltop.png") center 40% / cover no-repeat;
  filter: saturate(1.06) contrast(1.04);
  animation: heroBreathe 32s ease-in-out infinite alternate;
  will-change: transform;
  transform-origin: 52% 55%;
}
@keyframes heroBreathe{
  0%   { transform: scale(1.04) translate3d(0,    0,    0); }
  50%  { transform: scale(1.07) translate3d(-1.2%, -.6%, 0); }
  100% { transform: scale(1.05) translate3d(.8%,  -.3%, 0); }
}

/* ── Drifting cloud layer ── */
.hero-clouds{
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}
.hero-clouds .cloud{
  position: absolute;
  background:
    radial-gradient(ellipse 55% 50% at 30% 50%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 50%, transparent 75%),
    radial-gradient(ellipse 35% 45% at 70% 60%, rgba(255,255,255,.45) 0%, transparent 70%);
  filter: blur(18px);
  border-radius: 50%;
  will-change: transform;
  animation: cloudDrift linear infinite;
}
.hero-clouds .cloud-1{ width: 720px; height: 220px; top:  8%; animation-duration: 110s; animation-delay:   0s; opacity: .55; }
.hero-clouds .cloud-2{ width: 540px; height: 180px; top: 22%; animation-duration:  90s; animation-delay: -38s; opacity: .45; }
.hero-clouds .cloud-3{ width: 820px; height: 240px; top: 14%; animation-duration: 140s; animation-delay: -70s; opacity: .35; }
.hero-clouds .cloud-4{ width: 460px; height: 140px; top: 32%; animation-duration: 75s;  animation-delay: -25s; opacity: .4;  }

@keyframes cloudDrift{
  from{ transform: translate3d(-30vw, 0, 0); }
  to  { transform: translate3d(130vw, 0, 0); }
}

/* ── Floating petals / dust ── */
.hero-particles{
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles .petal{
  position: absolute;
  width: 5px; height: 5px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.35) 60%, transparent 75%);
  border-radius: 50%;
  filter: blur(.3px);
  opacity: 0;
  will-change: transform, opacity;
  animation: petalDrift linear infinite;
}
.petal.p1  { left:  6%; top:-4%;  width:5px;  height:5px;  animation-duration: 22s; animation-delay:  -2s; }
.petal.p2  { left: 14%; top:-8%;  width:4px;  height:4px;  animation-duration: 28s; animation-delay:  -7s; }
.petal.p3  { left: 22%; top:-2%;  width:6px;  height:6px;  animation-duration: 18s; animation-delay: -12s; }
.petal.p4  { left: 31%; top:-6%;  width:3px;  height:3px;  animation-duration: 32s; animation-delay:  -3s; }
.petal.p5  { left: 38%; top:-10%; width:5px;  height:5px;  animation-duration: 24s; animation-delay: -18s; }
.petal.p6  { left: 46%; top:-3%;  width:4px;  height:4px;  animation-duration: 30s; animation-delay:  -9s; }
.petal.p7  { left: 54%; top:-7%;  width:6px;  height:6px;  animation-duration: 20s; animation-delay: -14s; }
.petal.p8  { left: 62%; top:-2%;  width:4px;  height:4px;  animation-duration: 26s; animation-delay:  -5s; }
.petal.p9  { left: 70%; top:-9%;  width:5px;  height:5px;  animation-duration: 34s; animation-delay: -22s; }
.petal.p10 { left: 78%; top:-5%;  width:3px;  height:3px;  animation-duration: 21s; animation-delay: -16s; }
.petal.p11 { left: 86%; top:-3%;  width:5px;  height:5px;  animation-duration: 27s; animation-delay: -11s; }
.petal.p12 { left: 92%; top:-8%;  width:4px;  height:4px;  animation-duration: 31s; animation-delay:  -6s; }
.petal.p13 { left: 18%; top:-6%;  width:3px;  height:3px;  animation-duration: 36s; animation-delay: -20s; }
.petal.p14 { left: 66%; top:-5%;  width:5px;  height:5px;  animation-duration: 23s; animation-delay:  -1s; }

@keyframes petalDrift{
  0%   { transform: translate3d(0,    -10vh, 0) rotate(0deg);   opacity: 0; }
  10%  { opacity: .85; }
  30%  { transform: translate3d(-30px, 30vh, 0) rotate(120deg); }
  60%  { transform: translate3d(20px,  65vh, 0) rotate(240deg); }
  90%  { opacity: .85; }
  100% { transform: translate3d(-15px, 115vh, 0) rotate(360deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .hero-bg-photo,
  .hero-clouds .cloud,
  .hero-particles .petal{ animation: none !important; }
  .hero-particles{ display: none; }
}

.hero-bg-gradient{
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(59,130,246,.45), transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 70%, rgba(167,139,250,.4), transparent 55%),
    radial-gradient(ellipse 60% 50% at 60% 20%, rgba(99,102,241,.35), transparent 60%),
    linear-gradient(180deg, #0E1220, #0B0E16);
}
.hero-bg-solid{
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(59,130,246,.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(167,139,250,.22), transparent 60%),
    #0A0F1A;
}
/* ── Video background ── */
.hero-bg-video{
  overflow: hidden;
}
.hero-video{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.25) contrast(1.08) brightness(.92);
}
body[data-hero="video"]    .hero-bg-video    { opacity: 1; }
body[data-hero="photo"]    .hero-bg-photo    { opacity: 1; }
body[data-hero="gradient"] .hero-bg-gradient { opacity: 1; }
body[data-hero="solid"]    .hero-bg-solid    { opacity: 1; }

/* ── Video hero text treatment ── */
body[data-hero="video"] .hero-h1{ color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
body[data-hero="video"] .hero-sub{ color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.35); }
body[data-hero="video"] .eyebrow{ background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); color: #fff; }
body[data-hero="video"] .hero-security{ color: rgba(255,255,255,.85); }
body[data-hero="video"] .email-trust{ color: rgba(255,255,255,.85); text-shadow: 0 1px 10px rgba(0,0,0,.3); }
body[data-hero="video"] .hero-scroll{ color: rgba(255,255,255,.7); }
body[data-hero="video"] .hero-shade{
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(0,0,0,.24), transparent 70%),
    linear-gradient(180deg,
      rgba(0,0,0,.06) 0%,
      rgba(0,0,0,.08) 34%,
      rgba(0,0,0,.14) 52%,
      rgba(0,0,0,.22) 66%,
      rgba(200,202,206,.30) 80%,
      rgba(235,237,239,.65) 90%,
      #F7F8F6 100%);
}

.hero-shade{
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  transition: opacity .3s, background .3s;
}
body[data-hero="photo"] .hero-shade{
  background:
    radial-gradient(ellipse 56% 62% at 30% 42%, rgba(0,0,0,.22), transparent 72%),
    radial-gradient(ellipse 44% 58% at 78% 48%, rgba(255,255,255,.28), transparent 72%),
    linear-gradient(180deg,
      rgba(10,14,21,0) 0%,
      rgba(10,14,21,0) 42%,
      rgba(10,14,21,.18) 60%,
      rgba(10,14,21,.58) 78%,
      rgba(10,14,21,.88) 92%,
      #0C1017 100%);
}
body[data-hero="gradient"] .hero-shade{
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
body[data-hero="solid"] .hero-shade{
  background:
    linear-gradient(180deg, transparent 65%, var(--bg) 100%);
}

.hero-content{
  position: relative; z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
body[data-hero="photo"] .hero-content,
body[data-hero="gradient"] .hero-content{ color: var(--ink-1); }
body[data-hero="solid"] .hero-content{ color: #fff; }
body[data-hero="solid"] .hero-h1{ color: #fff; }
body[data-hero="solid"] .hero-sub{ color: rgba(255,255,255,.78); }
body[data-hero="photo"] .hero-h1{ color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
body[data-hero="photo"] .hero-sub{ color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.35); }
body[data-hero="photo"] .eyebrow{ background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); color: #fff; }
body[data-hero="photo"] .hero-security{ color: rgba(255,255,255,.85); }
body[data-hero="photo"] .email-trust{ color: rgba(255,255,255,.85); text-shadow: 0 1px 10px rgba(0,0,0,.3); }
body[data-hero="photo"] .hero-scroll{ color: rgba(255,255,255,.7); }

.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(10,15,26,.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-1);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 4px 16px -8px rgba(10,15,26,.15);
}
.eyebrow-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(99,102,241,.22);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ transform: scale(1); opacity: 1; } 50%{ transform: scale(.85); opacity: .7; } }
.eyebrow-sep{ color: var(--ink-3); }

.hero-h1{
  font-family: var(--f-display);
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}
.hero-sub{
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 36ch;
  margin: 0;
  font-weight: 500;
}

/* Email form */
.email-form{
  width: 100%;
  max-width: 520px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.email-field{
  display: flex; align-items: center;
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(10,15,26,.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 32px -16px rgba(10,15,26,.25);
  transition: border-color .15s, box-shadow .2s;
}
.email-field:focus-within{
  border-color: rgba(10,15,26,.25);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 32px -10px rgba(10,15,26,.32);
}
.email-field input{
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px;
  color: var(--ink-1);
  padding: 10px 4px;
}
.email-field input::placeholder{ color: var(--ink-3); }
.email-form.is-invalid .email-field{ border-color: #E26464; box-shadow: 0 0 0 4px rgba(226,100,100,.12); }
.email-form.is-sent .email-field{ border-color: #4FB286; box-shadow: 0 0 0 4px rgba(79,178,134,.12); }
.email-trust{
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.hero-security{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  opacity: .85;
}

.hero-scroll{
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  opacity: .55;
}
body[data-hero="solid"] .hero-scroll{ color: rgba(255,255,255,.65); }
.hero-scroll-line{
  width: 1px; height: 32px;
  background: currentColor;
  animation: dropline 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes dropline{ 0%,100%{ transform: scaleY(.3); opacity: .3; } 50%{ transform: scaleY(1); opacity: 1; } }

/* ── Hero staggered entrance animation ── */
@keyframes heroFadeIn{
  from{ opacity: 0; transform: translateY(28px); }
  to  { opacity: 1; transform: translateY(0); }
}
.hero-stagger{
  opacity: 0;
  animation: heroFadeIn .8s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-content > .hero-stagger:nth-child(1){ animation-delay: .15s; }
.hero-content > .hero-stagger:nth-child(2){ animation-delay: .3s; }
.hero-content > .hero-stagger:nth-child(3){ animation-delay: .45s; }
.hero-content > .hero-stagger:nth-child(4){ animation-delay: .6s; }
.hero-scroll.hero-stagger{ animation-delay: 1.1s; }
.hero-widgets.hero-stagger{ animation-delay: .9s; }

/* ── Hero product widget showcase ── */
.hero-widgets{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  padding: 0 32px;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
}
.hw-card{
  background: rgba(30,30,36,.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 18px 22px;
  color: #fff;
  flex: 1 1 0;
  min-width: 180px;
  max-width: 220px;
  pointer-events: auto;
  box-shadow: 0 8px 32px -8px rgba(0,0,0,.4), 0 0 0 0.5px rgba(255,255,255,.06) inset;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.hw-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,.5), 0 0 0 0.5px rgba(255,255,255,.1) inset;
}

.hw-icon{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center;
  margin-bottom: 12px;
  color: rgba(255,255,255,.85);
}
.hw-label{
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.hw-value{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.hw-bar{
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.hw-bar-fill{
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-purple));
}
.hw-trend{
  display: flex; align-items: center; gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
}
.hw-trend--up{ color: #4ADE80; }
.hw-detail{
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
}

@media (max-width: 960px){
  .hero{ row-gap: 34px; padding-bottom: 84px; }
  .hero-widgets{ gap: 12px; }
  .hw-card{ min-width: 150px; max-width: 200px; padding: 14px 16px; border-radius: 14px; }
  .hw-value{ font-size: 18px; }
}
@media (max-width: 600px){
  .hero-widgets{
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: calc(100% - 32px);
  }
  .hw-card{
    min-width: 0;
    max-width: none;
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
  }
  .hw-icon{ width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px; }
  .hw-icon svg{ width: 14px; height: 14px; }
  .hw-label{ font-size: 9px; }
  .hw-value{ font-size: 15px; }
  .hw-trend, .hw-detail{ font-size: 10px; }
  .hw-bar{ margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce){
  .hero-stagger{ opacity: 1; animation: none; }
}

/* ========================================================
   BRIDGE
   ======================================================== */
.bridge{
  background: #F7F8F6;
  min-height: 980px;
  padding: clamp(110px, 10vw, 168px) 0 clamp(88px, 8vw, 132px);
  position: relative;
  overflow: hidden;
  color: var(--ink-1);
}
.bridge::before{
  display: none;
}
.bridge::after{
  display: none;
}
.bridge-inner{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(46px, 5.2vw, 72px);
}
.bridge-copy{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 24px);
}
.bridge-title{
  font-family: var(--f-display);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-1);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 500;
  text-wrap: balance;
}
.bridge-title em{
  font-style: italic;
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bridge-sub{
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.45;
  font-weight: 540;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}
.bridge-stage{
  --bridge-phone-offset-y: 18px;
  position: relative;
  width: min(1180px, 100vw);
  min-height: clamp(560px, 54vw, 700px);
  height: auto;
  padding-bottom: var(--bridge-phone-offset-y);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}
.bridge-stage::before{
  content: '';
  position: absolute;
  inset: -24% -24vw -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 50% 46%, rgba(93,128,255,.12) 0%, rgba(93,128,255,.06) 36%, rgba(93,128,255,.02) 58%, rgba(93,128,255,0) 82%),
    radial-gradient(ellipse 62% 54% at 50% 56%, rgba(147,197,253,.06) 0%, rgba(147,197,253,.025) 44%, rgba(147,197,253,0) 78%);
  filter: blur(34px);
}
.bridge-stage::after{
  display: none;
}
.bridge-marquee{
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 7%, #000 18%, #000 82%, rgba(0,0,0,.12) 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 7%, #000 18%, #000 82%, rgba(0,0,0,.12) 93%, transparent 100%);
}
.bridge-marquee--top{
  top: clamp(150px, 14vw, 196px);
}
.bridge-marquee--bottom{
  top: clamp(356px, 32vw, 430px);
}
.bridge-card-track{
  display: flex;
  width: max-content;
  gap: clamp(18px, 2vw, 28px);
  padding: 0 14px;
  animation: bridgeCardsLeft 34s linear infinite;
}
.bridge-marquee--bottom .bridge-card-track{
  animation-name: bridgeCardsRight;
  animation-duration: 38s;
}
.bridge-mini-card{
  --float-y: 0px;
  width: clamp(156px, 14vw, 210px);
  height: clamp(112px, 10vw, 142px);
  border-radius: clamp(22px, 2.1vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(10,15,26,.08);
  box-shadow:
    0 1px 2px rgba(10,15,26,.06),
    0 8px 24px -8px rgba(10,15,26,.10),
    0 0 0 1px rgba(255,255,255,.7) inset;
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
  transform: translateY(var(--float-y));
  color: var(--ink-2);
}
.bridge-marquee--top .bridge-mini-card:nth-child(4n+1){ --float-y: -10px; }
.bridge-marquee--top .bridge-mini-card:nth-child(4n+2){ --float-y: 8px; }
.bridge-marquee--top .bridge-mini-card:nth-child(4n+3){ --float-y: -4px; }
.bridge-marquee--bottom .bridge-mini-card:nth-child(4n+1){ --float-y: 9px; }
.bridge-marquee--bottom .bridge-mini-card:nth-child(4n+2){ --float-y: -8px; }
.bridge-marquee--bottom .bridge-mini-card:nth-child(4n+3){ --float-y: 5px; }
.bridge-mini-card span{
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 640;
}
.bridge-mini-card strong{
  color: var(--ink-1);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.bridge-mini-card--image{
  background:
    radial-gradient(circle at 72% 26%, rgba(139,92,246,.06), transparent 30%),
    radial-gradient(circle at 24% 80%, rgba(96,165,250,.06), transparent 34%),
    rgba(255,255,255,.72);
}
.bridge-phone{
  position: relative;
  z-index: 2;
  width: min(390px, 42vw);
  height: auto;
  aspect-ratio: 1308 / 2708;
  transform: translateY(var(--bridge-phone-offset-y));
  filter:
    drop-shadow(0 48px 64px rgba(0,0,0,.36))
    drop-shadow(0 14px 28px rgba(54,69,166,.20));
  user-select: none;
}

@keyframes bridgeCardsLeft{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@keyframes bridgeCardsRight{
  from{ transform: translateX(-50%); }
  to{ transform: translateX(0); }
}

/* ========================================================
   SECTION HEAD
   ======================================================== */
.section-head{
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto 64px;
}
.section-label{
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-label::before,
.section-label::after{
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: .6;
}
.section-title{
  font-family: var(--f-display);
  margin: 0;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink-1);
  text-wrap: balance;
}
.section-title em{
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub{
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  text-wrap: balance;
  font-weight: 500;
}

/* ========================================================
   FEATURES (3 sub-blocks: Analyze · Set Goal · Track)
   ======================================================== */
.features{
  background: #F8F9FA;
  padding: 0;
  overflow: hidden;
  position: relative;
  color: var(--ink-1);
  isolation: isolate;
}
.features::before{
  display: none;
}
.features > *{
  position: relative;
  z-index: 1;
}
.feature-block{
  position: relative;
  padding: clamp(96px, 9vw, 136px) 0;
}
.feature-block::before{
  display: none;
}
.feature-block::after{
  display: none;
}

/* ── Analyze hero-style showcase ── */
.analyze-showcase{
  display: grid;
  grid-template-columns: minmax(620px, 720px) minmax(520px, 620px);
  gap: clamp(70px, 5.4vw, 104px);
  align-items: center;
  width: min(calc(100vw - 112px), 1410px);
  max-width: none;
  margin: 0 auto;
  justify-content: center;
}
.analyze-visual{
  min-width: 0;
}
.analyze-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: clamp(28px, 4vw, 46px);
  background: #0E1220;
  border: 1px solid rgba(99,130,255,.30);
  box-shadow:
    0 0 0 1px rgba(99,130,255,.08),
    0 0 24px rgba(99,130,255,.10),
    0 12px 34px -20px rgba(10,15,26,.40);
}
.analyze-stage::before{
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 15% 0%, rgba(99,130,255,.28), transparent 40%),
    radial-gradient(circle at 85% 100%, rgba(99,130,255,.18), transparent 40%);
  pointer-events: none;
  mask-image: none;
}
.analyze-stage::after{
  display: none;
}
.analyze-phone-mockup{
  position: absolute;
  z-index: 2;
  top: 92px;
  left: 50%;
  width: min(55%, 408px);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 34px 54px rgba(0,0,0,.36))
    drop-shadow(0 12px 20px rgba(17,24,39,.22));
  user-select: none;
}
.feature-copy{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
.feature-copy .section-label{
  color: var(--ink-3);
}
.feature-copy .section-label::after{
  display: none;
}
.feature-copy .section-title{
  max-width: 620px;
  font-size: clamp(42px, 4vw, 56px);
  line-height: 1.06;
  text-align: left;
  letter-spacing: -0.025em;
}
.feature-copy .section-sub{
  max-width: 520px;
  text-align: left;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
  margin-top: 4px;
}
.features .section-title,
.features .feature-copy .section-title{
  color: var(--ink-1);
}
.features .section-sub,
.features .feature-copy .section-sub{
  color: var(--ink-2);
}
.features .section-label{
  color: var(--ink-3);
}
.features .feature-checklist{
  color: var(--ink-1);
}
.features .feature-checklist li::before{
  background: rgba(10,15,26,.04);
  border-color: rgba(10,15,26,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.features .feature-checklist li::after{
  border-color: var(--c-indigo);
}
.feature-checklist{
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  color: var(--ink-1);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
  max-width: 540px;
}
.feature-checklist li{
  position: relative;
  padding-left: 38px;
}
.feature-checklist li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(167,139,250,.20));
  border: 1px solid rgba(59,130,246,.22);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.feature-checklist li::after{
  content: "";
  position: absolute;
  left: 8px;
  top: calc(.1em + 6px);
  width: 7px;
  height: 10px;
  border: solid var(--c-blue);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* ── Plan bento ── */
.feature-block--dark{
  background: transparent;
  isolation: isolate;
}
.feature-block--dark::before{
  display: none;
}
.feature-block--dark > *{
  position: relative;
  z-index: 1;
}
.plan-stage{
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}
.plan-stage::before{
  display: none;
}
.plan-stage .section-head{
  position: relative;
  z-index: 1;
  margin-bottom: clamp(34px, 4vw, 56px);
}
.plan-stage .section-title{
  color: var(--ink-1);
}
.plan-stage .section-title em{
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.plan-stage .section-sub{
  color: var(--ink-2);
}
.plan-bento{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.2vw, 28px);
  align-items: stretch;
}
.plan-card{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 32px;
  background: #FFFFFF;
  border: 1px solid rgba(10,15,26,.05);
  box-shadow:
    0 1px 2px rgba(10,15,26,.03),
    0 20px 56px -30px rgba(10,15,26,.16);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.plan-card:hover{
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(10,15,26,.04),
    0 30px 70px -30px rgba(10,15,26,.22);
}
/* copy sits at the TOP — generous breathing room */
.plan-card-copy{
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 3.6vw, 48px) clamp(30px, 3.2vw, 44px) clamp(10px, 1.4vw, 18px);
}
/* mockup sits at the BOTTOM and bleeds past the card's edge */
.plan-card-mockup{
  position: relative;
  flex: 1;
  min-height: clamp(430px, 36vw, 500px);
  overflow: visible;
}
.plan-card-mockup img{
  display: block;
  position: absolute;
  top: clamp(20px, 2.2vw, 32px);
  left: 50%;
  width: min(270px, 66%);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 26px 38px rgba(10,15,26,.20))
    drop-shadow(0 8px 16px rgba(10,15,26,.14));
  user-select: none;
}
.plan-card-title{
  font-family: var(--f-display);
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-1);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.plan-card-sub{
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 360px;
  font-weight: 400;
}
@media (max-width: 960px){
  .plan-bento{
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    gap: 20px;
  }
  .plan-card-mockup{
    min-height: clamp(340px, 58vw, 420px);
  }
  .plan-card-mockup img{
    width: min(280px, 62%);
    top: clamp(20px, 4vw, 32px);
  }
}
@media (max-width: 600px){
  .plan-stage{ padding: 0; }
  .plan-card-copy{ padding: 30px 26px 10px; }
  .plan-card-sub{ font-size: 14px; }
  .plan-card-mockup{
    min-height: clamp(320px, 72vw, 420px);
  }
  .plan-card-mockup img{
    width: min(260px, 66%);
    top: 24px;
  }
}

/* ── widget grid ── */
.widget-grid{
  display: grid;
  gap: 28px 24px;
  margin-top: 56px;
}
.widget-grid-1{ grid-template-columns: minmax(0, 900px); justify-content: center; }
.widget-grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1080px; margin-left: auto; margin-right: auto; }
.widget-grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1080px; margin-left: auto; margin-right: auto; }

@media (max-width: 820px){
  .widget-grid-2, .widget-grid-4{ grid-template-columns: 1fr; max-width: 480px; }
}

/* ── widget card frame ── */
.widget-card{
  display: flex; flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.widget-vis{
  --ink-1: #FFFFFF;
  position: relative;
  border-radius: 24px;
  padding: 22px 22px 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,.10), transparent 60%),
    linear-gradient(160deg, #1A1F33 0%, #0E1220 100%);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 28px 60px -30px rgba(0,0,0,.6),
    0 8px 20px -10px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease;
}
.widget-card:hover .widget-vis{
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 36px 70px -28px rgba(0,0,0,.65),
    0 0 0 1px rgba(99,102,241,.18);
}
.widget-grid-1 .widget-vis{ min-height: 420px; padding: 28px 32px; }

.widget-caption{
  text-align: left;
  padding: 0 12px;
  max-width: 42ch;
  margin: 0;
}
.widget-caption h3{
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.features .widget-caption h3{
  color: var(--ink-1);
}
.widget-caption p{
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  font-weight: 500;
}
.features .widget-caption p{
  color: var(--ink-2);
}

/* ───────────────────────────────────────────
   Analyze — product UI demos
   ─────────────────────────────────────────── */
.analyze-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 56px auto 0;
  align-items: start;
}
.analyze-card{
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.analyze-demo{
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
  background: #FFFFFF;
  border: 1px solid rgba(10,15,26,.05);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9) inset,
    0 1px 2px rgba(10,15,26,.04),
    0 4px 12px -4px rgba(10,15,26,.08),
    0 24px 56px -20px rgba(10,15,26,.14);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.analyze-card:hover .analyze-demo{
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9) inset,
    0 1px 2px rgba(10,15,26,.04),
    0 8px 20px -4px rgba(10,15,26,.10),
    0 32px 64px -16px rgba(10,15,26,.18);
}
.demo-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.demo-info{
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(10,15,26,.25);
  color: rgba(10,15,26,.4);
  font-size: 12px;
  font-family: Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}

.trend-demo{
  display: flex;
  flex-direction: column;
}
.trend-tabs{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 24px;
}
.trend-tab{
  appearance: none;
  border: 1px solid rgba(10,15,26,.06);
  border-radius: 16px;
  background: rgba(10,15,26,.025);
  min-width: 0;
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .32s ease, box-shadow .32s ease, background .32s ease, transform .2s ease;
}
.trend-tab span{
  display: block;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.trend-tab strong{
  display: block;
  margin-top: 6px;
  color: var(--ink-1);
  font-size: clamp(16px, 1.6vw, 24px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trend-demo[data-mode="income"] .trend-tab[data-mode="income"],
.trend-demo[data-mode="spend"] .trend-tab[data-mode="spend"],
.trend-demo[data-mode="save"] .trend-tab[data-mode="save"]{
  background: #FFFFFF;
  border-color: rgba(99,102,241,.28);
  box-shadow: 0 0 0 3px rgba(99,102,241,.06), 0 8px 20px -16px rgba(10,15,26,.25);
  transform: translateY(-1px);
}
.trend-demo[data-mode="income"] .trend-tab[data-mode="income"] strong,
.trend-demo[data-mode="spend"] .trend-tab[data-mode="spend"] strong,
.trend-demo[data-mode="save"] .trend-tab[data-mode="save"] strong{
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trend-chart{
  position: relative;
  flex: 1;
  min-height: 210px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(12px, 1.4vw, 20px);
  padding: 42px 6px 30px;
}
.trend-guide{
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  border-top: 1.5px dashed rgba(10,15,26,.07);
}
.trend-callout{
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid rgba(10,15,26,.06);
  box-shadow: 0 4px 16px -8px rgba(10,15,26,.2);
  color: var(--ink-2);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
  white-space: nowrap;
}
.trend-demo[data-mode="income"] .trend-callout-income,
.trend-demo[data-mode="spend"] .trend-callout-spend,
.trend-demo[data-mode="save"] .trend-callout-save{
  opacity: 1;
  transform: translateY(0);
}
.trend-bar{
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  min-height: 170px;
}
.trend-bar::before{
  content: "";
  width: 100%;
  max-width: 72px;
  height: var(--h-income);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #6366F1 0%, #A78BFA 100%);
  transform-origin: bottom;
  transform: scaleY(.15);
  transition: height .55s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
section.in-view .trend-bar::before{
  transform: scaleY(1);
}
.trend-demo[data-mode="spend"] .trend-bar::before{ height: var(--h-spend); }
.trend-demo[data-mode="save"] .trend-bar::before{ height: var(--h-save); }
.trend-bar em{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  color: var(--ink-3);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  letter-spacing: -.01em;
}

.track-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 56px auto 0;
  align-items: stretch;
}

.analyze-demo--screenshot{
  padding: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.analyze-demo--snapshot{
  height: 420px;
  padding: 22px;
  background: #F6F7FA;
}
.analyze-demo--categories{
  height: 500px;
  background: #F7F8FA;
}
.analyze-demo--calendar{
  height: 560px;
  padding: 10px;
  background: #151A38;
}
.analyze-demo--placeholder{
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(99,102,241,.08), transparent 62%),
    #FFFFFF;
  border: 1px dashed rgba(10,15,26,.16);
}
.placeholder-label{
  color: rgba(10,15,26,.42);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.analyze-screenshot{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}

/* ── Track grid — unified card style ── */
.track-grid .analyze-card{
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(10,15,26,.05);
  gap: 0;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
  box-shadow:
    0 1px 2px rgba(10,15,26,.03),
    0 18px 50px -28px rgba(10,15,26,.14);
}
.track-grid .analyze-card:hover{
  transform: translateY(-4px);
  box-shadow:
    0 1px 3px rgba(10,15,26,.04),
    0 10px 24px -4px rgba(10,15,26,.10),
    0 28px 52px -16px rgba(10,15,26,.12);
}
.track-grid .analyze-demo{
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  height: 360px;
  flex-shrink: 0;
  padding: 32px 28px 0;
}
.track-grid .analyze-card:hover .analyze-demo{
  transform: none;
  box-shadow: none;
}
.track-grid .widget-caption{
  padding: 20px 28px 28px;
  text-align: center;
  max-width: none;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.track-grid .widget-caption h3{
  width: 100%;
}
.track-grid .widget-caption p{
  max-width: 38ch;
}
/* ── Widget stack (layered screenshot cards) ── */
.analyze-demo--widgets{
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget-stack{
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget-screenshot{
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
  filter: brightness(1.04);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.analyze-demo--dark-widget .widget-screenshot{
  filter: none;
}
/* Clip container — crops screenshot gray borders */
.track-grid .widget-stack{
  width: 62%;
  overflow: hidden;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(10,15,26,.04),
    0 4px 24px rgba(10,15,26,.06);
}
.track-grid .analyze-demo--dark-widget .widget-stack{
  border-radius: 24px;
}
.track-grid .analyze-card:hover .widget-stack{
  transform: translateY(-3px);
}
/* Solo screenshot — fills clip container with slight overcrop */
.widget-screenshot--solo{
  position: relative;
  width: calc(100% + 12px);
  margin: -6px;
  max-height: none;
}
/* (vertical stack removed — all cards use solo layout) */
/* Dark widget — deeper crop to hide white border */
.analyze-demo--dark-widget .widget-screenshot--solo{
  width: calc(100% + 20px);
  margin: -10px;
}

.categories-demo{
  display: flex;
  flex-direction: column;
}
.category-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.category-list li{
  display: grid;
  grid-template-columns: 38px 1fr auto;
  grid-template-areas:
    "icon copy stat"
    "icon bar bar";
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1), background .2s ease;
  transition-delay: calc(var(--row, 0) * 80ms);
}
.category-list li:nth-child(1){ --row: 1; }
.category-list li:nth-child(2){ --row: 2; }
.category-list li:nth-child(3){ --row: 3; }
.category-list li:nth-child(4){ --row: 4; }
.category-list li:nth-child(5){ --row: 5; }
section.in-view .category-list li{
  opacity: 1;
  transform: translateY(0);
}
.category-list li:hover{
  background: rgba(10,15,26,.02);
}
.category-list li:hover .cat-icon{
  transform: scale(1.06);
}
.cat-icon{
  grid-area: icon;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: var(--tint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease;
}
.cat-copy{
  grid-area: copy;
  display: grid;
  gap: 1px;
  min-width: 0;
}
.cat-copy strong{
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.cat-stat strong{
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}
.cat-copy em{
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.cat-stat em{
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}
.cat-stat{
  grid-area: stat;
  display: grid;
  gap: 1px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cat-track{
  grid-area: bar;
  height: 5px;
  border-radius: 999px;
  background: rgba(10,15,26,.04);
  overflow: hidden;
}
.cat-track span{
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  opacity: .7;
  transition: width .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(180ms + var(--row, 0) * 80ms);
}
section.in-view .cat-track span{
  width: var(--bar);
}

.calendar-demo{
  min-height: 460px;
  padding: 0;
  color: var(--ink-1);
  background: #FFFFFF;
}
.calendar-top{
  padding: 26px 26px 8px;
}
.calendar-top h3{
  margin: 0 0 14px;
  color: var(--ink-1);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800;
}
.calendar-toggle{
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: rgba(10,15,26,.04);
  margin-bottom: 16px;
}
.calendar-toggle span{
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 11px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 700;
}
.calendar-toggle span:first-child{
  color: var(--ink-1);
  background: #FFFFFF;
  box-shadow: 0 1px 4px -1px rgba(10,15,26,.12);
}
.calendar-top > strong{
  display: block;
  text-align: center;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.calendar-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 14px 22px 120px;
}
.weekday{
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 4px;
}
.day,
.empty{
  position: relative;
  min-height: 40px;
  border-radius: 11px;
}
.day{
  padding: 7px;
  color: var(--ink-1);
  font-size: 13px;
  font-weight: 700;
  background: rgba(10,15,26,.025);
  border: 1px solid rgba(10,15,26,.04);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1), background .25s ease;
}
section.in-view .day{
  opacity: 1;
  transform: translateY(0);
}
section.in-view .day:nth-child(7n+1){ transition-delay: 60ms; }
section.in-view .day:nth-child(7n+2){ transition-delay: 100ms; }
section.in-view .day:nth-child(7n+3){ transition-delay: 140ms; }
section.in-view .day:nth-child(7n+4){ transition-delay: 180ms; }
.day.has-dots::after{
  content: "";
  position: absolute;
  left: 7px;
  bottom: 6px;
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #6366F1 0 2px, transparent 2.5px) 0 0 / 7px 4px repeat-x;
}
.day.selected{
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.28);
  box-shadow: 0 0 0 2px rgba(99,102,241,.08);
}
.day-sheet{
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  border-radius: 24px 24px 0 0;
  background: #FFFFFF;
  color: var(--ink-1);
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(10,15,26,.06);
  box-shadow: 0 -12px 32px -20px rgba(10,15,26,.15);
  transform: translateY(40px);
  opacity: 0;
  transition: opacity .7s ease, transform .75s cubic-bezier(.22,.61,.36,1);
  transition-delay: 220ms;
}
section.in-view .day-sheet{
  transform: translateY(0);
  opacity: 1;
}
.day-sheet-head{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.day-sheet-head strong{
  color: var(--ink-1);
  font-size: 20px;
  letter-spacing: -.03em;
  font-weight: 800;
}
.day-sheet h4{
  margin: 4px 0 10px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 800;
}
.day-sheet ul{
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.day-sheet li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(10,15,26,.025);
  border: 1px solid rgba(10,15,26,.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.day-sheet li strong{
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
  font-weight: 800;
}

/* ── shared widget header ── */
.w-head{
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.w-eyebrow{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.w-pill{
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
  letter-spacing: 0.02em;
}
.w-pill.up{ background: rgba(74, 222, 128, .14); color: #6FE8A0; }

/* ───────────────────────────────────────────
   Widget 1 — Monthly Averages
   ─────────────────────────────────────────── */
.w-averages .avg-list{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.w-averages .avg-list li{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.w-averages .avg-list li:first-child{ border-top: 0; }
.avg-meta{ display: flex; flex-direction: column; gap: 2px; }
.avg-l{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.55);
}
.avg-v{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink-1);
  font-variant-numeric: tabular-nums;
}
.avg-v b{
  font-weight: 700;
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.avg-spark{ width: 88px; height: 28px; opacity: .85; }

/* ───────────────────────────────────────────
   Widget 2 — Needs vs Wants
   ─────────────────────────────────────────── */
.w-needswants{ align-items: stretch; }
.nw-donut{
  position: relative;
  display: flex; justify-content: center;
  margin: 4px 0;
}
.nw-donut svg{ width: 138px; height: 138px; }
.nw-center{
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
}
.nw-l{ font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.nw-v{ font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.nw-legend{
  display: flex; justify-content: center; gap: 24px;
  font-size: 12px; color: rgba(255,255,255,.7);
}
.nw-legend > div{ display: inline-flex; align-items: center; gap: 8px; }
.nw-legend b{ font-weight: 700; color: var(--ink-1); margin-left: 2px; }
.nw-list{
  list-style: none; margin: 6px 0 0; padding: 0;
  display: flex; flex-direction: column;
}
.nw-list li{
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px 2px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px;
}
.nw-i{
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,.06);
  display: inline-grid; place-items: center;
  font-size: 11px;
  color: rgba(255,255,255,.7);
}
.nw-t{ font-weight: 600; color: var(--ink-1); text-align: left; }
.nw-tag{
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 6px; border-radius: 4px; text-transform: uppercase;
}
.nw-tag.tag-need{ background: rgba(59,130,246,.18); color: #93B7FF; }
.nw-tag.tag-want{ background: rgba(167,139,250,.18); color: #C7B0FF; }
.nw-v2{ font-weight: 700; color: var(--ink-1); font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────
   Widget 3 — Monthly Plan (wide)
   ─────────────────────────────────────────── */
.w-plan{ padding: 28px 32px; }
.plan-headline{
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px 28px;
  margin: 8px 0 18px;
}
.plan-h-block{
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.plan-h-l{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.plan-h-v{
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.028em;
  font-variant-numeric: tabular-nums;
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan-h-v small{ font-size: .45em; font-weight: 600; color: rgba(255,255,255,.5); margin-left: 4px; -webkit-text-fill-color: rgba(255,255,255,.5); }
.plan-h-v-muted{
  background: none;
  -webkit-text-fill-color: var(--ink-1);
  color: var(--ink-1);
}
.plan-h-sep{
  width: 1px;
  background: rgba(255,255,255,.1);
  align-self: stretch;
}
.plan-bars{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.plan-bars li{ display: flex; flex-direction: column; gap: 6px; }
.plan-bar-h{
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
}
.plan-bar-h span:first-child{ color: rgba(255,255,255,.7); font-weight: 600; }
.plan-bar-h span:last-child{ color: var(--ink-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan-bar-t{
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}
.plan-bar-t span{
  display: block;
  height: 100%;
  border-radius: 4px;
}
.plan-bar-savings .plan-bar-h span:last-child{
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ───────────────────────────────────────────
   Widget 4 — Net Worth (sv)
   ─────────────────────────────────────────── */
.sv-headline{ display: flex; flex-direction: column; gap: 2px; margin: 4px 0 6px; }
.sv-v{ font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.sv-target{ font-size: 11px; color: rgba(255,255,255,.55); font-weight: 600; }
.sv-bar{
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}
.sv-bar span{
  display: block; height: 100%;
  background: var(--grad-h);
  border-radius: 4px;
}
.sv-list{
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column;
}
.sv-list li{
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12.5px;
}
.sv-list li:first-child{ border-top: 0; }
.sv-list span{ color: rgba(255,255,255,.7); font-weight: 600; }
.sv-list b{ color: var(--ink-1); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────
   Widget 5 — Budget (Origin-style)
   ─────────────────────────────────────────── */
.b-total{ display: flex; flex-direction: column; gap: 6px; }
.b-total-h{ display: flex; justify-content: space-between; align-items: baseline; }
.b-total-h span:first-child{ font-size: 14px; color: var(--ink-1); font-weight: 600; }
.b-total-v{ font-size: 13px; color: var(--ink-1); font-weight: 700; font-variant-numeric: tabular-nums; }
.b-total-v em{ font-style: normal; color: rgba(255,255,255,.5); font-weight: 600; }
.b-bar{
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.b-bar span{
  display: block; height: 100%;
  border-radius: 4px;
}
.b-bar.small{ height: 4px; }
.b-pct{
  font-size: 11px; color: rgba(255,255,255,.55);
  text-align: right;
  margin-top: -2px;
  font-weight: 600;
}
.b-cats{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 2px;
}
.b-cats > li{ display: flex; flex-direction: column; gap: 6px; }
.b-cat-h{
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.b-cat-i{
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  font-size: 11px;
}
.b-cat-t{ color: rgba(255,255,255,.85); font-weight: 600; text-align: left; }
.b-cat-pct{ color: var(--ink-1); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────
   Widget 6 — Investment Portfolio (mini)
   ─────────────────────────────────────────── */
.iv-headline{ display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.iv-headline .iv-v{ font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.iv-headline .iv-d{ font-size: 11px; color: #6FE8A0; font-weight: 600; }
.iv-bar{
  display: flex; height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
  gap: 2px;
}
.iv-bar span{ display: block; height: 100%; }
.iv-mini-list{
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column;
}
.iv-mini-list li{
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px; align-items: center;
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12.5px;
}
.iv-mini-list li:first-child{ border-top: 0; }
.iv-d-c{ width: 8px; height: 8px; border-radius: 50%; }
.iv-mini-list .iv-t{ color: rgba(255,255,255,.85); font-weight: 600; text-align: left; }
.iv-mini-list .iv-p{ color: var(--ink-1); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ───────────────────────────────────────────
   Widget 7 — Freedom Date Progress
   ─────────────────────────────────────────── */
.w-freedom{ justify-content: space-between; }
.fd-date{
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink-1);
  line-height: 1.05;
  margin-top: 6px;
  text-align: left;
}
.fd-date em{
  font-style: normal;
  background: var(--grad-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fd-count{ display: flex; gap: 18px; margin: 4px 0 12px; }
.fd-count > div{
  display: flex; flex-direction: column; gap: 0;
  align-items: flex-start;
}
.fd-n{
  font-size: 26px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink-1); font-variant-numeric: tabular-nums; line-height: 1;
}
.fd-count small{
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: rgba(255,255,255,.5); text-transform: uppercase; margin-top: 4px;
}
.fd-track{ display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.fd-track-bar{
  position: relative;
  height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
}
.fd-fill{
  position: absolute; top: 0; left: 0; height: 100%;
  background: var(--grad-h);
  border-radius: 4px;
}
.fd-marker{
  position: absolute; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(99,102,241,.4), 0 0 12px rgba(99,102,241,.6);
}
.fd-meta{
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(255,255,255,.5);
}

/* ========================================================
   WHO IT'S FOR
   ======================================================== */
.who{
  background: var(--bg);
  padding: 140px 0;
  position: relative;
}
.who-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.persona{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform .25s ease;
  box-shadow: var(--shadow-card);
}
.persona:hover{ transform: translateY(-3px); }
.persona-glyph{
  width: 64px; height: 64px;
  margin-bottom: 12px;
}
.persona-glyph svg{ width: 100%; height: 100%; }
.persona-glyph-1{ color: #3B82F6; }
.persona-glyph-2{ color: #8B5CF6; }
.persona-stage{
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.persona h3{
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--ink-1);
}
.persona p{
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
}

/* ========================================================
   PLAID TRUST
   ======================================================== */
.plaid-trust{
  position: relative;
  overflow: hidden;
  background: #0C1017;
  padding: 0 0 96px;
  color: var(--ink-1);
  isolation: isolate;
}
.plaid-trust-inner{
  position: relative;
  z-index: 1;
}
.plaid-orbit{
  --orbit-size: 680px;
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}
.plaid-orbit-ring{
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
  pointer-events: none;
}
.plaid-orbit-ring--outer{
  width: var(--orbit-size);
  height: var(--orbit-size);
  border: 1px solid rgba(93,153,255,.32);
  background:
    radial-gradient(circle at 50% 50%, rgba(59,130,246,.052), transparent 61%);
  box-shadow:
    0 0 46px rgba(59,130,246,.18),
    0 0 128px rgba(59,130,246,.07);
  animation: plaidOrbitBreathe 7.5s ease-in-out infinite;
}
.plaid-orbit-ring--outer::before{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 18deg,
      transparent 0deg,
      transparent 52deg,
      rgba(96,165,250,.04) 70deg,
      rgba(147,197,253,.70) 88deg,
      rgba(96,165,250,.08) 106deg,
      transparent 124deg,
      transparent 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px), #000 calc(100% - 1px), transparent 100%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px), #000 calc(100% - 1px), transparent 100%);
  filter: drop-shadow(0 0 14px rgba(96,165,250,.62));
  opacity: .72;
  animation: plaidOrbitSweep 11s linear infinite;
}
.plaid-orbit-ring--outer::after{
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: inherit;
  border: 1px dashed rgba(147,197,253,.18);
  opacity: .46;
  animation: plaidInnerOrbit 18s linear infinite reverse;
}
.plaid-core{
  position: relative;
  z-index: 4;
  width: min(348px, calc(100vw - 48px));
  min-height: 292px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 11px;
  padding: 32px 34px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.078), rgba(255,255,255,.032));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 28px 74px -44px rgba(0,0,0,.72),
    0 0 76px -52px rgba(96,165,250,.70);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}
.plaid-core .section-label{
  color: rgba(240,242,245,.40);
  font-size: 10px;
  letter-spacing: .10em;
}
.plaid-wordmark{
  display: inline-flex;
  align-items: center;
  height: 34px;
  min-width: 112px;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 14px 34px -24px rgba(96,165,250,.65);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
.plaid-logo{
  display: block;
  width: 78px;
  height: auto;
}
.plaid-core h2{
  margin: 2px 0 0;
  max-width: 16ch;
  color: #F8FAFC;
  font-family: var(--f-display);
  font-size: 34px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}
.plaid-core p{
  margin: 0;
  max-width: 34ch;
  color: rgba(240,242,245,.62);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 520;
}
.plaid-core p + p{
  color: rgba(240,242,245,.70);
}
.plaid-proof-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
}
.plaid-proof-row span{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(240,242,245,.68);
  background: rgba(255,255,255,.046);
  border: 1px solid rgba(255,255,255,.075);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.bank-badge{
  --badge-size: 76px;
  --bob-x: 0px;
  --bob-y: 8px;
  --tilt-drift: 2deg;
  --drift-duration: 7.2s;
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: var(--badge-size);
  height: var(--badge-size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--tilt));
  transform-origin: 50% 50%;
  will-change: transform, box-shadow;
  animation: bankOrbitDrift var(--drift-duration) ease-in-out infinite;
  background: radial-gradient(circle at 34% 24%, rgba(255,255,255,.98), rgba(247,249,252,.94) 64%, rgba(228,233,241,.9));
  border: 1px solid rgba(255,255,255,.82);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 28px 54px -26px rgba(0,0,0,.72),
    0 0 26px -16px rgba(96,165,250,.66);
}
.bank-badge::after{
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(10,15,26,.055);
  pointer-events: none;
}
.bank-symbol{
  --logo-bg: #fff;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--logo-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.78) inset;
}
.bank-logo{
  display: block;
  width: 64%;
  height: 64%;
  object-fit: contain;
}
.bank-badge--chase .bank-symbol{ --logo-bg: #fff; }
.bank-badge--visa .bank-symbol{ --logo-bg: #fff; }
.bank-badge--amex .bank-symbol{ --logo-bg: #fff; }
.bank-badge--bofa .bank-symbol{ --logo-bg: #fff; }
.bank-badge--wells .bank-symbol{ --logo-bg: #fff; }
.bank-badge--mastercard .bank-symbol{ --logo-bg: #fff; }
.bank-badge--chase{ --badge-size: 72px; --x: -164px; --y: -292px; --tilt: -7deg; --bob-x: 7px; --bob-y: 8px; --tilt-drift: 2deg; --drift-duration: 7.8s; animation-delay: -1.2s; }
.bank-badge--visa{ --x: 238px; --y: -246px; --tilt: 7deg; --bob-x: -7px; --bob-y: 9px; --tilt-drift: -2.4deg; --drift-duration: 8.6s; animation-delay: -3.1s; }
.bank-badge--amex{ --badge-size: 72px; --x: 322px; --y: 32px; --tilt: -4deg; --bob-x: -7px; --bob-y: -7px; --tilt-drift: 2deg; --drift-duration: 7.4s; animation-delay: -4.2s; }
.bank-badge--bofa{ --x: 226px; --y: 254px; --tilt: 5deg; --bob-x: 7px; --bob-y: -8px; --tilt-drift: -2deg; --drift-duration: 8.2s; animation-delay: -2.4s; }
.bank-badge--wells{ --x: -226px; --y: 252px; --tilt: -7deg; --bob-x: 8px; --bob-y: -6px; --tilt-drift: 2.2deg; --drift-duration: 7.7s; animation-delay: -5.3s; }
.bank-badge--mastercard{ --badge-size: 72px; --x: -322px; --y: 18px; --tilt: 7deg; --bob-x: 7px; --bob-y: 8px; --tilt-drift: -2.1deg; --drift-duration: 8.9s; animation-delay: -1.9s; }

@keyframes plaidOrbitBreathe{
  0%, 100%{
    opacity: .76;
    box-shadow:
      0 0 34px rgba(59,130,246,.16),
      0 0 94px rgba(59,130,246,.06);
  }
  50%{
    opacity: .98;
    box-shadow:
      0 0 54px rgba(59,130,246,.28),
      0 0 138px rgba(59,130,246,.12);
  }
}
@keyframes plaidOrbitSweep{
  to{ transform: rotate(360deg); }
}
@keyframes plaidInnerOrbit{
  to{ transform: rotate(360deg); }
}
@keyframes bankOrbitDrift{
  0%, 100%{
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--tilt));
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 28px 54px -26px rgba(0,0,0,.72),
      0 0 24px -17px rgba(96,165,250,.62);
  }
  50%{
    transform:
      translate(-50%, -50%)
      translate(calc(var(--x) + var(--bob-x)), calc(var(--y) + var(--bob-y)))
      rotate(calc(var(--tilt) + var(--tilt-drift)));
    box-shadow:
      0 1px 0 rgba(255,255,255,.9) inset,
      0 30px 58px -25px rgba(0,0,0,.72),
      0 0 34px -13px rgba(96,165,250,.78);
  }
}

/* ========================================================
   BOTTOM CTA — image-backed final invitation
   ======================================================== */
.cta{
  position: relative;
  padding: 160px 0 180px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
/* Photo layer only — oversized so the GSAP parallax never uncovers an edge */
.cta-bg{
  position: absolute;
  top: -12%; bottom: -18%; left: 0; right: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(10,15,26,.03), rgba(10,15,26,.18) 74%),
    url("assets/cta-freedom-view.png") center 50% / cover no-repeat;
}
.cta-bg::before{ display: none; }
/* Static fade overlay — does NOT parallax, so the bottom always melts to the FAQ color */
.cta::after{
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247,248,246,.55) 0%, rgba(247,248,246,0) 18%),
    linear-gradient(180deg,
      rgba(7,12,22,0) 0%,
      rgba(7,12,22,.10) 32%,
      rgba(7,12,22,.16) 50%,
      rgba(7,12,22,.18) 60%,
      rgba(247,248,246,.12) 70%,
      rgba(247,248,246,.5) 80%,
      rgba(247,248,246,.8) 88%,
      rgba(247,248,246,.94) 94%,
      #F7F8F6 98%);
}
.cta-bg::after{ display: none; }
.cta-inner{
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  position: relative;
  z-index: 1;
}
.cta-h{
  margin: 0;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 14ch;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,.42);
}
.cta-sub{
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: rgba(255,255,255,.84);
  max-width: 42ch;
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0,0,0,.42);
}
.email-form-cta{ margin-top: 18px; max-width: 540px; }
.email-field-light{
  background: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 22px 58px -18px rgba(0,0,0,.46);
}
.email-field-light input{ color: #0A0F1A; }
.email-field-light input::placeholder{ color: rgba(76,86,108,.72); }
.email-field-light .btn-dark{
  background: #0A0F1A;
  color: #fff;
}
.email-field-light .btn-dark:hover{ background: #182033; }
.email-trust-light{
  color: rgba(255,255,255,.74);
  text-shadow: 0 2px 14px rgba(0,0,0,.38);
}

/* ========================================================
   FAQ
   ======================================================== */
.faq{
  background: var(--bg);
  padding: 140px 0;
  position: relative;
}
.faq-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.faq-side{
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 640px;
}
.faq-aside{
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.faq-aside a{
  color: var(--ink-1);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--c-indigo);
  text-decoration-thickness: 1.5px;
}
.faq-list{
  display: flex; flex-direction: column;
  width: 100%;
  max-width: 820px;
}
.faq-item{
  border-top: 1px solid var(--line-2);
  padding: 0;
  overflow: hidden;
}
.faq-item:last-child{ border-bottom: 1px solid var(--line-2); }
.faq-item summary{
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  position: relative;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "";
  width: 38px; height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 13px 1.6px no-repeat,
    linear-gradient(#fff, #fff) center / 1.6px 13px no-repeat,
    var(--ink-1);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px -8px rgba(10,15,26,.45);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), background-color .3s ease;
  flex-shrink: 0;
}
.faq-item summary:hover::after{ background-color: #1a2236; }
.faq-item[open] summary::after{ transform: rotate(135deg); }
.faq-item:hover summary{ color: var(--ink-1); }
.faq-a{
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  overflow: hidden;
  height: 0;
  transition: height .36s cubic-bezier(.22,.61,.36,1);
}
.faq-item[open] .faq-a{ height: auto; }
.faq-a p{
  margin: 0;
  padding: 0 4px 28px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease, transform .3s ease;
}
.faq-item[open] .faq-a p{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .faq-a, .faq-a p, .faq-item summary::after{ transition: none; }
}
.faq-item[open] summary{ color: var(--ink-1); }

/* ========================================================
   FOOTER
   ======================================================== */
.footer{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.footer-left{ display: flex; flex-direction: column; gap: 14px; }
.footer-tag{
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 36ch;
}
.footer-right{ display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.footer-links{
  display: flex; gap: 24px;
}
.footer-links a{
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s;
}
.footer-links a:hover{ color: var(--ink-1); }
.footer-copy{
  margin: 0;
  font-size: 12px;
  color: var(--ink-3);
}

/* ========================================================
   SCROLL PROGRESS + AURORA
   ======================================================== */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-h);
  z-index: 60;
  pointer-events: none;
  transition: width .12s linear, opacity .3s ease;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 18px rgba(99,102,241,.55);
}

.aurora{
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 140vw; height: 80vh;
  left: 50%;
  top: var(--aurora-y, 50%);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse 40% 60% at 30% 50%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 50%, rgba(167,139,250,.14), transparent 60%);
  filter: blur(40px);
  opacity: 0;
  transition: opacity .6s ease;
  mix-blend-mode: normal;
}
.aurora.aurora-on{ opacity: 1; }
.cta .aurora-stop{ display: none; }

/* ========================================================
   SECTION REVEAL — gradient seam + content fade-up
   ======================================================== */
section[data-screen-label]{
  position: relative;
}
section[data-screen-label]:not(.features):not(.cta)::before{
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 0%;
  height: 1px;
  background: var(--grad-h);
  transform: translateX(-50%);
  transition: width 1.1s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
  opacity: 0;
  box-shadow: 0 0 20px rgba(99,102,241,.55), 0 0 40px rgba(99,102,241,.25);
  pointer-events: none;
  z-index: 4;
}
section[data-screen-label]:not(.features):not(.cta).in-view::before{
  width: 100%;
  opacity: 1;
}
.hero::before{ display: none !important; }
.who::before,
.plaid-trust::before,
.faq::before{ display: none !important; }

section[data-screen-label]:not(.features):not(.cta)::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%,
      rgba(99,102,241,.06), transparent 60%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  z-index: 0;
}
section[data-screen-label]:not(.features):not(.cta).in-view::after{ opacity: 1; }
.hero::after{ display: none; }
.who::after,
.plaid-trust::after,
.faq::after{ display: none !important; }

.bridge > *, .features > *, .who > *, .plaid-trust > *, .faq > *{ position: relative; z-index: 1; }
.cta > :not(.cta-bg){ position: relative; z-index: 1; }

/* ── content reveal ── */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .75s cubic-bezier(.22,.61,.36,1),
    transform .75s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
body.scroll-up .reveal{
  transform: translateY(-24px);
}
section[data-screen-label].in-view .reveal{
  opacity: 1;
  transform: translateY(0);
}
.hero .reveal{ opacity: 1; transform: none; }
.hero .hero-stagger{ /* hero-stagger handles its own animation, skip reveal */ }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  section[data-screen-label]::before, section[data-screen-label]::after{ transition: none; }
  .bridge-card-track{ animation: none; }
  .plaid-orbit-ring,
  .plaid-orbit-ring::before,
  .plaid-orbit-ring::after,
  .bank-badge{ animation: none; }
  .scroll-progress{ display: none; }
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 960px){
  .nav-links{ display: none; }
  .nav-sep{ display: none; }
  .nav.nav-scrolled .nav-brand .logo-word{ max-width: 120px; opacity: 1; margin-left: 0; }
  .analyze-showcase{
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    gap: 42px;
  }
  .analyze-stage{
    aspect-ratio: 1 / 1;
  }
  .analyze-phone-mockup{
    top: 72px;
    width: min(58%, 390px);
  }
  .feature-copy .section-title{
    max-width: 620px;
  }
  .analyze-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .track-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .analyze-demo{
    height: 480px;
  }
  .analyze-demo--snapshot{ height: 380px; }
  .analyze-demo--categories{ height: 500px; }
  .analyze-demo--calendar{ height: 560px; }
  .who-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-right{ align-items: flex-start; }
  .plaid-trust{ padding-top: 0; padding-bottom: 90px; }
  .plaid-orbit{
    --orbit-size: min(610px, 92vw);
    min-height: 660px;
  }
  .plaid-core{ width: min(330px, calc(100vw - 44px)); padding: 30px 26px; }
  .plaid-core h2{ font-size: 32px; }
  .bank-badge{ --badge-size: 66px; border-radius: 50%; }
  .bank-badge::after{ border-radius: 50%; }
  .bank-symbol{ width: 44px; height: 44px; border-radius: 50%; }
  .bank-badge--chase{ --badge-size: 60px; --x: -136px; --y: -258px; }
  .bank-badge--visa{ --x: 190px; --y: -224px; }
  .bank-badge--amex{ --badge-size: 60px; --x: 282px; --y: 20px; }
  .bank-badge--bofa{ --x: 186px; --y: 220px; }
  .bank-badge--wells{ --x: -186px; --y: 220px; }
  .bank-badge--mastercard{ --badge-size: 60px; --x: -282px; --y: 8px; }
  .bridge{
    min-height: 900px;
    padding-top: 78px;
  }
  .bridge-title{
    max-width: 720px;
    font-size: clamp(32px, 6.2vw, 48px);
  }
  .bridge-sub{
    max-width: 560px;
  }
  .bridge-stage{
    --bridge-phone-offset-y: 24px;
    min-height: 620px;
    width: 100vw;
  }
  .bridge-phone{
    width: min(390px, 68vw);
    transform: translateY(var(--bridge-phone-offset-y));
  }
  .bridge-mini-card{
    width: 166px;
    height: 116px;
    padding: 18px 20px;
  }
  .bridge-marquee--top{
    top: 164px;
  }
  .bridge-marquee--bottom{
    top: 390px;
  }
  .feature-block{ padding: 88px 0 96px; }
  .who, .cta, .faq{ padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 600px){
  .container{ padding: 0 20px; }
  .hero-content{ padding: 0 24px; }
  .nav{ padding: 12px 16px; }
  .nav.nav-scrolled{ padding: 10px 16px; }
  .analyze-showcase{
    gap: 34px;
  }
  .analyze-stage{
    aspect-ratio: .92 / 1;
    border-radius: 30px;
  }
  .analyze-stage::before{
    inset: -1px;
  }
  .analyze-phone-mockup{
    top: 28px;
    width: min(64%, 300px);
  }
  .feature-copy{
    gap: 16px;
  }
  .feature-copy .section-title{
    max-width: 335px;
    font-size: 34px;
    line-height: 1.05;
  }
  .feature-copy .section-sub{
    font-size: 16px;
    line-height: 1.48;
  }
  .feature-checklist{
    gap: 13px;
    font-size: 15px;
  }
  .analyze-grid{
    gap: 32px;
  }
  .analyze-demo{
    border-radius: 22px;
    padding: 20px;
  }
  .analyze-demo--snapshot{
    height: 340px;
    padding: 16px;
  }
  .analyze-demo--categories{
    height: 440px;
    padding: 14px;
  }
  .analyze-demo--calendar{
    height: 520px;
    padding: 8px;
  }
  .trend-tabs{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .trend-tab{
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .trend-tab span{
    font-size: 10px;
  }
  .trend-tab strong{
    font-size: 22px;
    margin-top: 0;
  }
  .trend-chart{
    min-height: 180px;
    gap: 8px;
  }
  .trend-callout{
    right: 0;
    font-size: 13px;
  }
  .category-list li{
    grid-template-columns: 34px 1fr auto;
    padding: 8px 10px;
  }
  .cat-icon{
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .cat-copy strong,
  .cat-stat strong{
    font-size: 14px;
  }
  .cat-copy em,
  .cat-stat em{
    font-size: 11px;
  }
  .calendar-demo{
    min-height: 440px;
  }
  .calendar-grid{
    gap: 3px;
    padding: 12px 16px 120px;
  }
  .day{
    min-height: 36px;
    border-radius: 9px;
    padding: 6px;
    font-size: 12px;
  }
  .day-sheet{
    padding: 18px;
    border-radius: 20px 20px 0 0;
  }
  .bridge{
    min-height: 770px;
    padding-top: 62px;
  }
  .bridge-inner{
    gap: 32px;
  }
  .bridge-title{
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.12;
  }
  .bridge-sub{
    font-size: 16px;
  }
  .bridge-stage{
    --bridge-phone-offset-y: 16px;
    min-height: 520px;
  }
  .bridge-phone{
    width: min(300px, 76vw);
    transform: translateY(var(--bridge-phone-offset-y));
  }
  .bridge-mini-card{
    width: 138px;
    height: 100px;
    border-radius: 20px;
    padding: 16px;
  }
  .bridge-mini-card span{
    font-size: 11px;
  }
  .bridge-mini-card strong{
    font-size: 19px;
  }
  .plaid-trust{ padding-bottom: 76px; }
  .plaid-orbit{
    --orbit-size: min(430px, calc(100vw - 12px));
    min-height: 580px;
  }
  .plaid-orbit-ring--outer::after{
    inset: 28px;
  }
  .plaid-core{
    width: min(276px, calc(100vw - 42px));
    min-height: 304px;
    border-radius: 24px;
    padding: 28px 22px;
    gap: 10px;
  }
  .plaid-core h2{
    max-width: 16ch;
    font-size: 28px;
    line-height: 1.08;
  }
  .plaid-core p{
    font-size: 13px;
    line-height: 1.45;
  }
  .plaid-proof-row span{
    min-height: 28px;
    padding: 6px 9px;
    font-size: 10px;
  }
  .bank-badge{
    --badge-size: 54px;
    border-radius: 50%;
  }
  .bank-badge::after{
    inset: 6px;
    border-radius: 50%;
  }
  .bank-symbol{
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }
  .bank-badge--chase{ --badge-size: 50px; --x: -90px; --y: -184px; }
  .bank-badge--visa{ --x: 132px; --y: -190px; }
  .bank-badge--amex{ --badge-size: 50px; --x: 186px; --y: 12px; }
  .bank-badge--bofa{ --x: 126px; --y: 194px; }
  .bank-badge--wells{ --x: -126px; --y: 194px; }
  .bank-badge--mastercard{ --badge-size: 50px; --x: -186px; --y: 4px; }
  .bank-badge--chase,
  .bank-badge--visa,
  .bank-badge--amex,
  .bank-badge--bofa,
  .bank-badge--wells,
  .bank-badge--mastercard{
    --bob-x: 4px;
    --bob-y: 5px;
    --tilt-drift: 1.4deg;
  }
  .bridge-card-track{
    gap: 14px;
  }
  .bridge-marquee--top{
    top: 78px;
  }
  .bridge-marquee--bottom{
    top: 246px;
  }
  .persona{ padding: 32px 28px; }
  .email-field{ flex-direction: column; padding: 8px; gap: 8px; border-radius: var(--r-md); align-items: stretch; }
  .email-field input{ padding: 12px 14px; text-align: center; }
  .email-field .btn{ justify-content: center; }
}
