/* Alif landing page. Tokens mirror src/theme/tokens.ts and the v2.2 design canvas. */
:root {
  --ground: #f8f8f7;
  --surface: #ffffff;
  --paper: #fffefb;
  --ink: #17211e;
  --muted: #5a5f5d;
  --line: #e2e3e5;
  --line-strong: #b9bdbb;
  --accent: #1f6b57;
  --accent-dark: #175445;
  --tonal: #e8efec;
  --neutral: #edeeee;
  --danger: #c2362b;
  --amber: #c27a12;
  --amber-dark: #9a5f0b;
  --blue: #2f6fb5;
  --blue-dark: #255a93;
  --teal: #0e6a75;
  --teal-dark: #0a525b;
  --pink: rgba(229, 25, 94, 0.32);
  --pink-edge: #e5195e;
  --yellow: rgba(232, 180, 0, 0.32);
  --yellow-edge: #d9a21f;
  --video: #3a4752;
  --video-self: #4f7d6e;
  --hand: #f4c04e;
  --hand-ink: #3b2a00;

  --r-btn: 6px;
  --r-card: 10px;
  --r-book: 12px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Noto Naskh Arabic", serif;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Material Symbols Rounded, variable: FILL 0 outlined, FILL 1 filled. */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: 400; font-style: normal; font-size: 24px; line-height: 1;
  display: inline-block; letter-spacing: normal; text-transform: none; white-space: nowrap;
  direction: ltr; font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}
.ms.f { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* Buttons: one filled per view, outlined for the rest, red only for end or leave. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-btn);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn .ms { font-size: 20px; }
.btn-filled { background: var(--accent); color: #fff; }
.btn-filled:hover { background: var(--accent-dark); color: #fff; }
.btn-outlined { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outlined:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-text { background: transparent; color: var(--accent); padding-inline: 8px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: var(--r-btn); }
.site-nav a:hover { color: var(--ink); background: var(--neutral); }
.site-nav .btn { min-height: 40px; margin-left: 8px; }
.site-nav .btn-filled { color: #fff; }
@media (max-width: 760px) {
  .site-nav a:not(.btn) { display: none; }
}

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: clamp(32px, 5vw, 56px); }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-note a { color: var(--accent); }
.pair { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 24px; }
.pair .ph:first-child { transform: translateY(28px); }
.hero .pair .ph.lg { --fs: 1.08; }
.hero .pair .ph:not(.lg) { --fs: 0.9; }
.pair-caption { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .pair .ph.lg { --fs: 1.2; }
  .hero .pair .ph:not(.lg) { --fs: 1; }
  .pair { gap: 12px; }
  .pair .ph:first-child { transform: translateY(16px); }
}
@media (max-width: 520px) {
  .pair .ph, .hero .pair .ph:not(.lg) { --fs: 0.6; }
  .hero .pair .ph.lg { --fs: 0.7; }
  .pair .ph:first-child { transform: translateY(12px); }
}

/* Why */
.why .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-note { display: grid; gap: 18px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; }
.why-note .sign { font-size: 15px; color: var(--muted); }
.photo { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--tonal); aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-empty::after {
  content: attr(data-brief); position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  font-size: 14px; color: var(--accent-dark); background: repeating-linear-gradient(135deg, var(--tonal) 0 12px, #e0e9e5 12px 24px);
}
.photo.is-empty img { display: none; }
.photo figcaption { font-size: 13px; color: var(--muted); padding: 8px 0 0; }
.photo.wide { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .why .wrap { grid-template-columns: minmax(0, 1fr); } .photo { aspect-ratio: 16 / 10; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 10px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.step p { color: var(--muted); font-size: 16px; }
.steps-phones { display: flex; justify-content: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.steps-phones figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.steps-phones figcaption { font-size: 14px; color: var(--muted); text-align: center; max-width: 24em; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.feature p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.tile {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-btn); display: grid; place-items: center; color: #fff;
}
.tile .ms { font-size: 22px; }
.tile-amber { background: var(--amber); border: 1px solid var(--amber-dark); }
.tile-blue { background: var(--blue); border: 1px solid var(--blue-dark); }
.tile-teal { background: var(--teal); border: 1px solid var(--teal-dark); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }

/* Teachers */
.teachers .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.checklist .ms { color: var(--accent); flex: none; margin-top: 2px; }
.checklist strong { font-weight: 600; }
.teachers .pair .ph:first-child { transform: none; }
.teachers .pair .ph:last-child { transform: translateY(28px); }
@media (max-width: 900px) { .teachers .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Privacy */
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts .ms { color: var(--accent-dark); background: var(--tonal); width: 44px; height: 44px; border-radius: var(--r-btn); display: grid; place-items: center; font-size: 22px; }
.facts p { color: var(--muted); font-size: 16px; margin-top: 2px; }
@media (max-width: 900px) { .privacy .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Download */
.download { background: var(--surface); }
.download .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.waitlist { display: grid; gap: 16px; padding: 28px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-card); }
.waitlist label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.waitlist input[type="email"] {
  font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.waitlist fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.waitlist legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-btn);
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer;
}
.choices label:has(input:checked) { border-color: var(--accent); background: var(--tonal); color: var(--accent-dark); }
.choices input { margin: 0; accent-color: var(--accent); }
.form-status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--accent-dark); }
.form-status[data-state="error"] { color: var(--danger); }
@media (max-width: 900px) { .download .wrap { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 46em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 600; font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ms { color: var(--muted); transition: transform 160ms ease; flex: none; }
.faq-list details[open] summary .ms { transform: rotate(180deg); }
.faq-list details p { color: var(--muted); padding: 0 0 20px; max-width: 40em; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* Reveal on scroll. Reduced motion: everything visible, no transition. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Phone frames. Screens are drawn to the v2.2 canvas, scaled to --phw.
   ============================================================ */
.ph {
  --fs: 1;
  width: calc(250px * var(--fs)); aspect-ratio: 250 / 536; flex: none;
  padding: calc(8px * var(--fs)); border-radius: calc(32px * var(--fs));
  background: var(--ink); box-shadow: 0 24px 60px rgba(23, 33, 30, 0.18), 0 2px 6px rgba(23, 33, 30, 0.12);
  font-size: calc(13px * var(--fs)); line-height: 1.3;
}
.ph.lg { --fs: 1.2; }
.ph.sm { --fs: 0.84; }
.sc {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(25px * var(--fs)); background: var(--ground); color: var(--ink);
  display: flex; flex-direction: column; padding-top: calc(16px * var(--fs));
}
.sc .ms { font-size: calc(20px * var(--fs)); }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: calc(6px * var(--fs)); min-height: calc(36px * var(--fs)); padding: 0 calc(10px * var(--fs)); }
.chip { display: inline-flex; align-items: center; gap: calc(5px * var(--fs)); padding: calc(3px * var(--fs)) calc(8px * var(--fs)) calc(3px * var(--fs)) calc(3px * var(--fs)); border-radius: var(--r-btn); background: var(--neutral); font-weight: 600; font-size: calc(12px * var(--fs)); white-space: nowrap; }
.chip .ms { font-size: calc(14px * var(--fs)); }
.av { display: inline-grid; place-items: center; width: calc(22px * var(--fs)); height: calc(22px * var(--fs)); border-radius: 50%; background: var(--hand); color: var(--hand-ink); font-weight: 700; font-size: calc(11px * var(--fs)); flex: none; }
.av.t { background: var(--tonal); color: var(--accent-dark); }
.timer { display: inline-flex; align-items: center; gap: calc(3px * var(--fs)); padding: calc(3px * var(--fs)) calc(7px * var(--fs)); border-radius: var(--r-btn); background: var(--neutral); font-weight: 600; font-size: calc(11px * var(--fs)); font-variant-numeric: tabular-nums; }
.timer .ms { font-size: calc(10px * var(--fs)); color: var(--danger); }
.lock { display: inline-grid; place-items: center; width: calc(28px * var(--fs)); height: calc(28px * var(--fs)); border-radius: 50%; background: var(--tonal); color: var(--accent-dark); }
.lock .ms { font-size: calc(15px * var(--fs)); }

/* Book */
.book { position: relative; flex: 1; min-height: 0; margin: calc(6px * var(--fs)) calc(8px * var(--fs)) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-book); overflow: hidden; display: flex; flex-direction: column; }
.book-head { display: flex; align-items: center; gap: calc(3px * var(--fs)); padding: calc(4px * var(--fs)) calc(6px * var(--fs)) calc(4px * var(--fs)) calc(9px * var(--fs)); border-bottom: 1px solid var(--line); font-size: calc(11px * var(--fs)); font-weight: 600; color: var(--muted); }
.book-head .spacer { flex: 1; }
.book-head .ms { font-size: calc(16px * var(--fs)); color: var(--muted); }
.book-head .ms.on { color: var(--accent); }
.book-page { position: relative; flex: 1; min-height: 0; background: var(--paper); overflow: hidden; }
.pg { position: relative; width: 100%; aspect-ratio: 1100 / 1500; }
.pg img { width: 100%; height: 100%; object-fit: cover; }
.ptr { position: absolute; mix-blend-mode: multiply; }
.ptr-t { width: calc(22px * var(--fs)); height: calc(22px * var(--fs)); border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 calc(2px * var(--fs)) var(--pink-edge); }
.ptr-s { width: calc(18px * var(--fs)); height: calc(18px * var(--fs)); border-radius: calc(3px * var(--fs)); transform: rotate(45deg); background: var(--yellow); box-shadow: 0 0 0 calc(2px * var(--fs)) var(--yellow-edge); }
.float {
  position: absolute; top: calc(8px * var(--fs)); right: calc(8px * var(--fs));
  width: calc(66px * var(--fs)); height: calc(88px * var(--fs)); border-radius: var(--r-card);
  background: var(--video); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: calc(22px * var(--fs));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); overflow: hidden;
}
.float.self { background: var(--video-self); }
.float .hand { position: absolute; top: calc(4px * var(--fs)); left: calc(4px * var(--fs)); width: calc(18px * var(--fs)); height: calc(18px * var(--fs)); border-radius: 50%; background: var(--hand); color: var(--hand-ink); display: grid; place-items: center; }
.float .hand .ms { font-size: calc(11px * var(--fs)); }
.float .x { position: absolute; top: calc(4px * var(--fs)); right: calc(4px * var(--fs)); width: calc(16px * var(--fs)); height: calc(16px * var(--fs)); border-radius: 50%; background: rgba(0, 0, 0, 0.45); display: grid; place-items: center; }
.float .x .ms { font-size: calc(10px * var(--fs)); }
.float .nm { position: absolute; left: calc(4px * var(--fs)); bottom: calc(4px * var(--fs)); display: inline-flex; align-items: center; gap: calc(2px * var(--fs)); padding: calc(1px * var(--fs)) calc(5px * var(--fs)); border-radius: var(--r-btn); background: rgba(0, 0, 0, 0.5); font-size: calc(8px * var(--fs)); font-weight: 600; }
.float .nm .ms { font-size: calc(9px * var(--fs)); }
.sheet { position: absolute; left: calc(6px * var(--fs)); bottom: calc(6px * var(--fs)); display: inline-flex; align-items: center; gap: calc(4px * var(--fs)); min-height: calc(26px * var(--fs)); padding: 0 calc(8px * var(--fs)) 0 calc(6px * var(--fs)); border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: calc(9px * var(--fs)); font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); white-space: nowrap; }
.sheet .ms { font-size: calc(12px * var(--fs)); }
.sheet .ms.m { color: var(--muted); }

/* Lesson controls */
.ctl { display: flex; justify-content: space-between; align-items: flex-start; padding: calc(10px * var(--fs)) calc(14px * var(--fs)) calc(18px * var(--fs)); }
.ctl > div { display: grid; justify-items: center; gap: calc(4px * var(--fs)); font-size: calc(8px * var(--fs)); font-weight: 600; color: var(--muted); }
.ctl .rnd { width: calc(38px * var(--fs)); height: calc(38px * var(--fs)); border-radius: 50%; background: var(--neutral); display: grid; place-items: center; color: var(--ink); }
.ctl .rnd .ms { font-size: calc(17px * var(--fs)); }
.ctl .rnd.red { background: var(--danger); color: #fff; }
.ctl.kid { justify-content: center; gap: calc(28px * var(--fs)); padding-top: calc(12px * var(--fs)); }
.ctl.kid .rnd { width: calc(56px * var(--fs)); height: calc(56px * var(--fs)); }
.ctl.kid .rnd .ms { font-size: calc(26px * var(--fs)); }
.ctl.kid .rnd.hand { background: var(--hand); color: var(--hand-ink); }
.ctl.kid > div { font-size: calc(10px * var(--fs)); }

/* Home screens */
.sc-head { display: flex; align-items: flex-start; justify-content: space-between; padding: calc(6px * var(--fs)) calc(12px * var(--fs)) calc(4px * var(--fs)); }
.sc-head .eye { font-size: calc(10px * var(--fs)); color: var(--muted); }
.sc-head .ttl { font-size: calc(19px * var(--fs)); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.sc-head .acct { width: calc(30px * var(--fs)); height: calc(30px * var(--fs)); border-radius: 50%; background: var(--tonal); color: var(--accent-dark); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: calc(12px * var(--fs)); }
.sc-main { display: grid; gap: calc(8px * var(--fs)); padding: calc(4px * var(--fs)) calc(10px * var(--fs)) calc(8px * var(--fs)); flex: 1; align-content: start; }
.card { display: flex; gap: calc(8px * var(--fs)); align-items: center; padding: calc(10px * var(--fs)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.card .col { display: grid; gap: calc(1px * var(--fs)); flex: 1; min-width: 0; }
.card .lbl { font-size: calc(8px * var(--fs)); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.card .big { font-size: calc(14px * var(--fs)); font-weight: 700; }
.card .t { font-size: calc(11px * var(--fs)); font-weight: 600; }
.card .s { font-size: calc(10px * var(--fs)); color: var(--muted); }
.card.hero-card { flex-direction: column; align-items: stretch; gap: calc(8px * var(--fs)); }
.card .row { display: flex; gap: calc(8px * var(--fs)); align-items: center; }
.sc .btn { min-height: calc(32px * var(--fs)); padding: 0 calc(12px * var(--fs)); font-size: calc(11px * var(--fs)); border-radius: var(--r-btn); }
.sc .btn.sm { min-height: calc(28px * var(--fs)); padding: 0 calc(10px * var(--fs)); font-size: calc(10px * var(--fs)); }
.sc .btn .ms { font-size: calc(14px * var(--fs)); }
.sc .tile { width: calc(34px * var(--fs)); height: calc(34px * var(--fs)); }
.sc .tile .ms { font-size: calc(17px * var(--fs)); }
.bar { height: calc(6px * var(--fs)); border-radius: 3px; background: var(--neutral); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 47%; background: var(--accent); }
.sec-ttl { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(12px * var(--fs)); font-weight: 600; padding: calc(4px * var(--fs)) calc(2px * var(--fs)) 0; }
.sec-ttl span { font-size: calc(10px * var(--fs)); color: var(--muted); font-weight: 500; }
.list { display: grid; padding: 0 calc(10px * var(--fs)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.list > div { display: flex; align-items: center; gap: calc(8px * var(--fs)); min-height: calc(32px * var(--fs)); font-size: calc(11px * var(--fs)); border-top: 1px solid var(--line); }
.list > div:first-child { border-top: 0; font-weight: 600; justify-content: space-between; }
.list > div:first-child span { color: var(--muted); font-weight: 500; font-size: calc(10px * var(--fs)); }
.list .tm { font-weight: 600; font-variant-numeric: tabular-nums; }
.list .nx { margin-left: auto; padding: calc(1px * var(--fs)) calc(6px * var(--fs)); border-radius: var(--r-btn); background: var(--tonal); color: var(--accent-dark); font-size: calc(9px * var(--fs)); font-weight: 700; }
.tabs { display: flex; justify-content: space-around; padding: calc(6px * var(--fs)) 0 calc(14px * var(--fs)); border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.tabs > div { position: relative; display: grid; justify-items: center; gap: calc(1px * var(--fs)); font-size: calc(8px * var(--fs)); font-weight: 500; color: var(--muted); }
.tabs > div.on { color: var(--accent); font-weight: 700; }
.tabs .ms { font-size: calc(18px * var(--fs)); }
.tabs .dot { position: absolute; top: calc(-2px * var(--fs)); right: calc(2px * var(--fs)); min-width: calc(12px * var(--fs)); height: calc(12px * var(--fs)); padding: 0 calc(3px * var(--fs)); border-radius: 99px; background: var(--danger); color: #fff; font-size: calc(7px * var(--fs)); font-weight: 700; display: grid; place-items: center; }

/* Confirmation screen */
.confirm { flex: 1; display: grid; align-content: center; justify-items: center; gap: calc(9px * var(--fs)); padding: 0 calc(14px * var(--fs)); text-align: center; }
.confirm .ring { width: calc(58px * var(--fs)); height: calc(58px * var(--fs)); border-radius: 50%; background: var(--tonal); color: var(--accent-dark); display: grid; place-items: center; }
.confirm .ring .ms { font-size: calc(28px * var(--fs)); }
.confirm .h { font-size: calc(18px * var(--fs)); font-weight: 700; letter-spacing: -0.01em; }
.confirm .p { font-size: calc(10px * var(--fs)); color: var(--muted); line-height: 1.45; max-width: 22em; }
.confirm .card { width: 100%; text-align: left; }
.confirm-foot { display: grid; gap: calc(4px * var(--fs)); padding: 0 calc(14px * var(--fs)) calc(18px * var(--fs)); }
.sc .btn-filled { background: var(--accent); color: #fff; }
.sc .btn-outlined { color: var(--ink); border-color: var(--line-strong); }
.sc .btn-text { color: var(--accent); }
