:root {
  --bg: #ffffff;
  --soft: #f4f5ff;
  --ink: #0f1226;
  --muted: #5b6078;
  --line: #e4e6f5;
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --sun: #f59e0b;
  --sun-d: #d97706;
  --sun-bg: #fff4dc;
  --night: #4338ca;
  --night-bg: #e9e8ff;
  --green: #10b981;
  --green-bg: #d9f7ea;
  --red: #e5484d;
  --max: 1080px;
  --shadow: 0 30px 70px -30px rgba(79, 70, 229, .35), 0 8px 20px -8px rgba(15, 18, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.center { text-align: center; margin-inline: auto; }

/* nav */
/* Promo banner */
.promo { background: linear-gradient(90deg, #3730c8 0%, #6d28d9 52%, #c2410c 100%); color: #fff; position: relative; overflow: hidden; }
.promo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 120px at 18% 0%, rgba(255, 255, 255, .22), transparent 70%), radial-gradient(420px 120px at 88% 100%, rgba(245, 158, 11, .45), transparent 70%); pointer-events: none; }
.promo[hidden] { display: none; }
.promo-in { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding-top: 8px; padding-bottom: 8px; }
.promo-tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); white-space: nowrap; }
.promo-text { margin: 0; font-size: 16.5px; line-height: 1.35; font-weight: 500; text-align: center; }
.promo-text strong { font-weight: 800; font-size: 19px; letter-spacing: .01em; }
.promo-code { display: inline-flex; align-items: center; gap: 8px; margin: 0 2px; padding: 3px 6px 3px 12px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .14); color: #fff; font: 800 17px/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .14em; cursor: pointer; transition: background .15s, transform .15s; }
.promo-code:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.promo-code span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 7px; background: #fff; color: #4338ca; }
.promo-btn { white-space: nowrap; text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 18px; border-radius: 999px; background: #fff; color: #4338ca; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: transform .15s; }
.promo-btn:hover { transform: translateY(-1px); }
@media (max-width: 760px) { .promo-tag, .promo-btn { display: none; } .promo-text { font-size: 15px; } .promo-text strong { font-size: 17px; } }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15.5px; font-weight: 600; }
.nav nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--indigo), var(--violet)); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 7px 6px 6px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 28%, 62% 28%, 62% 100%, 38% 100%, 38% 28%, 0 28%); }

/* buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; font-weight: 700; text-decoration: none; border: 0; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .6); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(79, 70, 229, .65); }
.btn-sm { padding: 9px 20px; font-size: 15px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.mid-cta { text-align: center; margin-top: 44px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.b1 { width: 460px; height: 460px; background: #c7c2ff; top: -140px; right: -80px; }
.b2 { width: 380px; height: 380px; background: #ffe2a8; bottom: -160px; left: -100px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; margin-bottom: 22px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -8px rgba(79,70,229,.3); font-size: 14px; font-weight: 700; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-bg); }
h1 { font-size: clamp(42px, 6vw, 70px); }
.grad { background: linear-gradient(135deg, var(--indigo), var(--violet) 55%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; font-size: 21px; color: var(--muted); max-width: 520px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px; color: var(--muted); font-size: 15.5px; font-weight: 500; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }

/* app card */
.demo-wrap { position: relative; }
.try { margin-bottom: 12px; font-weight: 700; color: var(--indigo); font-size: 16px; }
.arrow { display: inline-block; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.demo-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }

.app { background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); display: grid; gap: 16px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; }
.app-title { font-weight: 700; font-size: 15px; color: var(--muted); }
.demo-tag { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .1em; background: var(--soft); color: var(--indigo); }

.status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--soft); transition: background .3s; }
.status strong { display: block; font-size: 19px; letter-spacing: -.01em; }
.status small { color: var(--muted); font-size: 14px; }
.beacon { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #b8bbd3; transition: background .3s; }
.beacon.on, #demo[data-state="on"] .beacon { background: var(--green); animation: pulse 2s infinite; }
#demo[data-state="on"] .status { background: var(--green-bg); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); } }

.bigswitch { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: left; transition: box-shadow .2s, background .2s; }
.bigswitch:hover { box-shadow: inset 0 0 0 2px var(--indigo); }
#demo[data-state="on"] .bigswitch { box-shadow: inset 0 0 0 2px var(--sun); background: #fffaf0; }
.bs-label { flex: 1; }
.bs-label strong { display: block; font-size: 24px; letter-spacing: -.02em; }
.bs-label small { color: var(--muted); font-size: 14px; }
.bs-state { font-weight: 800; font-size: 14px; width: 32px; color: var(--muted); }
#demo[data-state="on"] .bs-state { color: var(--sun-d); }

.sw { position: relative; flex: none; width: 58px; height: 32px; border-radius: 999px; background: #cdd0e6; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(15,18,38,.25); transition: transform .2s; }
.sw.on, #demo[data-state="on"] .sw { background: var(--sun); }
.sw.on::after, #demo[data-state="on"] .sw::after { transform: translateX(26px); }
.mini .sw { width: 48px; height: 26px; }
.mini .sw::after { width: 18px; height: 18px; }
.mini .sw.on::after { transform: translateX(22px); }

/* fixed-height, scrollable log so the card never grows */
.log { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; height: 172px; overflow-y: auto; padding-right: 4px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cdd0e6 transparent; }
.log li { flex: none; padding: 9px 12px; border-radius: 12px; background: var(--soft); animation: pop .35s ease-out; }
.log li.empty { background: none; color: var(--muted); padding-left: 0; animation: none; }
.log time { color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; font-weight: 600; }
.log.static { height: auto; overflow: visible; }
.log.static li { animation: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* sections */
.section { padding: 96px 0; }
.soft { background: var(--soft); }
.head { max-width: 660px; margin-bottom: 48px; }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
.sub { margin-top: 16px; color: var(--muted); font-size: 20px; }
h3 { font-size: 26px; letter-spacing: -.02em; }

/* stepper */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.tab { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; border: 0; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); transition: box-shadow .2s; }
.tab:hover { box-shadow: inset 0 0 0 2px #b9b5f5; }
.tab[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--indigo), 0 14px 30px -14px rgba(79,70,229,.5); }
.tab strong { display: block; font-size: 19px; }
.tab small { color: var(--muted); font-size: 14px; }
.n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); font-weight: 800; font-size: 18px; transition: background .2s, color .2s; }
.tab[aria-selected="true"] .n { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; }

.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px; border-radius: 28px; background: var(--soft); }
.panel-text p { margin-top: 14px; color: var(--muted); }
.mini { max-width: 400px; width: 100%; justify-self: center; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.input { display: block; padding: 13px 15px; border-radius: 13px; box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-weight: 500; font-size: 17px; }
.fake-btn { display: block; text-align: center; padding: 14px; border-radius: 13px; background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; font-weight: 700; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.row strong { display: block; font-size: 20px; letter-spacing: -.01em; }
.row small { color: var(--muted); font-size: 14px; }
.stepper-num { display: inline-flex; align-items: center; gap: 12px; }
.stepper-num b { min-width: 20px; text-align: center; font-size: 20px; }
.stepper-num button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-size: 20px; font-weight: 700; line-height: 1; }
.stepper-num button:hover { box-shadow: inset 0 0 0 2px var(--indigo); color: var(--indigo); }

/* algos */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.algo-card { padding: 32px; border-radius: 28px; background: #fff; box-shadow: 0 20px 40px -24px rgba(15,18,38,.25), 0 0 0 1px var(--line); border-top: 6px solid; }
.algo-card.rise { border-top-color: var(--sun); }
.algo-card.bounce { border-top-color: var(--night); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.rise .badge { background: var(--sun-bg); color: var(--sun-d); }
.bounce .badge { background: var(--night-bg); color: var(--night); }
.algo-card h3 { margin-top: 14px; font-size: 40px; }
.hours { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.algo-card p:last-child { margin-top: 12px; color: var(--muted); }

.day { margin-top: 28px; padding: 32px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.day-top { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.chips { display: flex; gap: 10px; }
.chip { padding: 9px 20px; border: 0; border-radius: 999px; font-weight: 700; background: var(--soft); color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); transition: all .2s; }
.chip.on.rise { background: var(--sun-bg); color: var(--sun-d); box-shadow: inset 0 0 0 2px var(--sun); }
.chip.on.bounce { background: var(--night-bg); color: var(--night); box-shadow: inset 0 0 0 2px var(--night); }
.bar { position: relative; height: 44px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.bar > span { position: absolute; top: 0; bottom: 0; border-radius: 14px; transition: opacity .25s, transform .25s; }
.seg-bounce { left: 0; width: 33.333%; background: linear-gradient(90deg, #4338ca, #7c3aed); }
.seg-rise { left: 41.667%; width: 25%; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar > span.off { opacity: .12; transform: scaleY(.6); }
.bar .now { top: -8px; bottom: -8px; width: 4px; border-radius: 4px; background: var(--ink); box-shadow: 0 0 0 3px #fff; transition: none; }
.bar .now::before { content: "Now"; position: absolute; top: -26px; left: 50%; translate: -50% 0; padding: 2px 8px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.ticks-h { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.day-note { margin-top: 20px; font-size: 19px; font-weight: 700; }
.day-small { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* control */
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--green-bg); color: var(--green); }
.checks strong { color: var(--ink); }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ctl-btn { padding: 13px 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: 16px; transition: box-shadow .2s, background .2s; }
.ctl-btn:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--indigo); }
.ctl-btn:disabled { opacity: .4; cursor: not-allowed; }
.ctl-btn.solid { background: var(--indigo); color: #fff; box-shadow: none; }
.ctl-btn[aria-pressed="true"] { background: var(--sun-bg); box-shadow: inset 0 0 0 2px var(--sun); color: var(--sun-d); }
.confirm { padding: 16px; border-radius: 16px; background: var(--sun-bg); display: grid; gap: 12px; animation: pop .25s ease-out; }
.confirm p { font-weight: 700; font-size: 16.5px; }
.ctl-msg { min-height: 24px; font-size: 15px; color: var(--muted); }
#ctl[data-open="no"] .beacon { background: #b8bbd3; animation: none; }
#ctl[data-paused="yes"] .beacon { background: var(--sun); animation: none; }

/* pricing */
.plan { max-width: 480px; margin: 0 auto; padding: 36px; border-radius: 28px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); text-align: center; }
.price { font-size: 56px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 20px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.plan .checks { text-align: left; margin: 24px 0 30px; }

/* faq */
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 44px 22px 0; font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--indigo); font-size: 22px; transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { padding-bottom: 24px; color: var(--muted); }

/* cta */
.cta { padding: 100px 0; text-align: center; color: #fff; background: radial-gradient(60% 90% at 80% 0%, #7c3aed, transparent 70%), radial-gradient(60% 90% at 10% 100%, #4f46e5, transparent 70%), #1e1b4b; }
.cta p { margin: 16px auto 34px; color: #d4d2f7; font-size: 20px; max-width: 520px; }
.cta .btn { background: #fff; color: var(--indigo); box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); }
.cta .small { margin: 28px 0 0; font-size: 16px; }
.cta .small a { color: #fff; font-weight: 700; }

footer { padding: 40px 0 48px; }
.foot { display: grid; gap: 16px; }
.sister { color: var(--muted); font-size: 15px; }
.sister a, details p a { color: var(--indigo); font-weight: 600; }
.risk, .copy { color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 820px; }
.risk strong { color: var(--ink); }

.sticky-cta { display: none; }

@media (max-width: 900px) {
  .hero-grid, .control-grid, .panel { grid-template-columns: 1fr; gap: 36px; }
  .panel { padding: 24px; }
}
/* after you buy */
.after { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.after li { display: flex; gap: 16px; align-items: flex-start; padding: 26px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.after .n { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; }
.after h3 { font-size: 21px; }
.after p { margin-top: 6px; color: var(--muted); font-size: 16.5px; }
.after-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 16px; }
.after-note a, details p a { color: var(--indigo); font-weight: 600; }

/* legal pages */
.legal .doc { padding-top: 48px; padding-bottom: 72px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.doc-nav a { padding: 7px 16px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.doc-nav a[aria-current="page"] { background: var(--indigo); color: #fff; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .updated { margin: 10px 0 28px; color: var(--muted); font-size: 14.5px; }
.doc h2 { margin: 34px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.doc p { margin-top: 12px; color: #2c3150; }
.doc p a, .sister a { color: var(--indigo); font-weight: 600; }

@media (max-width: 900px) {
  .after { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .nav nav { display: none; }
  .nav-in .btn { margin-left: auto; white-space: nowrap; }
  .nav-in { gap: 12px; }
  .brand { white-space: nowrap; font-size: 17px; }
  .hero { padding: 32px 0 40px; }
  .section, .cta { padding: 48px 0; }
  .head { margin-bottom: 28px; }
  .ticks { display: none; }
  .log { height: 128px; }
  .panel .mini { display: none; }
  .panel { padding: 22px; }
  .tab small { display: none; }
  .tabs { gap: 10px; }
  .tab { padding: 12px 14px; }
  .algo-card { padding: 22px; }
  .algo-card h3 { font-size: 32px; }
  .after li { padding: 20px; }
  summary { font-size: 18px; padding: 18px 40px 18px 0; }
  .tabs, .two { grid-template-columns: 1fr; }
  .day { padding: 22px; }
  .sticky-cta { display: block; position: fixed; inset: auto 0 0 0; z-index: 30; padding: 12px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .sticky-cta .btn { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
