/* =========================================================
   نَفَس 6 — design system (sibling of s0sta.com)
   ========================================================= */
@property --o1 { syntax: '<color>'; inherits: true; initial-value: #c7f5ff; }
@property --o2 { syntax: '<color>'; inherits: true; initial-value: #22c3e6; }
@property --o3 { syntax: '<color>'; inherits: true; initial-value: #4c1d95; }

:root {
  --night: #0f0c26; --night-2: #18143c; --night-3: #211b4d; --deep: #0a081d;
  --line: rgba(196, 181, 253, .14); --line-2: rgba(196, 181, 253, .28);
  --text: #efecff; --muted: #aea8d8; --dim: #7d76ad;
  --violet: #7c3aed; --violet-2: #6d28d9; --lilac: #c4b5fd;
  --ice: #22c3e6; --ice-2: #0891b2; --frost: #7fe7ff;
  --sun: #f2c14e; --rose: #fb7185; --ok: #34d399; --warn: #fbbf24;
  --paper: #f4f2ff; --ink: #16123a; --muted-l: #57507f; --line-l: rgba(22, 18, 58, .12);
  --display: "Alexandria", "Sora", "Segoe UI", Tahoma, system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --r-l: 28px; --r-m: 18px; --r-s: 12px;
  --section-y: clamp(72px, 10vw, 136px);
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--night); scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  min-height: 100vh; min-height: 100dvh; background: var(--night); color: var(--text);
  font: 400 16px/1.8 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overscroll-behavior-y: none; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .dock, .chip, .s-phase, .s-big, .tap-pad { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg, canvas { display: block; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(124, 58, 237, .45); color: #fff; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { padding: 40px; text-align: center; }

/* ---------- typography ---------- */
.display { font: 300 clamp(2.5rem, 8.4vw, 5rem)/1.18 var(--display); }
.h1 { font: 300 clamp(1.9rem, 6vw, 2.9rem)/1.3 var(--display); }
.h2 { font: 300 clamp(1.75rem, 4.8vw, 3.05rem)/1.3 var(--display); }
.h3 { font: 400 1.28rem/1.45 var(--display); }
.h4 { font: 500 1.05rem/1.5 var(--display); }
.lead { font-size: clamp(1.02rem, 2.3vw, 1.2rem); color: var(--muted); max-width: 640px; }
.sub { color: var(--muted); max-width: 660px; font-size: 1.03rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .8rem/1.4 var(--body); color: var(--lilac); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.plain::before { display: none; }
.eyebrow.center { justify-content: center; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.fine { font-size: .84rem; color: var(--muted); }
.fine svg { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; margin-inline-end: 6px; }
.center { text-align: center; justify-content: center; }
.grad-text {
  background: linear-gradient(90deg, #22c3e6 0%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .06em;
}
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 500 1rem/1.2 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s, color .25s, opacity .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: 0 12px 30px -12px rgba(196, 181, 253, .55); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: rgba(239, 236, 255, .26); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(239, 236, 255, .45); }
.btn-grad { background: linear-gradient(135deg, var(--violet), var(--ice-2)); color: #fff; box-shadow: 0 14px 30px -14px rgba(124, 58, 237, .8); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-ice { background: linear-gradient(135deg, #0891b2, #22c3e6); color: #03222b; }
.btn-danger { background: rgba(251, 113, 133, .1); color: var(--rose); border-color: rgba(251, 113, 133, .45); }
.btn-onc { background: rgba(255, 255, 255, .16); color: inherit; border-color: rgba(255, 255, 255, .28); }
.btn-onc:hover { background: rgba(255, 255, 255, .26); }
.btn-inkline { background: transparent; color: var(--ink); border-color: rgba(22, 18, 58, .25); }
.btn.sm { min-height: 40px; padding: 8px 15px; font-size: .9rem; }
.btn.xs { min-height: 34px; padding: 6px 12px; font-size: .84rem; gap: 6px; }
.btn.block { width: 100%; }
.btn.wide { padding-inline: 30px; }
.when-in { display: none; }
body.authed .when-in { display: inline; }
body.authed .when-out { display: none; }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); color: var(--text); font: 500 .86rem/1.2 var(--body);
  transition: background .2s, border-color .2s, transform .2s;
}
.chip svg { width: 17px; height: 17px; }
.chip.icon { width: 42px; height: 42px; padding: 0; }
button.chip:hover { background: rgba(255, 255, 255, .11); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 12px; border-radius: 999px; font-size: .8rem; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--muted); }
.chips.light li { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .22); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 .74rem/1.5 var(--body); background: rgba(255, 255, 255, .08); color: var(--muted); }
.tag.ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.tag.sun { background: rgba(242, 193, 78, .16); color: var(--sun); }
.tag.ice { background: rgba(34, 195, 230, .14); color: var(--ice); }
.tag.vio { background: rgba(124, 58, 237, .2); color: var(--lilac); }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--muted);
  font: 500 .9rem/1.3 var(--body); transition: all .22s var(--ease);
}
.opt svg { width: 17px; height: 17px; }
.opt:hover { color: var(--text); border-color: var(--lilac); }
.opt.on { background: var(--paper); color: var(--ink); border-color: transparent; }
.opt small { opacity: .7; font-size: .76rem; }

.seg { display: inline-flex; background: var(--deep); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 14px; border-radius: 999px; color: var(--muted); font: 500 .86rem/1.4 var(--body); transition: background .22s, color .22s; }
.seg button.on { background: var(--paper); color: var(--ink); }
.seg.light { background: rgba(22, 18, 58, .06); border-color: rgba(22, 18, 58, .14); }
.seg.light button { color: var(--muted-l); }
.seg.light button.on { background: var(--ink); color: #fff; }

.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--deep); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; flex: none; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.stepper button:hover { background: rgba(255, 255, 255, .08); }
.stepper button svg { width: 16px; height: 16px; }
.stepper output { min-width: 46px; text-align: center; font: 600 1.02rem/1 var(--mono); }

.switch {
  width: 52px; height: 30px; border-radius: 999px; background: var(--deep); border: 1px solid var(--line-2);
  position: relative; flex: none; transition: background .25s, border-color .25s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--muted); transition: inset-inline-start .35s var(--spring), background .25s;
}
.switch[aria-checked="true"] { background: linear-gradient(135deg, var(--violet), var(--ice-2)); border-color: transparent; }
.switch[aria-checked="true"]::after { inset-inline-start: 25px; background: #fff; }

input[type=text], input[type=password], input[type=number], input[type=time], input[type=email], textarea, select {
  font: 400 16px/1.4 var(--body); background: var(--deep); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 13px 15px; width: 100%; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(167, 139, 250, .22); }
input[type=number] { font-family: var(--mono); text-align: center; }
input[type=time] { font-family: var(--mono); text-align: center; width: 150px; }
textarea { min-height: 90px; resize: vertical; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ice-2), var(--violet)); opacity: .9; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ice-2), var(--violet)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); margin-top: -9px; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--paper); }
.field { display: grid; gap: 7px; }
.field > span { font-size: .86rem; color: var(--muted); }
.form-err { color: var(--rose); font-size: .86rem; min-height: 1.4em; }

.row-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.row-item > label, .row-item > .lbl { flex: 1; min-width: 0; font-size: .96rem; }
.row-item em { display: block; font-style: normal; font-size: .8rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.row-item.stack { flex-direction: column; align-items: stretch; }
.c-paper .row-item, .c-sun .row-item { border-color: var(--line-l); }

.ping { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.pbar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ice), var(--violet)); width: 0; transition: width 1.2s var(--ease); }
.c-paper .pbar, .c-sun .pbar { background: rgba(22, 18, 58, .1); }

/* ---------- cards & bento ---------- */
.card { position: relative; border-radius: var(--r-l); padding: clamp(18px, 2.4vw, 28px); overflow: hidden; isolation: isolate; min-width: 0; }
.c-night { background: var(--night-2); border: 1px solid var(--line); }
.c-deep { background: var(--deep); border: 1px solid var(--line); }
.c-violet { background: var(--violet); color: #fff; --mut: rgba(255, 255, 255, .78); }
.c-ice { background: linear-gradient(155deg, #0e7490 0%, #22c3e6 62%, #7fe7ff 100%); color: #03222b; --mut: rgba(3, 34, 43, .72); }
.c-sun { background: var(--sun); color: var(--ink); --mut: rgba(22, 18, 58, .72); }
.c-paper { background: var(--paper); color: var(--ink); --mut: var(--muted-l); }
.c-rose { background: linear-gradient(160deg, rgba(251, 113, 133, .16), rgba(24, 20, 60, .7)); border: 1px solid rgba(251, 113, 133, .35); }
.c-glass { background: rgba(24, 20, 60, .55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.c-violet .muted, .c-ice .muted, .c-sun .muted, .c-paper .muted { color: var(--mut); }
.c-paper .eyebrow, .c-sun .eyebrow { color: var(--violet-2); }
.c-ice .eyebrow { color: #064e5f; }
.c-violet .eyebrow { color: #ede9fe; }
.c-paper .fine, .c-sun .fine, .c-ice .fine, .c-violet .fine { color: var(--mut); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head .h4, .card-head h3 { display: flex; align-items: center; gap: 9px; }
.card-head svg { width: 20px; height: 20px; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
a.card, button.card { display: block; text-align: start; text-decoration: none; color: inherit; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
a.card:hover, button.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); }
.c-night:is(a, button):hover { border-color: var(--line-2); }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento > * { grid-column: 1 / -1; }
.bento > .m-half { grid-column: auto; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
  .bento > .span-3 { grid-column: span 3; } .bento > .span-4 { grid-column: span 4; }
  .bento > .span-5 { grid-column: span 5; } .bento > .span-6 { grid-column: span 6; }
  .bento > .span-7 { grid-column: span 7; } .bento > .span-8 { grid-column: span 8; }
  .bento > .span-12 { grid-column: 1 / -1; }
}

.empty { text-align: center; color: var(--muted); padding: 28px 14px; font-size: .92rem; border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.empty svg { width: 28px; height: 28px; margin: 0 auto 8px; opacity: .7; }

/* ---------- splash ---------- */
#splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--night); transition: opacity .6s var(--ease), visibility .6s; }
body:not(.booting) #splash { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-logo { width: 88px; height: 88px; animation: breathe 4s var(--ease) infinite; filter: drop-shadow(0 0 26px rgba(124, 58, 237, .65)); }
@keyframes breathe { 0%, 100% { transform: scale(.84); } 50% { transform: scale(1.04); } }

/* =========================================================
   LANDING
   ========================================================= */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 600 1.2rem/1 var(--display); }
.brand .logo { width: 34px; height: 34px; flex: none; }
.l-head { position: fixed; inset-inline: 0; top: 0; z-index: 30; padding: calc(10px + var(--top)) var(--gutter) 0; pointer-events: none; }
.navpill {
  pointer-events: auto; max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: rgba(244, 242, 255, .94); color: var(--ink); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 22px; padding: 8px 8px 8px 8px; padding-inline-start: 16px; box-shadow: 0 0 0 1px rgba(22, 18, 58, .06);
  transition: box-shadow .35s;
}
.l-head.scrolled .navpill { box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55), 0 0 0 1px rgba(22, 18, 58, .08); }
.l-links { display: none; gap: 2px; margin-inline-start: auto; }
.l-links a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .93rem; transition: background .2s; }
.l-links a:hover { background: rgba(22, 18, 58, .07); }
.navpill > .btn { margin-inline-start: auto; }
@media (min-width: 920px) { .l-links { display: flex; } .navpill > .btn { margin-inline-start: 6px; } }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden;
  padding: calc(110px + var(--top)) 0 clamp(48px, 8vh, 80px);
  background: radial-gradient(110% 60% at 50% 0%, #2b1b74 0%, rgba(15, 12, 38, 0) 62%), var(--night);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--night)); pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-in { position: relative; z-index: 2; display: grid; gap: 20px; justify-items: start; }
.hero-tip {
  position: absolute; z-index: 3; pointer-events: none; padding: 10px 14px; border-radius: 14px; max-width: 220px;
  background: rgba(244, 242, 255, .96); color: var(--ink); font-size: .86rem; line-height: 1.5;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transform: translate(-50%, calc(-100% - 16px));
  animation: tipIn .25s var(--ease);
}
.hero-tip b { display: block; font: 500 .98rem var(--display); }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 999px;
  background: rgba(15, 12, 38, .55); border: 1px solid var(--line-2); font-size: .88rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status-pill .ping { background: var(--ice); }
.display .ln { display: block; overflow: hidden; padding: .1em 0 .12em; margin-block: -.1em -.12em; }
.display .ln > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.display .ln:nth-child(2) > span { transition-delay: .12s; }
.display .ln:nth-child(3) > span { transition-delay: .24s; }
.l-ready .display .ln > span { transform: none; }
.hero-in > .lead, .hero-in > .cta-row, .hero-in > .hint, .hero-in > .status-pill { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.hero-in > .cta-row { transition-delay: .58s; } .hero-in > .hint { transition-delay: .7s; }
.l-ready .hero-in > * { opacity: 1; transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row.center { justify-content: center; }
.hint { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.hint svg { width: 16px; height: 16px; color: var(--lilac); }
@media (min-width: 960px) {
  .hero { align-items: center; padding-bottom: 60px; }
  .hero-in { padding-inline-end: 46%; }
}

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--deep); padding: 16px 0; direction: ltr; }
.marquee-track { display: flex; width: max-content; gap: 30px; align-items: center; animation: marquee 46s linear infinite; }
.marquee span { font: 300 clamp(1.35rem, 3vw, 2.1rem)/1.3 var(--display); white-space: nowrap; direction: rtl; }
.marquee i { color: var(--lilac); font-style: normal; opacity: .65; font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

.sec { position: relative; padding: var(--section-y) 0; }
.sec-head { display: grid; gap: 14px; justify-items: start; margin-bottom: clamp(26px, 4vw, 48px); }
.sec-paper { background: var(--paper); color: var(--ink); border-radius: clamp(28px, 5vw, 48px); margin-inline: clamp(6px, 1.4vw, 18px); }
.sec-paper .eyebrow { color: var(--violet-2); }
.sec-paper .sub { color: var(--muted-l); }

.pillar { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.pillar p { color: var(--mut, var(--muted)); max-width: 520px; }
.num-tag { position: absolute; top: 22px; inset-inline-start: 26px; font: 500 .86rem var(--mono); opacity: .7; }
.pillar-orb { position: absolute; top: 18px; inset-inline-end: 18px; width: 130px; height: 130px; }
.pillar-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); animation: orbPulse 6s var(--ease) infinite; }
.pillar-orb i:nth-child(2) { inset: 20px; animation-delay: .35s; }
.pillar-orb i:nth-child(3) { inset: 40px; border: 0; background: radial-gradient(circle at 36% 30%, #fff, #c4b5fd 55%, rgba(196, 181, 253, 0) 72%); animation-delay: .7s; }
@keyframes orbPulse { 0%, 100% { transform: scale(.68); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
.pillar-flake { position: absolute; top: 16px; inset-inline-end: 16px; width: 120px; height: 120px; color: rgba(3, 34, 43, .55); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thermo { height: 10px; border-radius: 10px; background: rgba(3, 34, 43, .16); overflow: hidden; }
.thermo i { display: block; height: 100%; width: 30%; border-radius: inherit; background: #03222b; animation: thermo 7s var(--ease) infinite; }
@keyframes thermo { 0%, 100% { width: 22%; } 50% { width: 78%; } }
.streak-dots { display: flex; gap: 8px; }
.streak-dots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(22, 18, 58, .3); }
.streak-dots i.on { background: var(--ink); border-color: var(--ink); }
.streak-dots i.now { border-color: var(--ink); animation: nowPulse 2s ease-in-out infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 6px rgba(22, 18, 58, .14); } }
.benefits { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 10px 0 6px; }
.benefits li { display: flex; align-items: center; gap: 10px; font-size: .97rem; }
.benefits svg { width: 20px; height: 20px; color: var(--ice); flex: none; }

.how-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .how-grid { grid-template-columns: 1.05fr .95fr; align-items: stretch; } }
.steps { list-style: none; display: grid; gap: 10px; align-content: start; }
.steps button {
  width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: start; padding: 18px 20px;
  border-radius: var(--r-m); border: 1px solid var(--line); background: rgba(24, 20, 60, .5);
  transition: background .3s var(--ease), border-color .3s, transform .3s var(--ease), color .3s;
}
.steps button:hover { border-color: var(--line-2); transform: translateX(-3px); }
.steps button > b { font: 500 .9rem/1.9 var(--mono); color: var(--lilac); }
.steps button strong { display: block; font: 400 1.18rem/1.5 var(--display); color: var(--text); }
.steps button span { color: var(--muted); font-size: .96rem; }
.steps button.on { background: var(--paper); border-color: transparent; }
.steps button.on > b { color: var(--violet); }
.steps button.on strong { color: var(--ink); }
.steps button.on span { color: var(--muted-l); }
.demo { display: grid; place-items: center; align-content: center; gap: 20px; padding: 34px 22px; min-height: 430px; }
.demo-orb { position: relative; width: min(250px, 62vw); aspect-ratio: 1; display: grid; place-items: center; }
.demo-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.demo-ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 2; }
.demo-ring .sw { stroke: var(--ice); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-width: 3; }
.demo-orb .core {
  width: 64%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c7f5ff, #22c3e6 45%, #5b21b6 100%);
  box-shadow: 0 0 70px rgba(34, 195, 230, .45); transition: transform 1s var(--ease), background .9s, box-shadow .9s;
}
.ph-0 .core { animation: demoBreath 2.6s var(--ease) infinite; }
.ph-0 .sw { animation: sweep 26s linear infinite; }
@keyframes demoBreath { 0%, 100% { transform: scale(.56); } 50% { transform: scale(1); } }
.ph-1 .core { transform: scale(.42); background: radial-gradient(circle at 35% 30%, #fff3c4, #f2c14e 50%, #7c4a03 100%); box-shadow: 0 0 70px rgba(242, 193, 78, .4); }
.ph-1 .sw { stroke: var(--sun); animation: sweep 7s linear infinite; }
.ph-2 .core { transform: scale(1); background: radial-gradient(circle at 35% 30%, #ffe4e9, #fb7185 52%, #7f1d3a 100%); box-shadow: 0 0 70px rgba(251, 113, 133, .45); }
.ph-2 .sw { stroke: var(--rose); animation: sweep 4s linear infinite; }
.ph-3 .core { animation: demoBreath 1.5s var(--ease) infinite; }
.ph-3 .sw { stroke: var(--lilac); animation: sweep 3s linear infinite; }
@keyframes sweep { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.demo-label { display: grid; gap: 2px; text-align: center; min-height: 64px; }
.demo-label b { font: 300 1.7rem/1.3 var(--display); }
.demo-label span { color: var(--muted); }

.stats-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bigstat { background: #fff; border: 1px solid var(--line-l); border-radius: var(--r-l); padding: 24px; display: grid; gap: 6px; align-content: start; }
.bigstat b {
  font: 500 clamp(2.5rem, 5vw, 3.5rem)/1.05 var(--mono); justify-self: start;
  background: linear-gradient(135deg, var(--violet), var(--ice-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bigstat span { font: 600 1.02rem var(--body); }
.bigstat p { color: var(--muted-l); font-size: .93rem; line-height: 1.75; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; color: var(--muted-l); font-size: .94rem; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--violet); }

.feat { min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.feat p { color: var(--mut, var(--muted)); }
.feat-ico { position: absolute; top: 22px; inset-inline-end: 22px; width: 54px; height: 54px; opacity: .8; }
.mock-bubble { position: absolute; top: 18px; inset-inline-end: 18px; width: 150px; height: 150px; display: grid; place-items: center; }
.mock-bubble svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mock-bubble circle { fill: rgba(255, 255, 255, .15); }
.mock-bubble circle.on { fill: var(--ice); }
.mock-bubble circle.cur { fill: #fff; }
.mb-core { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c7f5ff, #22c3e6 45%, #5b21b6 100%); animation: demoBreath 3.2s var(--ease) infinite; box-shadow: 0 0 40px rgba(34, 195, 230, .4); }
.mock-bubble b { position: relative; font-size: .8rem; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.mock-cold { position: absolute; top: 20px; inset-inline-end: 22px; font-size: 3rem; line-height: 1; font-weight: 500; }
.mock-cold small { font-size: 1rem; opacity: .7; margin-inline-start: 6px; }
.mock-days { position: absolute; top: 22px; inset-inline: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.mock-days i { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(22, 18, 58, .18); }
.mock-days i.on { background: linear-gradient(135deg, var(--violet), var(--ice-2)); border-color: transparent; }
.mock-days i.now { border-color: var(--violet); animation: nowPulse 2s ease-in-out infinite; }
.mock-spark { position: absolute; top: 24px; inset-inline: 22px; width: calc(100% - 44px); height: 70px; }
.mock-spark path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.in .mock-spark path, .mock-spark.in path { stroke-dashoffset: 0; }

.safety { background: linear-gradient(160deg, rgba(251, 113, 133, .14), rgba(24, 20, 60, .65)); border: 1px solid rgba(251, 113, 133, .35); }
.safety-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.safety-head > svg { width: 52px; height: 52px; color: var(--rose); flex: none; }
.safety-list { list-style: none; display: grid; gap: 10px; }
.safety-list li { padding: 15px 17px; border-radius: 16px; background: rgba(15, 12, 38, .55); border: 1px solid var(--line); color: var(--muted); }
.safety-list b { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .safety-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .safety-list li:last-child { grid-column: 1 / -1; } }

.cta-sec .wrap { display: grid; gap: 18px; justify-items: center; text-align: center; }
.cta-sec .sub { margin-inline: auto; }
.cta-logo { width: 96px; height: 96px; animation: spin 60s linear infinite, glow 5s ease-in-out infinite; }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 16px rgba(124, 58, 237, .5)); } 50% { filter: drop-shadow(0 0 34px rgba(34, 195, 230, .7)); } }
.l-foot { border-top: 1px solid var(--line); padding: 34px 0 calc(34px + var(--bot)); background: var(--deep); }
.foot-in { display: grid; gap: 8px; justify-items: start; color: var(--muted); font-size: .92rem; }
.foot-in .brand { color: var(--text); margin-bottom: 6px; }
.foot-in a { color: var(--lilac); }

[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--rd, 0ms); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   APP SHELL
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--top)) var(--gutter) 10px;
  background: linear-gradient(to bottom, rgba(15, 12, 38, .94), rgba(15, 12, 38, .78));
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-decoration: none; transition: background .2s, color .2s; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { background: rgba(255, 255, 255, .1); }
.iconbtn.on { background: var(--paper); color: var(--ink); border-color: transparent; }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); font: 500 .8rem/1 var(--body); max-width: 46vw; }
.sync-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-pill[data-s="busy"] .ping { background: var(--ice); }
.sync-pill[data-s="off"] .ping { background: var(--warn); }
.sync-pill[data-s="off"] .ping::after { animation: none; }
.sync-pill[data-s="err"] .ping { background: var(--rose); }

#view { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 8px 0 calc(118px + var(--bot)); outline: none; }
.view { display: grid; gap: 14px; }
.view.enter > *, .view.enter .bento > * { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0 4px; }
.vhead > div:not(.seg) { display: grid; gap: 4px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; }
.sec-title h2 { font: 400 1.25rem/1.4 var(--display); }

.dock {
  position: fixed; z-index: 40; inset-inline: 0; bottom: calc(12px + var(--bot)); margin-inline: auto;
  width: min(460px, calc(100% - 24px)); display: flex; padding: 6px; border-radius: 999px;
  background: rgba(244, 242, 255, .95); color: var(--ink); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 44px -16px rgba(0, 0, 0, .75), 0 0 0 1px rgba(22, 18, 58, .08);
  transition: transform .5s var(--ease), opacity .4s;
}
.dock a { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 6px 2px; border-radius: 999px; color: var(--muted-l); font: 500 .68rem/1.3 var(--body); text-decoration: none; transition: color .3s; }
.dock a svg { width: 22px; height: 22px; transition: transform .4s var(--spring); }
.dock a.on { color: #fff; }
.dock a.on svg { transform: translateY(-1px) scale(1.06); }
.dock-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .55s var(--spring), width .55s var(--spring); }
body.ov-open .dock { transform: translateY(160%); opacity: 0; }
@media (min-width: 960px) {
  .topbar { padding-block: calc(14px + var(--top)) 14px; }
  .dock { top: calc(13px + var(--top)); bottom: auto; inset-inline: auto; left: 50%; transform: translateX(-50%); width: auto; margin: 0; padding: 5px; border-radius: 20px; }
  .dock a { flex-direction: row; gap: 8px; min-height: 42px; padding: 8px 16px; font-size: .9rem; }
  .dock a svg { width: 19px; height: 19px; }
  .dock-ind { top: 5px; bottom: 5px; border-radius: 15px; }
  body.ov-open .dock { transform: translate(-50%, -160%); }
  #view { padding-bottom: calc(60px + var(--bot)); }
}

/* ---------- home ---------- */
.greet { display: grid; gap: 6px; padding: 8px 0 4px; }
.hero-card { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.hero-card h2 { font: 300 clamp(1.7rem, 4.6vw, 2.4rem)/1.25 var(--display); }
.hero-card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mini-orb { position: absolute; z-index: -1; inset-inline-end: -36px; top: -40px; width: 230px; height: 230px; }
.mini-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); animation: orbPulse 8s var(--ease) infinite; }
.mini-orb i:nth-child(2) { inset: 30px; animation-delay: .5s; }
.mini-orb i:nth-child(3) { inset: 62px; border: 0; background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .9), rgba(196, 181, 253, .5) 50%, rgba(124, 58, 237, 0) 72%); animation-delay: 1s; }
.rings-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rings { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.rings circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.rings .tr { stroke: rgba(255, 255, 255, .07); }
.rings .rf { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease); }
.legend { list-style: none; display: grid; gap: 9px; flex: 1; min-width: 150px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.legend li a { display: contents; text-decoration: none; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.legend .v { margin-inline-start: auto; font: 500 .86rem var(--mono); color: var(--muted); }
.bignum { font: 500 clamp(2.8rem, 9vw, 3.6rem)/1 var(--mono); display: block; }
.bignum small { font-size: .42em; opacity: .7; margin-inline-start: 4px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 168px; }
.tile .lbl { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--mut, var(--muted)); }
.tile .lbl svg { width: 18px; height: 18px; }
.spark { width: 100%; height: 42px; overflow: visible; }
.spark path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.qa { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: start; transition: background .2s, transform .25s var(--ease); min-height: 64px; }
.qa:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.qa .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.qa .ic svg { width: 20px; height: 20px; }
.qa b { display: block; font-weight: 500; font-size: .92rem; line-height: 1.4; }
.qa small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.ic.vio { background: rgba(124, 58, 237, .25); color: var(--lilac); }
.ic.ice { background: rgba(34, 195, 230, .18); color: var(--ice); }
.ic.sun { background: rgba(242, 193, 78, .18); color: var(--sun); }
.ic.rose { background: rgba(251, 113, 133, .16); color: var(--rose); }
.ic.ok { background: rgba(52, 211, 153, .15); color: var(--ok); }
.feed { list-style: none; display: grid; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.feed .ic svg { width: 20px; height: 20px; }
.feed .t { flex: 1; min-width: 0; }
.feed .t b { display: block; font-weight: 500; font-size: .95rem; }
.feed .t small { color: var(--muted); font-size: .8rem; }
.feed .v { font: 500 .95rem var(--mono); }

.prog-card .head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.pring .tr { stroke: rgba(255, 255, 255, .1); }
.c-paper .pring .tr, .c-sun .pring .tr { stroke: rgba(22, 18, 58, .1); }
.pring .rf { stroke-dasharray: 100; transition: stroke-dashoffset 1.4s var(--ease); }
.pring-wrap { position: relative; flex: none; }
.pring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1rem var(--mono); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); }
.checks span svg { width: 15px; height: 15px; }
.checks span.ok { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .4); color: var(--ok); }
.c-paper .checks span { background: rgba(22, 18, 58, .05); border-color: var(--line-l); color: var(--muted-l); }
.c-paper .checks span.ok { background: rgba(5, 150, 105, .12); color: #047857; border-color: rgba(5, 150, 105, .3); }
.prompt { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border-inline-start: 3px solid var(--lilac); font-size: .95rem; }
.c-paper .prompt { background: rgba(124, 58, 237, .07); border-color: var(--violet); }

/* ---------- practice ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tech {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 22px; text-align: start; min-height: 158px;
  background: var(--night-2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.tech:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tech .ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px; }
.tech .ic svg { width: 22px; height: 22px; }
.tech b { font: 400 1.08rem/1.4 var(--display); }
.tech span { color: var(--muted); font-size: .82rem; line-height: 1.55; }
.tech .meta { margin-top: auto; font: 500 .78rem var(--mono); color: var(--lilac); }
.whm-card { min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.whm-card h2 { font: 300 clamp(1.8rem, 5vw, 2.6rem)/1.2 var(--display); }
.sumline { display: flex; flex-wrap: wrap; gap: 6px; }
.sumline span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: .84rem; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin-inline: -2px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 min(230px, 70vw); }
@media (min-width: 900px) { .hscroll { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.sounds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.snd { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); color: var(--muted); font-size: .76rem; transition: all .25s var(--ease); }
.snd svg { width: 22px; height: 22px; }
.snd.on { border-color: var(--ice); color: var(--ice); background: rgba(34, 195, 230, .08); }

/* ---------- cold ---------- */
.cold-hero { min-height: 270px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.cold-hero .goal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cold-hero .goal b { font: 500 clamp(3rem, 11vw, 4.2rem)/1 var(--mono); }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kind { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(3, 34, 43, .25); font: 500 .86rem var(--body); color: #03222b; background: rgba(255, 255, 255, .18); transition: all .2s; }
.kind.on { background: #03222b; color: #e6fbff; border-color: transparent; }
.daygrid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.daygrid i { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 500 .66rem var(--mono); font-style: normal; border: 1.5px solid var(--line-2); color: var(--muted); }
.daygrid i.ok { background: linear-gradient(135deg, var(--ice-2), var(--ice)); border-color: transparent; color: #03222b; }
.daygrid i.miss { opacity: .45; border-style: dashed; }
.daygrid i.now { border-color: var(--paper); color: var(--text); animation: nowPulseL 2s ease-in-out infinite; }
@keyframes nowPulseL { 50% { box-shadow: 0 0 0 5px rgba(244, 242, 255, .14); } }
.c-paper .daygrid i { border-color: rgba(22, 18, 58, .2); color: var(--muted-l); }
.c-paper .daygrid i.ok { background: linear-gradient(135deg, var(--violet), var(--ice-2)); color: #fff; }
.c-paper .daygrid i.now { border-color: var(--violet); color: var(--ink); animation: nowPulse 2s ease-in-out infinite; }
.rentry { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .84rem; margin: 0 0 6px 6px; }
.rentry b { font: 600 .86rem var(--mono); }
.rentry button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rentry button:hover { background: rgba(255, 255, 255, .1); color: var(--rose); }
.rentry button svg { width: 14px; height: 14px; }

/* ---------- learn ---------- */
.lesson-row {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; text-align: start; text-decoration: none;
  background: var(--night-2); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s;
}
.lesson-row:hover { transform: translateX(-4px); border-color: var(--line-2); }
.lesson-row .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; font: 600 .95rem var(--mono); background: rgba(124, 58, 237, .2); color: var(--lilac); }
.lesson-row.done .n { background: rgba(52, 211, 153, .15); color: var(--ok); }
.lesson-row .n svg { width: 20px; height: 20px; }
.lesson-row .t { flex: 1; min-width: 0; }
.lesson-row .t b { display: block; font: 400 1.02rem/1.45 var(--display); }
.lesson-row .t small { color: var(--muted); font-size: .8rem; }
.lesson-row > svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.lessons { display: grid; gap: 8px; }
@media (min-width: 900px) { .lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lesson-hero { min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; background: linear-gradient(140deg, #4c1d95 0%, var(--violet) 40%, #0e7490 100%); color: #fff; }
.lesson-hero h1 { font: 300 clamp(1.9rem, 6vw, 2.8rem)/1.25 var(--display); }
.lesson-hero .back { position: absolute; top: 16px; inset-inline-start: 16px; }
.prose { display: grid; gap: 14px; font-size: 1.04rem; line-height: 1.95; max-width: 760px; }
.prose h3 { font: 400 1.32rem/1.5 var(--display); margin-top: 10px; }
.prose ul, .prose ol { padding-inline-start: 22px; display: grid; gap: 6px; }
.prose li::marker { color: var(--lilac); }
.prose b, .prose strong { color: #fff; font-weight: 600; }
.prose .muted { color: var(--muted); }
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 18px; background: rgba(34, 195, 230, .08); border: 1px solid rgba(34, 195, 230, .28); font-size: .98rem; }
.callout > svg { width: 22px; height: 22px; flex: none; color: var(--ice); margin-top: 4px; }
.callout.warn { background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .35); }
.callout.warn > svg { color: var(--rose); }
.callout.sun { background: rgba(242, 193, 78, .08); border-color: rgba(242, 193, 78, .35); }
.callout.sun > svg { color: var(--sun); }
.figure { border-radius: 22px; background: var(--deep); border: 1px solid var(--line); padding: 18px; display: grid; gap: 10px; }
.figure svg { width: 100%; height: auto; }
.figure figcaption { font-size: .84rem; color: var(--muted); text-align: center; }
.steps-mini { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps-mini li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.steps-mini li::before { content: counter(s, decimal-leading-zero); font: 600 .86rem/1.9 var(--mono); color: var(--lilac); flex: none; }
.lesson-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 6px 0 10px; }
.study { display: grid; gap: 6px; }
.study .yr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.study .yr b { font: 600 .9rem var(--mono); padding: 3px 10px; border-radius: 999px; background: rgba(124, 58, 237, .22); color: var(--lilac); }
.study h4 { font: 400 1.05rem/1.5 var(--display); }
.study p { color: var(--muted); font-size: .93rem; }
.study .lim { font-size: .84rem; color: var(--dim); }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: 18px; background: var(--night-2); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; cursor: pointer; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 18px 16px; color: var(--muted); font-size: .96rem; }
.links { display: grid; gap: 8px; }
.links a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.links a:hover { background: rgba(255, 255, 255, .05); }
.links a svg { width: 18px; height: 18px; color: var(--lilac); flex: none; }
.links a span { flex: 1; }
.links a small { color: var(--muted); display: block; font-size: .78rem; }

/* ---------- progress ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { padding: 16px 18px; border-radius: 22px; background: var(--night-2); border: 1px solid var(--line); display: grid; gap: 2px; }
.kpi b { font: 500 clamp(1.6rem, 5vw, 2.1rem)/1.15 var(--mono); }
.kpi span { color: var(--muted); font-size: .84rem; }
.kpi.gold b { color: var(--sun); }
.kpi small { font: 500 .78rem var(--mono); }
.kpi small.up { color: var(--ok); } .kpi small.down { color: var(--rose); }
svg.chart { width: 100%; height: auto; overflow: visible; display: block; }
.chart text { fill: var(--muted); font: 400 11px var(--mono); }
.chart .ax { stroke: rgba(255, 255, 255, .07); }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.chart .grow { transform-box: fill-box; transform-origin: bottom; animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.chart .fade { animation: fadeIn 1s var(--ease) .5s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes fadeIn { from { opacity: 0; } }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 18px; height: 3px; border-radius: 3px; display: inline-block; }
.chart-legend i.dash { background: repeating-linear-gradient(90deg, var(--sun) 0 5px, transparent 5px 9px) !important; }
.heat { width: 100%; height: auto; }
.heat rect { rx: 3.5px; }
.heat-legend { display: flex; align-items: center; gap: 5px; justify-content: flex-end; color: var(--muted); font-size: .76rem; margin-top: 8px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.badge { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 8px 12px; border-radius: 20px; background: var(--deep); border: 1px solid var(--line); }
.badge .bi { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--dim); border: 1px solid var(--line); }
.badge .bi svg { width: 24px; height: 24px; }
.badge b { font-size: .8rem; font-weight: 500; line-height: 1.45; }
.badge small { font-size: .7rem; color: var(--dim); line-height: 1.4; }
.badge .pbar { width: 70%; height: 4px; }
.badge.got { background: linear-gradient(180deg, rgba(124, 58, 237, .16), rgba(10, 8, 29, .9)); border-color: rgba(196, 181, 253, .35); }
.badge.got .bi { background: conic-gradient(from 210deg, var(--violet), var(--ice), var(--sun), var(--violet)); color: #fff; border: 0; box-shadow: 0 0 22px rgba(124, 58, 237, .45); }
.badge.got .bi svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.badge.got small { color: var(--sun); }
.hist-group { display: grid; gap: 4px; }
.hist-group h4 { font: 500 .84rem var(--body); color: var(--muted); padding: 10px 2px 2px; }
.hist-item { border-radius: 16px; background: var(--deep); border: 1px solid var(--line); overflow: hidden; }
.hist-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.hist-item summary::-webkit-details-marker { display: none; }
.hist-item .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hist-item .ic svg { width: 19px; height: 19px; }
.hist-item .t { flex: 1; min-width: 0; }
.hist-item .t b { display: block; font-weight: 500; font-size: .94rem; }
.hist-item .t small { color: var(--muted); font-size: .78rem; }
.hist-item .v { font: 600 .95rem var(--mono); }
.hist-item .det { padding: 4px 14px 14px; display: grid; gap: 8px; }
.bars { display: grid; gap: 6px; }
.bar { display: flex; align-items: center; gap: 8px; }
.bar .no { width: 18px; font: 500 .74rem var(--mono); color: var(--muted); flex: none; text-align: center; }
.bar .track { flex: 1; height: 24px; border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2563eb, var(--ice)); display: flex; align-items: center; padding-inline: 8px; min-width: 52px; width: 0; transition: width 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.bar .fill i { font: 600 .74rem var(--mono); font-style: normal; color: #04121a; direction: ltr; }
.bar.best .fill { background: linear-gradient(90deg, #b7791f, var(--sun)); }
.bar .extra { font: 500 .72rem var(--mono); color: var(--muted); flex: none; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- settings ---------- */
.group h3 { display: flex; align-items: center; gap: 10px; font: 400 1.12rem/1.4 var(--display); margin-bottom: 4px; }
.group h3 svg { width: 20px; height: 20px; color: var(--lilac); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.devices { list-style: none; display: grid; gap: 8px; }
.devices li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); }
.devices li svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.devices li .t { flex: 1; min-width: 0; font-size: .9rem; }
.devices li .t small { display: block; color: var(--muted); font-size: .76rem; }
pre.out { white-space: pre-wrap; word-break: break-all; font: .72rem/1.6 var(--mono); color: var(--muted); max-height: 200px; overflow: auto; background: var(--deep); padding: 12px; border-radius: 12px; margin-top: 10px; direction: ltr; text-align: left; }

/* =========================================================
   OVERLAYS (session · cold · exercise)
   ========================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; overflow: hidden;
  background: var(--deep); color: var(--text); overscroll-behavior: none; touch-action: manipulation;
  height: 100vh; height: 100dvh; animation: ovIn .6s var(--ease);
  --ph: 34, 195, 230; --a1: 124, 58, 237; --a2: 34, 195, 230;
  --o1: #c7f5ff; --o2: #22c3e6; --o3: #4c1d95;
  transition: --o1 .9s, --o2 .9s, --o3 .9s;
}
@keyframes ovIn { from { opacity: 0; } }
.overlay.closing { animation: ovOut .4s var(--ease) forwards; }
@keyframes ovOut { to { opacity: 0; } }
.overlay .field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.aurora {
  position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background: radial-gradient(38% 32% at 30% 30%, rgba(var(--a1), .38), transparent 70%), radial-gradient(42% 38% at 72% 68%, rgba(var(--a2), .3), transparent 70%);
  filter: blur(40px); animation: auroraMove 20s ease-in-out infinite alternate; transition: opacity 1.2s;
}
@keyframes auroraMove { 0% { transform: translate3d(-4%, -3%, 0) rotate(0deg); } 100% { transform: translate3d(4%, 3%, 0) rotate(10deg); } }
.ov-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: calc(12px + var(--top)) 14px 0; }
.ov-top .chip { background: rgba(15, 12, 38, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ov-body { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3vh, 26px); padding: 10px 22px calc(26px + var(--bot)); text-align: center; }
.orb-wrap { position: relative; width: min(74vw, 310px, 44vh); aspect-ratio: 1; display: grid; place-items: center; flex: none; }
.s-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.s-ring .track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.4; }
.s-ring .sweep { fill: none; stroke: rgb(var(--ph)); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 5px rgba(var(--ph), .7)); transition: stroke .6s; }
.s-ring .nodes circle { fill: rgba(255, 255, 255, .16); transform-box: fill-box; transform-origin: center; transition: fill .35s, transform .45s var(--spring), opacity .35s; }
.s-ring .nodes circle.done { fill: rgb(var(--ph)); }
.s-ring .nodes circle.cur { fill: #fff; transform: scale(2); }
.s-ring .nodes.dim circle { opacity: .35; }
.orb { position: absolute; width: 74%; aspect-ratio: 1; display: grid; place-items: center; will-change: transform; transform: scale(.45); }
.orb i { position: absolute; inset: 0; border-radius: 50%; }
.orb .glow { inset: -22%; background: radial-gradient(circle, rgba(var(--ph), .42), rgba(var(--ph), 0) 66%); filter: blur(8px); }
.orb .core { background: radial-gradient(circle at 34% 30%, var(--o1) 0%, var(--o2) 46%, var(--o3) 100%); box-shadow: 0 0 90px rgba(var(--ph), .42), inset 0 -24px 60px rgba(0, 0, 0, .28); }
.orb .shine { inset: 10% 34% 60% 16%; background: radial-gradient(closest-side, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); filter: blur(3px); }
#session.ph-hold { --ph: 242, 193, 78; --a1: 242, 193, 78; --a2: 124, 58, 237; --o1: #fff6d6; --o2: #f2c14e; --o3: #6b3f04; }
#session.ph-rec { --ph: 251, 113, 133; --a1: 251, 113, 133; --a2: 124, 58, 237; --o1: #ffe4e9; --o2: #fb7185; --o3: #6b1430; }
#session.ph-med { --ph: 196, 181, 253; --a1: 124, 58, 237; --a2: 196, 181, 253; --o1: #f5f3ff; --o2: #a78bfa; --o3: #2e1065; }
#session.ph-done { --ph: 52, 211, 153; --o1: #d1fae5; --o2: #34d399; --o3: #065f46; }
.s-col { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 380px; width: 100%; }
.s-phase { font: 300 clamp(1.9rem, 6.4vw, 2.6rem)/1.25 var(--display); }
.s-phase.swap { animation: swap .55s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.s-sub { color: var(--muted); min-height: 1.7em; font-size: .98rem; }
.s-big { font: 500 clamp(2.6rem, 11vw, 3.8rem)/1.1 var(--mono); min-height: 1.15em; margin: 2px 0 10px; }
.s-col .btn { min-width: 220px; }
.s-col .btn + .btn { margin-top: 8px; }
.s-tap { color: var(--muted); font-size: .86rem; margin-top: 4px; animation: blink 2.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .45; } }
#session.ph-hold { cursor: pointer; }

#coldrun { --ph: 34, 195, 230; --a1: 34, 195, 230; --a2: 125, 211, 252; }
#coldrun.goal { --ph: 52, 211, 153; }
.frost { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--frost, 0); transition: opacity 1.2s linear;
  background: radial-gradient(ellipse 78% 66% at 50% 46%, rgba(127, 231, 255, 0) 52%, rgba(127, 231, 255, .14) 72%, rgba(226, 250, 255, .5) 100%); }
.frost::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23e6fbff' stroke-width='1.2' stroke-linecap='round' opacity='.75'%3E%3Cpath d='M40 20v40M23 30l34 20M57 30 23 50M40 28l-5-5M40 28l5-5M40 52l-5 5M40 52l5 5'/%3E%3Cpath d='M130 100v28M118 107l24 14M142 107l-24 14' opacity='.8'/%3E%3Cpath d='M100 150v16M93 154l14 8M107 154l-14 8' opacity='.6'/%3E%3Cpath d='M150 30v14M144 33l12 7M156 33l-12 7' opacity='.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px; -webkit-mask: radial-gradient(ellipse 72% 62% at 50% 46%, transparent 58%, #000 100%); mask: radial-gradient(ellipse 72% 62% at 50% 46%, transparent 58%, #000 100%); }
.cold-dial .dial-in { position: relative; display: grid; place-items: center; gap: 2px; text-align: center; }
.dial-in b { font: 500 clamp(3.2rem, 13vw, 4.6rem)/1 var(--mono); text-shadow: 0 0 30px rgba(var(--ph), .45); }
.dial-in span { color: var(--muted); font-size: .92rem; }
.cold-dial::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(127, 231, 255, .22), rgba(10, 8, 29, .4) 70%); border: 1px solid rgba(127, 231, 255, .2); }

.ex-body { gap: 26px; }
.tap-pad { position: relative; width: min(76vw, 320px, 46vh); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 2px;
  background: radial-gradient(circle at 36% 30%, rgba(196, 181, 253, .26), rgba(24, 20, 60, .65) 70%); border: 1px solid var(--line-2); transition: transform .12s, background .3s; }
.tap-pad:active { transform: scale(.97); }
.tap-pad b { position: relative; font: 500 clamp(3.6rem, 15vw, 5.2rem)/1 var(--mono); }
.tap-pad span { position: relative; color: var(--muted); font-size: .9rem; }
.tap-pad.bump b { animation: bump .32s var(--spring); }
@keyframes bump { 40% { transform: scale(1.18); } }
.ex-ctrl { display: flex; gap: 12px; align-items: center; }
.ex-ctrl .chip.icon { width: 50px; height: 50px; }

@media (orientation: landscape) and (max-height: 560px) {
  .ov-body { flex-direction: row; gap: 36px; padding-bottom: calc(12px + var(--bot)); }
  .orb-wrap, .tap-pad { width: min(64vh, 260px); }
  .s-big { font-size: 2.3rem; margin-bottom: 6px; }
  .s-phase { font-size: 1.6rem; }
}

/* =========================================================
   SHEET · ONBOARDING · POP · TOAST · FX
   ========================================================= */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 16, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.sheet {
  position: relative; width: 100%; max-width: 640px; margin: 0 auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--night-2); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0;
  padding: 6px clamp(18px, 4vw, 26px) calc(22px + var(--bot)); transform: translateY(100%); transition: transform .5s var(--ease); overscroll-behavior: contain;
}
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 6px auto 12px; }
.sheet-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); z-index: 2; }
.sheet-x svg { width: 18px; height: 18px; }
.sheet-body { display: grid; gap: 14px; }
.sheet-body > h2 { font: 300 1.65rem/1.3 var(--display); padding-inline-end: 44px; }
.sheet-body > .sub { margin-top: -6px; }
.sheet-actions { position: sticky; bottom: calc(-22px - var(--bot)); margin: 4px calc(-1 * clamp(18px, 4vw, 26px)) calc(-22px - var(--bot)); padding: 14px clamp(18px, 4vw, 26px) calc(18px + var(--bot)); background: linear-gradient(to top, var(--night-2) 70%, rgba(24, 20, 60, 0)); display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }
.sheet.wide { max-width: 760px; }
@media (min-width: 760px) {
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: 28px; border-bottom: 1px solid var(--line-2); transform: translateY(26px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s; padding-bottom: 22px; max-height: 86vh; }
  .sheet-wrap.open .sheet { opacity: 1; }
  .grab { display: none; }
  .sheet-body > h2 { margin-top: 10px; }
  .sheet-actions { bottom: -22px; margin-bottom: -22px; padding-bottom: 18px; }
}
.moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.moods button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 2px 10px; border-radius: 18px; background: var(--deep); border: 1px solid var(--line); font-size: .74rem; color: var(--muted); transition: all .25s var(--ease); }
.moods button b { font-size: 1.7rem; line-height: 1; font-weight: 400; }
.moods button.on { border-color: var(--lilac); background: rgba(124, 58, 237, .18); color: var(--text); transform: translateY(-3px); }
.sum-hero { text-align: center; display: grid; gap: 4px; padding: 6px 0 4px; }
.sum-hero b { font: 500 clamp(3.4rem, 14vw, 4.6rem)/1.05 var(--mono); background: linear-gradient(135deg, #fde68a, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum-hero .record { justify-self: center; }
.sum-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sum-stats div { text-align: center; padding: 12px 6px; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); }
.sum-stats b { display: block; font: 500 1.15rem var(--mono); }
.sum-stats span { font-size: .74rem; color: var(--muted); }

.onb { position: fixed; inset: 0; z-index: 70; background: radial-gradient(100% 60% at 50% 0%, #2b1b74 0%, rgba(15, 12, 38, 0) 60%), var(--night); display: flex; flex-direction: column; padding: calc(18px + var(--top)) var(--gutter) calc(18px + var(--bot)); overflow-y: auto; }
.onb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .3s, width .4s var(--ease); }
.onb-dots i.on { background: var(--paper); width: 34px; }
.onb-step { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 540px; margin: 0 auto; width: 100%; padding: 26px 0; animation: rise .55s var(--ease); }
.onb-step .big-logo { width: 92px; height: 92px; animation: breathe 5s var(--ease) infinite; filter: drop-shadow(0 0 26px rgba(124, 58, 237, .6)); }
.onb-nav { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; width: 100%; }
.onb-nav .btn { flex: 1; }
.levels { display: grid; gap: 8px; }
.level { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--line); text-align: start; transition: all .25s var(--ease); }
.level b { display: block; font: 400 1.05rem var(--display); }
.level small { color: var(--muted); font-size: .82rem; }
.level .rb { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.level.on { border-color: var(--lilac); background: rgba(124, 58, 237, .14); }
.level.on .rb { border-color: var(--lilac); }
.level.on .rb::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lilac); }
.gate-list { list-style: none; display: grid; gap: 8px; }
.gate-list li { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.gate-list li svg { width: 20px; height: 20px; color: var(--rose); flex: none; margin-top: 4px; }
.gate-list b { color: var(--text); }

.pop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: radial-gradient(55% 45% at 50% 44%, rgba(242, 193, 78, .26), rgba(5, 4, 16, .9) 70%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: ovIn .4s var(--ease); }
.pop-card { width: min(360px, 100%); text-align: center; display: grid; gap: 10px; justify-items: center; animation: popIn .7s var(--spring); }
.pop-card h2 { font: 300 2rem/1.25 var(--display); }
.pop-card p { color: var(--muted); }
.pop-badge { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from 210deg, var(--violet), var(--ice), var(--sun), var(--violet)); box-shadow: 0 0 60px rgba(242, 193, 78, .45); animation: spin 12s linear infinite; }
.pop-badge > span { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); animation: spin 12s linear infinite reverse; }
.pop-badge svg { width: 50px; height: 50px; color: var(--sun); }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(96px + var(--bot)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 28px); width: max-content;
  background: var(--paper); color: var(--ink); padding: 11px 12px 11px 18px; padding-inline-start: 18px; border-radius: 999px; font: 500 .92rem/1.4 var(--body);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); transition: transform .4s var(--ease), opacity .3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ti { width: 22px; height: 22px; flex: none; }
.toast .ti.ok { color: #059669; } .toast .ti.warn { color: #b45309; } .toast .ti.err { color: #e11d48; }
.toast button { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .84rem; }
@media (min-width: 960px) { .toast { bottom: calc(28px + var(--bot)); } }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .display .ln > span, .hero-in > * { transform: none !important; opacity: 1 !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
html.rm [data-reveal] { opacity: 1; transform: none; filter: none; }
html.rm .display .ln > span, html.rm .hero-in > * { transform: none !important; opacity: 1 !important; }

/* =========================================================
   additions (components used by the JS views)
   ========================================================= */
.view.static .draw, .sheet .static .draw { animation: none; stroke-dashoffset: 0; }
.view.static .grow, .view.static .fade { animation: none; }
.spark { height: auto; margin-top: auto; }
.spark .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; stroke-width: 2.4; }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pring .rf { stroke-dashoffset: 100; }
.pring.big { width: 72px; height: 72px; }
.pring-wrap b { font-size: .92rem; }
.tag svg { width: 14px; height: 14px; }
.tag.record { padding: 5px 12px; font-size: .82rem; }
.card.lesson-feature { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 230px; }
.card.lesson-feature .h2, .card.lesson-feature .h3 { max-width: 640px; }
.c-violet.lesson-feature .muted { color: rgba(255, 255, 255, .8); }
.study .lim { display: flex; gap: 6px; align-items: flex-start; }
.study .lim svg { width: 15px; height: 15px; flex: none; margin-top: 4px; }
.study-list { display: grid; gap: 10px; }
.factlist { list-style: none; display: grid; gap: 10px; padding: 0 !important; }
.factlist li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--deep); border: 1px solid var(--line); }
.factlist li b { font: 500 1.5rem/1.2 var(--mono); color: var(--sun); }
.factlist li b .mono { font: inherit; }
.factlist li span { color: var(--muted); font-size: .92rem; }
@media (min-width: 760px) { .factlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tips-list { list-style: none; display: grid; gap: 8px; }
.tips-list li { position: relative; padding-inline-start: 18px; color: var(--muted); }
.tips-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: var(--ice); }
.tech-desc { display: flex; gap: 12px; align-items: flex-start; }
.tech-desc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.tech-desc .ic svg { width: 22px; height: 22px; }
.tech-desc p { color: var(--muted); }
.custom-speed { display: grid; gap: 10px; padding-top: 6px; }
.tgts { padding: 6px 0 4px; display: grid; gap: 8px; }
.tgt-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tgt-row input { padding: 10px 6px; }
.dur-in { display: inline-flex; align-items: center; gap: 6px; }
.dur-in input { width: 74px; padding: 10px 6px; }
.dur-in b { color: var(--muted); }
.row-item.stack .seg { align-self: flex-start; }
.row-item.stack > .lbl, .row-item.stack > label { margin-bottom: 4px; }
.levels .level { width: 100%; }
.legend li a { color: inherit; }
.hero-card .row .btn-onc { color: #fff; }
.ex-card { min-height: 150px; }
.sheet .bars { margin-top: 4px; }
.sheet .sum-hero .tag { margin-top: 4px; }
.lesson-hero .eyebrow { color: rgba(255, 255, 255, .85); }
.lesson-hero h1 { color: #fff; }
.prose .callout b { color: inherit; }
.prose .figure text { font-family: var(--body); }
.c-rose .muted { color: var(--muted); }
.qa .ic { margin: 0; }
.kpi.gold b { background: linear-gradient(135deg, #fde68a, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hist-item[open] summary { border-bottom: 1px solid var(--line); }
.btn-row .btn-inkline.xs { min-height: 34px; }
.sync-pill:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 420px) {
  .sync-pill span { max-width: 92px; }
  .brand b { font-size: 1.05rem; }
  .sounds { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .snd { font-size: .7rem; padding: 10px 2px; }
}

/* icons: <use> content inherits from the <use> element, not from the sprite */
use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat { min-height: 300px; }
@media (max-width: 959px) {
  .how-grid .demo { order: -1; min-height: 360px; padding: 26px 18px; }
  .mock-bubble { width: 132px; height: 132px; }
}
.tech .meta { font: 500 .78rem/1.5 var(--body); }
.kpi b, .bignum, .cold-hero .goal b { text-align: right; }
.vhead .seg { flex-wrap: nowrap; }
@media (max-width: 520px) { .vhead > .seg { width: 100%; } .vhead > .seg button { flex: 1; padding-inline: 6px; } }
