/* The homepage's stylesheet (index.html and index-it.html, 2026-11-15, from VIXI's design "VIA
   Homepage redesign"). The document pages keep style.css; nothing here touches them.

   WHAT THE HOMEPAGE LOADS, all of it from this site: this file, one font (Plus Jakarta Sans,
   SIL Open Font License, home/plus-jakarta-sans-OFL.txt), the VIA logo, Apple's App Store
   badge and the connector icons under home/. The demos (the four "Ask VIA" panels, the
   timetable's days, the focus timer, the flashcard, the quiz) have no script: they are radio
   buttons and checkboxes styled with CSS, and the light/dark switch is a checkbox too. The
   page's one script, at the foot of index.html / index-it.html, points the Android links at
   the download on an Android phone. Nothing is remembered between visits and nothing is sent
   anywhere. privacy.html's Cookies section says exactly this, in the lawyer's words (approved
   2026-11-15, legal-review/2026-11-15-android-autodownload.md). A change to what this page
   loads or runs is a change to that paragraph.

   COLOURS are the design's own, light and dark (the design's "Dark" artboards); the dark set
   applies when the system is dark, or when the moon/sun switch flips it. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(home/plus-jakarta-sans.woff2) format("woff2");
}

:root {
  --bg: #F5F3FA;
  --ink: #17152A;
  --ink-2: #3E3B52;
  --body: #4B4860;
  --muted: #6E6A80;
  --muted-2: #77738A;
  --faint: #8B879C;
  --accent: #5A52F3;
  --accent-hover: #3F37D6;
  --brand: #5A52F3;
  --solid: #FFFFFF;
  --dark-fill: #17152A;
  --glass: 255, 255, 255;
  --glass-border: #FFFFFF;
  --line: #EFEDF5;
  --rule: #E6E2F0;
  --rule-2: #DDD8EA;
  --foot-rule: #E2DEEC;
  --chip: #F3F2F6;
  --seg: #F0EFF4;
  --seg-phone: #E8E7EE;
  --search: rgba(110, 100, 160, 0.1);
  --bubble: #E6E3FA;
  --chip-border: rgba(120, 110, 180, 0.14);
  --tint-camera: #EFEDF5;
  --tint-record: #FBE5E8;
  --tint-purple: #ECEAFD;
  --tint-connect: #DFF3EE;
  --ink-connect: #1F7F70;
  --tint-timer: #DDF0F4;
  --track-timer: #E6F3F6;
  --tint-rec: #F9E1E5;
  --tint-green: #DDF6E8;
  --ink-green: #13653A;
  --border-green: #A9E5C3;
  --tint-pink: #FCE4F0;
  --ink-pink: #A81E5D;
  --tint-orange: #FFF0D6;
  --ink-orange: #8A4B06;
  --ink-purple: #4038C9;
  --tint-wrong: #FDE4E6;
  --ink-wrong: #A3243A;
  --border-wrong: #F6B9C1;
  --note: #FBF1C9;
  --note-border: transparent;
  --note-margin: #F0B4A8;
  --note-rule: #E2D7AE;
  --note-shadow: 0 8px 20px rgba(140, 110, 20, 0.1);
  --stripe-1: #EEEBF6;
  --stripe-2: #E5E1F0;
  --skel: #E8E5F0;
  --map-root: #17152A;
  --map-a: #FFF7ED; --map-a-b: #FCD9B6;
  --map-b: #EEF2FF; --map-b-b: #C7D2FE;
  --map-c: #F0FDF4; --map-c-b: #BBF7D0;
  --label-green: #15803D;
  --label-orange: #B45309;
  --fc-border: #FCD9B6;
  --phone: #15131C;
  --screen-1: #ECE6F8; --screen-2: #F3E9F3; --screen-3: #E8E8F8;
  --wave-off: #5E5A72;
  --math-1: #F8D3E8; --math-2: #FBEAF4; --math-3: rgba(255, 255, 255, 0.7);
  --math-meta: #5E5A72;
  --tab-on-bg: #FFFFFF;
  --tab-on-border: #FFFFFF;
  --tab-on-shadow: 0 1px 2px rgba(40, 30, 90, 0.05), 0 14px 36px rgba(70, 50, 150, 0.12);
  --privacy-card: #ECEAFD;
  --privacy-text: #3E3B52;
  --schools-card: #17152A;
  --toggle-bg: rgba(23, 21, 42, 0.06);
  --hero-glow-1: rgba(214, 206, 252, 0.95); --hero-glow-1-0: rgba(214, 206, 252, 0);
  --hero-glow-2: rgba(248, 219, 239, 0.9); --hero-glow-2-0: rgba(248, 219, 239, 0);
  --lib-glow-1: rgba(206, 240, 229, 0.85); --lib-glow-1-0: rgba(206, 240, 229, 0);
  --lib-glow-2: rgba(226, 220, 252, 0.7); --lib-glow-2-0: rgba(226, 220, 252, 0);
  --show-moon: inline; --show-sun: none;
  color-scheme: light;
}

/* The dark set, written twice: once for a dark system with the switch untouched, once for a
   light system with the switch flipped. */
@media (prefers-color-scheme: dark) {
  :root:not(:has(#theme:checked)) {
    --bg: #0F0E17; --ink: #F2F0FA; --ink-2: #CFCBE0; --body: #B9B5CC; --muted: #9C98B0;
    --muted-2: #938FA8; --faint: #858199; --accent: #8C86FF; --accent-hover: #B3AEFF;
    --solid: #1D1B2A; --dark-fill: #2A2740; --glass: 32, 30, 46;
    --glass-border: rgba(255, 255, 255, 0.08); --line: #2C2A38; --rule: #34313F;
    --rule-2: #34313F; --foot-rule: #2C2A38; --chip: #2A2838; --seg: #24222F;
    --seg-phone: #24222F; --search: rgba(255, 255, 255, 0.08); --bubble: #2F2B55;
    --tint-camera: #2A2838; --tint-record: #3A2027; --tint-purple: #26234A;
    --tint-connect: #163530; --ink-connect: #5FD3C0; --tint-timer: #15333A;
    --track-timer: #1C3238; --tint-rec: #3A2027; --tint-green: #16372A; --ink-green: #8FE3B5;
    --border-green: #2A6A4A; --tint-pink: #3A1E2E; --ink-pink: #F7A8CC; --tint-orange: #3A2B14;
    --ink-orange: #F7C987; --ink-purple: #B3AEFF; --tint-wrong: #3D1D22; --ink-wrong: #F5A3AE;
    --border-wrong: #6E2E38; --note: #1C1B24; --note-border: rgba(255, 255, 255, 0.06);
    --note-margin: #7E3A40; --note-rule: #363542; --note-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --stripe-1: #252333; --stripe-2: #2C2A3B; --skel: #34313F; --map-root: #2A2740;
    --map-a: #33261A; --map-a-b: #5A3C1E; --map-b: #1F2240; --map-b-b: #3A3F7A;
    --map-c: #16301F; --map-c-b: #225A38; --label-green: #5FD58F; --label-orange: #F2A65A;
    --fc-border: #5A3C1E; --phone: #2B2938; --screen-1: #1A1828; --screen-2: #201A26;
    --screen-3: #171726; --wave-off: #A9A5BC; --math-1: #3A1E30; --math-2: #241A27;
    --math-3: rgba(32, 30, 46, 0.7); --math-meta: #A9A5BC; --tab-on-bg: #24223A;
    --tab-on-border: rgba(255, 255, 255, 0.1); --tab-on-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    --privacy-card: #26234A; --privacy-text: #CFCBE0; --schools-card: #2A2740;
    --toggle-bg: rgba(255, 255, 255, 0.08);
    --hero-glow-1: rgba(90, 82, 243, 0.26); --hero-glow-1-0: rgba(90, 82, 243, 0);
    --hero-glow-2: rgba(242, 94, 156, 0.12); --hero-glow-2-0: rgba(242, 94, 156, 0);
    --lib-glow-1: rgba(34, 168, 98, 0.1); --lib-glow-1-0: rgba(34, 168, 98, 0);
    --lib-glow-2: rgba(90, 82, 243, 0.14); --lib-glow-2-0: rgba(90, 82, 243, 0);
    --show-moon: none; --show-sun: inline; color-scheme: dark;
  }
}
@media (prefers-color-scheme: light) {
  :root:has(#theme:checked) {
    --bg: #0F0E17; --ink: #F2F0FA; --ink-2: #CFCBE0; --body: #B9B5CC; --muted: #9C98B0;
    --muted-2: #938FA8; --faint: #858199; --accent: #8C86FF; --accent-hover: #B3AEFF;
    --solid: #1D1B2A; --dark-fill: #2A2740; --glass: 32, 30, 46;
    --glass-border: rgba(255, 255, 255, 0.08); --line: #2C2A38; --rule: #34313F;
    --rule-2: #34313F; --foot-rule: #2C2A38; --chip: #2A2838; --seg: #24222F;
    --seg-phone: #24222F; --search: rgba(255, 255, 255, 0.08); --bubble: #2F2B55;
    --tint-camera: #2A2838; --tint-record: #3A2027; --tint-purple: #26234A;
    --tint-connect: #163530; --ink-connect: #5FD3C0; --tint-timer: #15333A;
    --track-timer: #1C3238; --tint-rec: #3A2027; --tint-green: #16372A; --ink-green: #8FE3B5;
    --border-green: #2A6A4A; --tint-pink: #3A1E2E; --ink-pink: #F7A8CC; --tint-orange: #3A2B14;
    --ink-orange: #F7C987; --ink-purple: #B3AEFF; --tint-wrong: #3D1D22; --ink-wrong: #F5A3AE;
    --border-wrong: #6E2E38; --note: #1C1B24; --note-border: rgba(255, 255, 255, 0.06);
    --note-margin: #7E3A40; --note-rule: #363542; --note-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    --stripe-1: #252333; --stripe-2: #2C2A3B; --skel: #34313F; --map-root: #2A2740;
    --map-a: #33261A; --map-a-b: #5A3C1E; --map-b: #1F2240; --map-b-b: #3A3F7A;
    --map-c: #16301F; --map-c-b: #225A38; --label-green: #5FD58F; --label-orange: #F2A65A;
    --fc-border: #5A3C1E; --phone: #2B2938; --screen-1: #1A1828; --screen-2: #201A26;
    --screen-3: #171726; --wave-off: #A9A5BC; --math-1: #3A1E30; --math-2: #241A27;
    --math-3: rgba(32, 30, 46, 0.7); --math-meta: #A9A5BC; --tab-on-bg: #24223A;
    --tab-on-border: rgba(255, 255, 255, 0.1); --tab-on-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    --privacy-card: #26234A; --privacy-text: #CFCBE0; --schools-card: #2A2740;
    --toggle-bg: rgba(255, 255, 255, 0.08);
    --hero-glow-1: rgba(90, 82, 243, 0.26); --hero-glow-1-0: rgba(90, 82, 243, 0);
    --hero-glow-2: rgba(242, 94, 156, 0.12); --hero-glow-2-0: rgba(242, 94, 156, 0);
    --lib-glow-1: rgba(34, 168, 98, 0.1); --lib-glow-1-0: rgba(34, 168, 98, 0);
    --lib-glow-2: rgba(90, 82, 243, 0.14); --lib-glow-2-0: rgba(90, 82, 243, 0);
    --show-moon: none; --show-sun: inline; color-scheme: dark;
  }
  :root:has(#theme:checked) { --show-moon: none; }
}
@media (prefers-color-scheme: dark) {
  :root:has(#theme:checked) { --show-moon: inline; --show-sun: none; color-scheme: light; }
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, label:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px;
}
h1, h2, h3, p { margin: 0; }
img { display: block; }
svg { flex: none; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  clip-path: inset(50%); white-space: nowrap;
}
/* The demos' inputs: reachable by keyboard and screen reader, never seen. FIXED, not absolute
   (2026-11-16): tapping a label focuses its input, and iOS scrolled the page to wherever the
   input sat (the Ask VIA radios sat above the tabs, so a tab tap jumped the page up). A fixed
   input is always on screen, so focusing it scrolls nothing. */
.ctl { position: fixed; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

.page {
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(900px 620px at 88% -120px, var(--hero-glow-1), var(--hero-glow-1-0) 70%),
    radial-gradient(760px 560px at 4% 160px, var(--hero-glow-2), var(--hero-glow-2-0) 70%),
    var(--bg);
  background-repeat: no-repeat;
}
.wrap { max-width: 1160px; margin: 0 auto; }
.glass {
  background: rgba(var(--glass), 0.62);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px rgba(40, 30, 90, 0.04), 0 16px 40px rgba(70, 50, 150, 0.07);
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.h2 {
  font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.04em; text-wrap: balance;
}
.lede { font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }

/* ---------- header ---------- */

.top { position: sticky; top: 14px; z-index: 50; padding: 0 16px; margin-top: 14px; }
.bar {
  max-width: 1160px; margin: 0 auto; height: 60px; padding: 0 8px 0 16px; border-radius: 30px;
  background: rgba(var(--glass), 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border); box-shadow: 0 8px 30px rgba(70, 50, 150, 0.08);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.nav {
  flex: 1 1 0; min-width: 0; height: 22px; overflow: hidden; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 6px 28px; font-size: 14.5px; font-weight: 600;
}
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.theme-switch {
  flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--toggle-bg);
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.theme-switch .moon { display: var(--show-moon); }
.theme-switch .sun { display: var(--show-sun); }
#theme:focus-visible ~ .page .theme-switch { outline: 2px solid var(--accent); outline-offset: 3px; }
.lang { flex: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.lang b { color: var(--ink); }
.get {
  flex: none; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--brand);
  color: #FFFFFF; font-size: 14.5px; font-weight: 700; display: flex; align-items: center;
}
.get:hover { color: #FFFFFF; background: #4A42E6; }
@media (max-width: 860px) {
  .nav { display: none; }
  .bar { justify-content: space-between; gap: 12px; }
  .brand { margin-right: auto; }
}
@media (max-width: 400px) {
  .bar { gap: 8px; padding-left: 12px; }
  .get { padding: 0 14px; }
  .brand span { display: none; }
}

/* ---------- hero ---------- */

.hero {
  padding: 76px 24px 0; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 24px;
}
.pill {
  display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 20px;
  background: rgba(var(--glass), 0.72); border: 1px solid var(--glass-border);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-align: left;
}
.pill:hover { color: var(--ink); }
.pill b {
  flex: none; padding: 4px 10px; border-radius: 14px; background: var(--brand); color: #FFFFFF;
  font-size: 12px; font-weight: 700;
}
.hero h1 {
  max-width: 960px; font-size: clamp(46px, 7.6vw, 96px); line-height: 0.98; font-weight: 800;
  letter-spacing: -0.048em; text-wrap: balance;
}
.hero h1 span { color: var(--accent); }
.hero .sub {
  max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--body);
  text-wrap: pretty;
}
.downloads { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.badge { display: block; height: 58px; border-radius: 12px; }
.badge img { height: 58px; width: auto; }
.android {
  height: 58px; padding: 0 24px; border-radius: 18px; background: rgba(var(--glass), 0.8);
  border: 1px solid var(--glass-border); box-shadow: 0 6px 20px rgba(70, 50, 150, 0.08);
  color: var(--ink); display: flex; align-items: center; gap: 12px; text-align: left;
}
.android:hover { color: var(--ink); }
.two-line { display: flex; flex-direction: column; line-height: 1.15; }
.two-line small { font-size: 11.5px; color: var(--muted); }
.two-line strong { font-size: 18px; font-weight: 700; }
.fine { font-size: 13.5px; color: var(--muted); }

.phones {
  width: 100%; max-width: 1240px; height: 600px; margin-top: 40px; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start; text-align: left;
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
}
.phone {
  flex: none; position: relative; z-index: 2; width: 300px; height: 626px; border-radius: 54px;
  background: var(--phone); padding: 9px; box-shadow: 0 50px 90px -30px rgba(60, 40, 140, 0.5);
}
.phone.left, .phone.right {
  z-index: 1; margin-top: 84px; box-shadow: 0 50px 80px -30px rgba(60, 40, 140, 0.4);
}
.phone.left { margin-right: -44px; transform: rotate(-5deg); }
.phone.right { margin-left: -44px; transform: rotate(5deg); }
.screen {
  position: relative; height: 100%; border-radius: 45px; overflow: hidden;
  background: linear-gradient(170deg, var(--screen-1) 0%, var(--screen-2) 50%, var(--screen-3) 100%);
}
.screen.plain { background: var(--solid); }
.island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 86px;
  height: 25px; border-radius: 13px; background: #000000;
}
.status {
  height: 46px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 32px; font-size: 13px; font-weight: 700;
}
.status i { width: 22px; height: 11px; border-radius: 3px; background: var(--dark-fill); }
.ps { padding: 6px 15px 0; display: flex; flex-direction: column; gap: 11px; }
.ps-date { font-size: 11px; color: var(--faint); }
.ps-title { font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.avatar {
  width: 38px; height: 38px; border-radius: 19px;
  background: linear-gradient(135deg, #6E56F0, #E07BC6); color: #FFFFFF; font-size: 16px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ps-search {
  height: 34px; border-radius: 17px; background: var(--search); display: flex;
  align-items: center; gap: 8px; padding: 0 12px; font-size: 12px; color: var(--faint);
}
.ps-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 9px; }
.ps-card {
  border-radius: 18px; background: rgba(var(--glass), 0.62); border: 1px solid var(--glass-border);
}
.ps-today { grid-row: span 2; padding: 11px; display: flex; flex-direction: column; gap: 9px; }
.ps-label {
  display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--muted-2);
}
.ps-row { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; }
.ps-row .d { width: 7px; height: 7px; border-radius: 4px; flex: none; }
.ps-row .n { flex: 1; }
.ps-row .t { color: var(--faint); font-weight: 500; }
.ps-tile { padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ps-tile .ic {
  width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center;
}
.ps-tile .big { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.ps-tile small { font-size: 9px; color: var(--muted-2); font-weight: 500; }
.rec-dot {
  width: 10px; height: 10px; border-radius: 5px; background: #EC6F6F;
  box-shadow: 0 0 0 3px var(--tint-rec), 0 0 0 4.5px #EC9A9A;
}
.ps-h { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.ps-h span { color: var(--faint); font-weight: 500; }
.note {
  position: relative; border-radius: 16px; background: var(--note);
  border: 1px solid var(--note-border); padding: 11px 14px 13px 26px; display: flex;
  flex-direction: column; gap: 7px;
}
.note::before, .note::after {
  content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 1px;
  background: var(--note-margin);
}
.note::after { left: 15px; }
.note b { font-size: 12.5px; font-weight: 700; }
.note hr { margin: 0; border: 0; height: 1px; background: var(--note-rule); }
.note small { font-size: 10.5px; color: var(--muted-2); }
.subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.subj {
  height: 54px; border-radius: 16px; color: #FFFFFF; display: flex; flex-direction: column;
  justify-content: center; padding: 0 12px;
}
.subj b { font-size: 13px; font-weight: 700; }
.subj small { font-size: 10px; opacity: 0.9; }
.g-physics { background: linear-gradient(135deg, #7068FF, #4E44E6); }
.g-math { background: linear-gradient(135deg, #FF9BCB, #F2629F); }
.g-history { background: linear-gradient(135deg, #FFB066, #F58A2E); }
.g-chem { background: linear-gradient(135deg, #46D99A, #22A862); }
.g-italian { background: linear-gradient(135deg, #4FCBE0, #2A9FB8); }
.g-english { background: linear-gradient(135deg, #DCC08A, #B8955A); }
.new-chat {
  position: absolute; left: 14px; right: 14px; bottom: 16px; height: 46px; border-radius: 23px;
  background: var(--brand); color: #FFFFFF; box-shadow: 0 10px 24px rgba(90, 82, 243, 0.4);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px;
  font-weight: 700;
}
/* left phone: the timetable */
.pl { padding: 8px 18px 0; display: flex; flex-direction: column; gap: 12px; }
.round-btn {
  width: 34px; height: 34px; border-radius: 17px; background: rgba(var(--glass), 0.85);
  border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center;
}
.pl-date { font-size: 11px; font-weight: 600; color: var(--accent); }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; }
.pl-head b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.pl-head span { font-size: 13px; font-weight: 600; color: var(--accent); }
.pl-days { display: flex; gap: 7px; margin: 0 -18px; padding: 0 0 0 4px; overflow: hidden; }
.pl-days span {
  flex: none; height: 34px; padding: 0 15px; border-radius: 17px;
  background: rgba(var(--glass), 0.7); border: 1px solid var(--chip-border); font-size: 13px;
  font-weight: 500; display: flex; align-items: center;
}
.pl-days span.on {
  padding: 0 17px; background: var(--brand); border-color: var(--brand); color: #FFFFFF;
  font-weight: 700;
}
.pl-card {
  border-radius: 24px; background: rgba(var(--glass), 0.62); border: 1px solid var(--glass-border);
  padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 14px;
}
.tl-head {
  display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--faint);
}
.tl-head span { letter-spacing: 0; font-weight: 500; }
.pl-class { display: flex; gap: 12px; }
.pl-class i {
  flex: none; width: 11px; height: 11px; margin-top: 4px; border-radius: 6px;
  box-shadow: 0 0 0 4px var(--ring);
}
.pl-class div { display: flex; flex-direction: column; padding-bottom: 6px; }
.pl-class b { font-size: 16px; font-weight: 700; }
.pl-class small { font-size: 11px; color: var(--faint); }
/* right phone: a new chat */
.pr-top { padding: 6px 14px 0; display: flex; justify-content: space-between; align-items: center; }
.float {
  height: 38px; min-width: 38px; border-radius: 19px; background: var(--solid);
  box-shadow: 0 4px 14px rgba(30, 20, 60, 0.08); display: flex; align-items: center;
  justify-content: center; gap: 7px; font-size: 14px; font-weight: 700;
}
.float.subject { padding: 0 14px; }
.pr-hello {
  margin-top: 128px; padding: 0 22px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px;
}
.pr-hello img { width: 54px; height: 54px; }
.pr-hello b { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.pr-hello span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.pr-bottom { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; flex-direction: column; gap: 9px; }
.pr-chips { display: flex; gap: 7px; padding-left: 12px; overflow: hidden; }
.pr-chips span {
  flex: none; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--chip);
  display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
}
.composer {
  border-radius: 26px; background: var(--solid); padding: 14px 12px 12px; display: flex;
  flex-direction: column; gap: 12px;
}
.composer .ph { padding-left: 8px; font-size: 15px; color: var(--faint); }
.composer .row { display: flex; align-items: center; gap: 8px; }
.composer .plus {
  width: 40px; height: 40px; border-radius: 20px; background: var(--chip); display: flex;
  align-items: center; justify-content: center;
}
.composer .voice {
  margin-left: auto; width: 40px; height: 40px; border-radius: 20px; background: var(--dark-fill);
  display: flex; align-items: center; justify-content: center;
}
.seg { display: flex; padding: 3px; border-radius: 18px; background: var(--seg); font-size: 13px; font-weight: 600; }
.seg span { padding: 7px 13px; color: var(--muted); }
.seg span.on {
  border-radius: 15px; background: var(--solid); color: var(--accent);
  box-shadow: 0 1px 3px rgba(30, 20, 60, 0.08);
}
.composer.small { margin: 0 10px; border-radius: 22px; background: var(--chip); padding: 12px 10px 10px; gap: 10px; }
.composer.small .ph { padding-left: 6px; font-size: 13px; }
.composer.small .row { gap: 7px; }
.composer.small .plus { width: 34px; height: 34px; background: var(--solid); }
.composer.small .voice { width: 34px; height: 34px; }
.composer.small .seg { border-radius: 16px; background: var(--seg-phone); font-size: 11.5px; }
.composer.small .seg span { padding: 6px 10px; }
.composer.small .seg span.on { border-radius: 13px; box-shadow: none; }

/* ---------- Ask VIA ---------- */

.ask { position: relative; padding: 110px 24px 100px; }
.ask .anchor { position: absolute; top: 110px; left: 0; width: 1px; height: 1px; }
.ask-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.ask-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ask-copy .lede b { color: var(--ink); }
.tabs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tab {
  cursor: pointer; padding: 14px 16px; border-radius: 22px; display: flex; align-items: center;
  gap: 14px; background: transparent; border: 1px solid transparent;
  transition: background 0.2s, box-shadow 0.2s;
}
.tab .ic {
  flex: none; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center;
  justify-content: center;
}
.tab .two { display: flex; flex-direction: column; gap: 2px; }
.tab .two b { font-size: 17px; font-weight: 700; }
.tab .two span { font-size: 14.5px; color: var(--muted); }
.tab-on { background: var(--tab-on-bg); border-color: var(--tab-on-border); box-shadow: var(--tab-on-shadow); }

.demo {
  flex: 1.25 1 480px; min-width: 0; min-height: 580px; border-radius: 40px;
  background: rgba(var(--glass), 0.6); border: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px rgba(40, 30, 90, 0.04), 0 30px 70px rgba(70, 50, 150, 0.1);
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
}
.panels { flex: 1; display: grid; }
.panel {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 18px; opacity: 0;
  visibility: hidden;
}
.panel-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.panel-subject { display: flex; justify-content: center; }
.panel-subject span {
  height: 40px; padding: 0 16px; border-radius: 20px; background: var(--solid);
  box-shadow: 0 4px 14px rgba(30, 20, 60, 0.06); display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
}
.panel-subject i { width: 9px; height: 9px; border-radius: 5px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.me {
  align-self: flex-end; padding: 11px 16px; border-radius: 20px 20px 6px 20px;
  background: var(--bubble); font-size: 15px; line-height: 1.4;
}
.via-says { font-size: 15.5px; line-height: 1.55; }
/* The photographed exercise: a page of a textbook, slightly tilted, its exercise the one VIA
   solves below it. Paper stays paper-coloured in dark mode, as a photo would. */
.photo {
  width: 230px; max-width: 100%; margin: 6px 6px 4px 0; padding: 16px 18px 18px;
  border-radius: 6px; transform: rotate(-2.5deg);
  background: repeating-linear-gradient(180deg, transparent 0 23px, rgba(70, 110, 170, 0.16) 23px 24px), #FBF8F1;
  box-shadow: 0 1px 2px rgba(40, 30, 20, 0.12), 0 12px 26px rgba(40, 30, 60, 0.18);
  color: #2A2733; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 24px;
}
.photo b { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; color: #B4232F; }
.photo .eq { display: block; margin-top: 4px; font-size: 19px; font-style: italic; letter-spacing: 0.02em; }
.file {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px;
  background: var(--solid); border: 1px solid var(--rule); font-size: 13px; font-weight: 600;
}
.sum { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; line-height: 1.4; color: var(--body); }
.mine { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 80%; }
.step {
  border-radius: 18px; background: var(--solid); padding: 13px 16px; display: flex; gap: 12px;
  align-items: flex-start;
}
.step .num {
  flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--tint-purple);
  color: var(--accent); font-size: 13px; font-weight: 800; display: flex; align-items: center;
  justify-content: center;
}
.step .two { display: flex; flex-direction: column; gap: 4px; }
.step .two b { font-size: 15px; font-weight: 700; }
.step code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; color: var(--body); white-space: pre-wrap; }
.step.check { background: var(--tint-green); align-items: center; }
.step.check .num { background: #22A862; color: #FFFFFF; font-size: 14px; }
.step.check span { font-size: 14.5px; color: var(--ink-green); }
.recorder {
  border-radius: 26px; background: var(--dark-fill); color: #FFFFFF; padding: 22px; display: flex;
  flex-direction: column; gap: 16px;
}
.recorder .head { display: flex; align-items: center; gap: 12px; }
.recorder .stop {
  width: 44px; height: 44px; border-radius: 22px; background: #E5484D; display: flex;
  align-items: center; justify-content: center;
}
.recorder .stop i { width: 14px; height: 14px; border-radius: 3px; background: #FFFFFF; }
.recorder .two { display: flex; flex-direction: column; }
.recorder .two b { font-size: 16px; font-weight: 700; }
.recorder .two span, .recorder > span { font-size: 13px; color: #B5B1C4; }
.recorder > span { font-size: 13.5px; }
.wave { display: flex; align-items: center; gap: 4px; height: 52px; }
.wave i { width: 5px; border-radius: 3px; background: #F58BA0; }
.wave i.off { background: var(--wave-off); }
.bullets { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; line-height: 1.55; }
.bullets li { display: flex; gap: 10px; list-style: none; }
.bullets li::before { content: "·"; color: var(--accent); font-weight: 800; }
.bullets ul { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.skill { border-radius: 20px; background: var(--solid); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.tag { align-self: flex-start; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.tag.pink { background: var(--tint-pink); color: var(--ink-pink); }
.tag.green { background: var(--tint-green); color: var(--ink-green); }
.tag.orange { background: var(--tint-orange); color: var(--ink-orange); }
.tag.purple { background: var(--tint-purple); color: var(--ink-purple); }
.skel { height: 7px; border-radius: 4px; background: var(--skel); }
.mini-map { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mini-map div { display: flex; gap: 5px; }
.mini-map span { padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #FFFFFF; }
.mini-map .mm-root { background: var(--map-root); }
.mini-map .mm-a { background: #B45309; }
.mini-map .mm-b { background: #4338CA; }
.mini-map .mm-c { background: #15803D; }
.skill .count { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.apps {
  border-radius: 22px; background: var(--solid); padding: 6px 16px; display: flex; flex-direction: column;
  margin: 0; list-style: none;
}
.apps li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.apps li:last-child { border-bottom: 0; }
.apps .logo { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.apps .tile {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--solid);
  border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center;
}
.apps .tile img { width: 22px; height: 22px; }
.apps .pair { flex: none; position: relative; width: 36px; height: 36px; margin-right: 8px; }
.apps .pair .badge-r {
  position: absolute; right: -10px; bottom: -8px; width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--solid); box-shadow: 0 0 0 0.5px rgba(21, 19, 31, 0.18);
}
/* Share to VIA, Apple Calendar and Apple Reminders: VIA's own drawn tiles, as the app's
   ConnectorChrome.tsx draws them, NOT Apple's app icons (Apple's guidelines forbid those). */
.ct {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.ct-share { background: #5A52FF; }
.ct-cal, .ct-rem { background: #FFFFFF; border: 1px solid rgba(21, 19, 31, 0.10); }
.ct-cal { position: relative; flex-direction: column; justify-content: flex-start; }
.ct-cal b {
  width: 100%; height: 11px; background: #FF3B30; color: #FFFFFF; font-size: 6.5px;
  font-weight: 700; letter-spacing: 0.02em; line-height: 11px; text-align: center;
}
.ct-cal span { transform: translateX(-3px); color: #1C1C1E; font-size: 16px; font-weight: 300; line-height: 22px; font-variant-numeric: tabular-nums; }
.ct-rem { flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 4px; }
.ct-rem i { position: relative; width: 3px; height: 3px; border-radius: 2px; }
.ct-rem i::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 8px; height: 1px;
  border-radius: 1px; background: #D1D1D6;
}
.apps .pair .ct-rem { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--solid); }
.apps .pair .ct-rem { padding-left: 3px; gap: 1.5px; }
.apps .pair .ct-rem i::after { left: 4px; width: 6px; }
.apps .two { flex: 1; display: flex; flex-direction: column; }
.apps .two b { font-size: 15px; font-weight: 700; }
.apps .two span { font-size: 13px; color: var(--muted); }
.apps .on { font-size: 12.5px; font-weight: 700; color: #22A862; }
.apps .connect { font-size: 12.5px; font-weight: 700; color: var(--accent); }

/* The four panels take turns until one is chosen; a chosen one (or the hero's link to the
   connectors, #to-connect, a :target on a plain anchor, not on a radio) stays. */
.panel, .tab { animation: 22s linear infinite both; }
.panel { animation-name: panel-turn; }
.tab { animation-name: tab-turn; }
/* Negative delays: every turn is already running at load, so none starts "on" while it waits. */
.p-record, .t-record { animation-delay: -16.5s; }
.p-skills, .t-skills { animation-delay: -11s; }
.p-connect, .t-connect { animation-delay: -5.5s; }
@keyframes panel-turn {
  0% { opacity: 0; visibility: visible; }
  2%, 23% { opacity: 1; visibility: visible; }
  25%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes tab-turn {
  0%, 24.9% {
    background: var(--tab-on-bg); border-color: var(--tab-on-border); box-shadow: var(--tab-on-shadow);
  }
  25%, 100% { background: transparent; border-color: transparent; box-shadow: none; }
}
.ask:has(.ctl:checked) .panel, .ask:has(.ctl:checked) .tab,
.ask:has(#to-connect:target) .panel, .ask:has(#to-connect:target) .tab { animation: none; }
.ask:has(#to-connect:target) .panel, .ask:has(.ctl:checked) .panel { opacity: 0; visibility: hidden; }
#to-connect:target ~ .wrap .p-connect { opacity: 1; visibility: visible; }
#to-connect:target ~ .wrap .t-connect {
  background: var(--tab-on-bg); border-color: var(--tab-on-border); box-shadow: var(--tab-on-shadow);
}
/* A choice made after following the link wins over the link. */
.ask:has(.ctl:checked) .panel { opacity: 0 !important; visibility: hidden !important; }
.ask:has(.ctl:checked) .tab { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
#ask-camera:checked ~ .wrap .p-camera, #ask-record:checked ~ .wrap .p-record,
#ask-skills:checked ~ .wrap .p-skills, #ask-connect:checked ~ .wrap .p-connect {
  opacity: 1 !important; visibility: visible !important;
}
#ask-camera:checked ~ .wrap .t-camera, #ask-record:checked ~ .wrap .t-record,
#ask-skills:checked ~ .wrap .t-skills, #ask-connect:checked ~ .wrap .t-connect {
  background: var(--tab-on-bg) !important; border-color: var(--tab-on-border) !important;
  box-shadow: var(--tab-on-shadow) !important;
}
#ask-camera:focus-visible ~ .wrap .t-camera, #ask-record:focus-visible ~ .wrap .t-record,
#ask-skills:focus-visible ~ .wrap .t-skills, #ask-connect:focus-visible ~ .wrap .t-connect {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .panel, .tab { animation: none; }
  .ask:not(:has(.ctl:checked)):not(:has(#to-connect:target)) .p-camera { opacity: 1; visibility: visible; }
  .ask:not(:has(.ctl:checked)):not(:has(#to-connect:target)) .t-camera {
    background: var(--tab-on-bg); border-color: var(--tab-on-border); box-shadow: var(--tab-on-shadow);
  }
}

/* ---------- Library ---------- */

.library {
  padding: 40px 24px 110px;
  background:
    radial-gradient(700px 500px at 0% 90%, var(--lib-glow-1), var(--lib-glow-1-0) 70%),
    radial-gradient(600px 400px at 100% 10%, var(--lib-glow-2), var(--lib-glow-2-0) 70%);
  background-repeat: no-repeat;
}
.col { display: flex; flex-direction: column; gap: 44px; }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { min-width: 0; border-radius: 34px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--body); }
.icon-sq { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; }
.c-timetable { flex: 2 1 560px; flex-direction: row; flex-wrap: wrap; gap: 28px; }
.c-timetable .copy { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.c-timetable .copy h3 { font-size: 24px; }
.c-timetable .copy p { font-size: 15.5px; }
.c-timetable .try { margin-top: auto; font-size: 13.5px; color: var(--muted); }
.tt {
  position: relative; flex: 1.4 1 300px; min-width: 0; border-radius: 26px;
  background: rgba(var(--glass), 0.85); border: 1px solid var(--glass-border); padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
}
.tt-days { display: flex; gap: 6px; flex-wrap: wrap; }
.tt-days label {
  cursor: pointer; height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px;
  font-weight: 600; background: var(--solid); color: var(--ink-2); border: 1px solid var(--rule);
  display: flex; align-items: center;
}
.tt-list { display: none; flex-direction: column; gap: 18px; }
.tt-head {
  display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--muted-2);
}
.tt-head span { letter-spacing: 0; font-weight: 500; }
.tt-list ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tt-list li { display: flex; gap: 16px; }
.tt-rail { flex: none; width: 16px; display: flex; flex-direction: column; align-items: center; }
.tt-rail i { flex: none; width: 13px; height: 13px; margin-top: 6px; border-radius: 7px; box-shadow: 0 0 0 5px var(--ring); }
.tt-rail u { flex: 1; width: 2px; margin-top: 9px; background: var(--rule); }
.tt-list li:last-child .tt-rail u { display: none; }
.tt-list .two { display: flex; flex-direction: column; gap: 1px; padding-bottom: 16px; }
.tt-list .two b { font-size: 18px; font-weight: 700; }
.tt-list .two span { font-size: 13.5px; color: var(--muted-2); }
#day-mon:checked ~ .tt-mon, #day-tue:checked ~ .tt-tue, #day-wed:checked ~ .tt-wed,
#day-thu:checked ~ .tt-thu, #day-fri:checked ~ .tt-fri { display: flex; }
#day-mon:checked ~ .tt-days [for=day-mon], #day-tue:checked ~ .tt-days [for=day-tue],
#day-wed:checked ~ .tt-days [for=day-wed], #day-thu:checked ~ .tt-days [for=day-thu],
#day-fri:checked ~ .tt-days [for=day-fri] { background: var(--brand); color: #FFFFFF; border-color: var(--brand); }
#day-mon:focus-visible ~ .tt-days [for=day-mon], #day-tue:focus-visible ~ .tt-days [for=day-tue],
#day-wed:focus-visible ~ .tt-days [for=day-wed], #day-thu:focus-visible ~ .tt-days [for=day-thu],
#day-fri:focus-visible ~ .tt-days [for=day-fri] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The focus timer: a CSS countdown. --s counts the seconds down while "Start" is ticked and
   "Pause" is not; "Reset" is the form's own reset, which unticks both. */
@property --s { syntax: "<integer>"; inherits: true; initial-value: 1500; }
@property --m { syntax: "<integer>"; inherits: true; initial-value: 25; }
@keyframes count { from { --s: 1500; } to { --s: 0; } }
@keyframes drain { from { width: 100%; } to { width: 0%; } }
.c-timer { flex: 1 1 300px; align-items: center; text-align: center; gap: 12px; margin: 0; }
.c-timer .icon-sq { background: var(--tint-timer); }
.clock {
  --s: 1500; --m: calc((var(--s) - 30) / 60);
  counter-reset: mm var(--m) ss calc(var(--s) - var(--m) * 60);
  font-size: 72px; line-height: 1; font-weight: 800; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; margin-top: 8px;
}
.clock::after { content: counter(mm, decimal-leading-zero) ":" counter(ss, decimal-leading-zero); }
.c-timer .label { font-size: 16px; font-weight: 600; color: var(--muted); }
.track { width: 100%; max-width: 220px; height: 6px; border-radius: 3px; background: var(--track-timer); overflow: hidden; }
.track i { display: block; height: 100%; width: 100%; border-radius: 3px; background: #2BB3C9; }
.c-timer .buttons { display: flex; gap: 8px; margin-top: 6px; }
.btn {
  font: inherit; cursor: pointer; height: 44px; padding: 0 22px; border-radius: 22px; border: none;
  background: var(--brand); color: #FFFFFF; font-size: 15px; font-weight: 700; display: flex;
  align-items: center;
}
.btn.ghost { padding: 0 18px; border: 1px solid var(--rule); background: var(--solid); color: var(--ink); font-weight: 600; }
.b-pause, .b-resume { display: none; }
#t-go:checked ~ .clock, #t-go:checked ~ .track i {
  animation: 1500s linear forwards; animation-play-state: running;
}
#t-go:checked ~ .clock { animation-name: count; }
#t-go:checked ~ .track i { animation-name: drain; }
#t-go:checked ~ #t-hold:checked ~ .clock, #t-go:checked ~ #t-hold:checked ~ .track i { animation-play-state: paused; }
#t-go:checked ~ .buttons .b-start { display: none; }
#t-go:checked ~ #t-hold:not(:checked) ~ .buttons .b-pause { display: flex; }
#t-go:checked ~ #t-hold:checked ~ .buttons .b-resume { display: flex; }
#t-go:focus-visible ~ .buttons .b-start, #t-hold:focus-visible ~ .buttons .b-pause,
#t-hold:focus-visible ~ .buttons .b-resume { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-timer p { margin-top: auto; padding-top: 10px; font-size: 14.5px; line-height: 1.55; }

.c-rec, .c-notes, .c-search { flex: 1 1 300px; }
.c-rec .row { display: flex; align-items: center; gap: 14px; }
.c-rec .icon-sq { background: var(--tint-rec); }
.c-rec .rec-dot { width: 20px; height: 20px; border-radius: 10px; box-shadow: 0 0 0 5px var(--tint-rec), 0 0 0 7.5px #EC9A9A; }
.c-rec .row b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.note.big { padding: 16px 18px 18px 34px; gap: 9px; transform: rotate(-1.5deg); box-shadow: var(--note-shadow); border-radius: 20px; }
.note.big::before { left: 16px; }
.note.big::after { left: 20px; }
.note.big b { font-size: 17px; }
.note.big small { font-size: 13px; color: var(--muted); }
.card h3.after { margin-top: 6px; }
.find { display: flex; flex-direction: column; gap: 8px; }
.find .q {
  height: 46px; border-radius: 23px; background: var(--search); display: flex; align-items: center;
  gap: 10px; padding: 0 16px; font-size: 15px;
}
.find .q i { width: 2px; height: 18px; background: var(--accent); }
.find ul { margin: 0; list-style: none; border-radius: 18px; background: var(--solid); padding: 4px 14px; display: flex; flex-direction: column; }
.find li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.find li:last-child { border-bottom: 0; }
.find li i { width: 8px; height: 8px; border-radius: 4px; background: #F28C38; flex: none; }
.find li b { flex: 1; font-size: 14px; font-weight: 600; }
.find li span { font-size: 12.5px; color: var(--muted-2); }
.c-subjects, .c-math { flex: 1 1 440px; gap: 18px; }
.c-subjects .copy { display: flex; flex-direction: column; gap: 8px; }
.c-subjects .subjects { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.c-subjects .subj { height: 76px; border-radius: 20px; padding: 0 16px; }
.c-subjects .subj b { font-size: 17px; }
.c-subjects .subj small { font-size: 13px; }
.c-math {
  overflow: hidden; gap: 16px;
  background: linear-gradient(180deg, var(--math-1) 0%, var(--math-2) 38%, var(--math-3) 70%);
}
.c-math .t { display: flex; flex-direction: column; gap: 4px; }
.c-math .t b { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; }
.c-math .t span { font-size: 15px; font-weight: 500; color: var(--math-meta); }
.c-math .wk { font-size: 15px; font-weight: 700; }
.c-math ul { margin: 0; list-style: none; border-radius: 22px; background: rgba(var(--glass), 0.88); padding: 4px 18px; display: flex; flex-direction: column; }
.c-math li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-math li:last-child { border-bottom: 0; }
.c-math li b { font-size: 16px; font-weight: 600; }
.c-math li span { font-size: 13px; color: var(--muted-2); }

/* ---------- Study tools ---------- */

.tools { padding: 40px 24px 110px; }
.tools .card { gap: 22px; }
.tools .card h3 { font-size: 24px; }
.kicker { display: flex; flex-direction: column; gap: 8px; }
.kicker small { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; }
.c-map { flex: 1.5 1 440px; }
.c-flash, .c-quiz { flex: 1 1 300px; }
.map { border-radius: 24px; background: var(--solid); padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.map .root { padding: 11px 20px; border-radius: 14px; background: var(--map-root); color: #FFFFFF; font-size: 15px; font-weight: 700; }
.map .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.map .cols div { display: flex; flex-direction: column; gap: 8px; }
.map .cols span { padding: 8px; border-radius: 12px; font-size: 13px; text-align: center; border: 1.5px solid; }
.map .cols span.h { padding: 9px; color: #FFFFFF; font-weight: 700; border: 0; }
.map .a span { background: var(--map-a); border-color: var(--map-a-b); }
.map .b span { background: var(--map-b); border-color: var(--map-b-b); }
.map .c span { background: var(--map-c); border-color: var(--map-c-b); }
.map .a span.h { background: #B45309; }
.map .b span.h { background: #4338CA; }
.map .c span.h { background: #15803D; }
.flip { display: block; cursor: pointer; }
.fc {
  height: 190px; border-radius: 24px; padding: 22px; display: flex; flex-direction: column;
  justify-content: space-between;
}
.fc-front { background: linear-gradient(150deg, #FFB547, #F2803A); color: #2A1606; box-shadow: 0 14px 30px rgba(242, 128, 58, 0.28); }
.fc-front small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; }
.fc-front b { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.fc-back { display: none; background: var(--solid); border: 1.5px solid var(--fc-border); }
.fc-back small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-orange); }
.fc-back div { display: flex; flex-direction: column; gap: 6px; }
.fc-back code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 700; }
.fc-back span { font-size: 15px; line-height: 1.45; color: var(--body); }
#flip:checked ~ .flip .fc-front { display: none; }
#flip:checked ~ .flip .fc-back { display: flex; }
#flip:focus-visible ~ .flip .fc { outline: 2px solid var(--accent); outline-offset: 3px; }
.c-quiz { gap: 18px !important; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opts label {
  cursor: pointer; height: 48px; padding: 0 16px; border-radius: 16px; font-size: 16px; font-weight: 600;
  background: var(--solid); color: var(--ink); border: 1.5px solid var(--rule); display: flex; align-items: center;
}
.quiz .ctl:checked ~ .quiz-opts .right { background: var(--tint-green); color: var(--ink-green); border-color: var(--border-green); }
#q-1776:checked ~ .quiz-opts [for=q-1776], #q-1799:checked ~ .quiz-opts [for=q-1799] {
  background: var(--tint-wrong); color: var(--ink-wrong); border-color: var(--border-wrong);
}
#q-1776:focus-visible ~ .quiz-opts [for=q-1776], #q-1789:focus-visible ~ .quiz-opts [for=q-1789],
#q-1799:focus-visible ~ .quiz-opts [for=q-1799] { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-note p { font-size: 15px; line-height: 1.55; color: var(--body); }
.quiz-note p:not(.n-none) { display: none; }
.quiz .ctl:checked ~ .quiz-note .n-none { display: none; }
#q-1776:checked ~ .quiz-note .n-1776, #q-1789:checked ~ .quiz-note .n-1789,
#q-1799:checked ~ .quiz-note .n-1799 { display: block; }

/* ---------- more, schools, FAQ, CTA, footer ---------- */

.more { padding: 20px 24px 110px; }
.more .col { gap: 36px; }
.h2-sm { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 28px; }
.more-grid div { border-top: 1.5px solid var(--rule-2); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.more-grid h3 { font-size: 18px; font-weight: 800; }
.more-grid p { font-size: 15px; line-height: 1.55; color: var(--body); }

.duo { padding: 0 24px 110px; }
.duo .wrap { display: flex; flex-wrap: wrap; gap: 16px; }
.duo-card { flex: 1 1 400px; min-width: 0; border-radius: 34px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.duo-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.duo-card p { font-size: 15.5px; line-height: 1.6; }
.duo-card a { margin-top: auto; font-weight: 700; }
.privacy-card { background: var(--privacy-card); }
.privacy-card p { color: var(--privacy-text); }
.schools-card { background: var(--schools-card); color: #FFFFFF; }
.schools-card p { color: #D6D3E0; }
.schools-card a { color: #B9B3F5; }
.schools-card a:hover { color: #FFFFFF; }

.faq { padding: 0 24px 110px; }
.faq .inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { margin-bottom: 16px; text-align: center; }
.faq details { border-radius: 22px; background: rgba(var(--glass), 0.7); border: 1px solid var(--glass-border); padding: 20px 24px; }
.faq summary {
  list-style: none; font-size: 17px; font-weight: 700; cursor: pointer; display: flex;
  justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--body); }

.cta { padding: 0 24px 90px; }
.cta .wrap {
  border-radius: 40px; color: #FFFFFF; padding: 64px 32px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 22px;
  background: radial-gradient(500px 300px at 85% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%), var(--brand);
}
.cta .logo-tile { width: 76px; height: 76px; border-radius: 22px; background: var(--solid); display: flex; align-items: center; justify-content: center; }
.cta .logo-tile img { width: 56px; height: 56px; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; text-wrap: balance; }
.cta p { font-size: 17px; color: #EEEDFE; }
.cta .downloads { margin-top: 0; }
.cta .android {
  border-radius: 29px; padding: 0 28px; background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.7); color: #FFFFFF; box-shadow: none; font-size: 16px;
  font-weight: 800; gap: 10px;
}
.cta .android:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.22); }

.foot { padding: 0 24px 48px; }
.foot .wrap {
  border-top: 1px solid var(--foot-rule); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted);
}
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot .who { flex-basis: 100%; font-size: 12.5px; line-height: 1.6; }

/* ---------- the phone layout (2026-11-16, VIXI's "VIA Homepage IT Mobile") ----------

   Everything below 600px wide; above it the page is exactly the desktop layout. The phone
   layout adds no script either:
   - THE MENU opens with the address's #menu (a :target) and closes when any link in it is
     followed, or the cross (#shut) is. Both targets are fixed in place, so opening or closing
     it never scrolls the page.
   - THE ASK VIA DEMO keeps the desktop's CSS turns; on a phone the four tabs sit in a row and
     the chosen tab's caption shows under them, turning with the panels.
   - THE DOWNLOAD BAR is position: sticky at the foot of .after-hero, so it rises once the hero
     has scrolled away. It shows the App Store and the APK. On an iPhone with JavaScript on
     (the iOS-only -webkit-touch-callout, read only when scripting is enabled) it keeps the App
     Store; on Android the page's one approved script has rewritten its APK link to
     beta.html?download=…, and :has() on that link keeps the APK. Without JavaScript, or on any
     other device, it shows both. */

.burger, .menu, .shut, .dl-bar, .tab .short { display: none; }
.lib-row { display: contents; }

@media (max-width: 600px) {
  html { scroll-padding-top: 80px; }
  .page {
    background:
      radial-gradient(420px 380px at 100% -60px, var(--hero-glow-1), var(--hero-glow-1-0) 70%),
      radial-gradient(380px 360px at 0% 220px, var(--hero-glow-2), var(--hero-glow-2-0) 70%),
      var(--bg);
    background-repeat: no-repeat;
  }

  /* header and menu */
  .top { top: 10px; margin-top: 10px; padding: 0 12px; }
  .bar { height: 56px; padding: 0 6px 0 14px; border-radius: 28px; gap: 8px; justify-content: flex-start; }
  .bar .theme-switch, .bar .lang { display: none; }
  .brand { flex: 1; min-height: 44px; gap: 8px; margin-right: 0; }
  .brand img { width: 28px; height: 28px; }
  .brand span { display: inline; font-size: 19px; }
  .get { height: 44px; padding: 0 18px; }
  .burger {
    flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--toggle-bg);
    color: var(--ink); display: flex; align-items: center; justify-content: center;
  }
  .burger:hover { color: var(--ink); }
  .b-shut, .top:has(#menu:target) .b-open { display: none; }
  .top:has(#menu:target) .b-shut { display: flex; }
  .shut { display: block; position: fixed; top: 0; left: 0; width: 0; height: 0; }
  .menu {
    position: fixed; left: 12px; right: 12px; top: 76px; border-radius: 28px;
    background: rgba(var(--glass), 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); box-shadow: 0 24px 60px rgba(50, 35, 120, 0.22);
    padding: 10px 20px 16px; flex-direction: column;
  }
  #menu:target { display: flex; }
  .menu > a {
    height: 54px; display: flex; align-items: center; justify-content: space-between;
    font-size: 19px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line);
  }
  .menu > a:nth-child(4) { border-bottom: 0; }
  .menu > a span { color: var(--faint); }
  .menu-foot { display: flex; gap: 8px; margin-top: 10px; }
  .menu-foot b, .menu-foot a {
    flex: 1; height: 44px; border-radius: 22px; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .menu-foot b { background: var(--dark-fill); color: #FFFFFF; }
  .menu-foot a { background: var(--seg); color: var(--ink-2); }
  .menu-foot .theme-switch { width: 44px; height: 44px; border-radius: 22px; background: var(--seg); }

  /* hero */
  .hero { padding: 36px 20px 0; gap: 18px; }
  .pill { min-height: 36px; padding: 0 12px 0 5px; border-radius: 18px; font-size: 13px; gap: 8px; }
  .pill b { font-size: 11.5px; padding: 4px 9px; border-radius: 13px; }
  .hero h1 { font-size: clamp(44px, 13.5vw, 60px); }
  .hero .sub { font-size: 16.5px; }
  .hero .downloads { width: 100%; flex-direction: column; align-items: center; gap: 10px; }
  .hero .android { min-width: 174px; justify-content: center; border-radius: 20px; }
  .fine { font-size: 13px; text-align: center; text-wrap: balance; }
  .phones { height: 440px; margin-top: 14px; }
  .phone.left, .phone.right { display: none; }

  /* section rhythm */
  .eyebrow { font-size: 12.5px; }
  .h2 { font-size: 36px; }
  .lede { font-size: 16px; }
  .col { gap: 16px; }
  .ask { padding: 56px 20px 64px; }
  .library { padding: 24px 20px 64px; background: radial-gradient(360px 420px at 0% 80%, var(--lib-glow-1), var(--lib-glow-1-0) 70%); background-repeat: no-repeat; }
  .tools { padding: 24px 20px 40px; }
  .more { padding: 0 20px 64px; }
  .duo, .faq { padding: 0 20px 64px; }
  .cta { padding: 0 12px 96px; }
  .foot { padding: 0 20px 40px; }

  /* Ask VIA: four tabs in a row, the chosen one's caption under them */
  .ask-grid { gap: 16px; }
  .ask-copy { flex-basis: 100%; gap: 16px; }
  .tabs {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    margin-top: 6px; padding-bottom: 60px;
  }
  .tab { padding: 10px 2px; border-radius: 20px; flex-direction: column; gap: 7px; }
  .tab .short { display: block; font-size: 13px; font-weight: 700; }
  .tab .two {
    position: absolute; left: 0; right: 0; bottom: 0; min-height: 44px; align-items: center;
    justify-content: center; text-align: center; text-wrap: balance;
    animation: 22s linear infinite both caption-turn;
  }
  .tab .two b { display: none; }
  .tab .two span { font-size: 15px; line-height: 1.45; color: var(--body); }
  .t-record .two { animation-delay: -16.5s; }
  .t-skills .two { animation-delay: -11s; }
  .t-connect .two { animation-delay: -5.5s; }
  .ask:has(.ctl:checked) .tab .two, .ask:has(#to-connect:target) .tab .two { animation: none; visibility: hidden; }
  #to-connect:target ~ .wrap .t-connect .two { visibility: visible; }
  .ask:has(.ctl:checked) .tab .two { visibility: hidden !important; }
  #ask-camera:checked ~ .wrap .t-camera .two, #ask-record:checked ~ .wrap .t-record .two,
  #ask-skills:checked ~ .wrap .t-skills .two, #ask-connect:checked ~ .wrap .t-connect .two { visibility: visible !important; }

  .demo { flex-basis: 100%; min-height: 0; padding: 14px; border-radius: 32px; gap: 14px; }
  .panel { gap: 14px; }
  .panel-subject span { height: 36px; padding: 0 14px; border-radius: 18px; font-size: 14px; }
  .stack { gap: 14px; }
  .mine { max-width: 86%; }
  .photo { width: 210px; padding: 14px 16px 16px; font-size: 14px; }
  .photo .eq { font-size: 18px; }
  .me { padding: 10px 14px; border-radius: 18px 18px 6px 18px; font-size: 14.5px; }
  .via-says, .bullets { font-size: 15px; line-height: 1.5; padding: 0 4px; }
  .step { border-radius: 16px; padding: 12px 14px; gap: 10px; }
  .step .num { width: 24px; height: 24px; font-size: 12.5px; }
  .step .two b { font-size: 14.5px; }
  .step code { font-size: 12.5px; }
  .step.check span { font-size: 14px; }
  .recorder { border-radius: 22px; padding: 18px; gap: 14px; }
  .recorder > span { font-size: 13px; }
  .wave { justify-content: space-between; gap: 0; height: 48px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .skill { border-radius: 18px; padding: 14px; gap: 9px; }
  .skill .count { font-size: 20px; }
  .apps { border-radius: 20px; padding: 4px 14px; }
  .apps li { padding: 10px 0; }
  .apps .two { min-width: 0; }
  .apps .two b { font-size: 14.5px; }
  .apps .two span { font-size: 12.5px; }
  .demo .composer {
    flex-direction: row; align-items: center; gap: 8px; border-radius: 24px; padding: 8px 8px 8px 16px;
  }
  .demo .composer .ph { flex: 1; min-width: 0; padding: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo .composer .plus, .demo .composer .seg span:not(.on) { display: none; }
  .demo .composer .seg { font-size: 12.5px; }
  .demo .composer .seg span { padding: 6px 11px; }

  /* Library */
  .library .cards, .tools .cards { gap: 12px; }
  .library .card, .tools .card { flex-basis: 100%; }
  .card { padding: 20px; border-radius: 30px; }
  .card h3 { font-size: 22px; }
  .card p { font-size: 15px; line-height: 1.55; }
  .c-timetable { flex-direction: column; gap: 16px; background: rgba(var(--glass), 0.7); }
  .c-timetable .copy { flex: none; gap: 6px; }
  .c-timetable .icon-sq { display: none; }
  .c-timetable .copy h3 { font-size: 22px; }
  .c-timetable .copy p { font-size: 15px; }
  .c-timetable .try { margin-top: 2px; }
  .tt { flex: none; padding: 0; background: none; border: 0; border-radius: 0; gap: 16px; }
  .tt-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .tt-days label { height: 44px; padding: 0; border-radius: 22px; justify-content: center; }
  .tt-list { min-height: 260px; gap: 16px; }
  .tt-list .two b { font-size: 17px; }
  .tt-list .two { padding-bottom: 14px; }

  /* the timer, recordings, notes and search: one row to swipe */
  .lib-row {
    display: flex; gap: 12px; margin: 0 -20px; padding: 4px 20px 24px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .lib-row::-webkit-scrollbar, .tools .cards::-webkit-scrollbar { display: none; }
  .lib-row > .card {
    flex: none; width: 82%; scroll-snap-align: start; padding: 22px; gap: 12px;
    background: rgba(var(--glass), 0.7); box-shadow: 0 12px 28px rgba(70, 50, 150, 0.07);
  }
  .lib-row h3 { font-size: 21px; margin-top: auto; }
  .lib-row h3.after { padding-top: 6px; }
  .lib-row p { font-size: 14.5px; }
  .c-timer { gap: 10px; }
  .c-timer .icon-sq { display: none; }
  .clock { font-size: 64px; margin-top: 0; }
  .c-timer .label { font-size: 15px; }
  .track { max-width: 200px; }
  .c-timer .buttons { margin-top: 4px; }
  .c-timer p { padding-top: 8px; }
  .c-rec .icon-sq { width: 52px; height: 52px; border-radius: 17px; }
  .c-rec .rec-dot { width: 18px; height: 18px; border-radius: 9px; box-shadow: 0 0 0 5px var(--tint-rec), 0 0 0 7px #EC9A9A; }
  .c-rec .row b { font-size: 38px; }
  .note.big { padding: 14px 16px 16px 32px; gap: 8px; border-radius: 18px; }
  .note.big::before { left: 15px; }
  .note.big::after { left: 19px; }
  .note.big b { font-size: 16px; }
  .find .q { height: 44px; border-radius: 22px; }
  .find ul { border-radius: 16px; padding: 2px 14px; }
  .find li b { font-size: 13.5px; }
  .c-subjects { margin-top: -12px; gap: 16px; background: rgba(var(--glass), 0.7); }
  .c-subjects .copy { gap: 6px; }
  .c-subjects .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .c-subjects .subj { height: 68px; border-radius: 18px; padding: 0 14px; }
  .c-subjects .subj b { font-size: 16px; }
  .c-subjects .subj small { font-size: 12.5px; }
  .c-math { display: none; }

  /* Study tools: one row to swipe, flashcard first */
  .tools .cards {
    flex-wrap: nowrap; margin: 0 -20px; padding: 8px 20px 28px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tools .card {
    flex: none; width: 86%; scroll-snap-align: start; padding: 22px; gap: 16px;
    background: rgba(var(--glass), 0.7); box-shadow: 0 12px 28px rgba(70, 50, 150, 0.07);
  }
  .tools .card h3 { font-size: 22px; }
  .tools .card > p { margin-top: auto; font-size: 14.5px; }
  .c-flash { order: 1; }
  .c-quiz { order: 2; gap: 14px !important; }
  .c-map { order: 3; }
  .kicker { gap: 6px; }
  .kicker small { font-size: 12px; }
  .fc { height: 180px; border-radius: 22px; padding: 20px; }
  .fc-front b { font-size: 20px; }
  .fc-back code { font-size: 25px; }
  .fc-back span { font-size: 14.5px; }
  .quiz-note { min-height: 66px; }
  .quiz-note p { font-size: 14.5px; line-height: 1.5; }
  .map { border-radius: 20px; padding: 16px 12px; gap: 12px; }
  .map .root { padding: 9px 16px; border-radius: 12px; font-size: 14px; }
  .map .cols { gap: 6px; }
  .map .cols div { gap: 6px; }
  .map .cols span { padding: 7px 2px; border-radius: 10px; font-size: 12px; }
  .map .cols span.h { padding: 8px 2px; font-size: 12.5px; }

  /* more, privacy and schools, FAQ, closing call, footer */
  .more .col { gap: 8px; }
  .h2-sm { font-size: 28px; }
  .more h2 { margin-bottom: 8px; }
  .more-grid { grid-template-columns: 1fr; gap: 8px; }
  .more-grid div { padding: 14px 0 6px; gap: 4px; }
  .more-grid h3 { font-size: 17px; }
  .more-grid p { font-size: 14.5px; line-height: 1.5; }
  .duo .wrap { flex-direction: column; gap: 12px; }
  .duo-card { flex: none; padding: 26px; border-radius: 30px; gap: 10px; }
  .duo-card h2 { font-size: 26px; }
  .duo-card p { font-size: 15px; line-height: 1.55; }
  .duo-card a { min-height: 44px; display: flex; align-items: center; }
  .faq .inner { gap: 8px; }
  .faq h2 { margin-bottom: 10px; text-align: left; }
  .faq details { border-radius: 20px; padding: 4px 18px; }
  .faq summary { min-height: 52px; align-items: center; font-size: 16px; }
  .faq summary::after { font-size: 20px; }
  .faq details p { margin: 0 0 16px; font-size: 14.5px; }
  .cta .wrap { border-radius: 36px; padding: 44px 20px 24px; gap: 16px;
    background: radial-gradient(300px 220px at 90% 0%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 70%), var(--brand); }
  .cta .logo-tile { width: 68px; height: 68px; border-radius: 20px; }
  .cta .logo-tile img { width: 50px; height: 50px; }
  .cta h2 { font-size: 36px; }
  .cta p { font-size: 16px; }
  .cta .downloads { width: 100%; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
  .cta .android { width: 100%; height: 56px; border-radius: 28px; justify-content: center; }
  .foot .wrap { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 12px; font-size: 14.5px; }
  .foot nav { order: 1; }
  .foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .foot nav a { min-height: 44px; display: flex; align-items: center; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
  .foot .wrap > span { order: 3; padding-top: 4px; }
  .foot .who { order: 2; padding-top: 8px; }

  /* the download bar */
  .after-hero { position: relative; }
  .dl-bar { display: block; position: sticky; bottom: 12px; z-index: 40; height: 0; }
  .page:has(#menu:target) .dl-bar { display: none; }
  .dl-in {
    position: absolute; left: 12px; right: 12px; bottom: 0; height: 64px; padding: 0 8px;
    border-radius: 32px; background: rgba(23, 21, 42, 0.94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 40px rgba(30, 20, 80, 0.35);
    color: #FFFFFF; display: flex; align-items: center; gap: 8px;
  }
  .dl-logo {
    flex: none; width: 40px; height: 40px; border-radius: 12px; background: #FFFFFF;
    display: flex; align-items: center; justify-content: center; margin-left: 4px;
  }
  .dl-logo img { width: 30px; height: 30px; }
  .dl-text { display: none; flex: 1; min-width: 0; flex-direction: column; line-height: 1.25; padding-left: 4px; }
  .dl-text b { font-size: 15px; font-weight: 800; }
  .dl-text small { font-size: 12.5px; color: #C9C5D8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dl-ios, .dl-android {
    flex: 1 1 0; min-width: 0; height: 48px; padding: 0 12px; border-radius: 24px; font-size: 14.5px;
    font-weight: 800; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  }
  .dl-ios { background: var(--brand); color: #FFFFFF; }
  .dl-android { background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.6); color: #FFFFFF; }
  .dl-ios:hover, .dl-android:hover { color: #FFFFFF; }
  .dl-ios .w-one { display: none; }
  /* one platform known: the name and one button, as the design draws it */
  .dl-in:has(.dl-android[href*="download="]) .dl-ios { display: none; }
  .dl-in:has(.dl-android[href*="download="]) .dl-text { display: flex; }
  .dl-in:has(.dl-android[href*="download="]) .dl-android {
    flex: none; padding: 0 22px; background: var(--brand); border: 0;
  }
  @media (scripting: enabled) {
    @supports (-webkit-touch-callout: none) {
      .dl-android { display: none; }
      .dl-text { display: flex; }
      .dl-ios { flex: none; padding: 0 22px; }
      .dl-ios .w-one { display: inline; }
      .dl-ios .w-both { display: none; }
    }
  }
}

@keyframes caption-turn {
  0%, 24.9% { visibility: visible; }
  25%, 100% { visibility: hidden; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .tab .two { animation: none; visibility: hidden; }
  .ask:not(:has(.ctl:checked)):not(:has(#to-connect:target)) .t-camera .two { visibility: visible; }
}
