/* ============================================================
   TEMPLE - landing styles
   A quiet nod to Terry Davis' TempleOS: the 16-colour VGA palette
   on a deep DOS blue-black, a faint ordered-dither plus CRT
   scanlines for atmosphere, chunky pixel + terminal type, and
   box-drawing frames. Gold is the "holy" primary; cyan, green
   and red are the classic status colours. Flat surfaces, hairline
   borders, no soft gradients in our own chrome.
   ============================================================ */

:root {
  /* surfaces - deep DOS blue-black, stacked bg -> bar -> field */
  --bg:        #060810;   /* page base, near-black with a blue cast */
  --surface:   #0a0e1c;   /* window bg */
  --surface-2: #101630;   /* raised card / bar */
  --field:     #18203c;   /* inputs, chips, insets */
  --raised:    #232d4f;   /* hover / active surface */

  /* lines + text */
  --line:      rgba(120,150,210,.13);
  --line-2:    rgba(120,150,210,.22);
  --text:      #e9ebf6;
  --muted:     #9aa4c4;
  --faint:     #6a7498;

  /* accents - the VGA 16-colour set, gold leads (the "temple" hue) */
  --accent:      #ffcf4d;   /* gold / amber primary */
  --accent-soft: #ffe08a;
  --cyan:        #46e6ff;   /* interactive / links / focus */
  --green:       #46e08a;   /* yes / blocked / safe */
  --warn:        #ffb454;
  --red:         #ff5d6c;   /* no / nope */
  --tor:         #c77dff;   /* onion purple */

  /* changelog page expects these blue tokens; map them to cyan */
  --blue:        #46e6ff;
  --blue-soft:   #8ef1ff;

  /* tints (flat low-alpha washes, never gradients) */
  --accent-tint: rgba(255,207,77,.13);
  --cyan-tint:   rgba(70,230,255,.12);
  --green-tint:  rgba(70,224,138,.13);
  --warn-tint:   rgba(255,180,84,.12);
  --red-tint:    rgba(255,93,108,.11);

  --r:    11px;
  --r-sm: 7px;
  --r-lg: 14px;
  --r-btn: 8px;
  --maxw: 1140px;

  --ease: cubic-bezier(.22,.61,.36,1);

  /* IBM Plex Mono is the body + UI font (DOS-era mono, still readable).
     VT323 = big terminal display type. Silkscreen = 8-bit pixel wordmark
     and short labels. */
  --font-body: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-display: "VT323", "IBM Plex Mono", ui-monospace, monospace;
  --font-carved: "Silkscreen", "VT323", ui-monospace, monospace;
  --font-pixel: "Silkscreen", "VT323", ui-monospace, monospace;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── TempleOS atmosphere: a faint ordered-dither wash + CRT scanlines,
   both fixed behind everything, never catching pointer events ── */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(rgba(120,150,210,.045) 1px, transparent 1px) 0 0 / 4px 4px,
    radial-gradient(1000px 520px at 82% -12%, rgba(70,230,255,.025), transparent 58%),
    radial-gradient(900px 520px at 6% 4%, rgba(255,207,77,.04), transparent 55%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px);
  opacity: .5;
}

/* decorative pixel scatter — blocky accent bits on a 4px grid, echoing the
   pixel-temple logo and the browser's checker tab accents. Purely ornamental;
   sits behind the content (z-index:-1) so it shows through the page gutters. */
#px-scatter { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; overflow: hidden; }
.px-bit { position: absolute; image-rendering: pixelated; shape-rendering: crispEdges;
  animation: px-float 7s ease-in-out infinite; }
@keyframes px-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .px-bit { animation: none; } }

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--cyan); font-weight: 500; }
code { font-family: var(--font-mono); font-size: .9em; }
strong, b { font-weight: 600; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3f4b; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #4b515f; background-clip: padding-box; }

/* ───────────────── layout helpers ───────────────── */
main { display: block; }
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: clamp(20px,5vw,44px); padding-right: clamp(20px,5vw,44px); }

.sec-head { max-width: 640px; margin: 0 0 40px; }
.sec-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 50px); line-height: 1.02;
  letter-spacing: .005em; margin: 0 0 14px; color: var(--text);
}
.sec-p { color: var(--muted); font-size: clamp(14px,1.5vw,15.5px); margin: 0; line-height: 1.65; }

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; vertical-align: middle; }

/* terminal-style eyebrow used above section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: "\2588"; color: var(--accent); opacity: .9; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ───────────────── the temple mark (the pixel-art logo) ───────────────── */
.brand-mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
}
.brand-mark svg { width: 21px; height: 21px; color: var(--accent); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ───────────────── buttons ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-carved); font-weight: 400; font-size: 11px; letter-spacing: .03em;
  text-transform: uppercase;
  padding: 14px 20px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: background .16s, border-color .16s, color .16s;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #1a1404; background: var(--accent); box-shadow: 0 0 0 1px rgba(255,207,77,.35), 0 0 22px -8px rgba(255,207,77,.7); }
.btn-primary:hover { background: #ffd86b; }
.btn-ghost { color: var(--text); background: var(--field); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--raised); border-color: rgba(120,150,210,.4); }
.btn-android { color: #07150d; background: var(--green); }
.btn-android:hover { background: #62ec9d; }

/* ───────────────── nav ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 22px;
  padding: 13px clamp(20px,5vw,44px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.nav.scrolled { background: rgba(14,16,21,.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-family: var(--font-carved); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.brand-dim { font-family: var(--font-mono); color: var(--faint); margin-left: 8px; font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: lowercase; }

.nav-flag { position: relative; margin-right: auto; }
.nav-flag-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-carved); font-size: 10px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-tint); border: 2px solid rgba(255,205,107,.35);
  padding: 6px 11px 6px 10px; border-radius: 0; box-shadow: 2px 2px 0 0 rgba(0,0,0,.45);
  transition: background .16s, border-color .16s; }
.nav-flag-btn:hover { background: rgba(255,205,107,.16); border-color: rgba(255,205,107,.55); }
.nav-flag-btn:active { transform: translate(2px,2px); box-shadow: none; }
.nav-flag-dot { width: 7px; height: 7px; border-radius: 0; background: var(--warn); flex: 0 0 auto; image-rendering: pixelated; }
.nav-flag-pop { position: absolute; top: calc(100% + 9px); left: 0; width: 300px; max-width: 78vw;
  background: var(--surface-2); border: 2px solid var(--line-2); border-radius: 0; padding: 13px 15px;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .14s; z-index: 10; }
.nav-flag:hover .nav-flag-pop, .nav-flag:focus-within .nav-flag-pop { opacity: 1; pointer-events: auto; }
.nav-flag-pop p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.nav-flag-pop p::first-line { color: var(--text); }

.nav-links { display: flex; gap: 20px; }
.nav-links a { font-family: var(--font-carved); font-weight: 400; color: var(--muted);
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; transition: color .14s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 12px 18px; font-size: 12px; }

.lang-switch { display: flex; gap: 3px; padding: 3px; border: 2px solid var(--line-2); border-radius: 0; background: var(--field); box-shadow: 2px 2px 0 0 rgba(0,0,0,.5); image-rendering: pixelated; }
.lang-btn {
  font-family: var(--font-carved); font-size: 11px; font-weight: 400; letter-spacing: .05em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 7px 11px; border-radius: 0; transition: color .14s, background .14s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: #1a1404; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }

.nav-dl { position: relative; }
.nav-dl-chev { transition: transform .18s; margin-left: -2px; }
.nav-dl.open .nav-dl-chev { transform: rotate(180deg); }
.nav-dl-menu {
  position: absolute; top: calc(100% + 9px); right: 0; width: 244px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .14s;
}
.nav-dl.open .nav-dl-menu { opacity: 1; pointer-events: auto; }
.nav-dl-item { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: var(--r-sm); transition: background .12s; }
.nav-dl-item:hover { background: var(--raised); }
.nav-dl-ic { width: 36px; height: 36px; flex: 0 0 auto; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--line); }
.nav-dl-ic svg { width: 20px; height: 20px; }
.nav-dl-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-dl-txt b { font-size: 13.5px; font-weight: 600; }
.nav-dl-txt small { font-size: 11.5px; color: var(--muted); }
.nav-dl-item + .nav-dl-item { margin-top: 2px; }

.nav-tip { position: relative; }
.nav-tipbtn { padding: 12px 15px; font-size: 12px; border-radius: 0; border-width: 2px; box-shadow: 2px 2px 0 0 rgba(0,0,0,.5); }
.nav-tipbtn:active { transform: translate(2px,2px); box-shadow: none; }
.nav-tip-menu {
  position: absolute; top: calc(100% + 9px); right: 0; width: 288px;
  background: var(--surface-2); border: 2px solid var(--line-2); border-radius: 0; padding: 14px;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .14s;
}
.nav-tip.open .nav-tip-menu { opacity: 1; pointer-events: auto; }
.nav-tip-label { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
.nav-btc { margin-bottom: 0 !important; }

.nav-ver { display: flex; flex-direction: column; line-height: 1.3; text-align: right;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.nav-ver b { color: var(--text); font-weight: 600; }

/* ───────────────── hero (text left · shield panel right) ───────────────── */
.hero {
  max-width: 1460px; margin: 0 0 0 clamp(0px, 6vw, 150px);    /* shifted right, with room for a bigger player */
  padding: clamp(124px,16vh,168px) clamp(20px,5vw,44px) clamp(56px,9vh,96px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);     /* text still leads; the player is noticeably bigger */
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}
.hero-copy { max-width: none; }

.hero-meta { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.hero-meta-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--green); flex: 0 0 auto;
  box-shadow: 0 0 9px var(--green); animation: blink 1.4s steps(1) infinite; }

/* the boot banner: the wordmark with the logo to its right, like a TempleOS splash */
.hero-banner { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px,2.4vw,30px); margin: 0 0 18px; }
.hero-logo {
  width: clamp(108px,15vw,172px); height: auto; flex: 0 0 auto;
  filter: drop-shadow(0 0 30px rgba(255,207,77,.3));
}
.hero-wordmark {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px,11vw,128px); line-height: .82; letter-spacing: .01em;
  margin: 0; color: var(--accent); text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255,207,77,.35);
}
.hero-tag {
  font-family: var(--font-pixel); font-size: clamp(10px,1.4vw,12px); letter-spacing: .04em;
  color: var(--cyan); margin: 12px 0 0; line-height: 1.7;
}

.display {
  font-family: var(--font-carved); font-weight: 700;
  font-size: clamp(40px,5.6vw,72px); line-height: 1.05;
  letter-spacing: .005em; margin: 0 0 24px; text-transform: uppercase;
}
.accent-grad { color: var(--accent); }   /* class kept for i18n; flat accent, no gradient */
.lead { font-size: clamp(16px,1.6vw,18.5px); color: var(--muted); max-width: 36em; margin: 0 0 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; justify-content: flex-start; margin-bottom: 22px; }
.hero-cta .btn { padding: 18px 44px; font-size: 13px; letter-spacing: .05em; }

.hero-jab { margin: 8px 0 0; max-width: 40em;
  font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-jab s { color: var(--faint); text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 1px; }

/* hero statement - the personal pitch, mono, one accent word */
.hero-statement {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(15px,1.7vw,19px); line-height: 1.62; letter-spacing: 0;
  margin: 0 0 26px; max-width: 54ch; color: var(--muted);
  padding-left: 16px; border-left: 2px solid rgba(255,207,77,.4);
}
.hero-statement strong { font-weight: 600; color: var(--accent); }

/* right-column showcase player: a feature picker over a squared video frame */
.hero-media { margin: 0; align-self: center; }
.vid-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.vid-tab {
  font-family: var(--font-carved); font-weight: 400; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--field); border: 1px solid var(--line-2);
  padding: 9px 13px; cursor: pointer; transition: background .14s, color .14s, border-color .14s;
}
.vid-tab:hover { color: var(--text); border-color: rgba(255,207,77,.45); }
.vid-tab.is-active { color: #1a1404; background: var(--accent); border-color: var(--accent); }
.vid-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-2);
  background: #04050a;                 /* letterbox fill, so nothing is cropped */
  overflow: hidden;                    /* squared corners - no rounding to clip the edges */
  box-shadow: 0 24px 70px -28px rgba(0,0,0,.65);
}
.vid-frame .hero-video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* enlarge ("make it bigger") control, top-right of the frame */
.vid-expand {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--text); background: rgba(6,8,16,.66); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.vid-expand:hover { color: var(--accent); border-color: var(--accent); background: rgba(6,8,16,.92); }
.vid-expand svg { width: 17px; height: 17px; }

/* lightbox player: a big, real video player with controls + sound */
.vid-modal { z-index: 240; padding: clamp(16px,4vw,52px); }
.vid-modal-card { position: relative; width: 100%; max-width: min(1120px, 94vw); }
.vid-modal-video {
  width: 100%; max-height: 84vh; display: block; background: #04050a;
  border: 1px solid var(--line-2); box-shadow: 0 30px 90px -22px rgba(0,0,0,.85);
}
.vid-modal .modal-x { top: -42px; right: 0; }
.vid-modal-bar { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 12px; }
.vid-modal-title { font-family: var(--font-carved); font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); text-align: center; min-width: 180px; }
.vid-nav { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center;
  color: var(--text); background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  cursor: pointer; transition: background .14s, color .14s, border-color .14s; }
.vid-nav:hover { color: #1a1404; background: var(--accent); border-color: var(--accent); }
.vid-nav svg { width: 19px; height: 19px; }

/* ───────────────── features ───────────────── */
.features { padding: clamp(64px,9vh,104px) 0; border-top: 1px solid var(--line); }

.f-group { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px,3.4vw,38px); letter-spacing: .01em;
  text-transform: uppercase; color: var(--text); line-height: 1;
  margin: 44px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; }
.f-group::before { content: ">"; font-family: var(--font-mono); color: var(--accent); font-size: clamp(20px,2.6vw,28px); line-height: 1; }
.sec-head + .f-group { margin-top: 6px; }

.f-grid { display: grid; gap: 12px; }
.f-grid-3 { grid-template-columns: repeat(3,1fr); }

.f-card {
  position: relative; overflow: hidden;
  padding: 22px 22px 20px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s, background .16s;
}
/* left-side faded pixel-dot wash, like a TempleOS dithered panel */
.f-card::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 46%; z-index: 0;
  background-image: radial-gradient(rgba(255,207,77,.5) 1.5px, transparent 1.5px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 40%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 40%, transparent 100%);
  opacity: .18; pointer-events: none; transition: opacity .16s;
}
.f-card > * { position: relative; z-index: 1; }
.f-card:hover { border-color: rgba(255,207,77,.35); background: #131a35; }
.f-card:hover::before { opacity: .32; }
.f-card.f-ic-tor::before,
.f-card:has(.f-ic-tor)::before { background-image: radial-gradient(rgba(199,125,255,.5) 1.5px, transparent 1.5px); }
.f-ic { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: 8px; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--line); }
.f-ic svg { width: 22px; height: 22px; }
.f-ic svg, .dl-icon svg, .migrate-ic-lg svg, .nav-dl-ic svg { shape-rendering: crispEdges; image-rendering: pixelated; }
.f-ic-tor { color: var(--tor); background: rgba(199,125,255,.14); }
.f-title { font-family: var(--font-body); font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; margin: 0 0 7px; line-height: 1.25; color: var(--text); }
.f-text { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ───────────────── what's not in it ───────────────── */
.bloat { padding: clamp(56px,8vh,96px) 0; border-top: 1px solid var(--line); }
.bloat-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px,4vw,56px); align-items: center; }
.bloat .sec-head { margin-bottom: 0; }
.bloat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.bloat-list li { font-size: 15px; }
.strike { position: relative; color: #fff; padding-left: 28px; display: flex; align-items: center; line-height: 1.4; font-weight: 500; }
.strike::before {
  content: "\00d7"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--red);
  background: var(--red-tint); border-radius: 5px;
}
.bloat-kept { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.kept-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.kept-line svg { width: 16px; height: 16px; color: var(--green); flex: 0 0 auto; margin-top: 1px; padding: 3px; background: var(--green-tint); border-radius: 6px; }
.kept-line code { color: var(--accent-soft); }

/* ───────────────── specs (facts strip) + migration ───────────────── */
.specsmig { padding: clamp(48px,7vh,80px) 0; border-top: 1px solid var(--line); }
.facts {
  max-width: var(--maxw); margin: 0 auto 18px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(20px,3vw,40px);
}
.fact { display: flex; flex-direction: column; }
.fact-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px,4.4vw,54px); letter-spacing: .01em; line-height: 1; color: var(--accent); margin-bottom: 10px; }
.fact-unit { font-size: .42em; color: var(--cyan); margin-left: 4px; letter-spacing: .02em; font-weight: 400; }
.fact-text { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.migrate-card {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: clamp(18px,3vw,32px);
  padding: clamp(20px,3vw,28px) clamp(22px,3vw,32px); border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
}
.migrate-ic-lg { width: 56px; height: 56px; flex: 0 0 auto; border-radius: var(--r-sm); display: grid; place-items: center;
  color: var(--accent); background: var(--accent-tint); border: 1px solid var(--line); }
.migrate-ic-lg svg { width: 30px; height: 30px; }
.migrate-body { min-width: 0; }
.migrate-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px,2.4vw,24px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.migrate-desc { font-size: 14px; color: var(--muted); margin: 0 0 14px; max-width: 60ch; line-height: 1.55; }
.migrate-browsers { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.migrate-from { font-size: 13px; color: var(--faint); margin-right: 2px; }
.migrate-chip { font-family: var(--font-mono); font-size: 12px; color: var(--text); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--field); }

/* ───────────────── download + contact ───────────────── */
.download { padding: clamp(56px,8vh,96px) 0 clamp(40px,6vh,64px); border-top: 1px solid var(--line); }
.dl-count { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding: 6px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--green-tint); }
.dl-count[hidden] { display: none; }
.dl-count svg { width: 15px; height: 15px; color: var(--green); }
.dl-count b { color: var(--green); font-weight: 600; }

.ver-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ver-stamp b { color: var(--text); font-weight: 600; }

.dl-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.dl-card {
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .16s;
}
.dl-card.featured { border-color: rgba(255,207,77,.45); }
.dl-card:hover { border-color: var(--line-2); }
.dl-card.featured:hover { border-color: rgba(255,207,77,.6); }
.dl-card.android .dl-icon { color: var(--green); background: var(--green-tint); }

.dl-req { font-size: 12px; color: var(--faint); line-height: 1.55; margin: 0 0 16px; }
.dl-req a { color: var(--accent-soft); border-bottom: 1px solid rgba(255,224,138,.3); }
.dl-req a:hover { border-color: var(--accent-soft); }
.dl-badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-soft); background: var(--accent-tint); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 6px; }
.dl-badge.badge-port { color: var(--green); background: var(--green-tint); border-color: rgba(74,208,125,.3); }
.dl-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dl-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--line); }
.dl-icon svg { width: 26px; height: 26px; }
.dl-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 2px; }
.dl-meta { font-size: 13px; color: var(--muted); }
.dl-feats { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dl-feats li { position: relative; padding-left: 25px; font-size: 13.5px; color: var(--muted); }
.dl-feats li::before { content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; background: var(--green-tint); border-radius: 5px; }
.dl-feats li::after { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 4px; border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green); transform: rotate(-45deg); }
.dl-feats code { color: var(--accent-soft); }
.dl-btn { width: 100%; margin-top: auto; margin-bottom: 16px; }
.dl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.dl-file { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-size { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); flex: 0 0 auto; }
.dl-hash { display: block; margin-top: 11px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-note { margin: 28px 0 0; max-width: 560px; font-size: 13px; color: var(--faint); line-height: 1.6; }
.dl-note a { color: var(--accent-soft); border-bottom: 1px solid rgba(255,224,138,.3); }
.dl-note a:hover { border-color: var(--accent-soft); }
.dl-note code { color: var(--muted); background: var(--field); padding: 2px 6px; border-radius: 5px; }

.contact { padding: clamp(48px,7vh,80px) 0 clamp(56px,8vh,90px); border-top: 1px solid var(--line); }
.contact-card { max-width: 620px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px,4vw,40px); }
.contact-card .sec-h2 { margin: 0 0 12px; }
.contact-card .sec-p { margin: 0; }
.contact-email {
  display: inline-flex; align-items: center; gap: 11px; margin: 22px 0 0;
  font-family: var(--font-carved); font-size: clamp(10px,1.5vw,12px); font-weight: 400; letter-spacing: .02em; color: var(--accent);
  padding: 14px 20px; border-radius: var(--r-btn); background: var(--accent-tint);
  border: 1px solid rgba(255,207,77,.3); transition: background .16s, border-color .16s;
  word-break: break-all;
}
.contact-email:hover { background: rgba(255,207,77,.18); border-color: rgba(255,207,77,.5); }
.contact-email-ic { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; color: var(--accent); }
.contact-email-ic svg { width: 21px; height: 21px; }

/* ───────────────── footer ───────────────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 36px clamp(20px,5vw,44px) 50px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-carved); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.footer-tag { color: var(--muted); margin: 0; font-size: 14px; }
.footer-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.footer-meta a { color: inherit; border-bottom: 1px solid var(--line-2); }
.footer-meta a:hover { color: var(--text); }
.footer-credit { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); letter-spacing: .01em; max-width: 40ch; }

/* ───────────────── modals ───────────────── */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,7,9,.72); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 540px; max-height: 88vh; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px 28px 24px;
  box-shadow: 0 32px 70px -24px rgba(0,0,0,.8);
}
.modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm);
  background: var(--field); color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; transition: background .14s, color .14s; }
.modal-x:hover { background: var(--raised); color: var(--text); }
.modal-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 16px; color: var(--warn); background: var(--warn-tint); border: 1px solid var(--line); }
.modal-icon svg { width: 24px; height: 24px; }
.modal-icon-android { color: var(--green); background: var(--green-tint); }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.015em; margin: 0 0 14px; padding-right: 28px; }
.modal-warn { font-size: 13.5px; color: var(--warn); background: var(--warn-tint); border: 1px solid rgba(255,205,107,.24); padding: 10px 13px; border-radius: var(--r-sm); margin: 0 0 16px; line-height: 1.5; }
.modal-p { font-size: 14px; color: var(--muted); margin: 0 0 13px; line-height: 1.6; }
.modal-contact { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.modal-contact a { color: var(--accent-soft); border-bottom: 1px solid rgba(255,224,138,.3); word-break: break-all; }
.modal-contact a:hover { border-color: var(--accent-soft); }
.tip-link { display: inline; padding: 0; margin: 0; border: 0; background: none; font: inherit;
  color: var(--accent-soft); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,224,138,.45); }
.tip-link:hover { color: var(--text); text-decoration-color: var(--accent-soft); }

.modal-btc[hidden] { display: none; }
.modal-btc { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--r-sm);
  background: var(--field); border: 1px solid var(--line); margin-bottom: 20px; }
.modal-btc-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--warn); flex: 0 0 auto; }
.modal-btc-addr { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-btc-copy { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text);
  background: var(--raised); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 6px; cursor: pointer; transition: background .14s; }
.modal-btc-copy:hover { background: #3f4552; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: stretch; flex-wrap: wrap; }
.modal-actions .btn { padding: 12px 13px; font-size: 9px; letter-spacing: .03em; line-height: 1.3; flex: 0 1 auto; }
.modal-alt { color: var(--accent-soft); background: var(--accent-tint); border-color: rgba(255,207,77,.28); }
.modal-alt:hover { background: rgba(255,207,77,.16); border-color: rgba(255,207,77,.5); color: var(--text); }
.modal-free-port { display: none; }
.modal[data-mode="portable"] .modal-warn,
.modal[data-mode="portable"] .modal-alt,
.modal[data-mode="portable"] .modal-free-inst { display: none; }
.modal[data-mode="portable"] .modal-free-port { display: block; }

/* reveal class is neutralised - no entrance fades on this site */
.reveal { opacity: 1; transform: none; }

/* ───────────────── responsive ───────────────── */
.nav-burger { display: none; }

@media (max-width: 980px) {
  .bloat-inner { grid-template-columns: minmax(0,1fr); }
  .facts { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .f-grid-3 { grid-template-columns: repeat(2,1fr); }

  .nav { gap: 12px; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; padding: 0 10px; flex: 0 0 auto;
    border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .18s; }
  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-dl, .nav-tip, .nav-ver { display: none; }

  .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,16,21,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(20px,5vw,44px);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .26s var(--ease), opacity .2s, padding .26s, border-color .2s;
    border-top: 1px solid transparent;
  }
  .nav.menu-open .nav-links { max-height: 78vh; opacity: 1; pointer-events: auto; padding: 6px clamp(20px,5vw,44px) 14px; border-top-color: var(--line); }
  .nav-links a { padding: 15px 2px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }

  .migrate-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  .hero { padding-top: clamp(116px,16vh,150px); margin-inline: auto;
    grid-template-columns: minmax(0,1fr); gap: clamp(28px,6vw,40px); }
  .hero-media { width: 100%; max-width: 720px; }   /* stacks below the copy */
}

@media (max-width: 900px) {
  .dl-cards { grid-template-columns: minmax(0,1fr); max-width: 480px; }
}

@media (max-width: 720px) {
  .f-grid-3 { grid-template-columns: minmax(0,1fr); }
  .dl-cards { grid-template-columns: minmax(0,1fr); }
  .bloat-list { grid-template-columns: 1fr; }
  .display { font-size: clamp(36px,9vw,54px); }
}

@media (max-width: 540px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .dl-card, .contact-card, .migrate-card { padding: 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

@media (max-width: 440px) {
  .facts { grid-template-columns: 1fr; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 17px; }
  .brand-dim { display: none; }
  .nav-flag-label { display: none; }
  .nav-flag-btn { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
}

/* ============================================================
   COMPARISON TABLE  (Temple vs Brave / Chrome / Edge / Firefox)
   ============================================================ */
.compare { padding: clamp(56px,8vh,96px) 0; border-top: 1px solid var(--line); }

.cmp-wrap {
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--surface-2); overflow: hidden;
}
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cmp-table { width: 100%; border-collapse: collapse; min-width: 660px; }
.cmp-table th, .cmp-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }

/* column heads */
.cmp-table thead th {
  font-family: var(--font-pixel); font-weight: 400; font-size: 11px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted);
  padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
/* row labels (first column) */
.cmp-table tbody th {
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px; color: var(--text);
  text-align: left; line-height: 1.4;
}
.cmp-table .cmp-feat { text-align: left; color: var(--faint); }
.cmp-feat-col { position: sticky; left: 0; background: var(--surface-2); z-index: 1;
  min-width: 220px; padding-left: clamp(16px,3vw,26px); }

/* the Temple column, highlighted gold */
.cmp-table .cmp-us { position: relative; background: rgba(255,207,77,.07); }
.cmp-table thead .cmp-us {
  font-family: var(--font-display); font-size: 24px; letter-spacing: .02em;
  color: #ffe24a; text-transform: uppercase;
  border-bottom: 2px solid #ffe24a;
  text-shadow: 0 0 20px rgba(255,226,74,.55);
}
.cmp-us-tag { display: block; font-family: var(--font-pixel); font-size: 8px; letter-spacing: .04em; color: #ffe24a; opacity: .8; margin-top: 4px; }

/* the price / "$60" differentiator row + callout */
.cmp-table tr.cmp-row-price th, .cmp-table tr.cmp-row-price td { border-top: 1px solid var(--line-2); }
.cmp-callout {
  display: flex; align-items: center; gap: clamp(16px,3vw,30px);
  margin-top: 16px; padding: clamp(18px,3vw,28px) clamp(20px,3vw,30px);
  border: 1px solid rgba(255,226,74,.35); border-radius: var(--r-lg);
  background: rgba(255,226,74,.06);
}
.cmp-callout-fig {
  font-family: var(--font-display); font-size: clamp(52px,9vw,88px); line-height: .82;
  color: #ffe24a; text-shadow: 0 0 28px rgba(255,226,74,.45); flex: 0 0 auto;
}
.cmp-callout-txt { margin: 0; font-size: clamp(13.5px,1.6vw,16px); color: var(--text); line-height: 1.62; }
.cmp-callout-txt strong { color: #ffe24a; font-weight: 600; }
@media (max-width: 600px) { .cmp-callout { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* row hover */
.cmp-table tbody tr { transition: background .12s; }
.cmp-table tbody tr:hover td, .cmp-table tbody tr:hover th { background: rgba(120,150,210,.055); }
.cmp-table tbody tr:hover .cmp-feat-col { background: #141b36; }
.cmp-table tbody tr:hover .cmp-us { background: rgba(255,226,74,.11); }

/* collapsible extra rows + show-more control */
.cmp-table tr.cmp-extra { display: none; }
.cmp-table.is-expanded tr.cmp-extra { display: table-row; }
.cmp-more {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  font-family: var(--font-carved); font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,207,77,.05);
  border: 0; border-top: 1px solid var(--line-2);
  padding: 16px; cursor: pointer; transition: background .15s, color .15s;
}
.cmp-more:hover { background: rgba(255,207,77,.11); color: var(--accent-soft); }
.cmp-more svg { transition: transform .2s; }
.cmp-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* the yes / no / partial / value marks */
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; line-height: 1; }
.mk-yes  { color: var(--green); background: var(--green-tint); box-shadow: inset 0 0 0 1px rgba(70,224,138,.3); }
.mk-no   { color: var(--red);   background: var(--red-tint);   box-shadow: inset 0 0 0 1px rgba(255,93,108,.22); }
.mk-part { color: var(--warn);  background: var(--warn-tint);  box-shadow: inset 0 0 0 1px rgba(255,180,84,.28); }
.cmp-us .mk-yes { box-shadow: inset 0 0 0 1px rgba(70,224,138,.5), 0 0 14px -4px rgba(70,224,138,.7); }
.cmp-val { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); }
.cmp-us .cmp-val { color: var(--accent); }
.cmp-no-txt { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); }

.cmp-note { margin: 16px 2px 0; font-size: 12px; color: var(--faint); line-height: 1.6; }
.cmp-note b { color: var(--muted); font-weight: 600; }

/* ============================================================
   small terminal flourishes
   ============================================================ */
::selection { background: rgba(255,207,77,.3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 860px) {
  .hero-wordmark { font-size: clamp(56px,17vw,96px); }
  .hero-statement { max-width: none; }
}
@media (max-width: 600px) {
  .cmp-feat-col { min-width: 180px; }
}
