/* Appunto site: the app's own tokens (src/styles.scss) and primitives. */
:root {
  color-scheme: dark;
  --bg: #0d0d17;
  --sidebar: #12121f;
  --card: #16162a;
  --raised: #1d1d36;
  --chip: #262640;
  --chip-grape: #2a1a4a;
  --border: #2e2e52;
  --border-strong: #4a4a78;
  --text: #f5f5ff;
  --text-soft: #c4c4da;
  --text-muted: #9a9ab5;
  --grape: #8b5cf6;
  --grape-fill: #7c3aed;
  --grape-deep: #4c1d95;
  --coral: #ff5a5f;
  --coral-deep: #b3262b;
  --coral-ink: #1a0507;
  --mint: #4ade80;
  --mint-ink: #0d2416;
  --amber: #f5b942;
  --sky-tile: #0e3a52;
  --accent: #a78bfa;
  --focus: #c4b5fd;
  --shade: #0a0a14;
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --bounce: cubic-bezier(.3, 1.6, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--focus); text-underline-offset: 3px; }
a:hover { color: #ede9fe; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-optical-sizing: auto; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--chip); border-radius: 8px; padding: 2px 7px; overflow-wrap: anywhere; }
pre { background: var(--sidebar); border-radius: 16px; padding: 14px 16px; overflow-x: auto; font-size: 0.86rem; line-height: 1.55; }
pre code { background: none; padding: 0; }
.wrap { width: 100%; max-width: 1296px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ chunky game buttons */
.btn {
  --fill: var(--raised); --shade-c: var(--shade); --ink: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 18px;
  background: var(--fill); box-shadow: 0 6px 0 var(--shade-c); color: var(--ink);
  font: 800 18px/1.1 var(--display); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--shade-c); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--shade-c); }
.btn svg { flex: none; width: 20px; height: 20px; }
.btn-primary { --fill: var(--grape-fill); --shade-c: var(--grape-deep); --ink: #fff; }
.btn-coral { --fill: var(--coral); --shade-c: var(--coral-deep); --ink: var(--coral-ink); }
.btn-ghost { box-shadow: 0 6px 0 var(--shade-c), inset 0 0 0 2px #34345c; }
.btn-ghost:hover { box-shadow: 0 8px 0 var(--shade-c), inset 0 0 0 2px var(--grape); }
.btn-ghost:active { box-shadow: 0 0 0 var(--shade-c), inset 0 0 0 2px var(--grape); }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 16px; box-shadow: 0 4px 0 var(--shade-c); }
.btn-sm:hover { box-shadow: 0 6px 0 var(--shade-c); }
.btn-sm:active { transform: translateY(4px); }
.btn-lg { min-height: 68px; padding: 0 36px; border-radius: 22px; font-size: 21px; }
.btn[aria-disabled='true'] { --fill: var(--chip); --shade-c: var(--shade); --ink: var(--text-muted); pointer-events: none; opacity: 0.7; }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgb(13 13 23 / 0.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid #22223d;
}
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
    background: var(--coral); transform-origin: 0 50%;
    animation: grow linear both; animation-timeline: scroll(root);
  }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.top-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'brand actions' 'links links'; align-items: center; gap: 8px 12px; padding-block: 12px 8px; }
.top-in .brand { grid-area: brand; }
.top-in .links { grid-area: links; }
.top-in .top-actions { grid-area: actions; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand .unto { color: var(--accent); }
.brand img { width: 38px; height: 38px; transition: transform 300ms var(--bounce); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; padding-bottom: 4px; }
.links::-webkit-scrollbar { display: none; }
.links a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover, .links a[aria-current='page'] { background: var(--raised); color: var(--text); }
@media (max-width: 380px) { .top-actions .btn-sm { display: none; } }
@media (min-width: 900px) {
  .top-in { grid-template-columns: auto 1fr auto; grid-template-areas: 'brand links actions'; padding-block: 14px; }
  .links { justify-self: end; margin: 0 8px 0 0; padding: 0; }
}

/* IT / EN switch, as in the app's top bar. */
.lang { display: flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--card); }
.lang button {
  min-width: 40px; min-height: 36px; border: 0; border-radius: 10px; background: none;
  color: var(--text-muted); font: 800 13px/1 var(--font); cursor: pointer;
}
.lang button[aria-pressed='true'] { background: var(--grape-fill); color: #fff; }

/* ------------------------------------------------------------ home: shared bits */
.display { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.grape { color: var(--accent); }
.coral { color: #ff7a7e; }
.sec { position: relative; padding-block: 96px; }
.sec.tight { padding-top: 32px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; }
.h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.sec-sub { margin-top: 20px; max-width: 620px; font-size: 19px; color: var(--text-soft); }
.pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: pulse 1.6s infinite; }
.float { animation: float 6s ease-in-out infinite; }
.float.d2 { animation-delay: -2s; animation-duration: 7s; }
.float.d3 { animation-delay: -4s; animation-duration: 5.5s; }
.spin-slow { animation: spin 18s linear infinite; }
.shape { position: absolute; z-index: 0; border-radius: 22px; pointer-events: none; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding-block: 48px 80px; background-image: radial-gradient(#26264a 1.2px, transparent 1.2px); background-size: 28px 28px; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--raised); border: 1px solid #34345c; color: #e4e4f0; font-weight: 600; font-size: 15px; }
.hero h1 { font-size: clamp(48px, 7vw, 96px); line-height: 0.95; }
.hero h1 > span { display: block; }
.sticker { display: inline-block !important; margin-top: 10px; padding: 2px 20px 10px; border-radius: 22px; background: var(--coral); color: var(--coral-ink); box-shadow: 0 8px 0 var(--coral-deep); transform: rotate(-2.5deg); animation: wobble 5s ease-in-out infinite; }
.hero-lead { margin: 32px 0 36px; max-width: 540px; font-size: clamp(18px, 2vw, 20px); color: var(--text-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-meta { margin-top: 28px; color: var(--text-muted); font-size: 15px; font-weight: 600; }
.hero-art { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1000px) {
  .hero { padding-block: 40px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hero-art { min-height: 480px; }
}

.window { position: relative; width: 100%; max-width: 500px; margin: 0; border-radius: 28px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 10px 0 var(--shade), 0 40px 80px rgb(0 0 0 / 0.55); overflow: hidden; transform: rotate(2deg); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid #26264a; }
.win-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.win-bar .title { margin-left: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1 var(--display); }
.rec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #2a1220; color: #ffb3b5; font: 700 13px/1 var(--mono); white-space: nowrap; }
.rec .pulse { width: 8px; height: 8px; }
.wave { display: flex; align-items: center; gap: 5px; height: 84px; margin: 20px 0 8px; padding: 0 24px; }
.wave i { flex: 1; height: var(--h, 60%); border-radius: 6px; background: var(--grape); animation: eq 1.1s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.wave i:nth-child(3n) { background: var(--accent); }
.wave i:nth-child(5n) { background: var(--coral); }
.lines { display: grid; gap: 12px; padding: 12px 20px 24px; }
.line { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--raised); }
.line.waiting { background: transparent; border: 1px dashed #34345c; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--bg); }
.who { font-weight: 700; font-size: 14px; }
.when { margin-left: 6px; color: var(--text-muted); font: 500 12px/1 var(--mono); }
.said { margin-top: 4px; font-size: 15px; line-height: 1.4; color: #d8d8ea; }
.tag { display: inline-flex; margin-top: 8px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.tag.decision { background: var(--chip-grape); color: var(--focus); }
.tag.todo { background: #132a1e; color: #bbf7d0; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.float-chip svg { width: 18px; height: 18px; }
.float-chip.c1 { left: -8px; top: 34px; background: var(--coral); color: var(--coral-ink); box-shadow: 0 6px 0 var(--coral-deep); }
.float-chip.c2 { right: -14px; top: 46%; background: #fff; color: #2a0b5e; box-shadow: 0 6px 0 var(--focus); font: 700 14px/1 var(--mono); }
.float-chip.c3 { left: 6%; bottom: 0; background: var(--raised); border: 2px solid #34345c; box-shadow: 0 6px 0 var(--shade); }
.float-chip.c3 svg { color: var(--mint); }
@media (max-width: 720px) {
  .hero-art { min-height: 440px; }
  .float-chip { font-size: 13px; padding: 10px 12px; }
  .float-chip.c1 { left: 0; top: 0; }
  .float-chip.c2 { right: 0; }
}

/* ------------------------------------------------------------ marquee */
.marquee { overflow: hidden; margin: 0 -40px; background: var(--grape-fill); border-block: 4px solid var(--grape-deep); transform: rotate(-1.5deg); }
.track { display: flex; width: max-content; padding: 18px 0; animation: marquee 28s linear infinite; }
.track span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; color: #fff; font: 800 24px/1 var(--display); white-space: nowrap; }
.track span::after { content: '✦'; color: #ffd6d7; }

/* ------------------------------------------------------------ how it works: levels */
.lvl-grid { position: relative; display: grid; gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
.lvl-path { display: none; }
.level { position: relative; z-index: 1; padding: 32px; border-radius: 28px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 0 var(--shade); transition: transform 250ms var(--bounce); }
.level:hover { transform: translateY(-8px) rotate(-1deg); }
.lvl-badge { width: 72px; height: 72px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; line-height: 1; }
.lvl-badge small { font-size: 11px; letter-spacing: 0.12em; opacity: 0.85; }
.lvl-badge b { font-size: 30px; }
.lvl-badge.b1 { background: var(--grape-fill); color: #fff; box-shadow: 0 6px 0 var(--grape-deep); }
.lvl-badge.b2 { background: var(--coral); color: var(--coral-ink); box-shadow: 0 6px 0 var(--coral-deep); }
.lvl-badge.b3 { background: #fff; color: #2a0b5e; box-shadow: 0 6px 0 var(--focus); }
.level h3 { margin: 28px 0 10px; font-size: 28px; }
.level p { color: var(--text-soft); }
.lvl-foot { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed #34345c; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.lvl-foot svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
@media (min-width: 960px) {
  .lvl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lvl-path { display: block; position: absolute; left: 12%; right: 12%; top: 52px; height: 4px; background-image: linear-gradient(90deg, #34345c 50%, transparent 50%); background-size: 24px 4px; }
}

/* ------------------------------------------------------------ to-dos: quest log */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; } }
.sec-sub.strong { color: var(--text); font-weight: 700; }
.board { position: relative; padding: 22px 24px; border-radius: 32px; background: var(--card); border: 2px solid var(--border); box-shadow: 0 10px 0 var(--shade), 0 30px 60px rgb(0 0 0 / 0.4); overflow: hidden; }
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.board-title { font: 800 22px/1.2 var(--display); }
.board-rank { margin-top: 4px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.xp { padding: 8px 14px; border-radius: 12px; background: var(--chip-grape); font: 700 15px/1 var(--mono); }
.xp-track { height: 20px; margin-bottom: 16px; border-radius: 999px; background: var(--bg); border: 2px solid var(--border); overflow: hidden; }
.xp-fill { width: 0; height: 100%; border-radius: 999px; background: var(--coral) repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.18) 0 10px, transparent 10px 20px); background-size: 28px 28px; animation: stripes 1s linear infinite; transition: width 500ms var(--bounce); }
.quests { margin: 0; padding: 0; list-style: none; }
.quest { width: 100%; display: flex; align-items: center; gap: 16px; min-height: 60px; margin-bottom: 10px; padding: 10px 14px; border-radius: 20px; border: 2px solid var(--border); background: var(--raised); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 4px 0 var(--shade); transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 200ms ease; }
.quest:hover { border-color: var(--grape); transform: translateY(-2px); box-shadow: 0 6px 0 var(--shade); }
.quest:active { transform: translateY(4px); box-shadow: 0 0 0 var(--shade); }
.check { flex: none; width: 34px; height: 34px; border-radius: 11px; border: 3px solid var(--border-strong); display: grid; place-items: center; background: var(--bg); color: transparent; }
.check svg { width: 20px; height: 20px; stroke-width: 3; }
.q-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.q-title { font-weight: 700; font-size: 17px; }
.q-meta { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.xp-tag { flex: none; padding: 6px 10px; border-radius: 10px; background: var(--chip-grape); color: var(--focus); font: 800 13px/1 var(--mono); }
.quest[aria-pressed='true'] { background: #132a1e; border-color: #2f7a4e; }
.quest[aria-pressed='true'] .q-title { color: #a7d9b9; text-decoration: line-through; text-decoration-thickness: 2px; }
.quest[aria-pressed='true'] .check { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); animation: pop 350ms cubic-bezier(.3, 1.8, .5, 1); }
.quest[aria-pressed='true'] .xp-tag { background: #1e4d33; color: #bbf7d0; }
.q-hint { margin-top: 4px; text-align: center; color: var(--text-muted); font-size: 15px; font-weight: 600; }
.levelup { position: relative; margin-top: 8px; padding: 24px; border-radius: 22px; background: var(--chip-grape); border: 2px solid var(--grape); text-align: center; overflow: hidden; animation: pop 450ms cubic-bezier(.3, 1.8, .5, 1); }
.levelup[hidden] { display: none; }
.levelup h3 { font-size: 30px; }
.levelup p { margin: 6px 0 16px; color: #ede9fe; }
.confetti { position: absolute; top: -12px; width: 10px; height: 16px; border-radius: 3px; animation: fall 1.8s ease-in infinite; }

/* ------------------------------------------------------------ features: bento */
.bento { display: grid; gap: 20px; margin-top: 64px; }
.feat { position: relative; padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 0 var(--shade); overflow: hidden; transition: transform 250ms var(--bounce), border-color 200ms; }
.feat:hover { transform: translateY(-6px); border-color: #5b4a9a; }
.feat h3 { margin-bottom: 10px; font-size: 24px; line-height: 1.15; }
.feat p { color: var(--text-soft); font-size: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat.wide { grid-column: span 2; } }
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .feat { grid-column: span 2; }
  .feat.wide { grid-column: span 4; }
  .feat.half { grid-column: span 3; }
}
.feat-ico { width: 52px; height: 52px; margin-bottom: 20px; border-radius: 16px; display: grid; place-items: center; }
.feat-ico svg { width: 26px; height: 26px; }
.feat-ico.grape { background: var(--chip-grape); color: var(--focus); }
.feat-ico.coral { background: #3a1418; color: #ffb3b5; }
.feat-ico.mint { background: #132a1e; color: #bbf7d0; }
.kicker { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 8px; background: var(--raised); color: var(--text-muted); font: 700 12px/1.3 var(--font); letter-spacing: 0; vertical-align: middle; }
.chat { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.bubble { max-width: 85%; padding: 14px 18px; border-radius: 20px; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--grape-fill); color: #fff; border-bottom-right-radius: 6px; }
.bubble.app { align-self: flex-start; background: var(--raised); color: #e4e4f0; border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.cite { margin-top: 10px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.cite b { color: #ffb3b5; }
.tl { position: relative; margin: 22px 0 0; padding: 0 0 0 22px; list-style: none; }
.tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--border); }
.tl li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 15px; font-weight: 600; }
.tl li::before { content: ''; position: absolute; left: -22px; top: 12px; width: 15px; height: 15px; border-radius: 50%; background: var(--card); border: 3px solid var(--grape); }
.tl time { color: var(--text-muted); font: 500 14px/1.6 var(--mono); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pills li { padding: 8px 14px; border-radius: 12px; background: var(--raised); border: 1px solid #34345c; font-size: 14px; font-weight: 700; transition: transform 200ms cubic-bezier(.3, 1.8, .5, 1); }
.pills li:hover { transform: translateY(-3px) rotate(-3deg); }
.swap { position: relative; display: block; height: 44px; margin-top: 22px; }
.swap span { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 14px; font-weight: 800; font-size: 17px; }
.swap .s-a { background: var(--raised); color: var(--text-muted); border: 1px dashed var(--border-strong); animation: swapA 4s ease-in-out infinite; }
.swap .s-b { background: var(--coral); color: var(--coral-ink); animation: swapB 4s ease-in-out infinite; }
.avatars { display: flex; margin-top: 22px; }
.avatars span { width: 46px; height: 46px; margin-right: -10px; border-radius: 50%; border: 3px solid var(--card); display: grid; place-items: center; color: var(--bg); font-weight: 800; font-size: 14px; }

/* ------------------------------------------------------------ privacy vault */
.vault { position: relative; padding: 40px 22px; border-radius: 30px; background: var(--card); border: 2px solid var(--border); box-shadow: 0 12px 0 var(--shade); overflow: hidden; }
.vault .h2 { max-width: 820px; font-size: clamp(30px, 3.8vw, 46px); }
.stats { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.stat { padding: 18px 22px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); }
.stat b { display: block; font: 800 44px/1 var(--display); }
.stat span { display: block; margin-top: 6px; color: var(--text-soft); font-size: 15px; font-weight: 600; }
.vault-facts { display: grid; gap: 12px 32px; margin: 24px 0 0; padding: 0; list-style: none; }
.vault-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--text-soft); }
.vault-facts svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--mint); }
.vault .more { display: inline-block; margin-top: 24px; font-weight: 700; }
.shield { display: none; position: absolute; right: 40px; top: 36px; width: 84px; height: 84px; border-radius: 26px; background: var(--grape-fill); box-shadow: 0 8px 0 var(--grape-deep); place-items: center; color: #fff; }
.shield svg { width: 42px; height: 42px; }
@media (min-width: 960px) {
  .vault { padding: 40px 48px; border-radius: 36px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vault-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shield { display: grid; }
}

/* ------------------------------------------------------------ download panel */
.dl { position: relative; padding: 40px 22px; border-radius: 30px; background: var(--grape-fill); box-shadow: 0 14px 0 var(--grape-deep), 0 40px 80px rgb(124 58 237 / 0.35); overflow: hidden; color: #fff; }
.dl > * { position: relative; z-index: 1; }
.dl .shape { position: absolute; z-index: 0; }
.dl .eyebrow { color: #ffd6d7; }
/* Compact enough to fit one laptop screen below the sticky header. */
.dl .h2 { font-size: clamp(32px, 4vw, 52px); }
.dl .btn-lg { min-height: 60px; }
.tabs { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .dl { padding: 48px 56px; border-radius: 40px; } .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 72px; padding: 14px 18px; border-radius: 20px; border: 3px solid transparent; background: #5b21b6; color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 5px 0 #3b0f85; transition: transform 150ms ease, box-shadow 150ms ease, background 200ms; }
.tab:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #3b0f85; }
.tab:active { transform: translateY(5px); box-shadow: 0 0 0 #3b0f85; }
.tab[aria-pressed='true'] { background: #fff; color: #2a0b5e; border-color: #fff; box-shadow: 0 5px 0 var(--focus); }
.tab b { font: 800 20px/1.1 var(--display); }
.tab span { font-size: 14px; font-weight: 600; opacity: 0.85; }
.dl-hint { margin: 20px 0 24px; max-width: 640px; color: #ede9fe; }
.dl-note { margin-top: 20px; color: #ede9fe; font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------ scroll-driven reveals: content stays visible where unsupported */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .deal-l { animation: dealL linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .deal-r { animation: dealR linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  .pop-in { animation: popIn linear both; animation-timeline: view(); animation-range: entry 5% entry 85%; }
  .hero-out { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0px 760px; }
  .lvl-grid .level:nth-child(3) { animation-range: entry 10% entry 90%; }
  .lvl-grid .level:nth-child(4) { animation-range: entry 20% entry 100%; }
  .bento .feat:nth-child(2n) { animation-range: entry 10% entry 90%; }
}

/* ------------------------------------------------------------ inner pages */
.page { padding-block: 28px 80px; }
.page h1 { font-size: clamp(40px, 10vw, 68px); letter-spacing: -0.03em; }
.lead { margin-top: 14px; max-width: 40rem; font-size: 19px; color: var(--text-soft); }
.meta { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.prose { max-width: 840px; }
.card { margin-top: 18px; padding: 22px; border-radius: 26px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 6px 0 var(--shade); }
.card h2 { font-size: 24px; margin-bottom: 10px; }
.card h3 { font-size: 18px; margin: 16px 0 6px; }
.card p + p, .card p + ul, .card p + ol, .card ul + p, .card ol + p, .card p + pre, .card pre + p, .card p + table, .card table + p { margin-top: 10px; }
.card ul, .card ol { margin: 8px 0 0; padding-left: 1.25rem; }
.card li { margin-bottom: 7px; }
.card li::marker { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); }
.tile { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; }
.tile svg { width: 24px; height: 24px; }
.tile.grape { background: var(--chip-grape); color: var(--focus); }
.tile.sky { background: var(--sky-tile); color: #7dd3fc; }
.tile.amber { background: #3b2a0a; color: #fcd34d; }

/* Download page. */
.os-grid { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) { .os-grid { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.os { padding: 22px; border-radius: 28px; background: var(--card); border: 1px solid var(--border); box-shadow: 0 8px 0 var(--shade); display: grid; gap: 14px; }
.os.recommended { background: var(--raised); outline: 3px solid var(--grape); }
.os-head { display: flex; align-items: center; gap: 12px; }
.os-head h2 { font-size: 24px; }
.you { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--coral); color: var(--coral-ink); font-size: 13px; font-weight: 800; }
.dl-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.dl-list li { display: grid; gap: 8px; }
.dl-list .what { font-weight: 700; }
.dl-list .what small { display: block; color: var(--text-muted); font-weight: 500; font-size: 14px; }
.dl-list .btn { width: 100%; }
.hint { color: var(--text-muted); font-size: 14.5px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: var(--card); color: var(--text-soft); font-weight: 600; font-size: 15px; }
.status::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.status.ok::before { background: var(--mint); }
.status.err::before { background: var(--coral); }

/* ------------------------------------------------------------ footer */
footer { border-top: 1px solid #22223d; padding-block: 40px 56px; color: var(--text-muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
footer img { width: 28px; height: 28px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ------------------------------------------------------------ keyframes */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 90 95 / 0.7); } 70% { box-shadow: 0 0 0 12px rgb(255 90 95 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 90 95 / 0); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(1.5deg) translateY(-3px); } }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes stripes { to { background-position: 28px 0; } }
@keyframes pop { from { transform: scale(0.6); } to { transform: scale(1); } }
@keyframes fall { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(240px) rotate(540deg); opacity: 0; } }
@keyframes swapA { 0%, 35% { opacity: 1; transform: translateY(0); } 45%, 90% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes swapB { 0%, 35% { opacity: 0; transform: translateY(14px) scale(0.9); } 45%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px) scale(0.9); } }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes dealL { from { opacity: 0; transform: translateX(-80px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes dealR { from { opacity: 0; transform: translateX(80px) rotate(8deg); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.7) rotate(-4deg); } 70% { opacity: 1; transform: scale(1.04) rotate(1deg); } 100% { opacity: 1; transform: none; } }
@keyframes heroOut { to { transform: translateY(90px) scale(0.92); opacity: 0.35; } }

/* ------------------------------------------------------------ reduced motion: final states, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .progress { display: none; }
  .swap .s-a { opacity: 0; }
}
