/* ════════════════════════════════════════════════════════════════════
   HYEFIN LANDING — "Night Hunt" theme
   Palette mirrors src/index.css design tokens
   ════════════════════════════════════════════════════════════════════ */

:root {
  --abyss:        #070F1C;
  --night-blue:   #0D1B2E;
  --night-raised: #13253F;

  --teal-green:   #2EE6A8;
  --hyena-blue:   #3B7DD8;
  --gold-accent:  #FFC857;

  --carbon:       #EAF2FC;
  --graphite:     #C4D2E6;
  --mist:         #8FA3BF;
  --silver-fog:   #5B6E8C;

  --grad-hyena: linear-gradient(135deg, #3B7DD8 0%, #2EE6A8 100%);

  --font-display: "Sora", "Inter", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-card: 20px;
  --glow: 0 8px 30px rgba(46, 230, 168, .25);
  --ease: cubic-bezier(.22, .61, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--abyss);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(46, 230, 168, .25); color: var(--carbon); }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.container      { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(880px, calc(100% - 48px)); margin-inline: auto; }

.amount-display {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.text-gradient {
  background: var(--grad-hyena);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Ambient background ─────────────────────────────────────────── */

.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; will-change: transform; }
.orb-teal {
  width: 560px; height: 560px; top: -180px; right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(46,230,168,.34), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.orb-blue {
  width: 640px; height: 640px; top: 30vh; left: -260px;
  background: radial-gradient(circle at 60% 40%, rgba(59,125,216,.30), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.orb-gold {
  width: 380px; height: 380px; bottom: -160px; right: 8vw;
  background: radial-gradient(circle at 50% 50%, rgba(255,200,87,.14), transparent 65%);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { from { transform: translate(0,0) scale(1); }   to { transform: translate(-70px, 90px) scale(1.15); } }
@keyframes drift-b { from { transform: translate(0,0) scale(1.1); } to { transform: translate(90px,-70px) scale(.95); } }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 20%, transparent 75%);
}

.noise-overlay {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Glass ──────────────────────────────────────────────────────── */

.glass {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Spotlight that follows the cursor inside cards */
.spotlight { position: relative; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(46,230,168,.09), transparent 65%);
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .01em;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--teal-green); outline-offset: 3px; }

.btn-primary {
  padding: 13px 24px; border-radius: 14px;
  background: var(--teal-green); color: var(--night-blue);
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(46,230,168,.38); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  padding: 13px 24px; border-radius: 14px;
  background: rgba(255,255,255,.05); color: var(--graphite);
  border: 1px solid rgba(255,255,255,.10);
}
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: .86rem; border-radius: 11px; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; border-radius: 16px; }
.btn-block { justify-content: center; width: 100%; }

/* ── Navbar ─────────────────────────────────────────────────────── */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(7, 15, 28, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,.07);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(46,230,168,.22);
  box-shadow: inset 0 0 18px rgba(46,230,168,.10);
}
.brand-logo img { width: 30px; height: 30px; object-fit: contain; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem;
  color: var(--carbon); letter-spacing: -.02em;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
  padding: 9px 15px; border-radius: 11px; font-size: .92rem; font-weight: 500;
  color: var(--mist); transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--carbon); background: rgba(255,255,255,.06); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: .92rem; font-weight: 600; color: var(--mist); transition: color .25s; }
.nav-login:hover { color: var(--carbon); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 12px;
}
.nav-burger span {
  display: block; height: 2px; border-radius: 2px; background: var(--carbon);
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-only { display: none; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
  padding: 172px 0 96px; min-height: 92vh;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; margin-bottom: 26px;
  font-size: .82rem; font-weight: 600; color: var(--graphite);
  background: rgba(46,230,168,.07); border: 1px solid rgba(46,230,168,.20); border-radius: 999px;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.hero-badge:hover { border-color: rgba(46,230,168,.4); background: rgba(46,230,168,.11); transform: translateY(-1px); }
.hero-badge svg { width: 13px; height: 13px; color: var(--teal-green); }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-green); flex: none;
  box-shadow: 0 0 0 0 rgba(46,230,168,.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,230,168,.45); }
  70%  { box-shadow: 0 0 0 9px rgba(46,230,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,230,168,0); }
}

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.07; letter-spacing: -.03em; color: var(--carbon);
  text-wrap: balance; margin-bottom: 22px;
}

.shimmer {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-sub { font-size: 1.13rem; color: var(--mist); max-width: 33rem; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.hero-actions-center { justify-content: center; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px;
  font-size: .84rem; color: var(--silver-fog);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 14px; height: 14px; color: var(--teal-green); }

/* Hero stage / dashboard mock */

.hero-stage { position: relative; perspective: 1400px; }

.stage-glow {
  position: absolute; inset: 8% -6% -4% 2%; z-index: 0; filter: blur(70px); opacity: .55;
  background: conic-gradient(from 130deg at 50% 50%, rgba(59,125,216,.35), rgba(46,230,168,.28), rgba(255,200,87,.12), rgba(59,125,216,.35));
  border-radius: 50%;
}

.tilt { position: relative; z-index: 1; transform-style: preserve-3d; transition: transform .18s ease-out; }

.dash { padding: 26px 26px 24px; border-radius: 24px; }

.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dash-window { display: flex; gap: 6px; }
.dash-window i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dash-window i:first-child { background: rgba(255,107,94,.55); }
.dash-window i:nth-child(2) { background: rgba(255,200,87,.55); }
.dash-window i:last-child  { background: rgba(46,230,168,.55); }

.dash-chip-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-green);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(46,230,168,.08); border: 1px solid rgba(46,230,168,.18);
}

.dash-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--silver-fog); margin-bottom: 6px;
}

.dash-amount { font-size: clamp(2.3rem, 3.4vw, 3.1rem); font-weight: 800; line-height: 1; }

.spark-wrap { position: relative; margin: 26px 0 22px; }
.spark { width: 100%; height: 110px; display: block; overflow: visible; }

.spark-line {
  fill: none; stroke: url(#sparkStroke); stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: 480; stroke-dashoffset: 480;
}
.spark-area { fill: url(#sparkFill); opacity: 0; }
.tilt.animated .spark-line   { animation: draw 1.9s .35s var(--ease) forwards; }
.tilt.animated .spark-area   { animation: fadein .9s 1.5s ease forwards; }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.spark-tip {
  position: absolute; top: 2px; right: 4%;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--teal-green);
  background: rgba(13,27,46,.85); border: 1px solid rgba(46,230,168,.22);
  padding: 6px 11px; border-radius: 10px; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .6s 1.9s, transform .6s 1.9s var(--ease);
}
.spark-tip small { color: var(--silver-fog); font-weight: 500; font-size: .68rem; }
.tilt.animated .spark-tip { opacity: 1; transform: translateY(0); }

.dash-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07);
}
.dash-stat { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dash-stat small { display: block; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--silver-fog); }
.dash-stat strong { font-family: var(--font-display); font-size: .95rem; color: var(--carbon); white-space: nowrap; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-in   { background: var(--teal-green);  box-shadow: 0 0 10px rgba(46,230,168,.7); }
.dot-out  { background: var(--hyena-blue);  box-shadow: 0 0 10px rgba(59,125,216,.7); }
.dot-save { background: var(--gold-accent); box-shadow: 0 0 10px rgba(255,200,87,.7); }

/* Floating chips */

.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.chip small { display: block; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--silver-fog); }
.chip strong { font-family: var(--font-display); font-size: .98rem; color: var(--carbon); white-space: nowrap; }

.chip-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; flex: none;
}
.chip-icon svg { width: 18px; height: 18px; }
.chip-icon-mint { background: rgba(46,230,168,.14); color: var(--teal-green); }
.chip-icon-gold { background: rgba(255,200,87,.13); color: var(--gold-accent); }

.chip-a { top: -26px;  right: -18px; animation: floaty 5.5s ease-in-out infinite; }
.chip-b { bottom: -30px; left: -30px;  animation: floaty 6.5s .8s ease-in-out infinite; }
.chip-c { bottom: 74px; right: -34px; animation: floaty 7s .4s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg)      translateZ(46px); }
  50%      { transform: translateY(-11px) rotate(-1.1deg) translateZ(54px); }
}

/* Progress ring (budget chip) — smooth fill where @property is supported */
@property --val { syntax: "<number>"; inherits: false; initial-value: 78; }
@property --goal { syntax: "<number>"; inherits: false; initial-value: 64; }

.ring {
  --val: 78;
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; position: relative; isolation: isolate;
  background: conic-gradient(var(--teal-green) calc(var(--val) * 1%), rgba(255,255,255,.10) 0);
}
.ring::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; z-index: 0;
  background: #101f35;
}
.ring span { position: relative; z-index: 1; font-family: var(--font-display); font-size: .62rem; font-weight: 700; color: var(--carbon); }

/* Goal ring (feature card) */
.goal-ring {
  --goal: 64;
  width: 128px; height: 128px; margin-bottom: 20px; border-radius: 50%;
  display: grid; place-items: center; position: relative; isolation: isolate;
  background: conic-gradient(from 0deg, #3B7DD8 calc(var(--goal) * .55%), #2EE6A8 calc(var(--goal) * 1%), rgba(255,255,255,.07) 0);
}
.goal-ring::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; z-index: 0;
  background: #101f35;
}
.goal-ring span {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: .88rem; color: var(--carbon);
}
.reveal-visible .goal-ring { animation: goal-fill 1.4s .3s ease-out both; }
@keyframes goal-fill { from { --goal: 0; } to { --goal: 64; } }

/* ── Sections ───────────────────────────────────────────────────── */

.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 58px; }

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-green); margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.14; letter-spacing: -.025em; color: var(--carbon);
  text-wrap: balance;
}

.section-sub { margin-top: 14px; color: var(--mist); font-size: 1.02rem; }

/* ── Stats band ─────────────────────────────────────────────────── */

.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 34px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07); border-radius: 24px;
  backdrop-filter: blur(14px);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 800; color: var(--carbon); }
.stat span { font-size: .84rem; color: var(--mist); }

/* ── Bento features ─────────────────────────────────────────────── */

.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(150px, auto);
}
.bento-main { grid-row: span 2; }

.card { padding: 26px; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s, background-color .4s; }
.card:hover { transform: translateY(-5px); border-color: rgba(46,230,168,.22); background: rgba(255,255,255,.055); }

.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(46,230,168,.10); border: 1px solid rgba(46,230,168,.20); color: var(--teal-green);
}
.card-icon svg { width: 21px; height: 21px; }

.card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  color: var(--carbon); letter-spacing: -.01em; margin-bottom: 8px;
}
.card p { font-size: .93rem; color: var(--mist); }

.card-body { margin-top: auto; }

.bento-main .card-body { margin-top: 26px; }
.bento-main h3 { font-size: 1.3rem; }
.bento-main p { font-size: .98rem; max-width: 30rem; }

.bento-tags {
  display: flex; flex-wrap: wrap; gap: 9px; align-content: flex-start;
  padding: 6px; margin-bottom: 8px;
}
.tag {
  font-size: .78rem; font-weight: 600; color: var(--graphite);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  animation: tag-in .6s var(--ease) both;
}
.tag:nth-child(odd)  { animation-delay: .15s; }
.tag:nth-child(even) { animation-delay: .3s; }
.tag-mint { color: var(--teal-green);  background: rgba(46,230,168,.09); border-color: rgba(46,230,168,.22); }
.tag-blue { color: #7fb1ec;            background: rgba(59,125,216,.10); border-color: rgba(59,125,216,.25); }
.tag-gold { color: var(--gold-accent); background: rgba(255,200,87,.08); border-color: rgba(255,200,87,.22); }
@keyframes tag-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* budget demo bars */
.budget-demo { display: grid; gap: 15px; margin-bottom: 20px; }
.bar span {
  display: block; height: 9px; border-radius: 99px; width: var(--w, 50%);
}
.bar:nth-child(1) span { background: var(--grad-hyena); }
.bar-warn span { background: var(--gold-accent); box-shadow: 0 0 14px rgba(255,200,87,.30); }
.bar-over span { background: #FF6B5E; box-shadow: 0 0 14px rgba(255,107,94,.30); }
.bar em {
  display: block; font-style: normal; font-size: .72rem; color: var(--silver-fog); margin-top: 5px;
}
.reveal-visible .bar span { animation: bar-grow 1.3s .25s var(--ease) both; }
@keyframes bar-grow { from { width: 0; } }

/* mini chart */
.mini-chart { width: 100%; height: 64px; margin-bottom: 20px; overflow: visible; }
.mini-chart polyline {
  stroke-dasharray: 400; stroke-dashoffset: 400;
}
.reveal-visible .mini-chart polyline { animation: draw 1.8s .3s var(--ease) forwards; }

/* accounts row */
.acct-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.acct {
  font-size: .78rem; font-weight: 600; color: var(--graphite);
  padding: 8px 13px; border-radius: 11px;
}

/* security pills */
.sec-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.sec-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 600; color: var(--teal-green);
  padding: 7px 12px; border-radius: 999px;
  background: rgba(46,230,168,.08); border: 1px solid rgba(46,230,168,.20);
}
.sec-pill svg { width: 14px; height: 14px; }
.sec-pill-off { color: var(--mist); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }

/* ── How it works ───────────────────────────────────────────────── */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step; position: relative;
}
.step { padding: 30px 26px; transition: transform .4s var(--ease), border-color .4s; }
.step:hover { transform: translateY(-5px); border-color: rgba(46,230,168,.22); }

.step-num {
  display: block; font-size: 2.5rem; font-weight: 800; line-height: 1;
  background: var(--grad-hyena); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .9; margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--carbon); margin-bottom: 8px;
}
.step p { font-size: .92rem; color: var(--mist); }

/* ── Testimonials marquee ───────────────────────────────────────── */

.marquee {
  overflow: hidden; padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 20px; width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }

.quote {
  width: 360px; flex: none; padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.stars { color: var(--gold-accent); font-size: .85rem; letter-spacing: 3px; }
.quote blockquote { font-size: .95rem; color: var(--graphite); line-height: 1.55; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 11px; }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; font-size: .74rem; font-weight: 700; color: var(--abyss);
  background: var(--av, var(--teal-green));
}
.quote figcaption strong { display: block; font-size: .88rem; color: var(--carbon); }
.quote figcaption div span { font-size: .76rem; color: var(--silver-fog); }

/* ── Pricing ────────────────────────────────────────────────────── */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.price-card { padding: 30px 28px; display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s; }
.price-card:hover { transform: translateY(-5px); }

.price-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--carbon);
}
.price-desc { font-size: .88rem; color: var(--mist); margin: 6px 0 22px; min-height: 2.6em; }

.price { font-size: 2.7rem; font-weight: 800; color: var(--carbon); line-height: 1; margin-bottom: 26px; }
.price span:first-child { font-size: 1.3rem; vertical-align: 14px; margin-right: 2px; color: var(--mist); }
.per { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--silver-fog); margin-left: 7px; }

.price-list { display: grid; gap: 12px; margin-bottom: 30px; flex: 1; }
.price-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--graphite);
}
.price-list li::before {
  content: ""; flex: none; width: 17px; height: 17px; margin-top: 2px;
  background: rgba(46,230,168,.14);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EE6A8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.price-featured {
  padding: 0; border-radius: 22px;
  background: var(--grad-hyena);
  box-shadow: 0 18px 54px rgba(46,230,168,.16);
}
.price-inner {
  border-radius: 21px !important; height: 100%; margin: 1px;
  background: linear-gradient(160deg, #10233c, #0b1830) !important;
  padding: 30px 27px; display: flex; flex-direction: column;
}
.price-flag {
  align-self: flex-start;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--night-blue); background: var(--teal-green);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--glow);
}

/* ── FAQ ────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }

.faq-item { border-radius: 16px; transition: border-color .3s; }
.faq-item[open] { border-color: rgba(46,230,168,.25); }

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: .99rem; color: var(--carbon);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: rotate(45deg); transition: transform .35s var(--ease), border-color .35s;
}
.faq-item[open] .faq-chevron { transform: rotate(225deg); border-color: var(--teal-green); }

.faq-body { padding: 0 22px 20px; }
.faq-body p { font-size: .92rem; color: var(--mist); max-width: 60ch; }
.faq-item[open] .faq-body { animation: faq-open .4s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Final CTA ──────────────────────────────────────────────────── */

.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(52px, 8vw, 92px) 28px;
  border-radius: 28px;
  border: 1px solid rgba(46,230,168,.20);
  background:
    radial-gradient(ellipse 60% 80% at 50% 115%, rgba(46,230,168,.13), transparent 70%),
    radial-gradient(ellipse 50% 70% at 12% -10%, rgba(59,125,216,.16), transparent 70%),
    rgba(255,255,255,.03);
}

.cta-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cta-orbs i:first-child {
  width: 300px; height: 300px; left: -80px; top: -100px;
  background: rgba(59,125,216,.22); animation: drift-b 18s ease-in-out infinite alternate;
}
.cta-orbs i:last-child {
  width: 320px; height: 320px; right: -90px; bottom: -130px;
  background: rgba(46,230,168,.18); animation: drift-a 20s ease-in-out infinite alternate;
}

.cta-watermark {
  position: absolute; right: -60px; bottom: -70px; width: 340px; opacity: .06;
  pointer-events: none; user-select: none;
}

.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta p { color: var(--mist); max-width: 34rem; margin: 0 auto 34px; }
.cta-fine { margin-top: 20px !important; font-size: .82rem; color: var(--silver-fog); margin-bottom: 0 !important; }

/* ── Footer ─────────────────────────────────────────────────────── */

.footer { border-top: 1px solid rgba(255,255,255,.07); padding: 58px 0 30px; margin-top: 40px; }

.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-brand p { margin-top: 14px; font-size: .9rem; color: var(--mist); max-width: 240px; }

.footer-cols { display: flex; gap: clamp(36px, 6vw, 90px); flex-wrap: wrap; }
.footer-cols h4 {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--silver-fog);
  margin-bottom: 16px;
}
.footer-cols a {
  display: block; font-size: .9rem; color: var(--mist); padding: 5px 0;
  transition: color .25s, transform .25s var(--ease);
}
.footer-cols a:hover { color: var(--teal-green); transform: translateX(3px); }

.footer-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; color: var(--silver-fog);
}

/* ── Download Section ─────────────────────────────────────────────── */

.release-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(46, 230, 168, 0.09);
  border: 1px solid rgba(46, 230, 168, 0.22);
  font-size: .84rem; font-weight: 600; color: var(--teal-green);
  letter-spacing: .02em;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.download-card {
  display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius-card);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 168, 0.28);
  box-shadow: 0 12px 36px rgba(7, 15, 28, 0.6), 0 0 24px rgba(46, 230, 168, 0.12);
}

.download-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

.platform-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
}
.platform-icon svg { width: 22px; height: 22px; }

.platform-icon-win {
  background: rgba(59, 125, 216, 0.15); color: #3B7DD8;
  border: 1px solid rgba(59, 125, 216, 0.32);
}
.platform-icon-android {
  background: rgba(46, 230, 168, 0.15); color: var(--teal-green);
  border: 1px solid rgba(46, 230, 168, 0.32);
}
.platform-icon-apple, .platform-icon-ios {
  background: rgba(255, 255, 255, 0.07); color: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.platform-badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 999px;
}
.badge-active {
  background: rgba(46, 230, 168, 0.14); color: var(--teal-green);
  border: 1px solid rgba(46, 230, 168, 0.28);
}
.badge-pending {
  background: rgba(255, 200, 87, 0.12); color: var(--gold-accent);
  border: 1px solid rgba(255, 200, 87, 0.24);
}

.download-card h3 {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 700;
  color: var(--carbon); margin-bottom: 4px;
}
.platform-spec {
  font-size: .82rem; font-weight: 600; color: var(--mist);
  margin-bottom: 12px;
}
.platform-desc {
  font-size: .90rem; color: var(--silver-fog); line-height: 1.5;
  margin-bottom: 22px; flex-grow: 1;
}

.download-actions {
  display: flex; flex-direction: column; gap: 10px;
}

.btn-subtext {
  font-size: .80rem; font-weight: 400; opacity: .85; margin-left: 5px;
}

.download-link-secondary {
  display: block; text-align: center;
  font-size: .80rem; color: var(--mist);
  transition: color .2s var(--ease);
}
.download-link-secondary:hover {
  color: var(--teal-green);
}
.download-note {
  font-size: .76rem; color: var(--silver-fog); opacity: .75; pointer-events: none;
}

/* ── Reveal on scroll ───────────────────────────────────────────── */

[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal].reveal-visible { opacity: 1; transform: none; }

/* ── Receipt scanner mock ───────────────────────────────────────── */
.receipt-preview {
  margin-bottom: 20px;
  background: rgba(13, 27, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 16px;
  font-size: 0.82rem;
}
.receipt-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  padding-bottom: 10px; margin-bottom: 10px;
}
.receipt-store { font-weight: 700; color: var(--carbon); font-size: 0.86rem; }
.receipt-date { color: var(--silver-fog); font-size: 0.74rem; }
.receipt-items { display: flex; flex-direction: column; gap: 7px; }
.receipt-item {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--graphite);
}
.receipt-item span:first-child { color: var(--carbon); font-weight: 500; }
.receipt-item-discount { color: var(--teal-green) !important; font-weight: 600; }
.receipt-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px; padding-top: 8px;
}
.receipt-total { font-weight: 800; font-size: 0.96rem; color: var(--carbon); font-family: var(--font-display); }
.receipt-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; color: var(--teal-green);
  background: rgba(46, 230, 168, 0.1); border: 1px solid rgba(46, 230, 168, 0.22);
  padding: 3px 9px; border-radius: 999px;
}

/* ── Money Coach Chat Mock ───────────────────────────────────────── */
.coach-preview {
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.coach-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 0.82rem; line-height: 1.45;
}
.coach-bubble-user {
  align-self: flex-end; max-width: 88%;
  background: rgba(255, 255, 255, 0.08); color: var(--carbon);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.coach-bubble-ai {
  align-self: flex-start; max-width: 94%;
  background: rgba(19, 37, 63, 0.95); color: var(--graphite);
  border: 1px solid rgba(46, 230, 168, 0.22);
}
.coach-timer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--teal-green);
  background: rgba(46, 230, 168, 0.1); border: 1px solid rgba(46, 230, 168, 0.2);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 2px;
}

/* ── Price Tracker Mock ─────────────────────────────────────────── */
.price-track-preview {
  margin-bottom: 18px;
  background: rgba(13, 27, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px; padding: 14px;
}
.price-track-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; font-weight: 700; color: var(--carbon); margin-bottom: 10px;
}
.price-track-store {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.price-track-store:last-child { border-bottom: none; }
.store-best { color: var(--teal-green); font-weight: 700; font-family: var(--font-display); }

/* ── Statement Importer Mock ────────────────────────────────────── */
.statement-preview {
  display: flex; align-items: center; gap: 12px;
  background: rgba(13, 27, 46, 0.75);
  border: 1px solid rgba(59, 125, 216, 0.25);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
}
.statement-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(59, 125, 216, 0.15); color: var(--hyena-blue);
  display: grid; place-items: center; flex: none;
}
.statement-info strong { display: block; font-size: 0.84rem; color: var(--carbon); }
.statement-info span { font-size: 0.75rem; color: var(--mist); }

/* ── Pricing Packs Component ────────────────────────────────────── */
.pack-grid {
  display: flex; flex-direction: column; gap: 10px; margin: 16px 0 20px;
}
.pack-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}
.pack-row strong { color: var(--carbon); }
.pack-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  color: var(--teal-green); background: rgba(46, 230, 168, 0.12);
  padding: 2px 7px; border-radius: 6px; margin-left: 6px;
}
.feature-cost-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.cost-chip {
  font-size: 0.72rem; color: var(--mist); background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 4px 8px;
}
.cost-chip strong { color: var(--carbon); }

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 84px; padding-top: 148px; min-height: unset; }
  .hero-stage { max-width: 560px; margin-inline: auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 16px; right: 16px; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 14px; border-radius: 18px;
    background: rgba(10, 19, 34, .96); border: 1px solid rgba(255,255,255,.09);
    backdrop-filter: blur(20px);
    opacity: 0; transform: translateY(-12px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 13px 15px; }
  .mobile-only { display: block; }
  .nav-login { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .chip-a { top: -20px; right: 4px; }
  .chip-c { right: 0; bottom: -46px; }
  .chip-b { left: 4px; bottom: -52px; }
  .hero { padding-bottom: 130px; }
  .quote { width: 300px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .bento { grid-template-columns: 1fr; }
  .bento-main { grid-row: auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 28px 18px; }
  .hero-title { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .cta-watermark { width: 240px; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ── Legal & Policy Pages ────────────────────────────────────────── */
.legal-wrap {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
  padding: 130px 0 90px;
}
.legal-card {
  width: 100%;
  margin-inline: auto;
  padding: 48px 56px;
  border-radius: 28px;
  background: rgba(13, 27, 46, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.legal-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.legal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s var(--ease);
}
.legal-tab:hover {
  color: var(--carbon);
  background: rgba(255, 255, 255, 0.08);
}
.legal-tab.active {
  color: var(--abyss);
  background: var(--teal-green);
  border-color: var(--teal-green);
  box-shadow: 0 4px 20px rgba(46, 230, 168, 0.3);
}
.legal-tab svg {
  width: 14px;
  height: 14px;
}
.legal-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--carbon);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.legal-date {
  font-size: 0.82rem;
  color: var(--teal-green);
  font-weight: 600;
}
.legal-alert {
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.28);
  border-radius: 18px;
  padding: 18px 20px;
  margin: 24px 0;
  color: #FFE194;
  font-size: 0.88rem;
  line-height: 1.6;
}
.legal-alert strong {
  color: #FFF;
}
.legal-alert-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  margin-bottom: 8px;
  color: #FFC857;
}
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--graphite);
}
.legal-content h2, .legal-content h3 {
  font-family: var(--font-display);
  color: var(--carbon);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-content p {
  margin-bottom: 8px;
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-content ul {
  list-style: disc;
}
.legal-content strong {
  color: var(--carbon);
}
.legal-content a {
  color: var(--teal-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: #FFF;
}
.legal-contact-box {
  background: rgba(46, 230, 168, 0.06);
  border: 1px solid rgba(46, 230, 168, 0.22);
  border-radius: 18px;
  padding: 20px 24px;
  margin-top: 12px;
}
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.sec-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.sec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 230, 168, 0.3);
}
.sec-card h4 {
  font-family: var(--font-display);
  color: var(--carbon);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sec-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--mist);
  margin-bottom: 0;
}
.legal-content, .legal-card {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .legal-wrap {
    width: min(920px, calc(100% - 48px));
    margin-inline: auto;
    padding: 110px 0 70px;
  }
  .legal-card {
    padding: 38px 36px;
  }
}

@media (max-width: 768px) {
  .legal-wrap {
    width: calc(100% - 36px);
    margin-inline: auto;
    padding: 96px 0 54px;
  }
  .legal-card {
    padding: 28px 20px;
    border-radius: 20px;
  }
  .legal-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
  .legal-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
  }
  .sec-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .container-narrow,
  .legal-wrap {
    width: calc(100% - 20px);
    margin-inline: auto;
    padding: 84px 0 40px;
  }
  .legal-card {
    padding: 20px 15px;
    border-radius: 16px;
  }
  .legal-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: none;
  }
  .legal-tabs::-webkit-scrollbar {
    display: none;
  }
  .legal-tab {
    padding: 7px 13px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .legal-title {
    font-size: 1.45rem;
    line-height: 1.22;
  }
  .legal-date {
    font-size: 0.76rem;
  }
  .legal-content {
    gap: 22px;
    font-size: 0.88rem;
    line-height: 1.62;
  }
  .legal-content h2 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }
  .legal-content ul, .legal-content ol {
    padding-left: 18px;
    gap: 6px;
  }
  .legal-alert {
    padding: 14px 14px;
    font-size: 0.82rem;
    margin: 18px 0;
    border-radius: 14px;
  }
  .legal-contact-box {
    padding: 16px 16px;
    border-radius: 14px;
    font-size: 0.86rem;
  }
  .sec-card {
    padding: 16px;
    border-radius: 14px;
  }
}
