/* =========================================
   CashTrack — landing page
   Aesthetic: refined fintech, deep green-black,
   asymmetric editorial layout, soft glows.
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050a07;
  --bg-2: #08120c;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f4fbf6;
  --muted: rgba(241, 251, 245, 0.66);
  --muted-2: rgba(241, 251, 245, 0.45);
  --green: #16e66d;
  --green-bright: #7CFFB2;
  --green-deep: #0a8a3a;
  --green-soft: rgba(22, 230, 109, 0.22);
  --red: #ff6b6b;

  --display: 'Sora', system-ui, -apple-system, sans-serif;
  --body: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --radius: 22px;
  --radius-lg: 32px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Decorative background */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.bg-glow--one {
  top: -260px; right: -180px;
  background: radial-gradient(circle, rgba(22, 230, 109, 0.45), transparent 60%);
}
.bg-glow--two {
  bottom: -200px; left: -200px;
  background: radial-gradient(circle, rgba(22, 230, 109, 0.22), transparent 60%);
}

/* Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

main, .nav, .footer {
  position: relative;
  z-index: 1;
}

/* ============ NAV ============ */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(22,230,109,0.18), rgba(22,230,109,0.04));
  border: 1px solid rgba(22,230,109,0.32);
  border-radius: 10px;
  color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand-name span { color: var(--green); }

.nav-links {
  display: flex;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #031006;
  background: var(--green);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(22,230,109,0.22), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(22,230,109,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding: 40px 32px 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: 78vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid rgba(22,230,109,0.28);
  border-radius: 999px;
  background: rgba(22,230,109,0.06);
  margin-bottom: 28px;
}
.pulse {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping 1.8s ease-out infinite;
  opacity: 0;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 24px;
}
.h1-accent {
  position: relative;
  display: inline-block;
  color: var(--green);
  font-style: italic;
  font-weight: 600;
}
.underline {
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  width: 100%; height: 12px;
  opacity: 0.7;
}

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
}

.waitlist {
  display: flex;
  gap: 8px;
  max-width: 520px;
  padding: 7px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist:focus-within {
  border-color: rgba(22,230,109,0.5);
  box-shadow: 0 0 0 4px rgba(22,230,109,0.12);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  color: var(--text);
  background: transparent;
  font-family: var(--body);
  font-size: 15px;
  padding: 0 16px;
}
.waitlist input::placeholder { color: var(--muted-2); }

.waitlist button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  color: #031006;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(22,230,109,0.28), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform .2s ease, box-shadow .2s ease;
}
.waitlist button svg { width: 16px; height: 16px; }
.waitlist button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(22,230,109,0.38), inset 0 1px 0 rgba(255,255,255,0.5);
}

.form-message {
  min-height: 22px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 28px;
}
.form-message.error { color: var(--red); }

.trust {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatars {
  display: flex;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c, var(--green));
  color: #03100a;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.trust p {
  font-size: 14px;
  color: var(--muted);
}
.trust strong { color: var(--text); font-weight: 600; }

/* ============ PHONE MOCKUP ============ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(160deg, #1a2a20, #0a120d 60%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 60px 120px rgba(0,0,0,0.6),
    0 0 80px rgba(22,230,109,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone:hover { transform: rotate(-1deg) translateY(-6px); }

.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #040a07, #08130c);
  border-radius: 38px;
  padding: 48px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 4px;
  color: var(--text);
}
.screen-menu { display: flex; flex-direction: column; gap: 3px; }
.screen-menu i {
  width: 16px; height: 1.5px; background: #fff; border-radius: 2px; display: block;
}
.screen-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
}
.screen-bell svg { width: 18px; height: 18px; color: var(--text); }

.card-balance,
.card-expenses,
.card-tx {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 14px;
}

.card-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.card-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
}
.card-amount .card-decimal {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}
.card-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.card-delta svg { width: 11px; height: 11px; }
.card-delta span { color: var(--muted); font-weight: 500; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chip {
  font-size: 10px;
  background: rgba(22,230,109,0.12);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.link { font-size: 11px; color: var(--green); text-decoration: none; }

.expense-row { display: flex; align-items: center; gap: 14px; }
.donut { width: 70px; height: 70px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; }
.legend { list-style: none; flex: 1; }
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.legend li:last-child { margin-bottom: 0; }
.legend span {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.legend em {
  font-style: normal;
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
}

.tx-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tx-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tx-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.tx-in { background: rgba(22,230,109,0.15); color: var(--green); }
.tx-out { background: rgba(255,107,107,0.13); color: var(--red); }
.tx-meta { flex: 1; min-width: 0; }
.tx-meta p {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-meta span { font-size: 10px; color: var(--muted-2); }
.tx-amt { font-size: 12px; font-weight: 700; font-family: var(--mono); }
.tx-pos { color: var(--green); }
.tx-neg { color: var(--red); }

.phone-tabbar {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  background: rgba(8,18,12,0.85);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-radius: 0 0 38px 38px;
  backdrop-filter: blur(8px);
}
.tab {
  font-size: 10px;
  color: var(--muted-2);
  font-weight: 500;
}
.tab.active { color: var(--green); font-weight: 700; }

/* Floating decorative cards */
.floating-card {
  position: absolute;
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: float 6s ease-in-out infinite;
}
.card-float-a {
  top: 4%; left: -30px;
  width: 170px;
}
.card-float-b {
  bottom: 6%; right: -40px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-label { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.float-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.float-sub { font-size: 11px; color: var(--green); font-weight: 600; }
.spark { margin-top: 6px; }
.spark svg { width: 100%; height: 24px; }
.float-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* ============ LOGOS / WHO ============ */
.logos {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 60px;
  text-align: center;
}
.logos p {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
}
.logos-row span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--muted);
  position: relative;
  padding: 0 8px;
}
.logos-row span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.6;
}

/* ============ SECTIONS ============ */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto 48px;
  padding: 0 32px;
}
.section-head--center { text-align: center; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 760px;
}
.section-head--center h2 { margin-inline: auto; }
.section-head h2 span { color: var(--muted); font-weight: 600; }

/* ============ FEATURES ============ */
.features {
  padding: 60px 0 100px;
}
.feature-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d e";
  gap: 16px;
}
.feature {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.feature--lg {
  grid-area: a;
  padding: 36px;
  background:
    radial-gradient(circle at 0% 100%, rgba(22,230,109,0.14), transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
}
.feature:nth-child(2) { grid-area: b; }
.feature:nth-child(3) { grid-area: c; }
.feature:nth-child(4) { grid-area: d; }
.feature--accent { grid-area: e; }
.feature--accent {
  background:
    radial-gradient(circle at 100% 0%, rgba(22,230,109,0.18), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  border-color: rgba(22,230,109,0.18);
}

.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.feature--lg h3 { font-size: 28px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

.feature-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.feature-vis {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 26px;
  height: 130px;
}
.vis-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.vis-bar span {
  display: block;
  width: 100%;
  height: var(--w);
  background: linear-gradient(180deg, var(--green-bright), var(--green-deep));
  border-radius: 6px 6px 2px 2px;
  position: relative;
  box-shadow: 0 0 18px rgba(22,230,109,0.25);
  transform-origin: bottom;
  animation: grow 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.vis-bar:nth-child(1) span { animation-delay: 0.05s; }
.vis-bar:nth-child(2) span { animation-delay: 0.12s; }
.vis-bar:nth-child(3) span { animation-delay: 0.19s; }
.vis-bar:nth-child(4) span { animation-delay: 0.26s; }
.vis-bar:nth-child(5) span { animation-delay: 0.33s; }
.vis-bar:nth-child(6) span { animation-delay: 0.40s; }
.vis-bar:nth-child(7) span { animation-delay: 0.47s; }
@keyframes grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.vis-bar em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted-2);
}

/* ============ HOW ============ */
.how { padding: 60px 0 100px; }
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.steps li {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(22,230,109,0.1);
  border: 1px solid rgba(22,230,109,0.25);
  color: var(--green);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}
.steps h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.steps p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ============ COUNTDOWN ============ */
.countdown-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 32px 100px;
}
.countdown-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(22,230,109,0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(22,230,109,0.12), transparent 50%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.countdown-copy h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 10px 0 14px;
}
.countdown-copy .lede { margin-bottom: 0; }

.countdown {
  display: flex;
  gap: 14px;
}
.countdown > div {
  min-width: 92px;
  text-align: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 12px;
}
.countdown strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.04em;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============ FAQ ============ */
.faq { padding: 60px 0 120px; }
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 4px 4px;
  transition: border-color .2s ease;
}
details[open] { border-color: rgba(22,230,109,0.2); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
summary::-webkit-details-marker { display: none; }
summary span {
  font-family: var(--body);
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
  transition: transform .25s ease;
  line-height: 1;
}
details[open] summary span { transform: rotate(45deg); }
details p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px 32px 40px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 40px;
}
.footer-tag {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-cols h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-cols a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color .2s ease;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-2);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a a"
      "b c"
      "d e";
  }
  .countdown-card {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  .countdown { justify-content: flex-start; flex-wrap: wrap; }
  .countdown > div { min-width: 78px; padding: 14px 10px; }
  .countdown strong { font-size: 28px; }
}

@media (max-width: 900px) {
  .nav { padding: 20px; }
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 20px 60px;
    gap: 60px;
    text-align: left;
  }
  .hero-visual { min-height: auto; padding: 20px 0; }
  .phone { transform: rotate(-2deg) scale(0.9); }
  .card-float-a { left: 0; top: 5%; }
  .card-float-b { right: 0; bottom: 8%; }
}

@media (max-width: 700px) {
  .nav { padding: 18px; }
  .brand-name { font-size: 18px; }
  .hero { padding: 10px 18px 50px; }
  h1 { font-size: clamp(36px, 9vw, 50px); }
  .waitlist { flex-direction: column; padding: 8px; border-radius: 24px; }
  .waitlist input { padding: 14px 16px; text-align: left; }
  .waitlist button { width: 100%; justify-content: center; padding: 14px; }
  .trust { flex-wrap: wrap; }

  .section-head { padding: 0 20px; margin-bottom: 32px; }
  .features, .how { padding: 30px 0 60px; }
  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e";
    padding: 0 20px;
  }
  .feature { padding: 24px; }
  .feature--lg { padding: 28px; }
  .feature--lg h3 { font-size: 24px; }

  .steps { grid-template-columns: 1fr; padding: 0 20px; }
  .countdown-wrap { padding: 20px 20px 60px; }
  .countdown-card { padding: 32px 24px; }
  .countdown { gap: 10px; }
  .countdown > div { flex: 1; min-width: 0; padding: 12px 6px; }
  .countdown strong { font-size: 22px; }

  .faq-list { padding: 0 20px; }
  summary { padding: 18px 20px; font-size: 15px; }
  details p { padding: 0 20px 18px; font-size: 14px; }

  .footer { padding: 40px 20px 30px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .phone {
    width: 280px;
    height: 560px;
  }
  .card-float-a { width: 150px; }
  .card-float-b { width: 180px; }
}

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

/* =========================================
   Legal pages — Privacy & Terms
   Same fintech aesthetic, long-form readable.
   ========================================= */

.legal-page main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.legal-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid rgba(22, 230, 109, 0.35);
  color: var(--green-bright);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.legal-hero h1 span {
  color: var(--green);
}

.legal-hero .legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.legal-hero .legal-meta strong {
  color: var(--text);
  font-weight: 600;
}

.legal-toc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 44px;
}

.legal-toc h2 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
  font-weight: 600;
}

.legal-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--text);
}

.legal-body section {
  margin-bottom: 44px;
  scroll-margin-top: 28px;
}

.legal-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.legal-body h2::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(22, 230, 109, 0.3);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.legal-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  margin: 22px 0 10px;
  color: var(--text);
}

.legal-body p,
.legal-body li {
  color: rgba(241, 251, 245, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-body ul {
  list-style: none;
  padding-left: 4px;
  margin-bottom: 14px;
}

.legal-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 2px;
  transform: rotate(45deg);
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px dashed rgba(22, 230, 109, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-body a:hover {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

.callout {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 22px 0;
}

.callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.callout strong {
  color: var(--green-bright);
}

.legal-foot {
  margin-top: 64px;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(22, 230, 109, 0.08), rgba(22, 230, 109, 0.02));
  border: 1px solid rgba(22, 230, 109, 0.18);
  text-align: center;
}

.legal-foot p {
  color: var(--muted);
  margin-bottom: 14px;
}

.legal-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--display);
}

.legal-foot a:hover {
  color: var(--green-bright);
}

@media (max-width: 640px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }
  .legal-hero {
    padding: 32px 0 24px;
  }
  .legal-body h2 {
    font-size: 1.35rem;
    flex-wrap: wrap;
  }
}
