/* No capitals anywhere: flexor's way. */
html { text-transform: lowercase; }

/* Flexor — light, glassy, quiet. No dark theme on purpose. */

/* The app's own typeface (SIL Open Font License, assets/fonts/OFL.txt): Latin and Turkish only. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  /* Bars fill from where the line starts: the left, or the right on a page read right to left. */
  --to-end: 90deg;
  color-scheme: light;

  --white: #ffffff;
  --paper: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --faint: #86868b;
  --hair: rgba(0, 0, 0, 0.08);

  --mint: #0f9f86;
  --mint-ink: #0b806c;
  --mint-wash: #eaf7f3;
  --orange: #e07a1f;
  --gold: #d39a12;
  --gold-ink: #a87908;
  --gold-wash: #fbf3df;

  --max: 1120px;
  --wide: 1180px;
  --gutter: 24px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.6));
  --glass-edge: rgba(255, 255, 255, 0.9);
  --lift:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px -14px rgba(20, 46, 40, 0.15),
    0 36px 64px -40px rgba(20, 46, 40, 0.22);
  --lift-sm:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 10px 28px -16px rgba(20, 46, 40, 0.16);

  --wallpaper:
    radial-gradient(110% 85% at 0% 0%, #d4f0e8 0%, rgba(212, 240, 232, 0) 58%),
    radial-gradient(90% 80% at 100% 100%, #fde4cf 0%, rgba(253, 228, 207, 0) 62%),
    radial-gradient(80% 70% at 100% 0%, #dfeaf8 0%, rgba(223, 234, 248, 0) 60%),
    #f3f6f7;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--white);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The coin points come in, sized to the words it sits in. */
.coin { display: inline-block; width: 1em; height: 1em; margin-right: 0.22em; vertical-align: -0.14em; }
.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--lift-sm); }

/* ---------- Layout ---------- */

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(800px, 100% - 2 * var(--gutter)); }

.section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(80px, 10vw, 136px);
}
.band { background: var(--paper); }

.section-head {
  max-width: 820px;
  margin: 0 auto clamp(44px, 6vw, 72px);
  text-align: center;
}
.section-head .lead { margin-top: 20px; margin-inline: auto; max-width: 640px; }

/* ---------- Type ---------- */

.display {
  font-size: clamp(50px, 8.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.display span { display: inline-block; }
.tint {
  background: linear-gradient(100deg, #0c9880 0%, #16b597 48%, #0f9f86 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.h2 {
  font-size: clamp(38px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  font-size: clamp(19px, 1.75vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--muted);
  text-wrap: pretty;
}
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--mint-ink);
  margin-bottom: 14px;
}
.fineprint { font-size: 14px; color: var(--faint); letter-spacing: -0.01em; }
.br-wide { display: none; }
@media (min-width: 720px) { .br-wide { display: inline; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 20px; height: 20px; stroke-width: 2; }
.btn .i-trail { width: 16px; height: 16px; margin-right: -4px; }
.btn-lg { height: 52px; padding: 0 26px; }
.btn-sm { height: 32px; padding: 0 15px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #15ad93 0%, #0f9f86 55%, #0d927b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 0.5px rgba(8, 90, 76, 0.4),
    0 1px 2px rgba(15, 159, 134, 0.25),
    0 10px 24px -10px rgba(15, 159, 134, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 .5px rgba(8,90,76,.4), 0 2px 4px rgba(15,159,134,.25), 0 16px 32px -12px rgba(15,159,134,.7); }

.btn-quiet {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-quiet:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 8px 20px -10px rgba(0,0,0,.18); }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

[dir="rtl"] { --to-end: 270deg; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--hair); background: rgba(255, 255, 255, 0.78); }
.nav-inner {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 34px; font-size: 14px; color: var(--ink-2); }
.nav-links a { white-space: nowrap; transition: color 0.2s; }
.nav-links a:hover { color: var(--mint-ink); }
.nav-end { display: flex; flex-shrink: 0; align-items: center; gap: 6px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 12px; place-items: center; margin-right: -8px; }
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-shut { display: none; }
.menu-open .nav-toggle .i-open { display: none; }
.menu-open .nav-toggle .i-shut { display: block; }
.sheet { display: none; }

/* Folded (`nav-compact`): on a phone, or wherever the links don't fit in a line, as in a language
   whose words are longer; set before the page is drawn, and again as the window changes. */
.nav-compact .nav-links { display: none; }
.nav-compact .nav-toggle { display: grid; }
.nav-compact .sheet {
  display: grid; gap: 2px;
  position: fixed; left: 0; right: 0; top: 56px; z-index: 49;
  padding: 8px var(--gutter) 18px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--hair);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}
.nav-compact .sheet a { padding: 12px 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; border-bottom: 1px solid var(--hair); }
.nav-compact .sheet a:last-child { border-bottom: 0; }
.nav-compact.menu-open .sheet { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
/* Snug: a phone too narrow for all of it, or a language whose words are long. The sound button
   goes first (the keyboard further down has one), then the download one (the page's own is right
   under it). */
.nav-snug .nav-end .sound-toggle { display: none; }
.nav-snugger .nav-end .btn { display: none; }

/* ---------- Auras (soft colour behind the glass) ---------- */

.aura { position: absolute; z-index: -1; pointer-events: none; }
.aura-hero {
  left: 50%; top: 380px; width: 1500px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(38% 40% at 30% 46%, rgba(15, 159, 134, 0.16), rgba(15, 159, 134, 0) 70%),
    radial-gradient(34% 36% at 72% 52%, rgba(224, 122, 31, 0.10), rgba(224, 122, 31, 0) 70%),
    radial-gradient(40% 30% at 50% 30%, rgba(120, 200, 230, 0.10), rgba(120, 200, 230, 0) 70%);
}
.aura-warm {
  left: 50%; bottom: 0; width: 1400px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(36% 40% at 34% 58%, rgba(224, 122, 31, 0.10), rgba(224, 122, 31, 0) 70%),
    radial-gradient(34% 40% at 70% 50%, rgba(214, 70, 60, 0.06), rgba(214, 70, 60, 0) 70%);
}
.aura-cool {
  left: 50%; bottom: 40px; width: 1400px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(36% 40% at 32% 56%, rgba(15, 159, 134, 0.12), rgba(15, 159, 134, 0) 70%),
    radial-gradient(34% 40% at 72% 50%, rgba(224, 122, 31, 0.08), rgba(224, 122, 31, 0) 70%);
}
.aura-gold {
  left: 50%; top: 260px; width: 1300px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(30% 40% at 66% 50%, rgba(211, 154, 18, 0.10), rgba(211, 154, 18, 0) 70%),
    radial-gradient(30% 40% at 34% 50%, rgba(15, 159, 134, 0.07), rgba(15, 159, 134, 0) 70%);
}
.aura-final {
  left: 50%; top: 40px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(40% 44% at 50% 40%, rgba(15, 159, 134, 0.12), rgba(15, 159, 134, 0) 70%);
}

/* ---------- Glass frame for product shots ---------- */

.frame {
  position: relative;
  padding: clamp(6px, 1vw, 12px);
  border-radius: clamp(14px, 2.3vw, 30px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    inset 0 0 0 1px var(--glass-edge),
    0 0 0 0.5px rgba(0, 0, 0, 0.07),
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 18px 44px -22px rgba(20, 46, 40, 0.2),
    0 40px 72px -44px rgba(20, 46, 40, 0.18);
}
.frame img { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 6vw, 88px);
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-mascot { width: clamp(118px, 12vw, 150px); aspect-ratio: 1; margin-bottom: -8px; }
.hero-mascot video { width: 100%; height: 100%; }
.hero-lead { max-width: 620px; margin: 26px auto 34px; }
.hero .fineprint { margin-top: 18px; }
.frame-hero { margin-top: clamp(56px, 7vw, 84px); }

/* ---------- Features ---------- */

.features { padding-top: clamp(40px, 6vw, 80px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift-sm);
}
.feature { position: relative; padding: 28px 26px 30px; }
.icon-tile {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 15px;
  margin-bottom: 24px;
  color: var(--mint);
  background: linear-gradient(180deg, #f1faf7, #e2f4ee);
  box-shadow: inset 0 0 0 1px rgba(15, 159, 134, 0.12), 0 1px 1px rgba(255, 255, 255, 0.9);
}
.icon-tile .i { width: 27px; height: 27px; }
.feature h3 { font-size: 19px; line-height: 1.25; font-weight: 650; letter-spacing: -0.024em; margin-bottom: 8px; }
.feature p { font-size: 16px; line-height: 1.45; color: var(--muted); letter-spacing: -0.012em; }
.feature.is-plus .icon-tile {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #fdf8ea, #f9efd3);
  box-shadow: inset 0 0 0 1px rgba(211, 154, 18, 0.18), 0 1px 1px rgba(255, 255, 255, 0.9);
}
.plus-tag {
  display: inline-flex; align-items: center; gap: 3px;
  position: absolute; top: 26px; right: 22px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: 0;
  color: var(--gold-ink); background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px rgba(211, 154, 18, 0.22);
}
.plus-tag .i { width: 13px; height: 13px; stroke-width: 1.4; color: var(--gold); }

/* ---------- Time & trends ---------- */

.split-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.split-head .h2 { max-width: 560px; }
.note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.note .i { display: inline-block; vertical-align: -3px; margin-right: 7px; width: 17px; height: 17px; color: var(--gold); stroke-width: 1.4; }

/* ---------- Split (menu bar, friends) ---------- */

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-flip { grid-template-columns: 1.15fr 1fr; }
.split-copy .lead { margin-top: 20px; max-width: 460px; }
.split-copy .h2 { max-width: 520px; font-size: clamp(38px, 4.4vw, 58px); }

.menubar {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  height: 30px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 -0.5px 0 rgba(0, 0, 0, 0.08);
  font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: #1d1d1f;
  position: relative; z-index: 2;
}
.mb-item { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; }
.mb-item .i { width: 16px; height: 16px; stroke-width: 1.8; }
.mb-item .i-batt { width: 24px; height: 20px; stroke-width: 1.5; }
.mb-flexor { position: relative; font-variant-numeric: tabular-nums; }
.mb-flexor .i { width: 16px; height: 16px; }
.mb-flexor.is-open { background: rgba(0, 0, 0, 0.1); }
.mb-clock { padding-left: 6px; font-weight: 500; }

.desk {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--wallpaper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--lift);
  padding-bottom: 44px;
}
.desk-menu {
  width: 300px;
  margin: 8px 0 0 auto;
  margin-right: max(16px, calc(50% - 190px));
  border-radius: 14px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 18px 40px -16px rgba(20, 46, 40, 0.28),
    0 40px 80px -40px rgba(20, 46, 40, 0.3);
}

.stage {
  position: relative;
  aspect-ratio: 760 / 530;
  border-radius: 30px;
  overflow: hidden;
  background: var(--wallpaper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--lift);
}
.stage .menubar { position: absolute; inset: 0 0 auto; }
.stage-window {
  position: absolute; left: 6%; top: 13%; width: 60%;
  border-radius: 9px;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 14px 36px -16px rgba(20, 46, 40, 0.32);
}
.stage-video { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; }

.facts { margin-top: 30px; display: grid; gap: 14px; }
.facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.facts .i { width: 22px; height: 22px; color: var(--mint); margin-top: -1px; }
.facts .is-plus .i { color: var(--gold); stroke-width: 1.4; width: 20px; height: 20px; margin: 0 1px; }

/* ---------- Mascot bento ---------- */

#mascot { background: var(--paper); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; overflow: hidden;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}
.tile-tag {
  position: absolute; left: 22px; top: 20px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2);
  background: rgba(245, 245, 247, 0.9);
}
.tile-a { grid-column: span 7; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 12; }
.tile-d { grid-column: span 7; }
.tile-e { grid-column: span 5; }

.tile-move { display: grid; place-items: center; min-height: 470px; }
.tile-move video { width: min(420px, 86%); aspect-ratio: 1; }
.tile-e video { width: min(360px, 84%); }
.tile-e { min-height: 400px; }

.tile-stat { display: flex; flex-direction: column; justify-content: space-between; padding: 38px 36px 34px; }
.stat-num {
  font-size: clamp(96px, 11vw, 150px); font-weight: 700; line-height: 0.9; letter-spacing: -0.06em;
  background: linear-gradient(180deg, #13ae93, #0c8d77);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.04em;
}
.stat-label { margin-top: 14px; font-size: 21px; font-weight: 600; letter-spacing: -0.024em; color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--hair); }
.stat-grid div { display: flex; flex-direction: column-reverse; }
.stat-grid dd { font-size: 34px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-grid dt { font-size: 15px; color: var(--muted); }

.tile-cast { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 76px 44px 44px; }
.cast { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cast figure { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cast img { width: min(168px, 100%); aspect-ratio: 1; transition: transform 0.5s var(--ease-out); }
.cast figure:hover img { transform: translateY(-6px) rotate(-3deg); }
.cast figcaption { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.mystery { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-left: 40px; border-left: 1px solid var(--hair); }
.mystery-grid { display: grid; grid-template-columns: repeat(5, 54px); gap: 10px; }
.mystery-grid span {
  aspect-ratio: 1;
  background: url("assets/mascots/mystery.webp") center / contain no-repeat;
  display: grid; place-items: center;
  padding-top: 14%;
}
.mystery-grid span::after { content: "?"; font-size: 19px; font-weight: 700; color: #a1a1a6; }
.mystery p { font-size: 15px; color: var(--muted); }
.mystery strong { color: var(--ink); font-weight: 650; }

.tile-outfits { display: grid; align-items: center; min-height: 400px; padding-top: 20px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding-top: 24px;
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-set { display: flex; gap: 20px; padding-right: 20px; }
.marquee-set img { width: 176px; height: 176px; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Privacy ---------- */

/* White sections that follow another white section don't need the full top gap. */
#menubar, .privacy { padding-top: clamp(24px, 3vw, 40px); }
.privacy { padding-bottom: clamp(72px, 9vw, 120px); }
.privacy-panel {
  position: relative; overflow: hidden;
  border-radius: 40px;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(15, 159, 134, 0.13), rgba(15, 159, 134, 0) 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(120, 200, 230, 0.10), rgba(120, 200, 230, 0) 70%),
    linear-gradient(180deg, #f3faf8 0%, #fbfcfc 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 159, 134, 0.10);
}
.privacy-icon {
  display: inline-grid; place-items: center;
  width: 78px; height: 78px; border-radius: 24px;
  color: var(--mint);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift-sm);
}
.privacy-icon .i { width: 40px; height: 40px; stroke-width: 1.5; }
.privacy-title { max-width: 860px; margin: 30px auto clamp(44px, 6vw, 64px); font-size: clamp(40px, 6.2vw, 76px); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; max-width: 980px; margin-inline: auto; }
.point {
  padding: 24px 24px 26px; border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--lift-sm);
}
.point .i { width: 26px; height: 26px; color: var(--mint); margin-bottom: 16px; }
.point h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.022em; margin-bottom: 4px; }
.point p { font-size: 15.5px; color: var(--muted); line-height: 1.45; }

/* ---------- Pricing ---------- */

.seg {
  position: relative;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 34px; padding: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.055);
  box-shadow: inset 0 0.5px 1px rgba(0, 0, 0, 0.06);
}
.seg button {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color 0.3s;
}
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.08), 0 6px 16px -6px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s var(--ease-out);
}
.seg[data-period="yearly"] .seg-thumb { transform: translateX(100%); }
.save {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: 0;
  color: var(--gold-ink); background: var(--gold-wash);
  box-shadow: inset 0 0 0 1px rgba(211, 154, 18, 0.2);
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 22px; }
.plan {
  display: flex; flex-direction: column;
  padding: 36px 34px 34px; border-radius: 30px;
  background: var(--white);
  box-shadow: var(--lift-sm);
}
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 650; letter-spacing: -0.024em; }
.plan-name .i { width: 22px; height: 22px; color: var(--gold); stroke-width: 1.3; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.amount { font-size: 60px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { font-size: 17px; color: var(--muted); font-weight: 500; }
/* Yearly: the month's price it stands in for, struck through beside it. */
.was { align-self: center; font-size: 22px; font-weight: 600; color: var(--faint); text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.was:empty { display: none; }
.price-note { margin-top: 10px; font-size: 15px; color: var(--muted); min-height: 1.47em; }
.plan ul { display: grid; gap: 13px; margin: 28px 0 34px; padding-top: 26px; border-top: 1px solid var(--hair); }
.plan li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
.plan li .i { width: 20px; height: 20px; margin-top: 1px; color: var(--mint); stroke-width: 2.1; }
.plan .btn { margin-top: auto; }

.plan-plus {
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(211, 154, 18, 0.09), rgba(211, 154, 18, 0) 70%),
    linear-gradient(180deg, #fffdf8, #ffffff 45%);
  box-shadow:
    inset 0 0 0 1.5px rgba(211, 154, 18, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 18px 40px -20px rgba(211, 154, 18, 0.35),
    0 50px 90px -50px rgba(120, 80, 10, 0.3);
}
.plan-plus .plan-name { color: #8a6306; }
.plan-plus li .i { color: var(--gold); }
.swap { animation: swap 0.45s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

.trial { max-width: 560px; margin: 36px auto 0; text-align: center; font-size: 15px; color: var(--muted); text-wrap: balance; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item h3 { font-size: inherit; font-weight: inherit; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 2px; text-align: left;
  font-size: 19px; font-weight: 600; letter-spacing: -0.022em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--mint-ink); }
.faq-q .i { width: 20px; height: 20px; color: var(--faint); stroke-width: 2; transition: transform 0.5s var(--ease-out); }
.faq-item.open .faq-q .i { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 44px 26px 2px; font-size: 17px; color: var(--muted); }
.js .faq-a { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--ease-out), opacity 0.4s var(--ease); }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }

/* ---------- Final CTA ---------- */

.final { text-align: center; padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(100px, 12vw, 150px); }
.final .wrap { display: flex; flex-direction: column; align-items: center; }
.final-mascot { width: clamp(150px, 16vw, 200px); margin-bottom: 18px; }
.final .h2 { margin-bottom: 34px; }
.final .fineprint { margin-top: 18px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--hair); padding: 26px 0 34px; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-sm { font-size: 15px; gap: 8px; color: var(--ink); }
.brand-sm img { width: 22px; height: 22px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Changelog ---------- */

.nav-links a[aria-current="page"], .sheet a[aria-current="page"] { color: var(--mint-ink); }

.log-hero {
  position: relative; isolation: isolate; overflow-x: clip;
  padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.log-mascot { width: clamp(104px, 11vw, 132px); margin: 0 auto 22px; }
.log-hero .lead { margin: 20px auto 0; max-width: 600px; }

.log .narrow { width: min(920px, 100% - 2 * var(--gutter)); }
.release { display: grid; grid-template-columns: 172px minmax(0, 1fr); column-gap: 36px; }
.release-meta { position: sticky; top: 88px; align-self: start; padding-top: 6px; }
.ver { font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.035em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.latest {
  font-size: 12px; font-weight: 600; letter-spacing: -0.005em;
  padding: 3px 9px; border-radius: 999px;
  color: var(--mint-ink); background: var(--mint-wash);
}
.release-meta time { display: block; margin-top: 6px; font-size: 14px; color: var(--faint); }

/* The timeline: a hairline down the left of each release, a dot where it begins. */
.release-body { position: relative; padding: 0 0 80px 40px; border-left: 1px solid var(--hair); }
.release:last-child .release-body { padding-bottom: 8px; border-left-color: transparent; }
.release:last-child .release-body::after {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 28px; background: var(--hair);
}
.release-body::before {
  content: ""; position: absolute; left: -6px; top: 14px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 1.5px #c7c7cc, 0 0 0 4px var(--white);
}
.is-latest .release-body::before { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-wash), 0 0 0 7px var(--white); }

.release-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.032em; text-wrap: balance; }
.release-intro { margin-top: 12px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.45; color: var(--muted); text-wrap: pretty; max-width: 620px; }

.group {
  margin-top: 28px; padding: 22px 26px 8px;
  border-radius: 24px; background: var(--white); box-shadow: var(--lift-sm);
}
.group + .group { margin-top: 16px; }
.group h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.group h4 .i { width: 20px; height: 20px; color: var(--mint-ink); }
.changes li {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--hair);
}
.changes li:first-child { border-top: 0; }
.changes p { font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.changes strong { color: var(--ink); font-weight: 600; }
.tag {
  justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.5;
  padding: 1px 8px; border-radius: 999px; transform: translateY(-1px);
}
.tag-new { color: var(--mint-ink); background: var(--mint-wash); }
.tag-better { color: #3d5f96; background: #edf2fa; }
.tag-fixed { color: #b0570f; background: #fdf0e3; }

.log-final { padding-top: clamp(72px, 9vw, 120px); }

@media (max-width: 760px) {
  .release { grid-template-columns: 1fr; }
  .release-meta { position: static; padding: 0 0 14px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .release-meta time { margin-top: 0; }
  .ver { font-size: 26px; }
  .release-body, .release:last-child .release-body { border-left: 0; padding: 0 0 64px; }
  .release-body::before, .release:last-child .release-body::after { display: none; }
}
@media (max-width: 680px) {
  .group { padding: 18px 18px 4px; border-radius: 20px; }
  .changes li { grid-template-columns: 1fr; row-gap: 6px; }
  .changes p { font-size: 15px; }
}

/* ---------- Motion ---------- */

.js .rise { animation: rise 1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js .rise-frame { animation: rise-frame 1.4s var(--ease-out) 0.25s both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes rise-frame { from { opacity: 0; transform: translate3d(0, 56px, 0) scale(0.965); } }

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="zoom"] { transform: translate3d(0, 44px, 0) scale(0.97); transition-duration: 0.8s, 1.1s; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .rise-frame, .swap { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .js .faq-a, .faq-q .i, .seg-thumb, .btn, .cast img { transition: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-cast { grid-template-columns: 1fr; padding: 72px 32px 36px; gap: 32px; }
  .mystery { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--hair); }
}

@media (max-width: 900px) {
  .split, .split-flip { grid-template-columns: 1fr; }
  .split-copy { text-align: center; }
  .split-copy .lead, .split-copy .h2 { margin-inline: auto; }
  .split-flip .split-copy { order: -1; }
  .facts { justify-content: center; text-align: left; max-width: 460px; margin-inline: auto; }
  .split-head { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .split-head .h2, .split-head .lead { margin-inline: auto; max-width: 640px; }
  .desk { max-width: 560px; width: 100%; margin-inline: auto; }
  .stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .tile-a, .tile-b, .tile-d, .tile-e { grid-column: span 6; }
  .tile-move { min-height: 380px; }
  .points { grid-template-columns: 1fr; max-width: 520px; }
  .point { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .point .i { grid-row: span 2; margin: 2px 0 0; }
}

/* ---------- Phone ---------- */

@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .aura { opacity: 0.7; }
  body { font-size: 16px; }
  .hero-lead { margin: 20px auto 28px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .final .cta-row { align-items: stretch; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px 20px; border-radius: 22px; }
  .feature .icon-tile { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
  .feature h3 { font-size: 17px; margin-bottom: 4px; }
  .feature p { font-size: 15px; }
  .frame { padding: 6px; border-radius: 14px; }
  .bento { gap: 12px; }
  .tile { border-radius: 24px; }
  .tile-a, .tile-b, .tile-c, .tile-d, .tile-e { grid-column: 1 / -1; }
  .tile-move, .tile-e { min-height: 0; padding: 56px 0 18px; }
  .tile-move video { width: min(300px, 80%); }
  .tile-stat { padding: 30px 26px 28px; }
  .stat-num { font-size: 104px; }
  .tile-cast { padding: 64px 18px 28px; gap: 26px; }
  .cast { gap: 4px; }
  .cast figcaption { font-size: 13px; }
  .mystery-grid { grid-template-columns: repeat(5, 48px); gap: 8px; }
  .tile-outfits { min-height: 0; padding: 60px 0 26px; }
  .marquee-set img { width: 128px; height: 128px; }
  .marquee-set { gap: 12px; padding-right: 12px; }
  .desk { border-radius: 24px; padding-bottom: 28px; }
  .desk-menu { margin-right: auto; margin-left: auto; width: min(300px, 100% - 32px); }
  .menubar { gap: 0; padding: 0 8px; font-size: 12px; }
  .mb-item { padding: 0 5px; }
  .stage { border-radius: 22px; }
  .privacy-panel { border-radius: 30px; padding-inline: 16px; }
  .privacy-icon { width: 66px; height: 66px; border-radius: 20px; }
  .privacy-icon .i { width: 34px; height: 34px; }
  .point { padding: 20px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 30px 22px 24px; border-radius: 26px; }
  .amount { font-size: 54px; }
  .seg button { padding: 0 14px; }
  .faq-q { font-size: 17px; padding: 20px 0; }
  .faq-a p { padding-right: 8px; font-size: 16px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

/* ---------- Theme ----------
   The button in the nav flips day and night: a moon by day, a sun by night. */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--hair); }
/* Sounds on the page: off till turned on. */
.sound-toggle {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s;
}
.sound-toggle:hover { background: var(--hair); }
.sound-toggle .i { width: 19px; height: 19px; }
[data-sound-toggle] .i-sound-on,
[data-sound-toggle].on .i-sound-off { display: none; }
[data-sound-toggle].on .i-sound-on { display: block; }
.sound-toggle.on { color: var(--mint-ink); }
.theme-toggle .i { width: 19px; height: 19px; display: none; }
[data-theme="light"] .theme-toggle .i-moon,
[data-theme="dark"] .theme-toggle .i-sun { display: block; }

/* Surfaces the light theme draws in white and near-white, named so the dark one can change them. */
:root {
  --card: #ffffff;
  --card-2: #f5f7f8;
  --track: #e4e9ec;
}

/* ---------- Dark ----------
   The page and everything on it goes dark; what's drawn as a picture of a Mac (the desk, its windows,
   the app's screenshots) stays as it is, like a photo would. */
[data-theme="dark"] {
  color-scheme: dark;

  --white: #0e1312;
  --paper: #141a19;
  --ink: #eef3f1;
  --ink-2: #cfd7d4;
  --muted: #9aa5a2;
  --faint: #7c8784;
  --hair: rgba(255, 255, 255, 0.09);

  --mint: #1fb497;
  --mint-ink: #52d3b8;
  --mint-wash: rgba(31, 180, 151, 0.15);
  --orange: #f08f3a;
  --gold: #e3ad2a;
  --gold-ink: #f0c452;
  --gold-wash: rgba(227, 173, 42, 0.14);

  --card: #172020;
  --card-2: #1f2928;
  --track: #2b3534;

  --glass: linear-gradient(180deg, rgba(30, 39, 38, 0.86), rgba(22, 29, 28, 0.72));
  --glass-edge: rgba(255, 255, 255, 0.07);
  --lift:
    0 0 0 0.5px rgba(255, 255, 255, 0.07),
    0 12px 32px -18px rgba(0, 0, 0, 0.55);
  --lift-sm:
    0 0 0 0.5px rgba(255, 255, 255, 0.07),
    0 10px 28px -18px rgba(0, 0, 0, 0.5);

  --wallpaper:
    radial-gradient(110% 85% at 0% 0%, rgba(31, 180, 151, 0.16) 0%, rgba(31, 180, 151, 0) 58%),
    radial-gradient(90% 80% at 100% 100%, rgba(240, 143, 58, 0.12) 0%, rgba(240, 143, 58, 0) 62%),
    radial-gradient(80% 70% at 100% 0%, rgba(110, 150, 220, 0.12) 0%, rgba(110, 150, 220, 0) 60%),
    #101615;
}
[data-theme="dark"] .skip:focus { background: var(--card); }
[data-theme="dark"] .btn-quiet { background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }
[data-theme="dark"] .btn-quiet:hover { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
[data-theme="dark"] .nav { background: rgba(14, 19, 18, 0.72); }
[data-theme="dark"] .nav.scrolled { background: rgba(14, 19, 18, 0.82); }
[data-theme="dark"] .sheet { background: rgba(14, 19, 18, 0.94); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .icon-tile {
  background: linear-gradient(180deg, rgba(31, 180, 151, 0.2), rgba(31, 180, 151, 0.1));
  box-shadow: inset 0 0 0 1px rgba(82, 211, 184, 0.18);
}
[data-theme="dark"] .feature.is-plus .icon-tile {
  background: linear-gradient(180deg, rgba(227, 173, 42, 0.2), rgba(227, 173, 42, 0.1));
  box-shadow: inset 0 0 0 1px rgba(240, 196, 82, 0.22);
}
[data-theme="dark"] .tile { background: var(--card); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .tile-tag { background: rgba(255, 255, 255, 0.08); }
[data-theme="dark"] .mystery-grid span::after { color: var(--faint); }
[data-theme="dark"] .privacy-panel {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(31, 180, 151, 0.18), rgba(31, 180, 151, 0) 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(120, 200, 230, 0.1), rgba(120, 200, 230, 0) 70%),
    linear-gradient(180deg, #152120 0%, #121918 100%);
  box-shadow: inset 0 0 0 1px rgba(82, 211, 184, 0.14);
}
[data-theme="dark"] .seg { background: rgba(255, 255, 255, 0.07); box-shadow: none; }
[data-theme="dark"] .seg-thumb { background: var(--card-2); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.3); }
[data-theme="dark"] .plan { background: var(--card); }
[data-theme="dark"] .plan-plus {
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(227, 173, 42, 0.14), rgba(227, 173, 42, 0) 70%),
    linear-gradient(180deg, #1d1d16, var(--card) 45%);
  box-shadow: inset 0 0 0 1.5px rgba(227, 173, 42, 0.5), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .plan-plus .plan-name { color: var(--gold-ink); }
[data-theme="dark"] .group { background: var(--card); }
[data-theme="dark"] .release-body::before { box-shadow: inset 0 0 0 1.5px #4a5452, 0 0 0 4px var(--white); }
[data-theme="dark"] .tag-better { color: #a9c6f2; background: rgba(125, 170, 240, 0.15); }
[data-theme="dark"] .tag-fixed { color: #f4a866; background: rgba(240, 143, 58, 0.15); }

/* Your own language and English, side by side at the top (main.js). */
.lang-switch { display: flex; padding: 3px; border-radius: 11px; background: var(--hair); font-size: 13px; margin-right: 4px; }
.lang-switch[hidden] { display: none; }
.lang-switch a { padding: 5px 10px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; line-height: 1.2; transition: background-color 0.2s var(--ease), color 0.2s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current] { background: var(--white); color: var(--ink); font-weight: 600; }
.lang-switch-sheet { justify-self: start; margin: 10px 0 0; }
.nav-compact .sheet .lang-switch-sheet a { padding: 6px 12px; font-size: 14px; font-weight: 500; letter-spacing: 0; border-bottom: 0; }
.nav-compact .sheet .lang-switch-sheet a[aria-current] { font-weight: 600; }
@media (max-width: 760px) { .nav-end .lang-switch { display: none; } }
@media (min-width: 761px) { .lang-switch-sheet { display: none; } }
