/* Update Scout — marketing site
   Theme-aware (light/dark), responsive, no external dependencies. */

:root {
  --accent: #0a84ff;
  --accent-2: #34aadc;
  --accent-strong: #0a6cff;
  --grad: linear-gradient(135deg, #4fc3f7 0%, #0a84ff 55%, #0a5fe0 100%);

  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --card-2: #f7f9fc;
  --border: #e6ebf2;
  --border-strong: #d6deea;
  --text: #131720;
  --muted: #5b6675;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 64px rgba(10,60,140,.18);

  --sparkle: #7c5cff;
  --brew: #b8791f;
  --catalog: #0a84ff;
  --builtin: #17a673;
  --manual: #8a94a4;
  --ok: #17a673;
  --warn: #d98a12;
  --err: #e0533d;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e14;
    --bg-alt: #0f141d;
    --bg-elev: #141a24;
    --card: #141a24;
    --card-2: #182231;
    --border: #232c3a;
    --border-strong: #2c3746;
    --text: #eaeef5;
    --muted: #9aa6b6;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.5);
    --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e14;
  --bg-alt: #0f141d;
  --bg-elev: #141a24;
  --card: #141a24;
  --card-2: #182231;
  --border: #232c3a;
  --border-strong: #2c3746;
  --text: #eaeef5;
  --muted: #9aa6b6;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 18px rgba(10,132,255,.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(10,132,255,.45); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--card-2); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 15px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 2px; margin-left: 4px; margin-right: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14px; padding: 8px 9px; border-radius: 9px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--card-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* language switcher */
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 11px; border-radius: 9px; border: 1px solid var(--border-strong);
  font-size: 14px; color: var(--text); font-weight: 500;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after { content: "▾"; font-size: 10px; color: var(--muted); }
.lang[open] > summary { background: var(--card-2); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; z-index: 120;
}
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px;
}
.lang-menu a:hover { background: var(--card-2); }
.lang-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* flag icons */
.flag {
  flex: none; display: inline-block; width: 21px; height: 14px; border-radius: 3px;
  overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
}
.flag svg { display: block; width: 100%; height: 100%; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(10,132,255,.16), transparent 60%),
    radial-gradient(700px 400px at 8% 0%, rgba(79,195,247,.14), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.035em; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 20px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fineprint { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.intro-note { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; font-weight: 600; color: var(--ok); }
.intro-tag { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-size: 12px; font-weight: 700; }

/* macOS window mockup */
.mac-window {
  --design-w: 560px; /* intrinsic width used when scaled down on narrow screens */
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .4s ease;
}
.hero-shot .mac-window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.mac-window { max-width: 100%; }
.mac-window.wide, .shot-panel .mac-window { --design-w: 860px; transform: none; width: 100%; max-width: 860px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .mac-window { transform: none; } }

/* On narrow viewports, shrink each window proportionally — like a screenshot
   image — instead of reflowing its internal layout. `zoom` (unlike a transform)
   shrinks the layout box too, so the desktop composition is preserved with no
   leftover height. The reflow fallback below covers engines without `zoom`. */
@supports (zoom: 1) {
  @media (max-width: 900px) {
    .mac-window,
    .mac-window.wide,
    .shot-panel .mac-window {
      width: var(--design-w); max-width: none; margin-inline: auto;
      transform: none;
      zoom: min(1, calc((100vw - 48px) / var(--design-w)));
    }
  }
}

.titlebar {
  position: relative; height: 40px; display: flex; align-items: center;
  padding: 0 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(var(--card-2), var(--card));
}
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lights .r { background: #ff5f57; } .lights .y { background: #febc2e; } .lights .g { background: #28c840; }
.titlebar .title {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none;
}

.app-body { display: grid; grid-template-columns: 172px 1fr; min-height: 340px; }
.sidebar { background: var(--card-2); border-right: 1px solid var(--border); padding: 12px 8px; }
.side-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 11px; border-radius: 8px; font-size: 13.5px; color: var(--text); margin-bottom: 2px;
}
.side-item b { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.side-item.active { background: var(--grad); color: #fff; }
.side-item.active b { color: rgba(255,255,255,.85); }
.side-item .acc { color: var(--accent); font-weight: 600; }
.side-item.active .acc { color: #fff; }

.content { padding: 12px 14px; min-width: 0; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.searchbox {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 10px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden;
}
.searchbox span { overflow: hidden; text-overflow: ellipsis; }
.tb-btn {
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--card); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 7px 12px; cursor: default; white-space: nowrap;
}
.tb-primary { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }

.rows { display: flex; flex-direction: column; gap: 4px; }
.app-row { display: flex; align-items: center; gap: 11px; padding: 8px 8px; border-radius: 10px; }
.app-row:hover { background: var(--card-2); }
.app-row img { width: 32px; height: 32px; border-radius: 7px; }
.app-row .am { flex: 1; min-width: 0; }
.app-row .an { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .av { font-size: 12.5px; color: var(--muted); }
.app-row .av b { color: var(--text); }
.app-row .arrow { color: var(--accent); font-weight: 700; }
.app-row .ok { color: var(--ok); font-weight: 500; }
.app-row .check { color: var(--ok); font-weight: 700; font-size: 15px; width: 20px; text-align: center; align-self: center; }
.app-row.has-reason { align-items: flex-start; }
.reason-line { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.reason-line .ri { color: var(--accent); }

.badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.b-sparkle { color: var(--sparkle); background: color-mix(in srgb, var(--sparkle) 14%, transparent); }
.b-brew    { color: var(--brew);    background: color-mix(in srgb, var(--brew) 16%, transparent); }
.b-catalog { color: var(--catalog); background: color-mix(in srgb, var(--catalog) 14%, transparent); }
.b-builtin { color: var(--builtin); background: color-mix(in srgb, var(--builtin) 14%, transparent); }
.b-manual  { color: var(--manual);  background: color-mix(in srgb, var(--manual) 16%, transparent); }

.rb {
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: #fff;
  background: var(--grad); border: none; border-radius: 8px; padding: 6px 13px; cursor: default;
}
.rb.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border-strong); }

/* trust row */
.trust { text-align: center; margin-top: 56px; }
.trust-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; align-items: center; }
.logo-row img { width: 44px; height: 44px; border-radius: 10px; filter: saturate(1); transition: transform .2s ease; }
.logo-row img:hover { transform: translateY(-3px) scale(1.06); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature h3 { font-size: 18px; margin: 16px 0 8px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.fi {
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 6px 16px rgba(10,132,255,.3);
}
.fi::after { content: ""; width: 22px; height: 22px; background: #fff; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
.fi-scan     { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M11 4a7 7 0 1 0 4.9 12l4.3 4.3 1.4-1.4-4.3-4.3A7 7 0 0 0 11 4m0 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10"/></svg>'); }
.fi-sources  { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M4 5h7v6H4zm9 0h7v6h-7zM4 13h7v6H4zm9 0h7v6h-7z"/></svg>'); }
.fi-safe     { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5zm-1.2 13-3.3-3.3 1.4-1.4 1.9 1.9 4-4 1.4 1.4z"/></svg>'); }
.fi-accuracy { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 4a6 6 0 1 1 0 12 6 6 0 0 1 0-12m0 3a3 3 0 1 0 0 6 3 3 0 0 0 0-6"/></svg>'); }
.fi-bulk     { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M13 3v10.6l3.3-3.3L18 12l-6 6-6-6 1.7-1.7L11 13.6V3z"/></svg>'); }
.fi-backups  { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 4a8 8 0 1 0 7.4 5h-2.2A6 6 0 1 1 12 6V3l4 4-4 4V8a4 4 0 1 0 0 8 4 4 0 0 0 3.9-3H12z"/></svg>'); }
.fi-notify   { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 22a2.5 2.5 0 0 0 2.5-2.5h-5A2.5 2.5 0 0 0 12 22m7-6-2-2v-4a5 5 0 0 0-4-4.9V4a1 1 0 1 0-2 0v1.1A5 5 0 0 0 7 10v4l-2 2v1h14z"/></svg>'); }
.fi-private  { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 1 3 5v6c0 5 3.8 9.7 9 11 5.2-1.3 9-6 9-11V5zm0 5a2.5 2.5 0 0 1 1 4.8V14h-2v-3.2A2.5 2.5 0 0 1 12 6"/></svg>'); }
.fi-langs    { --ic: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m6.9 6h-2.9a15 15 0 0 0-1.3-3.6A8 8 0 0 1 18.9 8M12 4c.8 1.1 1.5 2.5 1.9 4h-3.8c.4-1.5 1.1-2.9 1.9-4M4.3 14a8 8 0 0 1 0-4h3.4a17 17 0 0 0 0 4zm.8 2h2.9c.3 1.3.8 2.5 1.3 3.6A8 8 0 0 1 5.1 16m2.9-8H5.1a8 8 0 0 1 4.2-3.6C8.8 5.5 8.3 6.7 8 8m4 12c-.8-1.1-1.5-2.5-1.9-4h3.8c-.4 1.5-1.1 2.9-1.9 4m2.3-6H9.7a15 15 0 0 1 0-4h4.6a15 15 0 0 1 0 4m.7 5.6c.5-1.1 1-2.3 1.3-3.6h2.9a8 8 0 0 1-4.2 3.6M16.3 14a17 17 0 0 0 0-4h3.4a8 8 0 0 1 0 4z"/></svg>'); }

/* screenshots */
.shot-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.shot-tab {
  font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; transition: all .18s ease;
}
.shot-tab:hover { color: var(--text); }
.shot-tab.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(10,132,255,.3); }
.shot-panel { display: none; }
.shot-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform:none;} }
.shot-cap { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.shot-cap h3 { font-size: 22px; }
.shot-cap p { color: var(--muted); margin: 10px 0 0; }

/* detail window */
.detail-body { padding: 22px 24px 26px; }
.detail-head { display: flex; align-items: center; gap: 14px; }
.detail-head img { border-radius: 12px; }
.dh-name { font-size: 20px; font-weight: 700; }
.dh-ver { font-size: 14px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dh-ver b { color: var(--text); }
.detail-head .tb-btn { margin-left: auto; }
.detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.detail-meta div { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.detail-meta span { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.detail-meta b { font-size: 14px; }
.detail-reason {
  font-size: 13.5px; color: var(--text); background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 10px; padding: 12px 14px;
}
.detail-reason .ri { color: var(--accent); }
.detail-notes { margin-top: 20px; }
.detail-notes h4 { font-size: 15px; margin-bottom: 8px; }
.detail-notes p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* progress window */
.progress-body { padding: 20px 22px; }
.pr-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pr-row img { width: 34px; height: 34px; border-radius: 8px; }
.pr-main { flex: 1; min-width: 0; }
.pr-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pr-top .an { font-size: 14px; font-weight: 600; }
.pr-state { font-size: 12.5px; color: var(--muted); }
.pr-state.ok { color: var(--ok); font-weight: 600; }
.pr-state.warn { color: var(--warn); font-weight: 600; }
.bar { height: 6px; background: var(--card-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bar i.warnbar { background: var(--warn); opacity: .5; }
.bar i.indet { background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: indet 1.4s linear infinite; }
@keyframes indet { 0% { transform: translateX(-60%);} 100% { transform: translateX(60%);} }
.pr-foot { text-align: right; margin-top: 10px; }

/* backups window */
.backups-body { padding: 14px 18px; }
.bk-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--border); }
.bk-row:last-child { border-bottom: none; }
.bk-row img { width: 34px; height: 34px; border-radius: 8px; }
.bk-main { flex: 1; min-width: 0; }
.bk-main .an { font-size: 14px; font-weight: 600; }
.bk-main .av { font-size: 12.5px; color: var(--muted); }

.disclaimer { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 30px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
}
.why-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad); }
.why-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* app store */
.appstore { background: var(--bg-alt); }
.appstore-inner { max-width: 900px; }
.appstore-intro { text-align: center; font-size: 17px; color: var(--text); max-width: 760px; margin: 0 auto 36px; }
.as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.as-point { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px; }
.as-num {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.as-point h3 { font-size: 16.5px; margin-bottom: 6px; }
.as-point p { color: var(--muted); font-size: 14px; margin: 0; }
.appstore-conclusion { font-size: 16px; color: var(--text); text-align: center; max-width: 780px; margin: 36px auto 0; }
.appstore-trust {
  text-align: center; margin: 24px auto 0; font-weight: 600; font-size: 14px; color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px;
  padding: 10px 20px; width: fit-content;
}

/* pricing */
.price-card {
  max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow-lg); text-align: center; position: relative;
}
.price-card::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .6; }
.price-top img { margin: 0 auto 12px; border-radius: 14px; }
.price-name { font-size: 18px; font-weight: 700; }
.price-badge {
  display: inline-block; margin-top: 10px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
}
.price-amt { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-amt .price-was { -webkit-text-fill-color: var(--muted); color: var(--muted); font-size: 24px; font-weight: 600; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 70%, transparent); margin-left: 6px; letter-spacing: 0; }
.price-per { color: var(--muted); font-size: 14px; }
.price-feats { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.price-feats li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; border-bottom: 1px solid var(--border); }
.price-feats li:last-child { border-bottom: none; }
.price-feats li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--ok); font-weight: 800; width: 20px; height: 20px; }
.price-checkout { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.price-req { text-align: center; color: var(--muted); font-size: 13.5px; margin: 26px auto 0; max-width: 480px; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

/* final cta */
.final-cta { text-align: center; padding: 90px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.final-cta img { margin: 0 auto 18px; border-radius: 18px; }
.final-cta h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
.final-cta p { color: var(--muted); font-size: 17px; margin: 12px auto 26px; max-width: 520px; }
.final-cta .fineprint { margin-top: 16px; }

/* footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 14px 0 0; }
.footer-brand .made { font-size: 13px; margin-top: 12px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text); font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; }
.footer-bottom .tm { font-size: 11.5px; opacity: .8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 44px; }
  .mac-window { transform: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-shot { order: 2; }
  .feature-grid, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Collapse the primary nav to a hamburger whenever its links don't actually fit
   alongside the brand, language switcher, and Buy button. The fit width differs
   by language (French/German/Spanish labels are longer than English), so a fixed
   pixel breakpoint can't serve them all. main.js measures real overflow and adds
   `.nav-fits` to the header when the inline nav fits at the current width.
   This media query is the JS-off fallback: it collapses below the content
   max-width — wide enough that no language's inline nav ever bleeds. */
@media (max-width: 1120px) {
  .site-header:not(.nav-fits) .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; background: var(--card); border: 1px solid var(--border-strong);
    border-radius: 9px; cursor: pointer;
  }
  .site-header:not(.nav-fits) .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; border-radius: 2px; transition: .2s; }
  .site-header.open:not(.nav-fits) .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open:not(.nav-fits) .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open:not(.nav-fits) .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header:not(.nav-fits) .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; background: var(--bg-elev);
    border-bottom: 1px solid var(--border); padding: 12px 16px; box-shadow: var(--shadow);
  }
  .site-header.open:not(.nav-fits) .nav { display: flex; }
  .site-header:not(.nav-fits) .nav a { padding: 12px; font-size: 16px; }
  .site-header:not(.nav-fits) .header-inner { gap: 10px; }
}

@media (max-width: 720px) {
  .header-actions .btn-primary { display: none; }

  /* Window-internal reflow: only when `zoom`-based scaling is unavailable. */
  @supports not (zoom: 1) {
    .app-body { grid-template-columns: minmax(0, 1fr); min-width: 0; }
    .sidebar { display: flex; flex-wrap: wrap; gap: 6px; border-right: none; border-bottom: 1px solid var(--border); padding: 10px; min-width: 0; }
    .side-item { flex: none; padding: 6px 10px; }
    .side-item b { margin-left: 6px; }
    .detail-meta { grid-template-columns: repeat(2, 1fr); }
    .app-row .badge { display: none; }
  }

  .feature-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 420px) {
  @supports not (zoom: 1) {
    .toolbar { flex-wrap: wrap; }
    .tb-btn { font-size: 12px; padding: 6px 9px; }
  }
  .price-amt { font-size: 40px; }
}
