:root {
  --bg: #fafbff; --bg2: #f1f3fb; --card: #ffffff; --ink: #151a2e; --muted: #5b6482; --line: #e2e6f3;
  --brand: #4f46e5; --brand2: #7c3aed; --brand-ink: #ffffff; --money: #059669; --moneybg: #d1fae5;
  --shadow: 0 10px 30px -12px rgba(30, 27, 90, .22); --radius: 16px;
  --s1: #4f46e5; --s2: #10b981; --s3: #f59e0b; --btn-ink: #ffffff;
}
:root[data-theme="dark"] {
  --bg: #0c0f1d; --bg2: #11152a; --card: #161b33; --ink: #eceffd; --muted: #98a2c6; --line: #262d52;
  --brand: #818cf8; --brand2: #a78bfa; --brand-ink: #0b0d1a; --money: #34d399; --moneybg: #0d3b2e;
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --s1: #818cf8; --s2: #34d399; --s3: #fbbf24; --btn-ink: #0b0d1a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f1d; --bg2: #11152a; --card: #161b33; --ink: #eceffd; --muted: #98a2c6; --line: #262d52;
    --brand: #818cf8; --brand2: #a78bfa; --brand-ink: #0b0d1a; --money: #34d399; --moneybg: #0d3b2e;
    --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
    --s1: #818cf8; --s2: #34d399; --s3: #fbbf24; --btn-ink: #0b0d1a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo b { color: var(--brand); font-weight: 800; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand2)); position: relative; box-shadow: 0 6px 14px -6px var(--brand); }
.logo-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid var(--bg); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav > a:hover { color: var(--ink); background: var(--bg2); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--bg2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--btn-ink); border: 0; padding: 10px 18px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 18px -8px var(--brand); transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg2); }
.btn.lg { padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; }
.btn.inv { background: #fff; color: #3730a3; box-shadow: none; }
.btn.ghost-inv { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); box-shadow: none; }
.btn.ghost-inv:hover { background: rgba(255, 255, 255, .12); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.cta-row.center { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background:
  radial-gradient(60% 55% at 85% 0%, color-mix(in srgb, var(--brand2) 22%, transparent), transparent 70%),
  radial-gradient(50% 50% at 0% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand2) 55%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 60ch; }
.lead b { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--moneybg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23059669' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px dashed var(--line); padding: 3px 10px; border-radius: 999px; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 16px; padding: 10px 0; position: relative; }
.timeline small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--line); z-index: 1; margin-top: 2px; }
.d1 { background: #94a3b8; } .d2 { background: var(--brand); } .d3 { background: var(--s3); } .d4 { background: var(--money); box-shadow: 0 0 0 2px var(--money); }
.money { color: var(--money); font-size: 1.1em; }
.fine { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.strip { border-block: 1px solid var(--line); background: var(--bg2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.strip-grid div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid b { font-size: 15px; } .strip-grid span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- sections ---------- */
.sec { padding: 84px 0; }
.sec.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head p:last-child { color: var(--muted); font-size: 18px; margin-bottom: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.model { position: relative; display: flex; flex-direction: column; }
.model p { color: var(--muted); }
.model .ex { margin-top: auto; padding: 10px 12px; background: var(--bg2); border-radius: 10px; color: var(--ink); font-size: 14px; }
.model.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.pill { position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--btn-ink); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-a { background: color-mix(in srgb, var(--s1) 16%, transparent); color: var(--s1); }
.i-b { background: color-mix(in srgb, var(--s2) 16%, transparent); color: var(--s2); }
.i-c { background: color-mix(in srgb, var(--s3) 20%, transparent); color: var(--s3); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: var(--btn-ink); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; align-items: start; }
.calc-in { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.calc-in label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.calc-in output { float: right; color: var(--brand); font-weight: 800; }
.calc-in label { grid-template-columns: 1fr auto; } .calc-in input[type=range] { grid-column: 1 / -1; }
#tierCalc { display: grid; gap: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: var(--line); outline-offset: 6px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); border: 4px solid var(--card); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 4px solid var(--card); cursor: pointer; }
.calc-out { background: linear-gradient(160deg, #312e81, #4c1d95); color: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); position: sticky; top: 88px; }
.out-l { margin: 0; color: #c7d2fe; font-size: 14px; font-weight: 600; }
.out-v { font-size: clamp(38px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; margin: 2px 0 14px; line-height: 1.1; word-break: break-word; }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .15); margin-bottom: 18px; }
.bar i { display: block; height: 100%; width: 0; transition: width .35s ease; } .bar i:nth-child(1) { background: #818cf8; } .bar i:nth-child(2) { background: #34d399; } .bar i:nth-child(3) { background: #fbbf24; }
.break { margin: 0 0 14px; display: grid; gap: 8px; }
.break div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.break dt { display: flex; align-items: center; gap: 8px; color: #e0e7ff; } .break dd { margin: 0; font-weight: 700; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .s1.sw { background: #818cf8; } .s2.sw { background: #34d399; } .s3.sw { background: #fbbf24; }
.funnel { font-size: 13px; color: #c7d2fe; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 12px; }
.calc-out .fine { color: #c7d2fe; }
.calc-out .btn { background: #fff; color: #3730a3; box-shadow: none; }

/* ---------- tier ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.two-col.rev > :first-child { order: 0; }
.rates { display: flex; flex-wrap: wrap; gap: 8px; } .rates span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 14px; }
.tree { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.tree svg { width: 100%; max-width: 400px; height: auto; }
.tree .ln path { fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; }
.tree .nd circle { stroke-width: 0; } .tree .nd text { font: 700 12px system-ui, sans-serif; fill: #fff; }
.tree .me circle { fill: var(--brand); } .tree .t1 circle { fill: var(--money); } .tree .t2 circle { fill: var(--s3); } .tree .t2 text { fill: #1b1b1b; }
.tree .me text, .tree .t1 text { fill: var(--btn-ink); }
.tree figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- features ---------- */
.feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.feat article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat article h3 { font-size: 17px; } .feat article p { margin: 0; color: var(--muted); font-size: 15px; }
.pay { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pay > div { flex: 1 1 340px; } .pay p { color: var(--muted); margin: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 340px; }
.chips li { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.rules h3 { margin-bottom: 10px; } .rules ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }

/* ---------- faq ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- final / footer ---------- */
.final { text-align: center; padding: 84px 0; color: #fff; background: radial-gradient(70% 120% at 50% 0%, #6d28d9, transparent 70%), linear-gradient(135deg, #312e81, #4c1d95); }
.final h2 { color: #fff; } .final p { color: #ddd6fe; font-size: 18px; margin: 0; }
.foot { padding: 44px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.foot-grid p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; justify-content: flex-end; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; } .foot nav a:hover { color: var(--brand); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .calc, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cards3, .feat { grid-template-columns: 1fr 1fr; } .steps { grid-template-columns: 1fr 1fr; } .strip-grid { grid-template-columns: 1fr 1fr; }
  .calc-out { position: static; }
}
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav > a { padding: 12px; } .nav-cta { margin: 8px 0 0; flex-wrap: wrap; } .nav-cta .btn { flex: 1; }
  .sec { padding: 56px 0; } .hero { padding: 40px 0 36px; }
  .cards3, .feat, .steps { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; }
}
