/* thermi.app: one page, no framework, system fonts. Dark first, light from the system. */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cool: #3D5BFF; --mid: #8A4DFF; --warm: #FF7A1A;
  --bg: #0e0e11; --t1: #f2f2f0; --t2: rgba(242, 242, 240, .70); --t3: rgba(242, 242, 240, .52);
  --line: rgba(255, 255, 255, .09); --card: #16161a; --edge: rgba(242, 242, 240, .34);
  --link: #a9b6ff; --shadow: rgba(0, 0, 0, .7);
  /* The overlay's own colors, as thermi paints its dark pills. */
  --p-outer: #20201E; --p-border: #31312F; --p-inner: #171715; --p-label: #A9A9A7; --p-value: #EFEFEE;
  --warn: #fec84b; --crit: #f05a50; --crit-t: #000;
  --wall: radial-gradient(120% 140% at 80% 0%, #1d2a6b 0%, #0f1533 45%, #0a0c18 100%);
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f6f4; --t1: #141416; --t2: rgba(20, 20, 22, .72); --t3: rgba(20, 20, 22, .66);
    --line: rgba(0, 0, 0, .09); --card: #ffffff; --edge: rgba(20, 20, 22, .34); --link: #2f45d6; --shadow: rgba(0, 0, 0, .18);
    --p-outer: #F3F3F1; --p-border: #DADAD8; --p-inner: #FFFFFF; --p-label: #5C5C5A; --p-value: #1A1A1A;
    --warn: #9D5D00; --crit: #C42B1C; --crit-t: #fff;
    --wall: radial-gradient(120% 140% at 80% 0%, #c9d4ff 0%, #e4e8fb 50%, #f1f2f8 100%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 17px/1.55 var(--font); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--font-d); letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
code { font: .92em/1 Consolas, ui-monospace, monospace; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--card); border-radius: 6px; z-index: 9; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top { max-width: 1120px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--t1); text-decoration: none; }
.word { font: 700 26px/1 var(--font-d); letter-spacing: -.035em; }
.word .i { position: relative; display: inline-block; }
.word .dot { position: absolute; left: 50%; top: -.06em; width: .5em; transform: translateX(-42%); }
.links { display: flex; gap: 22px; font-size: 15px; }
.links a { color: var(--t2); text-decoration: none; }
.links a:hover { color: var(--t1); }


/* ---------- Hero ---------- */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.02; font-weight: 700; }
h1, h2 { text-wrap: balance; }
.lede { max-width: 36em; margin: 22px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--t2); text-wrap: pretty; }
.cta { margin-top: 34px; display: grid; justify-items: center; gap: 8px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 4px; }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 26px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; background: linear-gradient(90deg, var(--cool), var(--mid)); box-shadow: 0 8px 28px -10px rgba(110, 80, 255, .7); }
.btn:hover { filter: brightness(1.08); }
/* The second action: the same shape, only an outline, so the download stays the one that stands out. */
.btn.alt { color: var(--t1); background: none; box-shadow: inset 0 0 0 1px var(--edge); }
.btn.alt:hover { filter: none; background: var(--card); }
.meta { font-size: 14px; color: var(--t3); }
.meta a { color: inherit; }
.note { min-height: 1lh; }
code { user-select: all; }

/* The demo, recorded in a seamless loop: the overlay on its Windows taskbar beside the settings window, and on a phone the
   desktop above the window, so the text reads there too. Each holds its room before it loads, and with reduced motion
   shows only its first frame. */
.stage { margin: 48px auto 0; max-width: 1040px; }
.stage video { display: block; width: 100%; height: auto; border-radius: 12px; background: #0e0e11;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -36px var(--shadow); }
.stage .wide { aspect-ratio: 1600 / 564; }
.stage .phone { display: none; aspect-ratio: 744 / 950; }

.pill { --h: calc(29px * var(--s)); height: var(--h); padding: 2px; border-radius: calc(var(--h) / 2.6); background: var(--p-outer); box-shadow: inset 0 0 0 1px var(--p-border); display: flex; }
.pill .in { display: flex; align-items: center; gap: calc(12px * var(--s)); padding: 0 calc(9px * var(--s)); border-radius: calc(var(--h) / 2.6 - 2px); background: var(--p-inner); }
.it { display: flex; align-items: center; gap: calc(5px * var(--s)); white-space: nowrap; font-size: calc(12px * var(--s)); }
.it .lb { color: var(--p-label); }
.it .vl { color: var(--p-value); font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 calc(3px * var(--s)); margin: 0 calc(-3px * var(--s)); border-radius: calc(4px * var(--s));
  text-align: right; display: inline-block; }
/* Warning and critical never rest on color alone: a ring at warning, the value reversed at critical. */
.vl.lv-warn { box-shadow: inset 0 0 0 1.5px var(--warn); }
.vl.lv-crit { background: var(--crit); color: var(--crit-t); }

/* ---------- Features ---------- */
.feature { max-width: 1120px; margin: 0 auto; padding: 72px 24px; display: grid; gap: 32px; align-items: center; }
.feature h2, .faq h2, .plan h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; }
.feature .copy p { margin-top: 16px; color: var(--t2); max-width: 30em; text-wrap: pretty; }
.feature img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -36px var(--shadow); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 5fr 7fr; gap: 64px; }
  .feature.flip .copy { order: 2; }
}
.feature.wide { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.feature.wide .copy p { margin-left: auto; margin-right: auto; }
.feature.wide picture { max-width: 1000px; width: 100%; }
/* The capture over a game, a <video> left out until a real one exists. Its aspect-ratio is the capture's own, so its room
   is held before it loads. */
.capture { display: block; width: 100%; max-width: 1000px; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--card);
  object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -36px var(--shadow); }

/* Real captures at 200 %, shown at half their pixels so the overlay reads at the screen's own size. Each is the
   right edge of its screen, so they line up on the right, one strip per desktop. */
.feature.stack { grid-template-columns: 1fr; }
.strips { display: grid; justify-items: end; gap: 28px; }
.strips figure { margin: 0; }
.strips .windows { width: min(100%, 637px); }
.strips .gnome { width: min(100%, 1039px); }
.strips .kde { width: min(64.87%, 674px); }
.strips img { border-radius: 8px; }
.strips figcaption { margin-top: 8px; font-size: 13px; color: var(--t3); text-align: right; }

.levels { --s: 2; user-select: none; pointer-events: none; display: grid; justify-content: center; gap: 18px; padding: 44px 24px; border-radius: 12px; background: var(--wall); box-shadow: 0 0 0 1px var(--line); }
.lvl { display: flex; align-items: center; gap: 16px; }
.lvl > span { font-size: 13px; color: var(--t2); font-variant-numeric: tabular-nums; min-width: 6ch; }

/* Commands to copy, not a picture of a terminal: plain text that wraps instead of scrolling. */
.term { margin: 0; padding: 24px 26px; border-radius: 12px; background: var(--p-inner); box-shadow: 0 0 0 1px var(--p-border), 0 24px 60px -36px var(--shadow);
  color: var(--p-value); font: 15px/1.75 Consolas, ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .c { color: var(--p-label); }

/* ---------- Trust ---------- */
.trust { max-width: 1120px; margin: 0 auto; padding: 40px 24px 72px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden;
  grid-template-columns: 1fr; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 560px) { .trust ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li { background: var(--bg); padding: 24px; display: grid; align-content: start; gap: 6px; }
.trust b { font-family: var(--font-d); font-size: 19px; }
.trust span { color: var(--t2); font-size: 15px; }

/* ---------- Not yet, and the roadmap: plain lists, with nothing that could pass for a control. ---------- */
.plan { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.plan h2 { margin-bottom: 20px; }
.plan ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--t2); }
.plan li { padding-left: 2px; text-wrap: pretty; }
.plan li::marker { color: var(--t3); }
.road { display: grid; gap: 28px; }
@media (min-width: 640px) { .road { grid-template-columns: 1fr 1fr; gap: 48px; } }
.road h3 { margin: 0 0 12px; font: 600 17px/1.3 var(--font); }
.vote { margin-top: 28px; color: var(--t2); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border: solid var(--t3); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--t2); }

/* ---------- The last call: one line and the hero's two buttons. ---------- */
.end { max-width: 1120px; margin: 0 auto; padding: 0 24px 96px; display: grid; justify-items: center; gap: 28px; text-align: center; }
.end h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; }

/* ---------- Footer: the mark peeks over its line, as it does over the taskbar. ---------- */
.foot { position: relative; max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--t3); }
.foot .peek { position: absolute; right: 32px; bottom: 100%; width: 30px; margin-bottom: 4px; }
.foot a { color: var(--t2); text-decoration: none; }
.foot a:hover { color: var(--t1); }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero h1 br { display: none; }
  .stage { margin-left: -24px; margin-right: -24px; }
  .stage video { border-radius: 0; }
  .stage .wide { display: none; }
  .stage .phone { display: block; }
  .feature { padding: 44px 24px; }
  .trust { padding: 24px 24px 48px; }
  .plan { padding-bottom: 48px; }
  .faq { padding: 24px 24px 64px; }
  .end { padding-bottom: 64px; }
  .levels { --s: 1.3; }
  .note { min-height: 2lh; }
  /* On a phone, the strips from the GPU on, to the screen's edge. */
  .strips { margin-right: -24px; }
  .strips .windows { width: 93.33%; }
  .strips .gnome { width: 100%; }
  .strips .kde { width: 74.13%; }
  .strips img { border-radius: 8px 0 0 8px; }
  .strips figcaption { padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
