/* ============================================================
   Bloatless Browser — landing styles
   Flat, product-true UI. The page is styled as an extension of the
   browser's own chrome: layered solid surfaces, hairline borders,
   one restrained accent. No gradients, glows, grain or 3D — the
   look the app actually has, a little more polished for the web.
   ============================================================ */

:root {
  /* surfaces — same hierarchy the browser chrome uses (bg → bar → field) */
  --bg:        #15171b;   /* page base, a hair deeper so cards lift off it */
  --surface:   #1b1d22;   /* the browser's own window bg */
  --surface-2: #24272e;   /* raised card / bar */
  --field:     #2e323b;   /* inputs, chips, insets */
  --raised:    #353a45;   /* hover / active surface */

  /* lines + text */
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.13);
  --text:      #e6e8ec;
  --muted:     #9aa0aa;
  --faint:     #6b7280;

  /* accents — straight from the browser palette */
  --accent:      #5b9dff;
  --accent-soft: #7db1ff;
  --blue:        #5b9dff;
  --blue-soft:   #7db1ff;
  --green:       #4ad07d;
  --warn:        #ffcd6b;
  --amber:       #ffcd6b;
  --red:         #ff5468;

  /* tints (flat low-alpha washes, never gradients) */
  --accent-tint: rgba(91,157,255,.12);
  --green-tint:  rgba(74,208,125,.12);
  --warn-tint:   rgba(255,205,107,.12);
  --red-tint:    rgba(255,84,104,.10);

  --r:    12px;
  --r-sm: 8px;
  --r-lg: 16px;
  --r-btn: 9px;
  --maxw: 1140px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);

  /* one webfont (Inter) + the system mono the browser itself uses */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", 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: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--text); font-weight: 600; }
code { font-family: var(--font-mono); font-size: .88em; }

/* dark scrollbars, matching the browser chrome */
::-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; }

/* ───────────────── background grid ─────────────────
   The page background propagates to the canvas, so the body itself is
   transparent — a fixed z-index:-1 layer paints above it cleanly. Just a
   faint grid of cells, masked to fade out past the hero. No glow/grain. */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 105% 62% at 50% -4%, #000 32%, transparent 78%);
  mask-image: radial-gradient(ellipse 105% 62% at 50% -4%, #000 32%, transparent 78%);
}

/* ───────────────── 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); }

.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* mono "tag" chip — flat tint, hairline border, no gradient */
.section-tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft);
  padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 7px;
  background: var(--accent-tint); margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1;
  letter-spacing: -.022em; margin: 0 0 14px;
}
.section-sub { color: var(--muted); font-size: clamp(15px,1.5vw,17px); margin: 0; line-height: 1.55; }

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; vertical-align: middle; }

/* ───────────────── buttons (flat, ~9px radius — not pills) ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 11px 18px; border-radius: var(--r-btn); border: 1px solid transparent;
  cursor: pointer; transition: background .18s, border-color .18s, transform .18s var(--ease), color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--accent); }
.btn-primary:hover { background: #6ea8ff; }
.btn-ghost { color: var(--text); background: var(--field); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--raised); border-color: rgba(255,255,255,.22); }
.btn-android { color: #07150d; background: var(--green); }
.btn-android:hover { background: #5cdc8c; }

/* ───────────────── 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 .25s, border-color .25s;
}
.nav.scrolled { background: rgba(21,23,27,.9); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 7px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-dim { color: var(--faint); margin-left: 1px; font-weight: 600; }

/* early-build chip (sits next to the brand; popover on hover/focus, no layout shift) */
.nav-flag { position: relative; margin-right: auto; }
.nav-flag-btn { display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .03em;
  color: var(--warn); background: var(--warn-tint); border: 1px solid rgba(255,205,107,.22);
  padding: 5px 10px 5px 9px; border-radius: 100px; transition: background .18s, border-color .18s; }
.nav-flag-btn:hover { background: rgba(255,205,107,.16); border-color: rgba(255,205,107,.4); }
.nav-flag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 0 3px rgba(255,205,107,.16); flex: 0 0 auto; }
.nav-flag-pop { position: absolute; top: calc(100% + 9px); left: 0; width: 300px; max-width: 78vw;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 15px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-6px); transform-origin: top left; pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease); z-index: 10; }
.nav-flag:hover .nav-flag-pop, .nav-flag:focus-within .nav-flag-pop { opacity: 1; transform: none; 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: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { padding: 8px 14px; font-size: 14px; }

/* language switch (EN / ES) */
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); }
.lang-btn {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 5px 10px; border-radius: 6px; transition: color .15s, background .15s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: #fff; background: var(--accent); }

/* nav download dropdown */
.nav-dl { position: relative; }
.nav-dl-chev { transition: transform .2s var(--ease); 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; transform: translateY(-6px); transform-origin: top right;
  pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.nav-dl.open .nav-dl-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-dl-item { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: var(--r-sm); transition: background .14s; }
.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; }

/* navbar tip button + BTC popover */
.nav-tip { position: relative; }
.nav-tipbtn { padding: 8px 13px; font-size: 14px; }
.nav-tip-menu {
  position: absolute; top: calc(100% + 9px); right: 0; width: 288px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-6px); transform-origin: top right;
  pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.nav-tip.open .nav-tip-menu { opacity: 1; transform: none; 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; }

/* compact version readout in the navbar */
.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-head { color: var(--accent); font-weight: 600; }
.nav-ver b { color: var(--text); font-weight: 600; }

/* ───────────────── hero ───────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(116px,15vh,168px) clamp(20px,5vw,44px) clamp(56px,8vh,80px);
  display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(34px,5vw,72px); align-items: center;
}
.eyebrow { color: var(--muted); background: var(--field); margin-bottom: 22px; text-transform: none; letter-spacing: .02em; font-weight: 500; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74,208,125,.16); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,208,125,0); } }

.display {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px,6vw,66px); line-height: 1.02;
  letter-spacing: -.035em; margin: 0 0 22px;
}
/* was a gradient text fill — now a flat accent (class kept for i18n) */
.accent-grad { color: var(--accent); }
.lead { font-size: clamp(16px,1.6vw,18px); color: var(--muted); max-width: 32em; margin: 0 0 22px; }

/* competitive jab: same privacy, no bloat, no $60 price tag */
.hero-jab {
  display: inline-block; margin: 0 0 28px; padding: 9px 15px; border-radius: 10px;
  background: var(--accent-tint); border: 1px solid rgba(91,157,255,.22);
  font-size: clamp(14.5px,1.5vw,16.5px); font-weight: 600; color: var(--text); letter-spacing: -.005em;
}
.hero-jab s { color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 1px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 28px; }
.hero-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--faint); font-family: var(--font-mono); }
.hero-trust strong { color: var(--green); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   DEMO BROWSER — left intact (the on/off showcase the user liked).
   Flat palette vars above feed it; only the outer frame is de-tilted
   and given a neutral shadow so it sits in the flat layout.
   ═══════════════════════════════════════════════════════════════ */
.hero-demo { perspective: none; }
.demo-frame {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.7);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.hero-demo:hover .demo-frame { transform: translateY(-3px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.78); }

/* chrome */
.demo-chrome { background: var(--surface); border-bottom: 1px solid rgba(0,0,0,.4); }
.demo-tabs { display: flex; align-items: flex-end; gap: 0; padding: 8px 10px 0; }
.demo-tab {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 9px 9px 0 0; background: #262932; color: var(--muted);
  font-size: 12.5px; max-width: 170px; white-space: nowrap;
}
.demo-tab.active { background: #353a45; color: var(--text); }
.demo-tab .tt { overflow: hidden; text-overflow: ellipsis; }
.demo-tab .fav { width: 13px; height: 13px; border-radius: 3px; background: #2f6fd6; flex: 0 0 auto; }
.demo-tab .fav-yt { background: var(--red); }
.demo-newtab { color: var(--muted); padding: 0 10px 4px; font-size: 18px; line-height: 1; align-self: center; }

.demo-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 11px; }
.demo-navbtns { display: flex; gap: 4px; color: var(--muted); }
.demo-navbtns svg { width: 17px; height: 17px; padding: 4px; border-radius: 6px; }
.demo-navbtns svg.dim { opacity: .35; }
.demo-urlbar {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 6px 0 12px; border-radius: 9px;
  background: var(--field); color: var(--text); font-size: 13px;
}
.demo-urlbar .lock { width: 14px; height: 14px; color: var(--green); flex: 0 0 auto; }
.url-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-dim { color: var(--faint); }

.shield-pill {
  display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border: 0; border-radius: 7px; cursor: pointer;
  background: var(--green-tint); color: var(--green);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  transition: background .3s, color .3s;
}
.shield-pill svg { width: 15px; height: 15px; }
.shield-tick { stroke-dasharray: 10; stroke-dashoffset: 0; transition: stroke-dashoffset .3s; }
.shield-count { min-width: 1ch; text-align: right; }
.demo-frame[data-protected="false"] .shield-pill { background: var(--red-tint); color: var(--red); }
.demo-frame[data-protected="false"] .shield-tick { stroke-dashoffset: 10; }

/* viewport */
.demo-viewport {
  display: grid; grid-template-columns: 1fr 132px; gap: 18px;
  padding: 22px; height: 396px; overflow: hidden; position: relative;
  background: var(--surface);
}
.page-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--accent-soft); margin-bottom: 9px; }
.page-head { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 11px; }
.page-byline { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); margin-bottom: 16px; }
.byline-av { width: 18px; height: 18px; border-radius: 50%; background: #3a3f4a; }
.page-p { font-size: 12.5px; color: var(--muted); margin: 0 0 11px; line-height: 1.55; }
.page-p.line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); margin-bottom: 9px; }
.page-p.line.short { width: 62%; }

.page-aside { display: flex; flex-direction: column; gap: 16px; }

/* ── ads (the things that get blocked) ── */
.ad {
  position: relative; border: 1px dashed rgba(255,84,104,.4);
  border-radius: 9px; background: var(--red-tint);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s, max-height .55s var(--ease), margin .5s, padding .5s, border-color .5s;
}
.ad-tag {
  position: absolute; top: 5px; left: 6px; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .1em; color: var(--red);
  background: rgba(255,84,104,.16); padding: 1px 5px; border-radius: 4px;
}
.ad-banner { height: 46px; margin: 4px 0 16px; }
.ad-fake { font-size: 12px; font-weight: 600; color: #ff9aa6; }
.ad-fake.small { font-size: 10.5px; }
.ad-box { flex-direction: column; height: 116px; padding: 10px; }
.ad-box.tall { height: 150px; }
.ad-art { width: 100%; flex: 1; border-radius: 6px; background: repeating-linear-gradient(45deg, rgba(255,84,104,.12), rgba(255,84,104,.12) 7px, rgba(255,84,104,.05) 7px, rgba(255,84,104,.05) 14px); margin-bottom: 7px; }

.demo-frame[data-protected="true"] .ad {
  opacity: 0; transform: scale(.92); filter: blur(6px);
  max-height: 0 !important; margin-top: 0; margin-bottom: 0;
  padding-top: 0; padding-bottom: 0; border-color: transparent; pointer-events: none;
}
.demo-frame[data-protected="true"] .ad-banner { margin-bottom: 0; }

/* ── youtube embed (video-ad blocking showcase) ── */
.yt-embed { margin: 14px 0; border-radius: 10px; overflow: hidden; background: #0a0b0d; border: 1px solid var(--line); }
.yt-stage { position: relative; aspect-ratio: 16/8.6; overflow: hidden; }
.yt-scene { position: absolute; inset: 0;
  background:
    radial-gradient(58% 85% at 67% 24%, rgba(255,198,122,.6), transparent 55%),
    radial-gradient(85% 120% at 22% 88%, rgba(91,157,255,.32), transparent 60%),
    linear-gradient(165deg, #1b1e25 0%, #0c0e12 72%); }
.yt-scene::before { content:""; position:absolute; left:60%; top:24%; width:44px; height:44px; border-radius:50%;
  background: radial-gradient(circle at 40% 35%, #ffe7b3, #ff9b58 70%); box-shadow: 0 0 26px rgba(255,150,90,.5); }
.yt-scene::after { content:""; position:absolute; left:-5%; right:-5%; bottom:-1px; height:52%;
  background: linear-gradient(180deg, rgba(10,12,16,0), rgba(8,9,12,.85));
  clip-path: polygon(0 42%,20% 24%,38% 38%,58% 16%,78% 32%,100% 20%,100% 100%,0 100%); }

.yt-ad, .yt-video { position: absolute; inset: 0; transition: opacity .45s var(--ease); }
.yt-ad { background: linear-gradient(135deg, #2a1216, #160a0d); display: grid; place-items: center; }
.yt-ad-badge { position: absolute; top: 8px; left: 8px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: #08111f; background: var(--amber); padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.yt-ad-title { font-size: 13px; font-weight: 700; color: #ffd9a1; text-align: center; padding: 0 16px; }
.yt-skip { position: absolute; right: 8px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: #e3e7ee;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.28); padding: 4px 9px; border-radius: 3px; }
.yt-skip b { color: var(--amber); min-width: 1ch; text-align: center; }
.yt-adbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.yt-adbar-fill { display: block; height: 100%; width: 34%; background: var(--amber); }

.yt-video { opacity: 0; }
.yt-noads { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; font-weight: 700; color: #06160e;
  background: var(--green); padding: 3px 9px; border-radius: 100px; box-shadow: 0 2px 10px rgba(74,208,125,.4); }
.yt-eq { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.yt-eq i { width: 4px; height: 100%; border-radius: 2px; background: rgba(255,255,255,.9); transform-origin: bottom; transform: scaleY(.3); animation: eq 1s ease-in-out infinite; }
.yt-eq i:nth-child(2){ animation-delay:.16s } .yt-eq i:nth-child(3){ animation-delay:.32s } .yt-eq i:nth-child(4){ animation-delay:.1s } .yt-eq i:nth-child(5){ animation-delay:.26s }
@keyframes eq { 0%,100%{ transform: scaleY(.28) } 50%{ transform: scaleY(1) } }
.yt-controls { position: absolute; left: 9px; right: 9px; bottom: 7px; display: flex; align-items: center; gap: 8px; }
.yt-cplay { width: 13px; height: 13px; color: #fff; flex: 0 0 auto; }
.yt-time { font-family: var(--font-mono); font-size: 9px; color: #eef0f4; flex: 0 0 auto; }
.yt-prog { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.yt-prog-fill { display: block; height: 100%; width: 0; background: var(--red); border-radius: 2px; }

.yt-meta { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; }
.yt-title { font-size: 11.5px; font-weight: 600; }
.yt-sub { font-size: 10px; color: var(--faint); }

.demo-frame[data-protected="true"]  [data-yt-ad]    { opacity: 0; pointer-events: none; }
.demo-frame[data-protected="true"]  [data-yt-video] { opacity: 1; }
.demo-frame[data-protected="true"]  .yt-prog-fill   { width: 58%; transition: width 3.4s linear; }
.demo-frame[data-protected="false"] [data-yt-ad]    { opacity: 1; }
.demo-frame[data-protected="false"] [data-yt-video] { opacity: 0; }

/* ── popup ── */
.popup {
  position: absolute; right: 18px; bottom: 18px; width: 210px;
  border-radius: 12px; overflow: hidden; z-index: 6;
  background: var(--surface-2); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.7);
  transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.popup-head { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: #20232a; font-size: 10.5px; color: var(--muted); }
.popup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.popup-x { margin-left: auto; background: none; border: 0; color: var(--faint); font-size: 15px; line-height: 1; cursor: pointer; }
.popup-body { padding: 14px 13px 16px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.popup-big { font-size: 12.5px; font-weight: 700; color: var(--amber); line-height: 1.3; }
.popup-sub { font-size: 10.5px; color: var(--muted); }
.popup-btn { margin-top: 4px; font-size: 11px; font-weight: 700; color: #08111f; background: var(--amber); padding: 6px 16px; border-radius: 100px; }
.demo-frame[data-protected="true"] .popup { opacity: 0; transform: translateY(16px) scale(.94); pointer-events: none; }

/* scanline sweep on toggle */
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(91,157,255,.16) 60%, rgba(91,157,255,.32));
  border-bottom: 1px solid rgba(123,177,255,.6);
  opacity: 0; pointer-events: none;
}
.demo-frame.scanning .scanline { animation: sweep .7s var(--ease); }
@keyframes sweep {
  0% { opacity: 1; transform: translateY(-40%); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(260%); }
}

/* demo control */
.demo-control {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px; padding: 13px 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r);
}
.dc-label { font-weight: 600; font-size: 14px; }
.dc-hint { margin-left: auto; font-size: 12.5px; color: var(--faint); font-family: var(--font-mono); transition: color .3s; }
.toggle {
  position: relative; width: 74px; height: 32px; border-radius: 100px;
  border: 1px solid var(--line-2); cursor: pointer; padding: 0;
  background: var(--field); transition: background .35s var(--ease);
}
.toggle[aria-checked="true"] { background: rgba(74,208,125,.2); border-color: rgba(74,208,125,.4); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #f4f6f9;
  box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .35s var(--ease), background .35s;
}
.toggle[aria-checked="true"] .toggle-knob { transform: translateX(42px); background: #b6f0cd; }
.toggle-on, .toggle-off {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
}
.toggle-on { left: 11px; color: var(--green); opacity: 0; transition: opacity .3s; }
.toggle-off { right: 10px; color: var(--faint); opacity: 1; transition: opacity .3s; }
.toggle[aria-checked="true"] .toggle-on { opacity: 1; }
.toggle[aria-checked="true"] .toggle-off { opacity: 0; }
/* ═══════════════════ end demo block ═══════════════════ */

/* ───────────────── features (consolidated grid) ───────────────── */
.features { padding: clamp(56px,8vh,96px) 0; border-top: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

/* each card carries its own accent (--ca), revealed on hover */
.feat-card {
  position: relative; overflow: hidden; padding: 24px 22px 20px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: opacity .6s var(--ease-out), transform .3s var(--ease), border-color .2s, background .2s;
  --ca: var(--accent); --ca-soft: var(--accent-tint); --ca-ink: #07101f;
}
.feat-card[data-tone="red"]   { --ca: var(--red);    --ca-soft: var(--red-tint);    --ca-ink: #1c0a0d; }
.feat-card[data-tone="amber"] { --ca: var(--warn);   --ca-soft: var(--warn-tint);   --ca-ink: #241a04; }
.feat-card[data-tone="green"] { --ca: var(--green);  --ca-soft: var(--green-tint);  --ca-ink: #06160e; }
.feat-card[data-tone="blue"]  { --ca: var(--accent); --ca-soft: var(--accent-tint); --ca-ink: #07101f; }
.feat-card[data-tone="tor"]   { --ca: #9b6dff;       --ca-soft: rgba(155,109,255,.14); --ca-ink: #fff; }

/* accent bar that wipes in along the top edge on hover */
.feat-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--ca); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.feat-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: #272a32; }
.feat-card:hover::after { transform: scaleX(1); }

/* icon + title share a header row */
.feat-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.feat-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  color: var(--ca); background: var(--ca-soft); border: 1px solid var(--line);
  transition: background .22s var(--ease), color .22s, border-color .22s, transform .22s var(--ease); }
.feat-ic svg { width: 23px; height: 23px; }
/* icon tile fills with its accent and tips slightly on hover */
.feat-card:hover .feat-ic { background: var(--ca); color: var(--ca-ink); border-color: transparent; transform: scale(1.06) rotate(-3deg); }

.feat-title { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
.feat-text { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* staggered reveal across the three columns */
.feat-grid .feat-card:nth-child(3n+2) { transition-delay: .06s; }
.feat-grid .feat-card:nth-child(3n)   { transition-delay: .12s; }

/* ───────────────── what's not in it (compact strip) ───────────────── */
.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-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.bloat-list li { font-size: 14px; }
.strike { position: relative; color: var(--faint); padding-left: 24px; display: inline-flex; align-items: center; line-height: 1.4; }
.strike::before {
  content: "\00d7"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; display: grid; place-items: center;
  font-size: 12px; 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 + migration ───────────────── */
.specsmig { padding: clamp(48px,7vh,80px) 0; border-top: 1px solid var(--line); }
.specs {
  max-width: var(--maxw); margin: 0 auto 16px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.spec { background: var(--surface-2); padding: 26px 22px; }
.spec-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,3.4vw,40px); letter-spacing: -.03em; display: block; margin-bottom: 9px; color: var(--text); }
.spec-unit { font-size: .46em; color: var(--accent-soft); margin-left: 3px; letter-spacing: 0; font-weight: 600; }
.spec-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* migration band — flat, hairline border, no gradient */
.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-tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 8px; }
.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 + android + 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: 16px auto 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-direction: column; align-items: center; gap: 4px; width: fit-content; margin: 16px auto 0;
  font-family: var(--font-mono); }
.ver-stamp-head { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); }
.ver-stamp-row { font-size: 14px; color: var(--muted); letter-spacing: .2px; }
.ver-stamp-row b { color: var(--text); font-weight: 600; }
.ver-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(74,208,125,.16); }

.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 .2s, transform .2s var(--ease);
}
.dl-card.featured { border-color: rgba(91,157,255,.45); }
.dl-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.dl-card.featured:hover { border-color: rgba(91,157,255,.6); }
.dl-card.android .dl-icon { color: var(--green); background: var(--green-tint); }

/* per-card platform / version note, sits above the (bottom-pinned) button */
.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(123,177,255,.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); }
/* margin-top:auto pins the button (and the single-line foot + hash below it) to
   the card bottom, so all three cards' buttons land on the same row */
.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 { text-align: center; margin: 28px auto 0; max-width: 540px; font-size: 13px; color: var(--faint); line-height: 1.6; }
.dl-note a { color: var(--accent-soft); border-bottom: 1px solid rgba(123,177,255,.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 — slim closing band */
.contact { padding: clamp(48px,7vh,80px) 0 clamp(56px,8vh,90px); border-top: 1px solid var(--line); }
.contact-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(30px,4vw,44px); }
.contact-card .section-title { margin: 12px 0 12px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0;
  font-family: var(--font-mono); font-size: clamp(14px,2vw,17px); font-weight: 500; color: var(--text);
  padding: 11px 20px; border-radius: var(--r-btn); background: var(--accent-tint);
  border: 1px solid rgba(91,157,255,.3); transition: background .2s, border-color .2s, transform .2s;
  word-break: break-all;
}
.contact-email:hover { background: rgba(91,157,255,.18); border-color: rgba(91,157,255,.5); transform: translateY(-2px); }
.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: 11px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.footer-brand img { border-radius: 6px; }
.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); }

/* ───────────────── 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,.7); backdrop-filter: blur(4px); animation: mfade .2s ease; }
.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); animation: mrise .26s var(--ease);
}
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mrise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.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 .18s, color .18s; }
.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(--amber); 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(123,177,255,.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(123,177,255,.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; animation: mfade .2s ease; }
.modal-btc-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--amber); 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 .18s; }
.modal-btc-copy:hover { background: #3f4552; }
.modal-actions { display: flex; gap: 8px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.modal-actions .btn { padding: 10px 13px; font-size: 12.5px; flex: 0 1 auto; }
.modal-alt { color: var(--accent-soft); background: var(--accent-tint); border-color: rgba(91,157,255,.28); }
.modal-alt:hover { background: rgba(91,157,255,.16); border-color: rgba(91,157,255,.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-on-scroll ───────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────────── responsive ───────────────── */
.nav-burger { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 110px; gap: 38px; }
  .bloat-inner { grid-template-columns: minmax(0,1fr); }
  .specs { grid-template-columns: repeat(2,1fr); }
  .feat-grid { 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 .3s var(--ease), opacity .2s; }
  .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(21,23,27,.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 .3s var(--ease), opacity .25s, padding .3s, border-color .25s;
    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: 900px) {
  .dl-cards { grid-template-columns: minmax(0,1fr); max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .feat-grid { 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,10vw,52px); }
  .demo-viewport { height: auto; grid-template-columns: minmax(0,1fr); }
  .page-aside { flex-direction: row; }
  .ad-box, .ad-box.tall { height: 100px; flex: 1; }
  .section-head { margin-bottom: 34px; }
}

@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) {
  .specs { grid-template-columns: 1fr; }
  .demo-control { flex-wrap: wrap; }
  .dc-hint { margin-left: 0; width: 100%; }
  .hero-trust { font-size: 12px; gap: 8px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 16px; }
  .brand-dim { display: none; }
  .nav-flag-label { display: none; }   /* chip collapses to the dot; popover still opens on tap */
  .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; }
  .reveal { opacity: 1; transform: none; }
}
