:root {
  --bg: #f4f8f8;
  --surface: #ffffff;
  --text: #14171f;
  --muted: #5b6472;
  --faint: #8a93a1;
  --line: #e1e5ea;
  --primary: #01658c;
  --primary-hover: #015270;
  --primary-soft: #e8f3f8;
  --success: #0f9d6b;
  --danger: #e5484d;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(20, 40, 60, .28), 0 2px 6px rgba(20, 40, 60, .06);
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* Background glow, after the reference */
.glow { position: absolute; inset: 0 0 auto 0; height: 980px; pointer-events: none; overflow: hidden; z-index: -1; }
.glow span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow .g1 { width: 520px; height: 520px; left: -60px; top: 120px; background: #b9c8ff; }
.glow .g2 { width: 460px; height: 460px; left: 300px; top: 300px; background: #b8f0c8; }
.glow .g3 { width: 520px; height: 420px; right: 220px; top: -40px; background: #f3f7c4; }
.glow .g4 { width: 440px; height: 440px; right: -100px; top: 120px; background: #d9dcf3; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px 22px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: background .18s, color .18s, border-color .18s, transform .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-hover); }
.btn-solid:disabled { opacity: .7; cursor: progress; }
.btn-outline { border-color: #1f2a5c; color: #1f2a5c; background: rgba(255,255,255,.7); }
.btn-outline:hover { background: #1f2a5c; color: #fff; }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.6); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #c4c9d0; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px var(--gutter); transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: rgba(244, 248, 248, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 18px; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); padding: 6px; border-radius: 8px; }

.notice { margin: 0 var(--gutter); padding: 12px 18px; border-radius: 12px; background: #d4f0e3; color: #0b5e40; font-weight: 500; }
.notice.bad { background: #fce8e9; color: #9b1c21; }
.notice a { color: inherit; font-weight: 700; }

/* Hero */
.hero { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 9vh, 110px) var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.03em; max-width: 13ch; }
.lede { margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); color: #2e3440; max-width: 34ch; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-cta.center { justify-content: center; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 46ch; }

/* Mockup */
.mock { position: relative; aspect-ratio: 1.3 / 1; min-height: 360px; }
.card { position: absolute; background: rgba(255,255,255,.88); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.c-chart { left: 22%; top: 18%; width: 64%; height: 54%; padding: 16px 18px 12px; display: flex; flex-direction: column; }
.filters { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: nowrap; overflow: hidden; }
.f { font-size: 12px; color: var(--faint); background: #f2f4f7; border-radius: 8px; padding: 7px 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.f.search { flex: 1; min-width: 0; }
.bars { flex: 1; width: 100%; height: auto; }
.c-donut { left: 0; top: 4%; width: 36%; aspect-ratio: 1 / 1.1; padding: 14px; display: grid; place-items: center; background: rgba(240, 250, 244, .9); z-index: 2; }
.donut { width: 92%; }
.donut-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding-top: 8%; }
.donut-label small { font-size: 12px; color: var(--muted); }
.donut-label b { font-size: clamp(16px, 1.8vw, 22px); font-family: var(--font-display); }
.tip { position: absolute; top: 4%; left: 26%; display: flex; gap: 8px; align-items: flex-start; background: #fff; padding: 9px 12px; border-radius: 10px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.25); font-size: 13px; z-index: 3; white-space: nowrap; }
.tip i { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.tip small { display: block; color: var(--faint); font-size: 11px; }
.c-period { right: 4%; top: 46%; width: 36%; padding: 14px 16px; z-index: 3; }
.c-period h3 { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.c-period dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #eef0f3; font-size: 12px; }
.c-period dt { color: var(--muted); }
.c-period dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
.c-spark { right: 0; top: 0; width: 20%; aspect-ratio: 1 / 1.2; padding: 12px; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; }
.c-spark svg { width: 100%; }
.c-spark small { font-size: 11px; color: var(--faint); }
.c-fx { left: 14%; bottom: 0; width: 20%; overflow: hidden; z-index: 3; }
.fx-head { background: linear-gradient(90deg, #e3c5f3, #a9d8f2); font-size: 11px; font-weight: 700; text-align: center; padding: 5px; }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.fx-grid span { background: #eef0fb; border-radius: 8px; text-align: center; font-weight: 800; padding: 6px 0; font-size: 16px; }

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 88px var(--gutter); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--c); margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: #1a1d24; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, #fff, #f1f7fa); border: 1px solid var(--line); }
.steps b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan-main { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-family: var(--font-display); font-size: 26px; }
.pill { font-size: 13px; font-weight: 700; color: #0b5e40; background: #d4f0e3; padding: 4px 10px; border-radius: 999px; }
.pill-muted { color: var(--muted); background: #eef1f4; }
.price { font-family: var(--font-display); font-size: 48px; font-weight: 800; margin: 14px 0 18px; }
.price small { font-size: 17px; color: var(--muted); font-weight: 500; }
.price.muted { font-size: 26px; color: var(--muted); margin: 22px 0 26px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #d4f0e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9d6b' stroke-width='3.2'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .fine { margin-top: 0; }

.security { max-width: none; background: #0e2a38; color: #e8f1f5; }
.sec-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.security .eyebrow { color: #7fd1b0; }
.sec-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.sec-list li { color: #b9cad3; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.sec-list b { display: block; color: #fff; margin-bottom: 4px; }

.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

.cta { text-align: center; margin: 0 var(--gutter) 80px; padding: 72px 24px; border-radius: 28px; background: radial-gradient(120% 140% at 10% 0%, #c9d4ff 0%, transparent 50%), radial-gradient(120% 140% at 90% 100%, #c4f2d4 0%, transparent 50%), #f7f9ff; }
.cta p { color: var(--muted); font-size: 18px; margin-top: 10px; }
.cta .hero-cta { margin-top: 26px; }

.footer { border-top: 1px solid var(--line); padding: 32px var(--gutter) 40px; display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; align-items: center; max-width: var(--wrap); margin: 0 auto; }
.footer .brand { font-size: 20px; }
.footer nav { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer p { grid-column: 1 / -1; font-size: 13px; color: var(--faint); }

/* Modal */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(14, 22, 30, .45); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 40px); overflow-y: auto; background: #fff; border-radius: 20px; padding: 34px 30px 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
.modal h2 { font-size: 28px; padding-right: 28px; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f2f4f7; font-size: 22px; line-height: 1; color: var(--muted); }
.close:hover { background: #e4e7ec; color: var(--text); }
.sub { color: var(--muted); margin: 8px 0 22px; }
form label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.hint { font-weight: 500; color: var(--faint); }
form input[type=email], form input[type=password], form input[type=text] { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #d6dae0; border-radius: 10px; background: #fff; color: var(--text); }
form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: #f2f4f7; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--muted); margin-top: 18px !important; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.error { color: var(--danger); font-size: 14px; min-height: 22px; margin: 10px 0 6px; }
.done-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #d4f0e3; color: var(--success); margin-bottom: 18px; }
#signupDoneView .btn { margin-top: 4px; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { gap: 24px; }
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; }
  .hero h1 { max-width: 16ch; }
  .mock { max-width: 760px; width: 100%; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 10px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a:hover { background: #f2f4f7; }
  .steps, .plans, .sec-inner, .sec-list { grid-template-columns: 1fr; }
  .sec-inner { gap: 28px; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 16px; gap: 8px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
  .grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .mock { aspect-ratio: auto; height: 420px; min-height: 0; }
  .c-donut { width: 50%; top: 0; }
  .tip { left: 30%; font-size: 12px; }
  .c-chart { left: 0; top: 30%; width: 100%; height: 44%; }
  .filters .f:not(.search) { display: none; }
  .c-period { right: 0; top: auto; bottom: 0; width: 60%; }
  .c-spark { width: 34%; }
  .c-fx { left: 0; width: 34%; bottom: 4%; }
  .section { padding: 64px var(--gutter); }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .modal { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
