:root {
  --navy: #17123a; --ink: #241f4d; --muted: #645f88; --line: #e6e2f3; --sky: #f3f0ff;
  --brand: #6c3cf0; --blue: #3a7bfd; --cyan: #00c2d1;
  --grad: linear-gradient(135deg, #6c3cf0 0%, #3a7bfd 55%, #00c2d1 100%);
  --orange: #ff7a1a; --orange2: #ff5a1f;
  --radius: 18px; --shadow: 0 12px 34px rgba(36, 22, 110, .12);
  --font: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 750; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.light { color: #fff !important; }
.sub { color: var(--muted); font-size: 18px; margin: 10px 0 36px; }
.sub.light { color: #dcd6ff !important; }
.block { display: flex; width: 100%; justify-content: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.lg { padding: 15px 24px; font-size: 17px; border-radius: 14px; }
.btn.orange { background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; box-shadow: 0 10px 24px rgba(255, 106, 26, .35); }
.btn.outline { background: #fff; color: var(--brand); border-color: #cfc3fb; }
.btn.outline:hover { border-color: var(--brand); }
.play { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; font-size: 9px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }

/* top nav */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 16px rgba(108, 60, 240, .35); }
.logo span { display: flex; flex-direction: column; line-height: 1; }
.logo b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.logo small { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--brand); margin-top: 3px; }
.links { display: flex; gap: 6px; margin-left: 18px; }
.links a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 21px 12px; border-bottom: 3px solid transparent; }
.links a.on, .links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* hero */
.hero { background: radial-gradient(900px 420px at 85% 10%, #e3f9ff 0%, transparent 60%), radial-gradient(800px 500px at 0% 0%, #efe9ff 0%, transparent 60%), linear-gradient(#f7f5ff, #f3f0ff); padding: 44px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #e9e2ff; color: var(--brand); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.pill.light { background: rgba(255, 255, 255, .16); color: #fff; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 850; margin: 18px 0 18px; letter-spacing: -0.035em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.fine { color: var(--muted); font-size: 14px; }

/* device mockups (drawn with CSS) */
.devices { position: relative; height: 430px; }
.monitor { position: absolute; right: 0; top: 8px; width: 92%; }
.screen { background: #1d1846; border-radius: 16px; padding: 10px; box-shadow: 0 30px 60px rgba(29, 24, 70, .3); }
.stand { width: 70px; height: 46px; margin: 0 auto; background: linear-gradient(#2a2460, #1d1846); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.base { width: 180px; height: 10px; margin: 0 auto; border-radius: 8px; background: #1d1846; }
.app { display: flex; background: #f4f2fb; border-radius: 8px; overflow: hidden; height: 290px; font-size: 7px; color: #241f4d; }
.rail { width: 34px; background: #17123a; display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 7px; }
.rail-logo { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); margin-bottom: 4px; }
.rail i { width: 18px; height: 6px; border-radius: 4px; background: #3a3470; }
.rail i.on { background: #8d6bff; }
.board { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.board-top { display: flex; align-items: center; gap: 8px; }
.board-top b { font-size: 11px; display: block; }
.board-top small { color: #8a86a8; }
.search { flex: 1; height: 14px; background: #fff; border: 1px solid #e6e2f3; border-radius: 6px; }
.newbtn { background: var(--grad); color: #fff; font-weight: 700; padding: 4px 7px; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.stats span { background: #fff; border-radius: 6px; padding: 4px 6px; color: #8a86a8; border-top: 3px solid; }
.stats b { display: block; font-size: 11px; color: #241f4d; }
.s1 { border-color: #2f80ed !important; } .s2 { border-color: #8b3cf0 !important; } .s3 { border-color: #0ea56b !important; } .s4 { border-color: #e08a00 !important; } .s5 { border-color: #e0335b !important; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.col { background: rgba(255, 255, 255, .6); border-radius: 7px; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.tag { align-self: flex-start; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.t1 { background: #e7f0fe; color: #2f80ed; } .t2 { background: #f1e9fe; color: #8b3cf0; } .t3 { background: #e2f7ee; color: #0ea56b; } .t4 { background: #fff2dc; color: #e08a00; }
.oc { background: #fff; border-radius: 6px; padding: 4px 5px 4px 7px; display: flex; flex-direction: column; gap: 1px; border-left: 3px solid; box-shadow: 0 1px 3px rgba(27, 22, 64, .06); }
.oc b { font-size: 9px; } .oc em { font-style: normal; color: #8a86a8; }
.oc u { text-decoration: none; align-self: flex-start; font-weight: 700; padding: 0 4px; border-radius: 4px; }
.c1 { border-color: #2f80ed; } .c2 { border-color: #8b3cf0; } .c3 { border-color: #0ea56b; } .c4 { border-color: #e08a00; }
.due { background: #fde7ec; color: #e0335b; } .paid { background: #e2f7ee; color: #0ea56b; } .pend { background: #fff2dc; color: #b06c00; }
.phone { position: absolute; left: 0; bottom: 0; width: 168px; height: 320px; background: #17123a; border-radius: 28px; padding: 12px 9px; box-shadow: 0 26px 50px rgba(23, 18, 58, .35); }
.notch { width: 54px; height: 7px; border-radius: 6px; background: #2c2660; margin: 0 auto 8px; }
.stub { background: #fff; border-radius: 16px; height: calc(100% - 15px); padding: 12px 11px; font-size: 9px; display: flex; flex-direction: column; gap: 4px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.stub-shop { font-weight: 800; text-align: center; font-size: 11px; font-family: var(--font); }
.stub-no { text-align: center; border-bottom: 1px dashed #c9c4e3; padding-bottom: 5px; }
.stub-no b { font-size: 15px; }
.stub-row { display: flex; justify-content: space-between; }
.stub-row.tot { border-top: 1px dashed #c9c4e3; padding-top: 4px; font-weight: 800; }
.stub-row.due { color: #e0335b; font-weight: 800; }
.stub-bags { display: flex; gap: 4px; margin-top: 4px; }
.stub-bags span { flex: 1; text-align: center; background: #f1e9fe; color: #6c3cf0; border-radius: 6px; padding: 4px 0; font-weight: 700; }
.stub-ready { margin-top: auto; text-align: center; background: var(--grad); color: #fff; border-radius: 8px; padding: 6px; font-weight: 700; font-family: var(--font); }

/* benefits strip */
.benefits { border-bottom: 1px solid var(--line); background: #fff; }
.ben-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ben { display: flex; gap: 14px; align-items: center; padding: 24px 18px; }
.ben + .ben { border-left: 1px solid var(--line); }
.ben .ic { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 23px; background: var(--grad); box-shadow: 0 8px 18px rgba(58, 123, 253, .3); }
.ben b { color: var(--navy); }
.ben p { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* sections */
.section { padding: 76px 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: 0 4px 16px rgba(36, 22, 110, .05); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat h3 { margin: 14px 0 6px; }
.feat p { color: var(--muted); }
.fi { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; }
.f1 { background: #e7f0fe; } .f2 { background: #f1e9fe; } .f3 { background: #e2f7ee; } .f4 { background: #fff2dc; } .f5 { background: #fde7ec; } .f6 { background: #e3f9fb; }
.how { background: var(--sky); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: 0 4px 16px rgba(36, 22, 110, .06); position: relative; }
.step .num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.step p { color: var(--muted); margin-top: 6px; }

/* pricing */
.pricing-band { background: radial-gradient(800px 400px at 100% 0%, rgba(0, 194, 209, .35), transparent 60%), linear-gradient(135deg, #2a1782, #4b2cd6 55%, #2f5fe0); }
.price-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 20px; align-items: stretch; }
.price { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 44px rgba(10, 6, 60, .3); }
.price.trial { background: linear-gradient(160deg, #fff7f0, #fff); text-align: center; }
.price .big { font-size: 46px; font-weight: 900; color: var(--orange2); letter-spacing: -0.03em; line-height: 1; }
.tag-free { font-weight: 800; letter-spacing: .12em; color: var(--navy); }
.plan { font-weight: 800; font-size: 22px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.soon { font-size: 12px; background: #fff2dc; color: #b06c00; padding: 3px 9px; border-radius: 999px; }
.row-price { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; gap: 10px; }
.row-price span { color: var(--muted); }
.row-price b { font-size: 30px; color: var(--brand); letter-spacing: -0.02em; white-space: nowrap; }
.row-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price li::before { content: "✓"; color: #0ea56b; font-weight: 900; margin-right: 8px; }
.price.trial ul { align-items: center; }

/* signup */
.signup-band { background: linear-gradient(160deg, #17123a, #2a1782); }
.signup-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.signup-copy h2 { margin: 16px 0 20px; font-size: clamp(30px, 4vw, 44px); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; color: #e6e1ff; font-size: 17px; }
.checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: #17123a; font-weight: 900; margin-right: 10px; font-size: 13px; }
.signup-card { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.signup-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.signup-card input:not([type=checkbox]), .modal input { height: 46px; border: 1.5px solid #dcd6f3; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fbfaff; width: 100%; }
.signup-card input:focus, .modal input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108, 60, 240, .14); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr { display: flex; align-items: center; border: 1.5px solid #dcd6f3; border-radius: 12px; background: #fbfaff; overflow: hidden; }
.addr:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108, 60, 240, .14); }
.addr input { border: 0 !important; box-shadow: none !important; background: transparent !important; min-width: 0; }
.addr span { padding: 0 14px 0 2px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.addr.big input { height: 54px; font-size: 18px; }
.hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.hint.ok { color: #0ea56b; } .hint.bad { color: #e0335b; }
.agree { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; color: var(--muted) !important; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: #fde7ec; color: #b0173b; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.done { text-align: center; align-items: center; }
.big-check { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #e2f7ee; color: #0ea56b; font-size: 34px; font-weight: 900; }
.addr-link { font-size: 22px; font-weight: 800; word-break: break-all; }

/* faq */
.faq h2 { margin-bottom: 28px; }
details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 18px; color: var(--muted); }

/* cta + footer */
.cta-band { background: var(--grad); padding: 64px 0; }
.cta-band p { margin: 10px 0 24px; font-size: 18px; }
.cta-band .fine { margin-top: 14px; }
.footer { background: #17123a; color: #cfc9f3; padding: 28px 0; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logo { color: #fff; }
.footer .logo b { color: #fff; }
.footer nav { display: flex; gap: 18px; margin-left: auto; }
.footer a, .footer .linkbtn { color: #cfc9f3; text-decoration: none; }
.footer .muted { color: #9d97c9; }

/* login modal */
.overlay { position: fixed; inset: 0; background: rgba(23, 18, 58, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: 22px; padding: 28px; width: min(400px, 100%); position: relative; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.modal form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.modal .x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 28px; color: var(--muted); cursor: pointer; }
.modal h2 { font-size: 24px; }

@media (max-width: 980px) {
  .hero-grid, .signup-grid { grid-template-columns: 1fr; }
  .devices { height: 380px; max-width: 560px; width: 100%; margin: 0 auto; }
  .ben-grid { grid-template-columns: 1fr 1fr; }
  .ben:nth-child(3) { border-left: 0; }
  .feat-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .price.trial { grid-column: span 2; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .nav-cta .btn { padding: 8px 12px; font-size: 14px; }
  .nav-cta .btn.orange { display: none; }
  .devices { height: 300px; }
  .monitor { width: 100%; }
  .app { height: 200px; }
  .phone { width: 120px; height: 230px; border-radius: 22px; padding: 9px 7px; }
  .stub { font-size: 7px; padding: 9px 8px; gap: 2px; }
  .stub-no b { font-size: 12px; }
  .ben-grid, .feat-grid, .steps, .price-grid { grid-template-columns: 1fr; }
  .ben + .ben { border-left: 0; border-top: 1px solid var(--line); }
  .price.trial { grid-column: auto; }
  .two { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .footer nav { margin-left: 0; }
}
