/* =============================================
   Yoquity Marketing Site
   ============================================= */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* buttons must inherit font — browsers don't do this by default */
button { font-family: inherit; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #080c14;
  color: #e2e8f0;
  /* Body copy: comfortable reading rhythm */
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* TOKENS */
:root {
  --green:      #22c55e;
  --green-dim:  rgba(34,197,94,0.12);
  --amber:      #f59e0b;
  --amber-dim:  rgba(245,158,11,0.12);
  --blue:       #3b82f6;
  --blue-dim:   rgba(59,130,246,0.12);
  --red-dim:    rgba(239,68,68,0.12);
  --surface:    #0f1623;
  --surface2:   #151e2d;
  --border:     rgba(255,255,255,0.07);
  /* Upgraded card border per spec */
  --card-border: rgba(255,255,255,0.08);
  --text-muted: #64748b;
  --radius:     16px;
  --radius-sm:  8px;
}

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-dark { background: var(--surface); }
/* How-it-works gets its own background so wave can transition into it */
.section-howitworks { background: #0c1520; }

/* TYPOGRAPHY */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  /* Headline spec: tight tracking, compressed line-height */
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: #f8fafc;
}
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin-bottom: 48px; }
/* Gradient text on the hero accent span */
.accent {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.green  { color: var(--green); }
.amber  { color: var(--amber); }
.muted  { color: var(--text-muted); }
.red    { color: #f87171; }
.orange { color: var(--amber); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
/* Primary CTA: gradient fill with a green glow that intensifies on hover */
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #051005;
  box-shadow: 0 0 28px rgba(34,197,94,0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(34,197,94,0.55);
  transform: translateY(-2px);
}
.btn-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #051005;
  box-shadow: 0 0 20px rgba(34,197,94,0.25);
}
.btn-green:hover {
  box-shadow: 0 0 36px rgba(34,197,94,0.45);
}
.btn-ghost   { background: transparent; color: #e2e8f0; border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); }
.btn-sm  { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.top-gap { margin-top: 10px; }

/* CHIPS */
.chip { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
.chip-green { background: var(--green-dim); color: var(--green); }
.chip-amber { background: var(--amber-dim); color: var(--amber); }
.chip-blue  { background: var(--blue-dim);  color: var(--blue);  }
.chip-buy  { background: var(--green-dim); color: var(--green); border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.chip-trim { background: var(--red-dim);   color: #f87171;      border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.chip-hold { background: rgba(255,255,255,0.06); color: var(--text-muted); border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; font-weight: 700; }

/* =============================================
   WAVE DIVIDERS
   ============================================= */
/* Wrapper inherits/sets section-A bg. SVG path fills section-B bg. */
.wave-divider {
  overflow: hidden;
  line-height: 0;
  /* Pull up 2px to prevent hairline gap between wave and next section */
  margin-bottom: -2px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  /* Height gives the wave its amplitude */
  height: 80px;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,12,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.logo-flame { color: var(--amber); }
.logo-text  { color: #f8fafc; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 28px; margin-left: 16px; flex: 1; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.15s; }
.nav-links a:hover { color: #f8fafc; }

/* =============================================
   HERO
   ============================================= */
.hero { padding: 80px 0 60px; overflow: hidden; position: relative; }
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }

/* Gradient orbs: fixed blurred radial blobs behind the headline */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  z-index: 0;
}
.hero-orb-green {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(120px);
}
.hero-orb-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
  top: 60px;
  right: 5%;
  filter: blur(100px);
}

.hero-badge { background: var(--amber-dim); color: var(--amber); padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 24px; }
/* Hero headline: extreme weight and tight tracking for Apple-style authority */
.hero-headline {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: #f8fafc;
  max-width: 820px;
}
.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; margin-bottom: 28px; line-height: 1.8; font-weight: 400; }
/* The trust line at the end of the hero sub reads as a separate thought */
.hero-sub-punch { display: block; margin-top: 14px; font-size: 0.92rem; color: rgba(100,116,139,0.75); letter-spacing: 0.01em; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 64px; }

/* Hero mockup */
.hero-mockup { width: 100%; max-width: 900px; border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04); }
.mockup-bar { height: 40px; background: #0d1422; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.mockup-url { margin-left: 12px; font-size: 0.75rem; color: var(--text-muted); flex: 1; text-align: center; }
.mockup-content { display: flex; min-height: 260px; }
.mock-sidebar { width: 160px; background: #0b1120; border-right: 1px solid var(--border); padding: 16px 0; flex-shrink: 0; }
.mock-nav-item { padding: 7px 16px; font-size: 0.75rem; color: var(--text-muted); border-radius: 4px; margin: 1px 8px; }
.mock-nav-item.active { background: var(--green-dim); color: var(--green); font-weight: 600; }
.mock-nav-sep { padding: 14px 16px 4px; font-size: 0.65rem; color: rgba(148,163,184,0.4); letter-spacing: 0.1em; text-transform: uppercase; }
.mock-main { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.mock-stat { background: #0d1422; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.mock-stat-label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 4px; }
.mock-stat-value { font-size: 0.85rem; font-weight: 700; color: #f8fafc; }
.mock-stat-value.green { color: var(--green); }
.mock-stat-value.amber { color: var(--amber); }
.mock-chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.mock-chart, .mock-rebalance { background: #0d1422; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.mock-chart-label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.mock-sparkline svg { width: 100%; height: 60px; }
.mock-rebal-row { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: #e2e8f0; padding: 4px 0; }
.mock-amount { margin-left: auto; color: var(--text-muted); font-size: 0.65rem; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps { display: flex; align-items: flex-start; gap: 0; margin-top: 48px; }
/* Card polish: glassy surface, subtle border, shadow, radius 16px, hover lift */
.step {
  flex: 1;
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: rgba(34,197,94,0.25); transform: translateY(-2px); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--green-dim); color: var(--green); font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { font-size: 1rem; font-weight: 700; color: #f8fafc; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.step-arrow { color: var(--border); font-size: 1.5rem; padding: 0 8px; margin-top: 48px; flex-shrink: 0; }

/* =============================================
   LOCAL-FIRST BANNER
   ============================================= */
.local-banner { background: linear-gradient(135deg,#071a0f 0%,#0a1628 100%); border-top: 1px solid rgba(34,197,94,0.2); border-bottom: 1px solid rgba(34,197,94,0.2); padding: 72px 0; }
.local-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.local-icon { font-size: 3.5rem; opacity: 0.8; }
.local-text h2 { font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800; letter-spacing: -0.03em; color: #f8fafc; margin-bottom: 10px; }
.local-text p  { color: var(--text-muted); max-width: 480px; line-height: 1.7; }
.local-checks { display: flex; flex-direction: column; gap: 8px; }
.check-item { font-size: 0.875rem; color: #e2e8f0; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
/* Optional internet features styled dimmer so the hard guarantees read first */
.check-item-opt { opacity: 0.65; font-style: italic; }
.check { color: var(--green); font-weight: 700; }

/* =============================================
   SPOTLIGHT SECTIONS (main feature layout)
   ============================================= */
.spotlight-section { padding: 80px 0; }

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.spotlight-inner.flip { direction: rtl; }
.spotlight-inner.flip > * { direction: ltr; }

.spotlight-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #f8fafc;
  margin-bottom: 14px;
}
.spotlight-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.value-bullets { display: flex; flex-direction: column; gap: 10px; }
.value-bullets li {
  font-size: 0.875rem;
  color: #cbd5e1;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.value-bullets li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* =============================================
   APP WINDOW MOCKUP (shared container)
   ============================================= */
.app-window {
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.app-window:hover { border-color: rgba(34,197,94,0.25); transform: translateY(-2px); }
.aw-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(13,20,34,0.8);
}
.aw-title { font-size: 0.8rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; flex: 1; }
.aw-body { padding: 16px; }

/* =============================================
   FEATURE 1: FIRE PROJECTIONS
   ============================================= */
.owner-toggle-sm { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ot-btn { padding: 4px 10px; font-size: 0.7rem; color: var(--text-muted); cursor: default; }
.ot-btn.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

.wr-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.wr-rate { font-size: 0.72rem; color: var(--text-muted); width: 72px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.wr-rate.green { color: var(--green); font-weight: 600; }
.wr-rate-sub { font-size: 0.6rem; color: rgba(100,116,139,0.55); font-weight: 400; }
.wr-bar-outer { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
/* Bars start at 0 and animate in via JS; transition handles the fill smoothly */
.wr-bar-inner { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.wr-bar-inner.green-bar { background: var(--green); }
.wr-bar-inner.amber-bar { background: var(--amber); }
.wr-val { font-size: 0.72rem; color: #e2e8f0; width: 72px; text-align: right; flex-shrink: 0; }
.wr-val.green { color: var(--green); font-weight: 600; }
.wr-year { font-size: 0.7rem; color: var(--text-muted); width: 42px; text-align: right; flex-shrink: 0; white-space: nowrap; }
.wr-year.green { color: var(--green); font-weight: 600; }

.scenario-tabs { display: flex; gap: 4px; margin: 10px 0 8px; }
.sc-tab { flex: 1; text-align: center; font-size: 0.68rem; padding: 5px; border-radius: 4px; background: rgba(255,255,255,0.04); color: var(--text-muted); cursor: default; }
.sc-tab.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

.mc-chart { height: 120px; margin-top: 4px; margin-bottom: 14px; }
.mc-chart svg { width: 100%; height: 100%; }

/* =============================================
   FEATURE 2: FUND LOOK-THROUGH (animated flow diagram)
   ============================================= */
.tab-row-sm { display: flex; gap: 3px; }
.tr-tab { padding: 3px 8px; font-size: 0.68rem; border-radius: 4px; color: var(--text-muted); background: rgba(255,255,255,0.04); cursor: default; }
.tr-tab.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

/* Flow diagram: left fund box -> SVG lines -> right slice bars */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 120px;
}

.fd-left { flex-shrink: 0; }
.fd-fund-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 110px;
  text-align: center;
}
.fd-fund-ticker { font-size: 0.85rem; font-weight: 800; color: #f8fafc; letter-spacing: -0.02em; margin-bottom: 4px; }
.fd-fund-name { font-size: 0.6rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.fd-fund-chip { font-size: 0.58rem; font-weight: 600; background: var(--blue-dim); color: var(--blue); padding: 2px 8px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; }

/* SVG line area grows to fill space between left and right */
.fd-center { flex: 0 0 80px; height: 120px; }
.fd-lines { width: 100%; height: 100%; }

/* Lines animate in via CSS when .animate class is added to .flow-diagram */
.fd-line {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fd-line-1 { transition-delay: 0s; }
.fd-line-2 { transition-delay: 0.1s; }
.fd-line-3 { transition-delay: 0.2s; }
/* When animated, stroke-dashoffset collapses to 0 revealing the path */
.flow-diagram.animate .fd-line { stroke-dashoffset: 0 !important; }

.fd-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fd-slice { }
.fd-slice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fd-slice-label { font-size: 0.72rem; color: #e2e8f0; }
.fd-slice-pct { font-size: 0.72rem; font-weight: 600; }
.fd-slice-bar-outer { height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
/* Bars start at 0, animate to data-target % via JS */
.fd-slice-bar {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================
   FEATURE 3: TARGET AND DRIFT
   ============================================= */
/* Drift visualization: bar = current, marker = target */
.dv-legend { display: flex; align-items: center; gap: 7px; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 12px; }
.dv-legend-marker { display: inline-block; width: 2px; height: 13px; background: rgba(255,255,255,0.5); border-radius: 1px; flex-shrink: 0; }

.dv-vis { display: flex; flex-direction: column; gap: 13px; }
.dv-row { display: grid; grid-template-columns: 78px 1fr 84px; align-items: center; gap: 10px; }
.dv-label { font-size: 0.72rem; color: var(--text-muted); }
.dv-track { position: relative; height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; }

/* The fill bar: starts at 0, animates to current allocation (scaled) */
.dv-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 5px; width: 0; transition: width 0.75s cubic-bezier(0.4,0,0.2,1); }
/* Under target: amber bar, visible gap to the right of the marker = shortfall */
.dv-under { background: linear-gradient(90deg, var(--amber), rgba(245,158,11,0.75)); }
/* Over target: red bar extends past the marker = excess is visible past the line */
.dv-over  { background: rgba(239,68,68,0.8); }
/* On target / rebalanced: solid green */
.dv-ok    { background: linear-gradient(90deg, var(--green), #86efac); }

/* Target marker: bright white vertical line, renders above fill (later in DOM order) */
.dv-marker { position: absolute; top: -4px; bottom: -4px; width: 3px; background: rgba(255,255,255,0.75); border-radius: 2px; box-shadow: 0 0 6px rgba(255,255,255,0.3); }
/* Small triangle at top pointing down — labels the marker as a reference point */
.dv-marker::before { content: ''; position: absolute; top: -4px; left: -3px; border: 4px solid transparent; border-bottom-color: rgba(255,255,255,0.6); }

.dv-tag { font-size: 0.67rem; font-weight: 700; padding: 3px 7px; border-radius: 5px; text-align: center; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.dv-tag-buy  { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.dv-tag-trim { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.dv-tag-hold { background: rgba(148,163,184,0.08); color: var(--text-muted); border: 1px solid rgba(148,163,184,0.12); }
.dv-tag-done { background: rgba(34,197,94,0.18); color: var(--green); border: 1px solid rgba(34,197,94,0.35); }

.drift-summary { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 6px; border: 1px solid var(--border); font-size: 0.75rem; }
.ds-label { color: var(--text-muted); }
.ds-buy  { color: var(--green); font-weight: 600; }
.ds-trim { color: #f87171; font-weight: 600; }
.ds-sep  { color: var(--text-muted); }

/* =============================================
   FEATURE 4: HOLDINGS CONSOLIDATED
   ============================================= */
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.vt-btn { padding: 4px 10px; font-size: 0.7rem; color: var(--text-muted); cursor: default; }
.vt-btn.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

/* Holdings visualization: horizontal bars scaled to the largest holding */
.hld-vis { display: flex; flex-direction: column; gap: 12px; }
.hld-row { display: grid; grid-template-columns: 100px 1fr 110px; align-items: center; gap: 12px; }
.hld-meta { display: flex; flex-direction: column; gap: 1px; }
.hld-ticker { font-size: 0.82rem; font-weight: 700; color: var(--blue); letter-spacing: 0.02em; }
.hld-sub { font-size: 0.62rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hld-bar-wrap { background: rgba(255,255,255,0.04); border-radius: 4px; height: 8px; }
.hld-bar { height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, rgba(59,130,246,0.55)); border-radius: 4px; transition: width 0.75s cubic-bezier(0.4,0,0.2,1); }
.hld-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.hld-val { font-size: 0.75rem; font-weight: 600; color: #f1f5f9; }
.hld-pct { font-size: 0.67rem; color: var(--text-muted); white-space: nowrap; }

/* =============================================
   FEATURE 5: HOUSEHOLD INTERACTIVE TOGGLE
   ============================================= */
/* Buttons: cursor pointer and hover states so they feel clickable */
.owner-toggle-lg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.otl-btn {
  flex: 1;
  text-align: center;
  padding: 7px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  /* Number values transition when JS swaps them */
  transition: background 0.2s, color 0.2s;
}
.otl-btn:hover { background: rgba(255,255,255,0.04); color: #e2e8f0; }
.otl-btn.active { background: var(--green-dim); color: var(--green); font-weight: 600; }

/* Stats grid shown in the household mockup */
.hh-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.hh-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.hh-stat-label { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.hh-stat-value { font-size: 0.85rem; font-weight: 700; color: #f8fafc; }
.hh-stat-value.green { color: var(--green); }
.hh-stat-value.amber { color: var(--amber); }
/* Smooth transition when JS updates span text */
.hh-stat-value span { transition: all 0.3s; }

.fire-progress-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.fpr-label { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }
.fpr-bar-outer { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.fpr-bar-inner { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.fpr-pct { font-size: 0.75rem; font-weight: 600; white-space: nowrap; }

/* =============================================
   AI COPILOT
   ============================================= */
.ai-section { background: var(--surface); }
.ai-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.section-title.left { text-align: left; }
.ai-text > p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.ai-bullets { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 24px; }
.ai-bullets li { font-size: 0.875rem; color: #e2e8f0; padding-left: 20px; position: relative; line-height: 1.6; }
.ai-bullets li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.ai-chat-mock {
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.chat-header { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); letter-spacing: 0.04em; text-transform: uppercase; background: rgba(13,20,34,0.8); }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
.chat-msg { padding: 10px 14px; border-radius: 10px; font-size: 0.82rem; line-height: 1.5; max-width: 85%; }
.chat-msg.user { background: rgba(59,130,246,0.15); color: #93c5fd; align-self: flex-end; border-radius: 10px 10px 2px 10px; }
/* AI bubble starts empty, min-height prevents layout jump while JS types */
.chat-msg.ai   {
  background: var(--surface2);
  color: #e2e8f0;
  align-self: flex-start;
  border-radius: 10px 10px 10px 2px;
  border: 1px solid var(--border);
  min-height: 36px;
}
.chat-footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.chat-input-mock { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px; padding: 7px 12px; font-size: 0.78rem; color: rgba(148,163,184,0.4); }
.chat-lock { font-size: 0.9rem; opacity: 0.5; }

/* =============================================
   DATA OWNERSHIP
   ============================================= */
.ownership-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 48px; }
.ownership-card {
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.ownership-card:hover { border-color: rgba(34,197,94,0.25); transform: translateY(-2px); }
.own-icon { font-size: 1.8rem; margin-bottom: 12px; }
.ownership-card h3 { font-size: 0.95rem; font-weight: 700; color: #f8fafc; margin-bottom: 8px; letter-spacing: -0.02em; }
.ownership-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* =============================================
   PRICING
   ============================================= */
.pricing-section { background: var(--surface); }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; max-width: 680px; margin-left: auto; margin-right: auto; }
.pricing-card {
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card-highlight { border-color: rgba(34,197,94,0.35); }
.pricing-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.pricing-badge-green { color: var(--green); }
.pricing-price { font-size: 1.8rem; font-weight: 800; color: #f8fafc; margin-bottom: 4px; letter-spacing: -0.03em; }
.pricing-duration { font-size: 0.825rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-list li { font-size: 0.875rem; color: #e2e8f0; padding-left: 18px; position: relative; }
.pricing-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 28px; font-size: 0.82rem; color: var(--text-muted); max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* =============================================
   WHO IS THIS FOR
   ============================================= */
.who-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 48px; }
.who-card {
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: border-color 0.2s, transform 0.2s;
}
.who-card:hover { border-color: rgba(34,197,94,0.25); transform: translateY(-2px); }
.who-card h3 { font-size: 1rem; font-weight: 700; color: #f8fafc; margin-bottom: 10px; letter-spacing: -0.02em; }
.who-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* =============================================
   MORE FEATURES STRIP + FEAT CARDS
   ============================================= */
.more-strip { background: #0c1520; padding: 72px 0; }
.more-strip-header { margin-bottom: 36px; }
.more-strip-sub { font-size: 0.95rem; color: var(--text-muted); margin-top: 8px; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feat-card {
  background: rgba(15,22,35,0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  transition: border-color 0.2s, transform 0.15s;
}
.feat-card:hover { border-color: rgba(34,197,94,0.2); transform: translateY(-2px); }
.feat-icon { font-size: 1.3rem; margin-bottom: 8px; }
.feat-title { font-size: 0.82rem; font-weight: 600; color: #e2e8f0; line-height: 1.4; margin-bottom: 4px; }
.feat-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-section { background: #0c1520; }
.contact-wrap { max-width: 520px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 0.82rem; color: #94a3b8; font-weight: 500; }
.form-input, .form-textarea {
  background: rgba(15,22,35,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: rgba(34,197,94,0.4); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input-math { max-width: 120px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-alt { font-size: 0.78rem; color: var(--text-muted); }
.form-alt a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.form-error { font-size: 0.82rem; color: #f87171; margin-top: 4px; }

/* =============================================
   CTA
   ============================================= */
.cta-section { text-align: center; }
.cta-title { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; letter-spacing: -0.04em; color: #f8fafc; margin-bottom: 16px; }
.cta-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 48px; line-height: 1.7; }
.cta-downloads { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.download-group { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 260px; }
.platform-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.cta-note { font-size: 0.78rem; color: rgba(100,116,139,0.6); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.dl-counter { margin-top: 28px; font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.02em; }
.dl-counter #dlCount { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }

/* =============================================
   FOOTER
   ============================================= */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: #050810; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(100,116,139,0.5); max-width: 540px; line-height: 1.7; }
.footer-copy { font-size: 0.75rem; color: rgba(100,116,139,0.35); }

/* =============================================
   NAV HAMBURGER + MOBILE MENU
   ============================================= */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-hamburger span { display: block; width: 20px; height: 2px; background: #e2e8f0; border-radius: 2px; }

.nav-mobile { display: none; border-top: 1px solid var(--border); background: rgba(8,12,20,0.98); }
.nav-mobile.open { display: block; }
.nav-mobile-links { padding: 4px 24px 16px; display: flex; flex-direction: column; }
.nav-mobile-links li a { display: block; padding: 13px 0; color: #e2e8f0; font-size: 1rem; border-bottom: 1px solid var(--border); }
.nav-mobile-links li:last-child a { border-bottom: none; }

/* =============================================
   HERO FLOW DIAGRAM
   ============================================= */
/* Replaces the fake app window. Statements flow in from sources, Yoquity processes locally,
   answers cycle out on the right. Conveys the core value prop in one visual. */
.hf-diagram {
  display: flex;
  align-items: center;
  padding: 24px 28px;
  min-height: 180px;
}

.hf-sources { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.hf-src {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 8px 10px;
  width: 80px;
  text-align: center;
}
.hf-src-icon { font-size: 1rem; }
.hf-src-label { font-size: 0.62rem; color: var(--text-muted); font-weight: 500; }

.hf-svg-in  { flex: 0 0 70px; height: 130px; overflow: visible; }
.hf-svg-out { flex: 0 0 36px; height: 130px; overflow: visible; }

.hf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 10px;
  padding: 14px 16px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34,197,94,0.1);
}
.hf-node-name { font-size: 0.72rem; font-weight: 700; color: #f8fafc; letter-spacing: -0.02em; }
.hf-node-lock { font-size: 0.75rem; opacity: 0.55; }

.hf-answers { flex: 1; position: relative; height: 130px; }
.hf-answer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  background: rgba(15,22,35,0.9);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 16px 20px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hf-answer.active { opacity: 1; }
.hf-q { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
.hf-a { font-size: 0.92rem; font-weight: 700; color: var(--green); letter-spacing: -0.01em; line-height: 1.3; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .spotlight-inner { grid-template-columns: 1fr; gap: 40px; }
  /* Reset rtl flip on mobile so both columns stack left-to-right */
  .spotlight-inner.flip { direction: ltr; }
  .ownership-grid { grid-template-columns: repeat(2,1fr); }
  .local-inner { grid-template-columns: 1fr 1fr; }
  .local-icon { display: none; }
  .mock-stat-row { grid-template-columns: repeat(2,1fr); }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; }
  .who-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .mockup-content { flex-direction: column; }
  .mock-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .mock-nav-sep { display: none; }
  .mock-chart-row { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-headline { font-size: 2rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  /* Hide the hero dashboard mockup on very small screens; headline and CTAs carry the message */
  .hero-mockup { display: none; }
  .local-inner { grid-template-columns: 1fr; }
  /* Prevent check items from overflowing on narrow screens */
  .check-item { white-space: normal; }
  .ownership-grid { grid-template-columns: 1fr; }
  .cta-downloads { flex-direction: column; align-items: center; }
  .download-group { width: 100%; max-width: 320px; }
  .section { padding: 56px 0; }
  .hh-stats-grid { grid-template-columns: 1fr 1fr; }
  .fd-center { flex: 0 0 50px; }
  .fd-fund-box { width: 90px; }
  /* Show 2 feat cards per row on phones to keep them compact */
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feat-card { padding: 14px 12px; }
  /* Simplify spotlight mocks on very small screens */
  .dv-row { grid-template-columns: 60px 1fr 74px; }
  .hld-row { grid-template-columns: 80px 1fr 90px; }
}
