/* Downlyx landing page. Tokens mirror the desktop app (apps/desktop/src/styles.css). */
:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --bg: #FBFBFD;
  --bg-alt: #F5F5F7;
  --surface: #FFFFFF;
  --sidebar: #ECECEF;
  --label: #1D1D1F;
  --secondary: #5E5E63;
  --tertiary: #86868B;
  --separator: rgba(0, 0, 0, .1);
  --field: rgba(0, 0, 0, .055);
  --track: rgba(0, 0, 0, .08);
  --accent: #0B7A4B;
  --accent-text: #0A6B42;
  --accent-soft: rgba(11, 122, 75, .1);
  --green: #1F7A35;
  --green-fill: #34C759;
  --orange: #B25000;
  --tertiary-mark: #A1A1A6;
  --shadow-lg: 0 0 0 .5px rgba(0, 0, 0, .1), 0 30px 80px -20px rgba(0, 70, 40, .28), 0 12px 30px -12px rgba(0, 0, 0, .15);
  --shadow-sm: 0 0 0 .5px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .06);
  --glow-a: rgba(14, 138, 85, .18);
  --glow-b: rgba(61, 220, 151, .14);
  --dark-band: #0B0B10;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0E0E11;
    --surface: #1C1C1E;
    --sidebar: #232326;
    --label: #F5F5F7;
    --secondary: #A1A1A6;
    --tertiary: #8E8E93;
    --separator: rgba(255, 255, 255, .12);
    --field: rgba(255, 255, 255, .08);
    --track: rgba(255, 255, 255, .12);
    --accent: #0E8A55;
    --accent-text: #3DDC97;
    --accent-soft: rgba(14, 138, 85, .2);
    --green: #30D158;
    --green-fill: #30D158;
    --orange: #FF9F0A;
    --tertiary-mark: #636366;
    --shadow-lg: 0 0 0 .5px rgba(255, 255, 255, .12), 0 30px 80px -20px rgba(14, 138, 85, .28), 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-sm: 0 0 0 .5px rgba(255, 255, 255, .1), 0 1px 3px rgba(0, 0, 0, .4);
    --glow-a: rgba(14, 138, 85, .3);
    --glow-b: rgba(139, 209, 47, .14);
    --dark-band: #111116;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.022em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 980px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { color: var(--accent-text); background: var(--accent-soft); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.btn-sm { font-size: 14px; padding: 7px 16px; }
.btn-lg { font-size: 17px; padding: 13px 26px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--separator);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--label); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand.small { font-size: 15px; gap: 8px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: 12px; }
.nav-links a { color: var(--secondary); font-size: 14px; }
.nav-links a:hover { color: var(--label); text-decoration: none; }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang {
  position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--secondary);
  background: var(--field); border-radius: 980px; padding-inline: 10px 8px; height: 32px; cursor: pointer;
}
.lang:hover { color: var(--label); }
.lang:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 600 13px var(--font); padding-inline-end: 14px; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' stroke='%2386868B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 9px; background-position: right 0 center;
}
[dir="rtl"] .lang select { background-position: left 0 center; }
.lang select option { color: #1D1D1F; background: #fff; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(50% 50% at 72% 40%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 30% 20%, var(--glow-b), transparent 70%);
  filter: blur(10px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.eyebrow { color: var(--accent-text); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; font-weight: 750; letter-spacing: -.035em; }
.grad {
  background: linear-gradient(100deg, #0E8A55 0%, #1FBF75 55%, #8BD12F 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--secondary); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px; font-weight: 500; color: var(--secondary);
  padding: 6px 12px; border-radius: 980px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.hero-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }

/* App mock */
.showcase { padding: 24px 0 72px; }
.window {
  border-radius: 14px; overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow-lg);
  font: 13px/1.38 var(--font); max-width: 1000px; margin-inline: auto;
}
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--sidebar); border-bottom: .5px solid var(--separator); }
.dots { display: inline-flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.win-field {
  flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
  background: var(--field); color: var(--tertiary); padding: 6px 10px; border-radius: 7px;
}
.win-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-field kbd { font: 11px var(--font); color: var(--tertiary); border: .5px solid var(--separator); border-radius: 4px; padding: 1px 5px; }
.win-btn { background: var(--accent); color: #fff; font-weight: 600; padding: 5px 14px; border-radius: 7px; }
.win-body { display: grid; grid-template-columns: 200px 1fr; min-height: 380px; }
.win-side { background: var(--sidebar); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; border-right: .5px solid var(--separator); }
.side-item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--label); }
.side-item.active { background: var(--track); }
.side-item em { margin-left: auto; font-style: normal; color: var(--secondary); font-size: 12px; }
.side-label { margin: 14px 8px 4px; font-size: 11px; font-weight: 600; color: var(--tertiary); }
.i { width: 15px; height: 15px; border-radius: 4px; background: var(--accent); flex: none; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-down { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1v9m-4-4 4 4 4-4M2 13h12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.i-lib { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='1.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='1.5' width='5' height='5' rx='1'/%3E%3Crect x='1.5' y='9.5' width='5' height='5' rx='1'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3C/svg%3E"); }
.i-shield { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 2 3.5V8c0 3.4 2.6 6.2 6 7 3.4-.8 6-3.6 6-7V3.5z'/%3E%3C/svg%3E"); }
.i-gear { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5' fill='none' stroke='black' stroke-width='3' stroke-dasharray='2.4 1.5'/%3E%3Ccircle cx='8' cy='8' r='2.2'/%3E%3C/svg%3E"); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-inline: 3px; flex: none; }
.win-list { background: var(--surface); padding: 6px 0; }
.row { display: flex; gap: 14px; padding: 14px 18px; border-bottom: .5px solid var(--separator); }
.row:last-child { border-bottom: 0; }
.ficon { width: 34px; height: 40px; border-radius: 6px; flex: none; position: relative; background: linear-gradient(#E9EEF6, #D6DEEA); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.ficon::after { content: ""; position: absolute; inset: 12px 8px; border-radius: 3px; background: var(--fc, #8E8E93); }
.f-disk { --fc: #636366; }
.f-video { --fc: #AF52DE; }
.f-torrent { --fc: #34C759; }
.f-zip { --fc: #FF9500; }
@media (prefers-color-scheme: dark) { .ficon { background: linear-gradient(#3A3A3E, #2C2C30); } }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-top strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speed { color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--secondary); white-space: nowrap; }
.tag { font-size: 11px; font-weight: 600; color: var(--accent-text); background: var(--accent-soft); padding: 2px 8px; border-radius: 980px; white-space: nowrap; }
.tag-green { color: var(--green); background: color-mix(in srgb, var(--green-fill) 15%, transparent); }
.row-sub { display: flex; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; flex-wrap: wrap; }
.row-sub code { font: 11px var(--mono); color: var(--tertiary); }
.row-sub.ok { justify-content: flex-start; gap: 6px; color: var(--green); font-weight: 500; }
.check { width: 14px; height: 14px; border-radius: 50%; background: var(--green-fill); position: relative; flex: none; margin-top: 1px; }
.check::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.lanes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.lanes i, .bar i { display: block; height: 6px; border-radius: 3px; background: var(--track); position: relative; overflow: hidden; }
.lanes i::after, .bar i::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #3DDC97);
  animation: fill 2.4s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both;
}
.bar i { width: 100%; }
.bar-green i::after { background: var(--green-fill); }
@keyframes fill { from { width: 0; } }
@media (prefers-reduced-motion: reduce) { .lanes i::after, .bar i::after { animation: none; } }
.caption { text-align: center; color: var(--tertiary); font-size: 14px; margin-top: 18px; }

/* Numbers */
.numbers { border-block: .5px solid var(--separator); background: var(--bg-alt); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.numbers-grid div { display: flex; flex-direction: column; gap: 6px; }
.numbers-grid strong {
  font-size: clamp(34px, 4vw, 48px); font-weight: 750; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, #1FBF75, #8BD12F); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.numbers-grid span { color: var(--secondary); font-size: 15px; }

/* Sections */
section { position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 750; }
.section-head p:not(.eyebrow) { color: var(--secondary); font-size: 19px; margin-top: 16px; }

.features { padding: 110px 0 40px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 36px 0; }
.feature.flip .feature-art { order: 2; }
.feature-art {
  border-radius: var(--radius); background: radial-gradient(70% 70% at 50% 50%, var(--accent-soft), transparent 70%), var(--bg-alt);
  aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.feature-art img { width: 86%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-art img { transform: scale(1.03); }
.kicker { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 12px; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; font-weight: 720; }
.feature-copy > p:not(.kicker) { color: var(--secondary); font-size: 18px; margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' stroke='%23007AFF' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Compare */
.compare { padding: 110px 0; background: var(--bg-alt); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
th, td { padding: 14px 18px; text-align: center; border-bottom: .5px solid var(--separator); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 14px; color: var(--secondary); font-weight: 600; padding-block: 18px; vertical-align: bottom; }
thead th.us { color: var(--label); font-size: 16px; }
thead th.us img { display: inline-block; vertical-align: -4px; margin-inline-end: 6px; }
tbody th { text-align: start; font-weight: 500; }
td.us { background: var(--accent-soft); }
thead th.us { background: var(--accent-soft); border-top-left-radius: 14px; border-top-right-radius: 14px; }
.y { color: var(--accent-text); font-weight: 700; }
.n { color: var(--tertiary-mark); }
.p { color: var(--secondary); font-size: 13px; }
.footnote { color: var(--tertiary); font-size: 13px; margin-top: 16px; text-align: center; max-width: 760px; margin-inline: auto; }

/* Everyday */
.everyday { padding: 110px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; font-weight: 650; }
.card p { color: var(--secondary); font-size: 15px; }
.ci {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px;
  background: linear-gradient(160deg, #0E8A55, #064A2F); color: #fff; font-size: 20px; font-weight: 700; line-height: 1;
}

/* Safety */
.safety { padding: 110px 0; background: var(--dark-band); color: #F5F5F7; }
.safety .eyebrow { color: #3DDC97; }
.safety-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.safety h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 750; }
.safety-copy > p:not(.eyebrow) { color: #A1A1A6; font-size: 19px; margin-top: 16px; }
.safety-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.safety-list li { padding-inline-start: 20px; border-inline-start: 2px solid #1FBF75; color: #A1A1A6; font-size: 16px; }
.safety-list strong { color: #F5F5F7; font-weight: 600; }
.safety-art img { width: 100%; max-width: 480px; margin-inline: auto; filter: drop-shadow(0 30px 60px rgba(14, 138, 85, .35)); }

/* FAQ */
.faq { padding: 110px 0 80px; }
details { border-bottom: .5px solid var(--separator); }
summary {
  list-style: none; cursor: pointer; padding-block: 22px; padding-inline: 0 36px; font-size: 19px; font-weight: 600; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { color: var(--secondary); padding: 0 0 22px; font-size: 17px; }

/* Download */
.download { padding: 40px 0 110px; }
.download-card {
  text-align: center; border-radius: 32px; padding: 64px 24px;
  background: radial-gradient(60% 80% at 50% 0%, var(--glow-a), transparent 70%), var(--bg-alt);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.download-card img { filter: drop-shadow(0 16px 30px rgba(14, 138, 85, .35)); margin-bottom: 10px; }
.download-card h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 750; }
.download-card > p { color: var(--secondary); font-size: 19px; }
.download-card .cta-row { margin-top: 14px; }
.fine { font-size: 14px !important; color: var(--tertiary) !important; }
.store-links:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Footer */
.footer { border-top: .5px solid var(--separator); padding: 28px 0 40px; color: var(--tertiary); font-size: 13px; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { color: var(--label); }
.footer-links { margin-inline-start: auto; display: flex; gap: 18px; }
.footer-links a { color: var(--secondary); }

/* Old way vs Downlyx */
.different { padding: 110px 0 60px; }
.vs-legend { display: flex; justify-content: center; gap: 24px; margin: -28px 0 32px; font-size: 14px; font-weight: 600; }
.vs-key { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); }
.vs-key::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--track) center / 10px no-repeat; }
.vs-key.old::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2 2 8' stroke='%2386868B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.vs-key.new { color: var(--accent-text); }
.vs-key.new::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='m2 5.2 2 2L8 3' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.vs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.vs-card { background: var(--bg-alt); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.vs-card h3 { font-size: 20px; font-weight: 700; }
.vs-old, .vs-new { position: relative; padding-inline-start: 30px; font-size: 15.5px; }
.vs-old { color: var(--tertiary); }
.vs-old::before, .vs-new::before { content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; }
.vs-old::before { background: var(--track) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2 2 8' stroke='%2386868B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.vs-new { color: var(--label); font-weight: 500; }
.vs-new::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='m2 5.2 2 2L8 3' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Extension */
.ext { padding: 110px 0; background: var(--bg-alt); }
.ext-shot { margin: 0 auto 80px; max-width: 1000px; }
.frame { border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--sidebar); border-bottom: .5px solid var(--separator); }
.frame-url { flex: 1; background: var(--surface); color: var(--secondary); font-size: 13px; padding: 5px 12px; border-radius: 980px; max-width: 520px; margin-inline: auto; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-ext { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); }
.frame > img { width: 100%; }
figcaption { text-align: center; color: var(--tertiary); font-size: 14px; margin-top: 16px; }
.detect { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 64px; align-items: start; margin-bottom: 72px; }
.detect-shot { margin: 0; position: sticky; top: 90px; }
.detect-shot img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); }
.detect-copy h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 750; }
.detect-lede { color: var(--secondary); font-size: 18px; margin-top: 16px; }
.layers { list-style: none; counter-reset: layer; padding: 0; margin: 32px 0 0; display: grid; gap: 4px; }
.layers li {
  counter-increment: layer; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px;
  padding: 16px 18px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.layers li::before {
  content: counter(layer); grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #0E8A55, #064A2F); color: #fff; font-weight: 750; font-size: 17px;
}
.layers strong { font-size: 17px; font-weight: 650; }
.layers span { color: var(--secondary); font-size: 15px; }
.ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ext-card { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.ext-card h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.ext-card p { color: var(--secondary); font-size: 15px; }
.ext-privacy { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.ext-privacy li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--secondary); }
.ext-privacy li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-fill); }
.ext .footnote { margin-top: 18px; }
@media (max-width: 960px) {
  .vs-grid { grid-template-columns: 1fr; }
  .detect { grid-template-columns: 1fr; gap: 40px; }
  .detect-shot { position: static; max-width: 380px; margin-inline: auto; }
  .ext-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .different, .ext { padding-block: 72px; }
  .vs-legend { margin-top: -12px; }
  .vs-card { padding: 22px; }
  .ext-grid { grid-template-columns: 1fr; }
  .ext-shot { margin-bottom: 56px; }
  .layers li { grid-template-columns: 34px 1fr; padding: 14px; }
  .layers li::before { width: 34px; height: 34px; font-size: 15px; }
}

/* Scripts that must not be tracked tight or uppercased */
:lang(ar) :is(h1, h2, h3, .numbers-grid strong, .brand), :lang(hi) :is(h1, h2, h3, .numbers-grid strong),
:lang(zh-Hans) :is(h1, h2, h3, .numbers-grid strong) { letter-spacing: 0; }
:lang(ar) .kicker, :lang(hi) .kicker, :lang(zh-Hans) .kicker { letter-spacing: 0; text-transform: none; }
:lang(ar) body, :lang(hi) body { line-height: 1.6; }
:lang(ar) .hero h1, :lang(hi) .hero h1 { line-height: 1.25; }
:lang(ar) :is(h2, h3), :lang(hi) :is(h2, h3) { line-height: 1.3; }
[dir="rtl"] .window, [dir="rtl"] .frame, [dir="rtl"] .detect-shot { direction: ltr; }
[dir="rtl"] .window [data-i18n] { direction: rtl; unicode-bidi: plaintext; }

/* Reveal on scroll (JS adds .in) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { order: -1; max-width: 560px; margin-inline: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-art { order: 0; }
  .feature-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-art { order: -1; }
  .safety-art img { max-width: 320px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-actions .btn { display: none; }
  .grid { grid-template-columns: 1fr; }
  .features, .compare, .everyday, .safety, .faq { padding-block: 72px; }
  .section-head { margin-bottom: 36px; }
  .win-bar { gap: 10px; padding: 10px 12px; }
  .win-field kbd, .dots { display: none; }
  .row { padding: 12px; gap: 10px; }
  .ficon { width: 28px; height: 34px; }
  .row-top { flex-wrap: wrap; }
  .lanes { grid-template-columns: repeat(4, 1fr); }
  .btn-lg { width: 100%; }
  .footer-links { margin-inline-start: 0; }
}

/* ---------- 404 page ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; text-align: center; }
.notfound h1 { margin: 8px 0 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em; }
.notfound p { margin: 0 0 8px; max-width: 520px; color: var(--secondary); }

/* ---------- Legal pages (privacy.html, terms.html, ... built by scripts/build-legal.py) ---------- */
.legal { max-width: 760px; padding-block: 48px 72px; font-size: 16px; line-height: 1.65; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 12px; }
.legal h1 + p { color: var(--secondary); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 21px; letter-spacing: -.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--label); }
.legal ul, .legal ol { padding-inline-start: 22px; }
.legal li + li { margin-top: 6px; }
.legal-links a[aria-current="page"] { color: var(--label); font-weight: 600; }
@media (max-width: 960px) { .nav-links.legal-links { display: flex; gap: 14px; margin-inline-start: auto; font-size: 13px; } }
