/* The Chexi waitlist and marketing page, in Chexi's own brand (BRAND.md, /brand/brand.css): Night and
   Signal, Space Grotesk headlines, Inter for reading, JetBrains Mono for small labels. Dark is the default;
   theme.js sets data-theme, and the moon/sun button flips it. The sample desktop and phone are an owner's
   site, so they keep their own Studio look (serif included) inside the black frame. */
:root {
  --bg: var(--cx-night); --paper: var(--cx-graphite); --ink: var(--cx-bone); --ink-2: #c9c9c6; --muted: var(--cx-ash);
  --line: var(--cx-rule); --line-2: #3a3a40; --soft: var(--cx-slate);
  --acc: var(--cx-signal); --acc-hover: var(--cx-signal-hi); --acc-soft: var(--cx-wash); --acc-ink: var(--cx-night); --acc-text: var(--cx-signal-hi);
  --note: #ffe2a8; --bad: var(--cx-bad);
  --base: #3a3a40; --join: var(--cx-signal); --ref: var(--cx-bone);
  --display: var(--cx-display);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: var(--cx-ui);
  --mono: var(--cx-mono);
  --shadow: 8px 8px 0 var(--cx-slate);
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: var(--cx-paper); --paper: #fff; --ink: var(--cx-char); --ink-2: #3d3d42; --muted: var(--cx-stone);
  --line: var(--cx-hair); --line-2: #c4c4bd; --soft: var(--cx-mist);
  --acc-soft: #FFEDE3; --acc-text: var(--cx-ember); --note: #fff0a8;
  --base: #cfcfc8; --ref: var(--cx-char);
  --shadow: 8px 8px 0 var(--cx-hair);
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .25s, color .25s; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
em { font-style: italic; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
.eyebrow { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s; }
.btn:hover { background: var(--acc-hover); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-o { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-o:hover { background: var(--soft); }
.btn.is-busy { opacity: .7; pointer-events: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--acc-text); text-decoration: underline; cursor: pointer; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(5vw, 16px); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; }
.top.is-stuck { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 26px; color: var(--ink); }
.menu { display: flex; gap: 24px; margin-right: auto; font-size: 15px; color: var(--ink-2); }
.menu a { text-decoration: none; }
.menu a:hover { color: var(--ink); }
.mode { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.mode i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: inset -5px -3px 0 0 var(--paper); }
:root[data-theme=dark] .mode i { background: var(--note); box-shadow: 0 0 0 3px color-mix(in srgb, var(--note) 25%, transparent); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 72px) max(5vw, 16px) clamp(40px, 6vw, 88px); }
h1 { font: 700 clamp(44px, 5.6vw, 76px)/.98 var(--display); letter-spacing: -.045em; text-wrap: balance; }
h1 em, .sec em, .final em { font-style: normal; color: var(--acc-text); }
.lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); max-width: 32em; }

.join { margin-top: 30px; max-width: 520px; }
.field { display: flex; gap: 8px; padding: 6px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.field input { flex: 1; border: 0; background: none; font: 16px var(--sans); color: var(--ink); padding: 0 12px; min-height: 48px; outline: none; }
.field input::placeholder { color: var(--muted); }
.fine { margin-top: 12px; font-size: 14px; color: var(--muted); }
.fine.is-error, .fine.warn { color: var(--bad); }
.ref-note { margin-bottom: 12px; font-size: 15px; color: var(--acc-text); font-weight: 500; }
.join.is-shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.card { margin-top: 30px; max-width: 520px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); outline: none; }
.card-kicker { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); }
.card h2 { font: 700 32px/1.05 var(--display); letter-spacing: -.035em; margin: 6px 0 10px; }
.card p { color: var(--ink-2); }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share input { flex: 1 1 220px; min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font: 15px var(--sans); color: var(--ink); background: var(--bg); }

/* =====================================================================
   The sample desktop. Its own tokens, so a style can restyle it without touching the page.
   ===================================================================== */
.hero-demo { position: relative; padding: 0 0 44px; }
.laptop { position: relative; isolation: isolate; background: #1b1b1f; border-radius: 18px; padding: 9px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.laptop::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 40%; height: 12px; transform: translateX(-50%); background: linear-gradient(#cfcac2, #aaa59d); border-radius: 0 0 14px 14px; }
:root[data-theme=dark] .laptop::after { background: linear-gradient(#3a3640, #25222a); }

.desk, .screen {
  --d-ink: #1d1d1f; --d-mut: #6e6e75; --d-win: #fff; --d-bar: #f3f3f6; --d-line: rgba(0, 0, 0, .08);
  --d-ink: #121213; --d-mut: #5f5f64; --d-bar: #f6f6f3; --d-line: rgba(18, 18, 19, .09);
  --d-acc: #ff4f00; --d-acc-ink: #0b0b0c; --d-menubar: rgba(255, 255, 255, .6); --d-dock: rgba(255, 255, 255, .66);
  --d-wall: radial-gradient(90% 70% at 85% 0%, #ffe3d3 0%, transparent 62%), linear-gradient(180deg, #f4f4f1, #ebebe7);
  --d-head: var(--display); --d-head-w: 700; --d-head-track: -.04em; --d-em: normal; --d-note: #ffe9a8;
}
:root[data-theme=dark] .desk, :root[data-theme=dark] .screen {
  --d-ink: #ededea; --d-mut: #a3a3a7; --d-win: #1a1a1d; --d-bar: #222226; --d-line: rgba(255, 255, 255, .08);
  --d-acc: #ff4f00; --d-acc-ink: #0b0b0c; --d-menubar: rgba(11, 11, 12, .55); --d-dock: rgba(30, 30, 33, .7); --d-note: #ffe2a8;
  --d-wall: radial-gradient(90% 70% at 85% 0%, #2e180d 0%, transparent 62%), linear-gradient(180deg, #121214, #0b0b0c);
}
.desk[data-style=professional], .screen[data-style=professional] {
  --d-acc: #2b45ff; --d-acc-ink: #fff; --d-win: #fdfcf9; --d-ink: #1d1d1f; --d-mut: #6e6e75;
  --d-head: var(--serif); --d-head-w: 400; --d-head-track: 0; --d-em: italic; --d-note: #fff0a8;
  --d-wall: radial-gradient(circle, rgba(0, 0, 0, .09) 1px, transparent 1.4px) 0 0 / 18px 18px, #ece8e1;
}
:root[data-theme=dark] .desk[data-style=professional], :root[data-theme=dark] .screen[data-style=professional] {
  --d-acc: #7186ff; --d-acc-ink: #0b0d1f; --d-win: #18191d; --d-bar: #202127;
  --d-wall: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.4px) 0 0 / 18px 18px, #101114;
}

.desk { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--d-wall); color: var(--d-ink); container-type: inline-size; font-size: clamp(6.5px, 1.45cqi, 11px); user-select: none; transition: background .3s; }
.d-bar { position: absolute; inset: 0 0 auto; height: 2.3em; display: flex; align-items: center; gap: 1.3em; padding: 0 1em; background: var(--d-menubar); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 40; font-weight: 500; }
.d-bar .logo { width: 1.1em; height: 1.1em; border-radius: 50%; border: .18em solid currentColor; }
.d-bar b { font-weight: 700; }
.d-bar .sp { margin-left: auto; }
.d-pill { border: 0; border-radius: 99px; padding: .25em .9em; background: var(--d-acc); color: var(--d-acc-ink); font: 600 1em var(--sans); cursor: pointer; }
.d-icons { position: absolute; top: 3.4em; left: 1.4em; display: grid; grid-template-columns: 6.6em; gap: .15em; z-index: 1; }
.d-icon { display: grid; justify-items: center; gap: .35em; padding: .3em 0; border: 0; border-radius: .7em; background: none; color: var(--d-ink); font: 500 .95em var(--sans); cursor: pointer; }
.d-icon .ico { width: 3.3em; height: 3.3em; border-radius: .85em; }
.d-icon:hover, .d-icon:focus-visible { background: color-mix(in srgb, var(--d-ink) 8%, transparent); }
.ico { display: grid; place-items: center; width: 4em; height: 4em; border-radius: 1.05em; color: #fff; box-shadow: 0 .3em .7em -.3em rgba(0, 0, 0, .35), inset 0 .1em 0 rgba(255, 255, 255, .35); }
.ico svg { width: 52%; height: 52%; }
.g-red { background: linear-gradient(160deg, #ff6b7a, #e63950); }
.g-amber { background: linear-gradient(160deg, #ffc65a, #ff9a1f); }
.g-orange { background: linear-gradient(160deg, #ffb36b, #ff7a2f); }
.g-violet { background: linear-gradient(160deg, #a48bff, #6c4dff); }
.g-green { background: linear-gradient(160deg, #3fd18f, #13a466); }
.g-blue { background: linear-gradient(160deg, #6fb6ff, #2f6dff); }
.g-pink { background: linear-gradient(160deg, #ff7ab8, #e0368a); }
.g-slate { background: linear-gradient(160deg, #a3a9ba, #6b7286); }
/* Professional: flat pastel tiles with ink glyphs */
.desk[data-style=professional] .ico, .screen[data-style=professional] .ico { color: #1d1d1f; box-shadow: 0 .2em .5em -.3em rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .05) inset; }
.desk[data-style=professional] .g-red, .screen[data-style=professional] .g-red { background: #ffd9c7; }
.desk[data-style=professional] .g-blue, .screen[data-style=professional] .g-blue { background: #2b45ff; color: #fff; }
.desk[data-style=professional] .g-violet, .screen[data-style=professional] .g-violet { background: #dcd6fb; }
.desk[data-style=professional] .g-green, .screen[data-style=professional] .g-green { background: #cfeedd; }
.desk[data-style=professional] .g-slate, .screen[data-style=professional] .g-slate { background: #fff; }
.desk[data-style=professional] .g-amber, .screen[data-style=professional] .g-amber { background: #ffeeb0; }
.desk[data-style=professional] .g-pink, .screen[data-style=professional] .g-pink { background: #ffd6ea; }

.win { position: absolute; background: var(--d-win); color: var(--d-ink); border-radius: .9em; overflow: hidden; box-shadow: 0 1.6em 3.4em -1.2em rgba(0, 0, 0, .4), 0 0 0 1px var(--d-line); animation: pop .22s ease-out; }
.win-t { display: flex; align-items: center; gap: .6em; height: 2.9em; padding: 0 .6em 0 .9em; background: var(--d-bar); border-bottom: 1px solid var(--d-line); font-weight: 600; }
.win-t .mi { width: 1.4em; height: 1.4em; border-radius: .4em; }
.win-t .mi svg { width: 60%; height: 60%; }
.win-t .ttl { flex: 1; }
.win-t .x { width: 2.2em; height: 2.2em; border: 0; border-radius: .5em; background: none; color: var(--d-mut); cursor: pointer; font: 400 1.3em/1 var(--sans); }
.win-t .x:hover { background: color-mix(in srgb, var(--d-ink) 8%, transparent); }
.desk[data-style=professional] .win-t { justify-content: center; position: relative; }
.desk[data-style=professional] .win-t .mi { display: none; }
.desk[data-style=professional] .win-t .ttl { flex: none; }
.desk[data-style=professional] .win-t .x { position: absolute; left: .4em; color: transparent; width: 1.6em; height: 1.6em; background: radial-gradient(circle, var(--d-acc) 30%, transparent 32%); }
.win-b { padding: 1.1em 1.3em 1.3em; }
@keyframes pop { from { transform: scale(.95); opacity: 0; } }

/* about window */
.w-about .band-art { height: 4.4em; background: repeating-linear-gradient(-12deg, var(--d-acc) 0 .55em, color-mix(in srgb, var(--d-acc) 70%, #fff) .55em 1.1em); margin: -1.1em -1.3em 0; }
.desk[data-style=professional] .w-about .band-art, .screen[data-style=professional] .w-about .band-art { display: none; }
.orb { width: 6.2em; height: 6.2em; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #ffe0cc 0%, #ff7a3d 45%, #7a2a0c 100%); border: .3em solid var(--d-win); }
.w-about .orb { margin-top: -3.1em; }
.desk[data-style=professional] .w-about .orb, .screen[data-style=professional] .w-about .orb { margin-top: 0; background: radial-gradient(circle at 30% 28%, #fff 0%, #93a4ff 40%, #ff9e6b 100%); }
.w-about .kick { font: 500 .85em var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--d-mut); margin-top: .9em; }
.w-about h4 { font: var(--d-head-w) 2.4em/1 var(--d-head); letter-spacing: var(--d-head-track); margin: .25em 0 .3em; }
.w-about h4 em { color: var(--d-acc); font-style: var(--d-em); }
.w-about p { color: var(--d-mut); font-size: 1.05em; line-height: 1.5; }
.w-btns { display: flex; gap: .6em; margin-top: 1em; flex-wrap: wrap; }
.w-btns span { padding: .75em 1.2em; border-radius: .6em; background: var(--d-acc); color: var(--d-acc-ink); font-weight: 600; }
.w-btns span + span { background: transparent; color: var(--d-ink); box-shadow: inset 0 0 0 1px var(--d-line); }
/* other bodies */
.w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.w-grid u { aspect-ratio: 1; border-radius: .55em; text-decoration: none; display: grid; align-content: end; padding: .45em; font-size: .9em; font-weight: 500; color: #fff; }
.w-rows { display: grid; gap: .45em; }
.w-rows p { display: flex; justify-content: space-between; gap: 1em; padding: .65em .8em; border-radius: .6em; box-shadow: inset 0 0 0 1px var(--d-line); }
.w-rows p span { color: var(--d-mut); white-space: nowrap; }
.w-form { display: grid; gap: .5em; }
.w-form u { min-height: 2.5em; border-radius: .55em; box-shadow: inset 0 0 0 1px var(--d-line); text-decoration: none; display: flex; align-items: center; padding: 0 .8em; color: var(--d-mut); }
.w-form b { min-height: 2.5em; border-radius: .55em; background: var(--d-acc); color: var(--d-acc-ink); display: grid; place-items: center; }
.w-player .art { height: 8.5em; border-radius: .6em; background: linear-gradient(120deg, #b69bff, #ff7a59); }
.w-player .row { display: flex; align-items: center; justify-content: space-between; margin-top: .8em; }
.w-player .row b { display: block; }
.w-player .row span { color: var(--d-mut); }
.w-player .row i { width: 2.4em; height: 2.4em; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--d-line); display: grid; place-items: center; font-style: normal; }
.d-note { position: absolute; left: 60%; top: 4.6em; width: 12.5em; padding: 1em 1.1em 1.2em; background: var(--d-note); color: #2a2410; transform: rotate(3deg); box-shadow: 0 1em 1.8em -1em rgba(0, 0, 0, .45); z-index: 2; }
.d-note small { display: block; font: 500 .8em var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.d-note p { font: 500 1.2em/1.2 var(--d-head); margin-top: .4em; }
.desk[data-style=professional] .d-note p { font: 400 1.35em/1.15 var(--serif); }
.d-dock { position: absolute; left: 50%; bottom: .9em; transform: translateX(-50%); display: flex; gap: .55em; padding: .55em; background: var(--d-dock); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 1.3em; box-shadow: 0 0 0 1px var(--d-line); z-index: 40; }
.d-dock .ico { width: 3.3em; height: 3.3em; border-radius: .85em; }
.d-made { position: absolute; right: 1em; bottom: 1em; z-index: 40; font-size: .85em; padding: .45em .85em; gap: .5em; }
.d-made .cx-cursor { width: .45em; height: .75em; }

/* ---------- the sample phone ---------- */
.phone { position: absolute; right: -14px; bottom: 0; width: 29%; max-width: 220px; z-index: 5; }
.handset { position: relative; isolation: isolate; aspect-ratio: 9 / 19.3; border-radius: 30px; background: #1b1b1f; padding: 7px; box-shadow: var(--shadow); container-type: inline-size; }
.screen { position: relative; height: 100%; border-radius: 24px; overflow: hidden; background: var(--d-wall); color: var(--d-ink); font-size: clamp(7px, 6.2cqi, 13px); }
.island { position: absolute; top: .6em; left: 50%; width: 32%; height: 1.6em; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 6; }
.lock-date { font: 500 .8em var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 4.2em 1.3em 0; color: var(--d-mut); }
.lock-time { font: var(--d-head-w) 5.6em/.86 var(--d-head); letter-spacing: var(--d-head-track); margin: .1em .2em 0; }
.lock-time em { display: block; color: var(--d-acc); font-style: var(--d-em); }
.notes { position: absolute; left: .7em; right: .7em; bottom: 3em; display: grid; gap: .5em; }
.note { display: block; text-align: left; padding: .75em .85em; border: 0; border-radius: 1.1em; background: color-mix(in srgb, var(--d-win) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--d-ink); font: 400 1em/1.3 var(--sans); cursor: pointer; box-shadow: 0 0 0 1px var(--d-line); }
.note { display: flex; align-items: flex-start; gap: .65em; }
.note-ico { flex: none; width: 2.3em; height: 2.3em; border-radius: .6em; margin-top: .1em; }
.note-t { display: block; min-width: 0; }
.note-t > span { display: block; }
.note small { display: block; font: 500 .72em var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--d-mut); }
.note b { display: block; margin-top: .2em; }
.lock-hint { position: absolute; bottom: 1.4em; left: 0; right: 0; text-align: center; font: 500 .7em var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--d-mut); }
.home-bar { position: absolute; left: 50%; bottom: .5em; width: 36%; height: .35em; transform: translateX(-50%); background: var(--d-ink); opacity: .7; border: 0; border-radius: 99px; padding: 0; z-index: 4; cursor: pointer; }
.sheet { position: absolute; inset: 0; background: var(--d-win); color: var(--d-ink); padding: 3.2em 1em 1em; z-index: 3; animation: rise .25s ease-out; overflow: hidden; }
.sheet h4 { margin: 0 0 .8em; font: var(--d-head-w) 2em/1 var(--d-head); letter-spacing: var(--d-head-track); }
.sheet .w-about h4 { font-size: 2em; }
@keyframes rise { from { transform: translateY(14%); opacity: 0; } }

/* =====================================================================
   Page sections
   ===================================================================== */
.band { max-width: 1280px; margin: 0 auto; padding: clamp(52px, 7vw, 104px) max(5vw, 16px); }
.sec { font: 700 clamp(34px, 4.2vw, 56px)/1 var(--display); letter-spacing: -.04em; text-wrap: balance; max-width: 16em; }
.sec-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 40em; }

/* difference */
.vs { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 20px; margin-top: 40px; }
.vs figure { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 28px; display: grid; align-content: space-between; gap: 18px; }
.vs figcaption { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.stack { display: grid; gap: 10px; justify-items: center; }
.stack .av { width: 52px; height: 52px; border-radius: 50%; background: var(--soft); }
.stack b { width: 40%; height: 10px; border-radius: 5px; background: var(--soft); margin-bottom: 8px; }
.stack span { width: 100%; max-width: 280px; text-align: center; padding: 11px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); }
.mini { position: relative; aspect-ratio: 16 / 9.5; border-radius: 14px; overflow: hidden; background: radial-gradient(90% 70% at 85% 0%, #ffe3d3 0%, transparent 62%), linear-gradient(180deg, #f4f4f1, #ebebe7); container-type: inline-size; font-size: clamp(8px, 2cqi, 12px); color: #121213; }
:root[data-theme=dark] .mini { background: radial-gradient(90% 70% at 85% 0%, #2e180d 0%, transparent 62%), linear-gradient(180deg, #121214, #0b0b0c); color: #ededea; }
.mini-bar { display: flex; gap: 1.2em; align-items: center; height: 2.2em; padding: 0 1em; background: rgba(255, 255, 255, .5); }
:root[data-theme=dark] .mini-bar { background: rgba(11, 11, 12, .55); }
.mini-win { position: absolute; background: #fff; border-radius: .8em; overflow: hidden; box-shadow: 0 1em 2.4em -1em rgba(0, 0, 0, .4); }
:root[data-theme=dark] .mini-win { background: #1a1a1d; }
.mini-t { padding: .55em .8em; font-weight: 600; border-bottom: 1px solid rgba(127, 127, 127, .15); }
.mini-win.w1 { left: 6%; top: 17%; width: 52%; }
.mini-win.w2 { right: 7%; top: 44%; width: 30%; }
.mini-band { height: 2.6em; background: repeating-linear-gradient(-12deg, #ff4f00 0 .4em, #ff7a40 .4em .8em); }
.mini-win.w1 p { font: 700 1.8em/1 var(--display); letter-spacing: -.04em; padding: .5em .5em .7em; }
.mini-win.w1 p em { color: #ff4f00; font-style: normal; }
.mini-art { height: 6em; margin: .7em; border-radius: .5em; background: linear-gradient(120deg, #b69bff, #ff7a59); }
.mini-note { position: absolute; right: 8%; top: 15%; width: 26%; padding: .7em; background: #fff0a8; color: #2a2410; transform: rotate(3deg); font: 500 1.1em/1.2 var(--display); box-shadow: 0 .8em 1.4em -.8em rgba(0, 0, 0, .4); }
.mini-dock { position: absolute; bottom: .8em; left: 50%; transform: translateX(-50%); display: flex; gap: .45em; padding: .45em; border-radius: 1em; background: rgba(255, 255, 255, .55); }
:root[data-theme=dark] .mini-dock { background: rgba(30, 30, 33, .7); }
.mini-dock u { width: 2.4em; height: 2.4em; border-radius: .7em; }

/* how */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 24px; }
.steps h3 { font: 700 24px/1.1 var(--display); letter-spacing: -.03em; margin: 20px 0 6px; }
.steps p { color: var(--ink-2); }
.step-ic { display: flex; align-items: center; justify-content: center; height: 120px; border-radius: 14px; background: var(--bg); }
.ic-name { font: 500 22px var(--mono); color: var(--muted); } .ic-name b { font-weight: 400; color: var(--ink); background: var(--acc-soft); padding: 0 6px; border-radius: 6px; }
.ic-apps { display: grid; grid-template-columns: repeat(3, 34px); gap: 10px; align-content: center; }
.ic-apps u { width: 34px; height: 34px; border-radius: 10px; }
.ic-share i { width: 64%; height: 42px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line-2); position: relative; }
.ic-share i::after { content: 'mira.chexi.app'; position: absolute; inset: 0; display: grid; place-items: center; font: 400 14px var(--mono); font-style: normal; color: var(--ink-2); }

/* styles */
.style-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.sty { background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.sty-sw { position: relative; display: flex; align-items: flex-end; height: 150px; padding: 14px; border: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
button.sty-sw { cursor: pointer; }
button.sty-sw[aria-pressed=true]::after { content: 'On the desktop'; position: absolute; top: 10px; left: 10px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--acc); color: var(--acc-ink); padding: 4px 8px; border-radius: 99px; }
.sty-aa { font-size: 44px; line-height: 1; }
.sty-b { padding: 14px 16px 18px; display: grid; gap: 4px; align-content: start; flex: 1; }
.sty-b h3 { font: 600 16px var(--sans); }
.sty-b p { font-size: 14px; color: var(--muted); }
.tag { white-space: nowrap; justify-self: start; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .06em; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.tag-live { border-color: transparent; background: var(--acc-soft); color: var(--acc-text); }
.sty:not(.is-live) .sty-sw { filter: saturate(.85); }
.sty-studio .sty-sw { background: radial-gradient(90% 70% at 85% 0%, #ffe3d3, transparent 62%), #efefeb; color: #121213; } .sty-studio .sty-aa { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; } .sty-studio .sty-aa::after { content: ''; display: inline-block; width: .4em; height: .58em; margin-left: .08em; background: #ff4f00; }
.sty-pro .sty-sw { background: #ece8e1; color: #1d1d1f; } .sty-pro .sty-aa { font-family: var(--serif); } .sty-pro .sty-aa em { color: #2b45ff; }
.sty-creator .sty-sw { background: #0b0b0b; color: #d4ff3f; } .sty-creator .sty-aa { font-weight: 800; letter-spacing: -.04em; }
.sty-spa .sty-sw { background: linear-gradient(170deg, #f1ece2, #e2e8d9); color: #2f3a2a; } .sty-spa .sty-aa { font-family: var(--serif); font-style: italic; }
.sty-anime .sty-sw { background: linear-gradient(180deg, #a9d8ff, #f6d8f0); color: #24285a; } .sty-anime .sty-aa { font-weight: 800; }
.sty-matrix .sty-sw { background: #020403; color: #3dff8a; } .sty-matrix .sty-aa { font-family: var(--mono); font-weight: 500; text-shadow: 0 0 10px #3dff8a88; }
.styles > .fine { margin-top: 18px; }

/* pricing */
.pricing .sec { margin: 0 auto; text-align: center; }
.billing { display: flex; width: max-content; margin: 26px auto 32px; padding: 4px; background: var(--soft); border-radius: 12px; }
.billing button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: none; font: 500 15px var(--sans); color: var(--ink-2); cursor: pointer; }
.billing button[aria-pressed=true] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 28px; }
.plan h3 { font: 700 28px/1 var(--display); letter-spacing: -.035em; }
.amt { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; flex-wrap: wrap; }
.amt b { font: 700 44px/1 var(--display); letter-spacing: -.03em; }
.amt span { color: var(--muted); font-size: 15px; white-space: nowrap; }
.plan-for { color: var(--muted); font-size: 15px; min-height: 2.4em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; align-content: start; gap: 10px; font-size: 15px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: .35em; width: 12px; height: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.plan > ul:last-of-type { flex: 1; margin-bottom: 24px; }
.soon-h { margin-top: 20px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan ul.soon { margin-top: 10px; color: var(--muted); }
.plan ul.soon li::before { width: 7px; height: 7px; border: 1.5px solid var(--muted); border-radius: 50%; transform: none; top: .45em; left: 3px; }
.plan .btn { width: 100%; }
.plan-pro { border: 1.5px solid var(--acc); box-shadow: 8px 8px 0 var(--acc); }
.plan-found { background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 25%, transparent); }

/* compare */
.scroll { overflow-x: auto; margin-top: 32px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; width: 26%; }
td:nth-child(2) { color: var(--muted); }
td:last-child { font-weight: 500; }

/* rewards */

.found-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: f; }
.found-steps li { counter-increment: f; display: grid; gap: 6px; align-content: start; padding: 22px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; }
.found-steps li::before { content: counter(f); width: 26px; height: 26px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--cx-night); font: 700 12px/1 var(--mono); }
.found-steps b { font: 700 20px/1.15 var(--display); letter-spacing: -.025em; }
.found-steps span { color: var(--ink-2); }
@media (max-width: 1000px) { .found-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .found-steps { grid-template-columns: minmax(0, 1fr); } }

/* faq */
.qs { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line-2); }
details { border-bottom: 1px solid var(--line-2); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 66px; font-size: 18px; font-weight: 500; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* final */
.final { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 32px; max-width: calc(1280px - 2 * max(5vw, 16px)); background-image: radial-gradient(60% 90% at 90% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%); }
.final h2 { font: 700 clamp(36px, 4.6vw, 62px)/1 var(--display); letter-spacing: -.045em; text-wrap: balance; max-width: 13em; margin: 0 auto; }
.final p { margin: 14px 0 28px; color: var(--ink-2); font-size: 18px; }

.foot .brand { font-size: 20px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1280px; margin: 0 auto; padding: 24px max(5vw, 16px) max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-demo { max-width: 760px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .menu { display: none; }
  .top { gap: 10px; }
  .top .brand { margin-right: auto; }
  .vs, .steps { grid-template-columns: minmax(0, 1fr); }
  .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* On a phone the visitor is holding the phone version, so show that one, large. */
  .hero-demo .laptop { display: none; }
  .hero-demo { padding: 0; display: flex; justify-content: center; }
  .hero-demo .phone { position: relative; right: auto; width: 70%; max-width: 290px; }
  .field { flex-direction: column; }
  .field .btn { width: 100%; }
  .sty-sw { height: 110px; }
  .final { border-radius: 20px; margin-inline: 12px; }
  .top .btn-sm { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
