/* lightify.stream — landing page styles.
 *
 * External on purpose: the site's CSP only allows same-origin stylesheets, so the
 * page has no inline <style> blocks or style="" attributes.
 *
 * Fonts are the app's own (Space Grotesk + JetBrains Mono, OFL, in assets/fonts/),
 * served from this site — nothing is fetched from third parties, in keeping with
 * the privacy page.
 *
 * The palette is the app's v3 redesign (lightify-shell `Pal`, REDESIGN-PLAN.md), so
 * the site and the player read as one product: six greys, one accent that only
 * marks Lightify itself, one primary button (the white pill).
 */

@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Yellowtail"; src: url("fonts/Yellowtail-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --panel: #0d0d0d;
  --surface: #111111;
  --surface-2: #161616;
  --surface-3: #1e1e1e;
  --border: #232323;
  --border-hi: #2e2e2e;
  --border-strong: #4a4a4a;
  --accent: #34d399;
  --accent-dim: #10b981;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --text: #f5f5f5;
  --text-2: #b3b3b3;
  --text-3: #969696;
  --faint: #5c5c5c;
  --danger: #f87171;
  --warning: #f5a524;
  --heart: #fb7185;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 0.85, 0.28, 1);
  --sans: "Space Grotesk", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font: 15px/1.65 var(--sans);
  letter-spacing: -0.005em;
  background: var(--bg);
}

a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 3px; }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

/* `// kicker` labels: lowercase mono, the redesign's signature. */
.kicker {
  margin: 0 0 14px;
  color: var(--text-3);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.02em;
}

/* ── Top bar ──────────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}

/* The wordmark, as in the app's title bar: "Lightify" as a neon sign (Yellowtail),
   the L lit in the accent. Hover lights the word up and lifts it; no box behind it. */
.brand {
  display: inline-flex;
  align-items: baseline;
  color: #ececec;
  font-family: "Yellowtail", cursive;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.22);
  transition: transform 0.15s ease-out, color 0.15s, text-shadow 0.15s;
}
.brand .brand-l {
  color: var(--accent);
  text-shadow: 0 0 3px var(--accent), 0 0 9px rgba(52, 211, 153, 0.67), 0 0 16px rgba(52, 211, 153, 0.33);
  transition: text-shadow 0.15s;
}
.brand:hover, .brand:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.55), 0 0 14px rgba(52, 211, 153, 0.33);
}
.brand:hover .brand-l, .brand:focus-visible .brand-l {
  text-shadow: 0 0 4px var(--accent), 0 0 12px var(--accent), 0 0 24px rgba(52, 211, 153, 0.67), 0 0 40px rgba(52, 211, 153, 0.33);
}
.brand:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav a { color: var(--text-2); text-decoration: none; transition: color 0.2s var(--ease); }
.nav a:hover { color: var(--text); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 72px;
}

.eyebrow {
  margin: 0;
  color: var(--text-3);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.02em;
}
.eyebrow b { color: var(--text-3); font-weight: 500; }

h1 {
  margin: 20px 0 20px;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h1 span { display: block; color: var(--text-3); }

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 13px;
}
.hero-stats li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.hero-stats strong {
  color: var(--text);
  font: 500 20px/1 var(--mono);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* Pills: the one primary (white) and the ghost secondaries. */
.download-btn,
.source-btn,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.download-btn {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.download-btn:hover { background: #ffffff; border-color: #ffffff; }
.download-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.download-btn small { font: 500 12px/1 var(--mono); color: var(--faint); }

.source-btn:hover,
.ghost-link:hover { background: var(--surface-2); border-color: var(--border-strong); }

.tiny-note {
  margin: 16px 0 0;
  color: var(--text-3);
  font: 500 11px/1.7 var(--mono);
}
.tiny-note a { color: var(--text-2); }

/* ── Hero visual: the original player preview, kept exactly as designed ── */

.visual {
  /* The page moved to the v3 palette; this block keeps the original one, so the
     player preview renders exactly as it was designed. */
  --panel: #171717;
  --border: #2c2c2c;
  --border-hi: #444444;
  --surface-2: #202020;
  --text-3: #6c6c6c;
  min-height: 360px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    radial-gradient(circle at 45% 34%, rgba(52, 211, 153, 0.18), transparent 15rem),
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 36%),
    var(--panel);
}

.visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  pointer-events: none;
}

.player {
  position: relative;
  z-index: 1;
  width: min(320px, 82%);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    rgba(17, 17, 17, 0.9);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  padding: 20px;
}

.cover {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(251, 113, 133, 0.12)),
    var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 22px;
}

.cover-logo {
  position: relative;
  z-index: 1;
  width: min(220px, 86%);
  height: auto;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  opacity: 1;
  transition: opacity 0.7s ease;
}

.cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  background: var(--surface-2);
}

.cover-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.player[data-preview-state="logo"] .cover-logo,
.player[data-preview-state="video"] .cover video,
.player[data-preview-state="screenshot"] .cover-screenshot {
  opacity: 1;
}

.player[data-preview-state="video"] .cover-logo,
.player[data-preview-state="video"] .cover-screenshot,
.player[data-preview-state="logo"] .cover video,
.player[data-preview-state="logo"] .cover-screenshot,
.player[data-preview-state="screenshot"] .cover-logo,
.player[data-preview-state="screenshot"] .cover video {
  opacity: 0;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.player:not([data-preview-state="video"]) .volume-control {
  display: none;
}

.volume-control span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent);
  font-size: 12px;
  height: 22px;
  line-height: 1;
  border-radius: 50%;
}

.volume-control input {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  accent-color: var(--accent);
  background: var(--surface-2);
  outline: none;
  cursor: pointer;
}

.volume-control input::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 3px solid #0f1714;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.volume-control input::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 3px solid #0f1714;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
}

.trackline {
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: var(--surface-2);
  margin-top: 16px;
  overflow: hidden;
  border: 0;
}

.trackline[hidden] {
  display: none;
}

.trackline::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--surface-2);
}

.trackline::-webkit-progress-value {
  border-radius: inherit;
  background: var(--accent);
}

.trackline::-moz-progress-bar {
  border-radius: inherit;
  background: var(--accent);
}

.mini-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.preview-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-3);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.preview-dot:hover,
.preview-dot:focus-visible {
  transform: scale(1.08);
  outline: none;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.08);
}

.preview-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08);
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.5;
  transform: rotate(12deg);
}

.spark.one { left: 19%; top: 24%; }
.spark.two { right: 20%; top: 31%; background: var(--heart); }
.spark.three { left: 25%; bottom: 24%; background: #75b4ff; }


/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding: 64px 0;
}

.section-title {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 660px;
  margin: 0 0 32px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

/* ── Spotify comparison ───────────────────────────────────────────────── */

.versus {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

/* A Task-Manager-style "Processes" view — the one place most Windows users have
   already seen how heavy an app is. */
.taskman {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  font-size: 14px;
}
.taskman-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid var(--surface-3);
  color: var(--text-3);
  font-size: 14px;
}
.taskman-bar b { color: var(--text); font-weight: 600; }
.taskman-bar span { margin-left: auto; color: var(--faint); letter-spacing: 6px; }
.taskman table { width: 100%; border-collapse: collapse; }
.taskman th {
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--surface-3);
  color: var(--text-3);
  font: 400 11px/1.3 var(--mono);
  text-align: right;
}
.taskman th:first-child { text-align: left; }
.taskman th strong { display: block; color: var(--text); font: 500 15px/1.3 var(--mono); }
.taskman td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface-3);
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}
.taskman td:first-child { text-align: left; font-family: inherit; font-size: 14px; }
.taskman tr:last-child td { border-bottom: 0; }
.proc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.proc img, .proc i {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 5px;
}
.proc i { background: var(--border-hi); }
.proc small { color: var(--text-3); font: 400 12px/1 var(--mono); }
/* Task Manager tints busy cells amber, stronger the busier they are; Lightify's own
   (idle, light) cells take the accent. */
.heat-hi { color: var(--warning); background: rgba(245, 165, 36, 0.12); }
.heat-mid { color: var(--text-2); background: rgba(245, 165, 36, 0.05); }
.heat-lo { color: var(--accent); background: rgba(52, 211, 153, 0.06); }
.taskman-note {
  margin: 0;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--surface-3);
  color: var(--text-3);
  font: 400 11px/1.6 var(--mono);
}

/* Startup race: replays the measured launch times in real time. */
.race {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.race h3 { margin: 0; font-size: 17px; font-weight: 700; }
.race > p { margin: -10px 0 0; color: var(--text-2); font-size: 14px; }
.race-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 58px; gap: 12px; align-items: center; }
.race-name { color: var(--text); font-size: 13px; font-weight: 500; }
.race-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.race-fill { height: 100%; border-radius: 999px; }
.race-fill-l { width: 13.4%; background: var(--accent); }
.race-fill-s { width: 94%; background: var(--border-strong); }
.race-time {
  color: var(--text);
  font: 500 12px/1 var(--mono);
  text-align: right;
}
.race-scale {
  display: flex;
  justify-content: space-between;
  margin: -8px 70px 0 82px;
  color: var(--text-3);
  font: 400 11px/1 var(--mono);
}
.race-btn {
  align-self: flex-start;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 600 13px/1 var(--sans);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.race-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.facts strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font: 500 30px/1.1 var(--mono);
  letter-spacing: -0.02em;
}
.facts strong em {
  font: 600 18px/1.2 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: -0.01em;
}
.facts span { color: var(--text-2); font-size: 14px; line-height: 1.6; }

.explain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  margin-top: 40px;
}
.explain h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.explain p { margin: 0; color: var(--text-2); }

.method {
  margin: 32px 0 0;
  color: var(--text-3);
  font: 400 11px/1.7 var(--mono);
  max-width: 920px;
}

/* ── Features with a real screenshot ──────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 10px 24px;
  align-items: stretch;
}
/* The cards are the grid's own items: the screenshot spans the first three rows beside
   them (they stretch to its height), the other four fill both columns below it. */
.features .feature-list { display: contents; }
.screenshot { margin: 0 0 4px; grid-row: span 3; }
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.screenshot figcaption { margin-top: 10px; color: var(--text-3); font: 400 11px/1.5 var(--mono); }

.feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.feature-list svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; }
.feature-list b { font-size: 15px; font-weight: 700; }
.feature-list span { color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ── Notices (warning / license / credits) ────────────────────────────── */

.notice {
  padding: 24px;
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.notice h2, .credits h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.notice p, .notice li { margin: 0 0 8px; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.notice ul { margin: 8px 0 10px; padding-left: 18px; }
.notice a { color: var(--text); }
.warning { border-color: #3a2a10; background: #120f0a; }
.warning h2 { color: var(--warning); }

.credits {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 16px;
  align-items: stretch;
}
.credits .notice { margin: 0; }
.credit-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.credit-pill:hover { border-color: var(--border-strong); background: var(--surface-2); }
.credit-pill span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font: 500 12px/1 var(--mono);
}
/* Slint royalty-free license attribution: must stay easy to find on this page. */
.slint-badge { display: inline-block; margin-top: 6px; border-radius: 8px; }
.slint-badge img { display: block; width: auto; height: 56px; }
.slint-badge:focus-visible { outline: 2px solid #8ab4ff; outline-offset: 3px; }
.credit-pill strong { display: block; line-height: 1.25; }
.credit-pill small { display: block; margin-top: 3px; color: var(--text-3); font: 400 11px/1.4 var(--mono); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--surface-2);
  color: var(--text-3);
  font: 400 11px/1.7 var(--mono);
}
footer a { color: var(--text-2); }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero, .versus, .features, .credits, .explain { grid-template-columns: 1fr; }
  .screenshot { grid-row: auto; margin-bottom: 14px; }
  .hero { padding: 44px 0 48px; }
  .visual { min-height: 280px; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 32px, 1120px); padding-top: 16px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .actions { display: grid; grid-template-columns: 1fr; }
  .download-btn, .source-btn, .ghost-link { width: 100%; }
  .visual { min-height: auto; padding: 18px; }
  .visual::before { inset: 12px; }
  .player { width: min(340px, 100%); padding: 16px; }
  .spark { opacity: 0.28; }
  .section { padding: 48px 0; }
  .taskman th, .taskman td { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 1120px); }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  .lead, .section-lead { font-size: 16px; }
  .visual { padding: 14px; }
  .player { width: 100%; }
  .race-row { grid-template-columns: 60px minmax(0, 1fr) 52px; gap: 8px; }
  .race-scale { margin-left: 68px; margin-right: 60px; }
  .race { padding: 18px; }

  /* Task Manager panel: keep all three columns and the "(7)" process count —
     "7 programs vs 1" is half the point — by tightening instead of hiding. */
  .taskman-bar { padding: 0 12px; }
  .taskman th, .taskman td { padding: 10px 8px; font-size: 12px; }
  .taskman td:first-child { font-size: 13px; }
  .taskman th strong { font-size: 13px; }
  .proc { gap: 7px; }
  .proc img, .proc i { width: 16px; height: 16px; flex-basis: 16px; }
  .taskman-note { padding: 10px 12px 14px; }

  .facts li { padding: 18px; }
  .facts strong { font-size: 24px; margin-bottom: 4px; }
  .feature-list li { padding: 16px; }
  .notice { padding: 18px; }
  .credit-pill { padding: 16px; }
}

/* Very narrow phones (iPhone SE 1st gen, small Androids). */
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .taskman th, .taskman td { padding: 9px 6px; }
  .taskman td { font-size: 11px; }
  .race-row { grid-template-columns: 54px minmax(0, 1fr) 48px; gap: 6px; }
  .race-scale { margin-left: 60px; margin-right: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
