/* ============================================================
   AppWhats — WhatsApp install guides
   Modern redesign · 2026
   ============================================================ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/inter-800.woff2') format('woff2'); }

:root {
  /* Brand / accent */
  --wa-green: #25d366;
  --wa-green-600: #1ebe5a;
  --wa-teal: #128c7e;
  --wa-teal-700: #075e54;
  --wa-ink-green: #0b3b2e;

  /* Light theme surfaces */
  --bg: #eef2f5;
  --bg-grad-a: #e9f7ef;
  --bg-grad-b: #eef2f5;
  --surface: #ffffff;
  --surface-2: #f4f7f9;
  --surface-3: #eaeff2;
  --border: #e2e8ec;
  --border-strong: #d2dbe0;

  /* Text */
  --ink: #0d1b22;
  --ink-soft: #36474f;
  --muted: #65767f;
  --muted-2: #8a9aa2;
  --on-accent: #082a16;

  /* Effects */
  --ring: rgba(37, 211, 102, .35);
  --shadow-sm: 0 1px 2px rgba(16, 38, 48, .06), 0 1px 3px rgba(16, 38, 48, .05);
  --shadow-md: 0 4px 14px rgba(16, 38, 48, .08), 0 2px 6px rgba(16, 38, 48, .05);
  --shadow-lg: 0 18px 48px rgba(16, 38, 48, .16), 0 6px 16px rgba(16, 38, 48, .08);
  --shadow-accent: 0 10px 30px rgba(37, 211, 102, .35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1160px;
  --header-h: 66px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b141a;
  --bg-grad-a: #0e1c1a;
  --bg-grad-b: #0b141a;
  --surface: #131f27;
  --surface-2: #18262f;
  --surface-3: #1f2f39;
  --border: #24343d;
  --border-strong: #314551;

  --ink: #e9f1f3;
  --ink-soft: #c4d2d8;
  --muted: #93a3ab;
  --muted-2: #6f828c;
  --on-accent: #07210f;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  --shadow-accent: 0 12px 34px rgba(37, 211, 102, .28);
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--bg-grad-a), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.2; font-weight: 750; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--wa-teal); text-decoration: none; }
a:hover { color: var(--wa-green-600); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 18px; justify-content: space-between; position: relative; }

.brand {
  display: inline-flex; align-items: center;
  font-weight: 800; font-size: 23px; letter-spacing: -.045em; color: var(--ink);
  flex: 0 0 auto; line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand .wm { display: inline-flex; align-items: baseline; }
.brand .wm b {
  font-weight: 800;
  background: linear-gradient(118deg, var(--wa-green) 8%, var(--wa-teal) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.brand .wm-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wa-green); margin-left: 3px; align-self: flex-end; margin-bottom: 3px;
  box-shadow: 0 1px 5px color-mix(in srgb, var(--wa-green) 60%, transparent);
}
[data-theme="dark"] .brand .wm b { background: linear-gradient(118deg, #34e07d, #29b59e); -webkit-background-clip: text; background-clip: text; }

.nav-search { position: absolute; left: 50%; transform: translateX(-50%); width: 440px; max-width: 36vw; }
.nav-search input {
  width: 100%; height: 42px; border: 2px solid var(--wa-green);
  background: var(--surface-2); border-radius: var(--radius-pill);
  padding: 0 16px 0 42px; font-size: 14.5px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.nav-search input::placeholder { color: var(--muted-2); }
.nav-search input:focus { border-color: var(--wa-green); background: var(--surface); box-shadow: 0 0 0 4px var(--ring); }
.nav-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.nav-search .sr-results, .hero-search .sr-results {
  position: absolute; top: 50px; left: 0; right: 0; z-index: 70; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-height: 60vh; overflow-y: auto;
  display: none;
}
.hero-search { position: relative; }
.hero-search .sr-results { top: calc(100% + 6px); }
.nav-search .sr-results.open, .hero-search .sr-results.open { display: block; }
.nav-search .sr-results a, .hero-search .sr-results a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--ink-soft);
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.nav-search .sr-results a:last-child, .hero-search .sr-results a:last-child { border-bottom: 0; }
.nav-search .sr-results a:hover, .nav-search .sr-results a.active,
.hero-search .sr-results a:hover, .hero-search .sr-results a.active { background: var(--surface-2); color: var(--ink); }
.nav-search .sr-results .tag, .hero-search .sr-results .tag { margin-left: auto; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.nav-search .sr-results .empty, .hero-search .sr-results .empty { padding: 14px; color: var(--muted); font-size: 14px; }

.nav-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); color: var(--ink-soft); font-weight: 600; font-size: 14.5px;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link svg { width: 15px; height: 15px; }
.nav-actions { margin-left: auto; }
.browse-search { margin: 0 0 18px; }

/* Brands dropdown */
.has-menu { position: relative; }
.menu-pop {
  position: absolute; top: 48px; right: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: .16s ease; z-index: 80;
}
.has-menu:hover .menu-pop, .has-menu:focus-within .menu-pop, .menu-pop.open { opacity: 1; visibility: visible; transform: none; }
.menu-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.menu-pop a:hover { background: var(--surface-2); color: var(--ink); }
.menu-pop .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.menu-pop .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-pill); border: 1px solid transparent;
  background: transparent; color: var(--ink-soft); display: grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.burger { display: grid; border: 1.5px solid var(--border-strong); border-radius: 9px; background: transparent; }
.burger:hover { background: transparent; border-color: var(--wa-green); color: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 56px 0 30px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 360px at 12% 8%, rgba(37,211,102,.16), transparent 60%),
    radial-gradient(560px 320px at 92% 30%, rgba(18,140,126,.14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--wa-teal); background: color-mix(in srgb, var(--wa-green) 16%, transparent);
  padding: 6px 13px; border-radius: var(--radius-pill); letter-spacing: .01em; margin-bottom: 16px;
}
[data-theme="dark"] .hero .eyebrow { color: var(--wa-green); }
.hero .eyebrow svg { width: 15px; height: 15px; flex: 0 0 auto; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); margin-bottom: 14px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--wa-green-600), var(--wa-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 18px; color: var(--muted); max-width: 38ch; margin-bottom: 22px; }
.hero-search { display: flex; gap: 10px; max-width: 460px; }
.hero-search .field { position: relative; flex: 1; }
.hero-search .field .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.hero-search input {
  width: 100%; height: 54px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface); padding: 0 18px 0 48px; font-size: 16px; color: var(--ink); box-shadow: var(--shadow-sm);
}
.hero-search input:focus { border-color: var(--wa-green); box-shadow: 0 0 0 4px var(--ring); }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; }
.stats-sec { padding-top: 0; }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.stat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { border-color: color-mix(in srgb, var(--wa-green) 45%, var(--border)); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 40, 25, .08); }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--wa-green) 14%, transparent); color: var(--wa-teal); display: grid; place-items: center; margin-bottom: 2px; }
.stat-ic svg { width: 23px; height: 23px; }
.stat-card b { font-size: clamp(26px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1; background: linear-gradient(135deg, var(--wa-green), var(--wa-teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat-card span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) { .home-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; } .stat-card { padding: 22px 12px; } }
.hero-stats .s b { display: block; font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .s span { font-size: 13px; color: var(--muted); }

/* Hero phone illustration */
.hero-art { display: grid; place-items: center; position: relative; }
.hero-art .glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(37,211,102,.4), transparent 65%); filter: blur(10px); }

/* ============================================================
   Phone mockup (SVG-ish CSS device)
   ============================================================ */
.phone {
  --pw: 184px;
  width: var(--pw); aspect-ratio: 184 / 380; position: relative;
  border-radius: calc(var(--pw) * .16); padding: 9px;
  background: linear-gradient(160deg, #2b3b44, #11181d);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.phone.tilt { transform: rotate(-6deg); }
.phone.dark .screen { background: linear-gradient(165deg, #1d2731, #0a1116); display: grid; place-items: center; }
.phone.dark .dwa { display: block; width: 44%; color: var(--wa-green); }
.phone.dark .dwa svg { width: 100%; height: auto; }
.card .pic .mini.dark .dwa { width: 50%; }
.phone .screen {
  position: absolute; inset: 9px; border-radius: calc(var(--pw) * .12); overflow: hidden;
  background: linear-gradient(180deg, var(--brand-a, var(--wa-teal)), var(--brand-b, var(--wa-teal-700)));
  display: flex; flex-direction: column;
}
.phone .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 34%; height: 7px; border-radius: 6px; background: rgba(0,0,0,.55);
}
.phone .scr-top {
  padding: 22px 12px 10px; display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 10px; font-weight: 700;
}
.phone .scr-top .av { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.phone .scr-top .av svg { width: 14px; height: 14px; }
.phone .scr-body { flex: 1; background: #e9f0ee; padding: 10px 9px; display: flex; flex-direction: column; gap: 7px; }
[data-theme="dark"] .phone .scr-body { background: #0b141a; }
.phone .bub { max-width: 76%; padding: 6px 9px; border-radius: 10px; font-size: 9px; color: #102a1d; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.phone .bub.in { background: #fff; border-top-left-radius: 3px; align-self: flex-start; }
.phone .bub.out { background: #d9fdd3; border-top-right-radius: 3px; align-self: flex-end; }
[data-theme="dark"] .phone .bub.in { background: #1f2c33; color: #e9f1f3; }
[data-theme="dark"] .phone .bub.out { background: #005c4b; color: #e9f1f3; }
.phone .scr-bar { height: 30px; background: var(--surface, #fff); display: flex; align-items: center; gap: 7px; padding: 0 9px; }
[data-theme="dark"] .phone .scr-bar { background: #1f2c33; }
.phone .scr-bar .pill { flex: 1; height: 14px; border-radius: 7px; background: rgba(0,0,0,.07); }
[data-theme="dark"] .phone .scr-bar .pill { background: rgba(255,255,255,.08); }
.phone .scr-bar .send { width: 22px; height: 22px; border-radius: 50%; background: var(--wa-green); display: grid; place-items: center; }
.phone .scr-bar .send svg { width: 12px; height: 12px; color: #fff; }
.phone .brandtag {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); z-index: 3;
}

/* ============================================================
   Section heads / chips
   ============================================================ */
.section { padding: 30px 0; }
.page-home .section { padding: 0; margin: 22px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-soft); font-weight: 650; font-size: 14px; transition: .14s; white-space: nowrap;
}
.chip:hover { border-color: var(--wa-green); color: var(--ink); transform: translateY(-1px); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip .n { font-size: 12px; color: var(--muted); }
.chip.active { background: var(--wa-teal); border-color: var(--wa-teal); color: #fff; box-shadow: var(--shadow-accent); }
.chip.active .n { color: rgba(255,255,255,.8); }
.chip.active .dot { background: #fff !important; }

/* ============================================================
   Device grid + cards
   ============================================================ */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
}
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px 16px; text-align: center;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--wa-green) 50%, var(--border)); }
.card .pic {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface-3));
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.card .pic img.cover {
  width: auto; height: 90%; max-width: 86%; object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(16, 38, 48, .22));
}
[data-theme="dark"] .card .pic img.cover { filter: drop-shadow(0 9px 18px rgba(0, 0, 0, .55)); }
.card .pic .mini { --pw: 78px; }
.card .pic .mini .scr-top { justify-content: center; padding: 16px 6px 6px; }
.card .pic .mini .scr-top span:last-child { display: none; }
.card .pic .mini .bub { font-size: 7px; padding: 4px 6px; }
.card .pic .mini .scr-body { gap: 5px; padding: 8px 7px; }
.card .pic .badge {
  position: absolute; top: 9px; left: 9px; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-pill); color: #fff;
}
.card .pic .wa {
  position: absolute; bottom: 9px; right: 9px; width: 26px; height: 26px; border-radius: 8px;
  background: var(--wa-green); display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.card .pic .wa svg { width: 16px; height: 16px; color: #fff; }
.card h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; color: var(--ink); letter-spacing: -.01em; }
.card .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 11px; }
.card .su-stat { display: inline-flex; align-items: center; gap: 4px; }
.card .sub svg { width: 13px; height: 13px; opacity: .7; }
.card .go {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; height: 34px; padding: 0 14px; width: 100%;
  border-radius: var(--radius-pill); border: 1px solid var(--wa-green);
  background: color-mix(in srgb, var(--wa-green) 12%, var(--surface)); color: var(--wa-teal); transition: .15s;
}
[data-theme="dark"] .card .go { color: var(--wa-green); }
.card:hover .go { background: var(--wa-green); border-color: var(--wa-green); color: var(--on-accent); }
.card .stretch { position: absolute; inset: 0; border-radius: var(--radius); z-index: 2; }
.card .go svg { width: 15px; height: 15px; }

.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }

/* Load more / pagination */
.more-wrap { text-align: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 26px; border-radius: var(--radius-pill); font-weight: 750; font-size: 15.5px;
  border: 1px solid transparent; transition: .15s; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--wa-green), var(--wa-green-600)); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,.45); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--wa-green); color: var(--ink); }
.btn svg { width: 19px; height: 19px; }
.btn-lg { height: 58px; font-size: 17px; padding: 0 32px; }
.btn[hidden] { display: none; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-soft); font-weight: 650; font-size: 14.5px;
}
.pager a:hover { border-color: var(--wa-green); color: var(--ink); }
.pager .cur { background: var(--wa-teal); border-color: var(--wa-teal); color: #fff; }
.pager .gap { border: 0; background: transparent; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 20px 0 0; flex-wrap: wrap; }
.page-category .crumb { padding-top: 0; margin-bottom: 4px; }
.page-category .hero::before { display: none; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--wa-teal); }
.crumb .sep { opacity: .55; display: inline-flex; }
.crumb .sep svg { width: 14px; height: 14px; }
.crumb b { color: var(--ink-soft); font-weight: 600; }

/* ============================================================
   Device page
   ============================================================ */
.device-hero { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 26px 0 10px; align-items: start; }
.device-art { position: sticky; top: calc(var(--header-h) + 18px); display: grid; place-items: center; }
.device-art .halo { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow, rgba(37,211,102,.3)), transparent 65%); filter: blur(6px); z-index: -1; }
.device-art .phone { --pw: 220px; }
.device-art .device-photo {
  width: auto; height: 400px; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 22px 36px rgba(16, 38, 48, .26));
}
[data-theme="dark"] .device-art .device-photo { filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .6)); }

.device-meta .badge-row { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; flex-wrap: wrap; }
.brand-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); color: #fff; }
.os-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 5px 11px 5px 9px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink-soft); }
.os-badge svg { width: 15px; height: 15px; }
.hero-stats .s b.os-stat { display: flex; align-items: center; gap: 8px; width: fit-content; }
.os-stat svg { width: 22px; height: 22px; flex: 0 0 auto; }
.hero-stats .s b.os-stat.os-android { color: #2e7d32; }
.hero-stats .s b.os-stat.os-harmonyos { color: #c0392b; }
.page-category .card .pic .badge { display: none; }
.page-category .section-head { margin-top: 30px; }
.os-badge.os-android { color: #2e7d32; background: rgba(60,170,80,.14); }
.os-badge.os-ios { color: var(--ink); background: var(--surface-3); }
.os-badge.os-harmonyos { color: #c0392b; background: rgba(207,10,44,.12); }
[data-theme="dark"] .os-badge.os-android { color: #7bd88f; }
[data-theme="dark"] .os-badge.os-ios { color: #e9f1f3; }
[data-theme="dark"] .os-badge.os-harmonyos { color: #ff8a7a; }
.device-meta h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; }
.device-meta .tagline { color: var(--muted); font-size: 16px; margin-bottom: 18px; }

.dl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 20px; box-shadow: var(--shadow-md); margin: 6px 0 20px;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  width: 100%; max-width: 460px;
}
.dl-card .info b { white-space: nowrap; }
.dl-card .dl-meta { display: flex; align-items: center; gap: 14px; }
.dl-meta .app-ico { width: 58px; height: 58px; border-radius: 15px; background: linear-gradient(145deg, var(--wa-green), var(--wa-teal)); display: grid; place-items: center; box-shadow: var(--shadow-accent); flex: 0 0 auto; }
.dl-meta .app-ico svg { width: 34px; height: 34px; color: #fff; }
.dl-meta .info b { font-size: 16px; color: var(--ink); display: block; }
.dl-meta .info .rate { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.dl-meta .stars { display: inline-flex; gap: 1px; color: #f5b50a; }
.dl-meta .stars svg { width: 14px; height: 14px; }
.dl-meta .info .meta { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.hero-dl-meta { margin: 4px 0 0; }
.dl-hero { margin: 18px 0 6px; }
.dl-card .hero-dl-meta, .dl-card .dl-hero { margin: 0; }
.dl-card .dl-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--wa-green), var(--wa-green-600)); color: var(--on-accent);
  font-weight: 800; font-size: 16px; box-shadow: var(--shadow-accent); transition: .15s; white-space: nowrap;
}
.dl-btn:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,.45); }
.dl-btn svg { width: 20px; height: 20px; }

.jumpbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.jumpbar a { font-size: 13px; font-weight: 650; padding: 7px 15px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); color: var(--ink-soft); }
.jumpbar a:hover { border-color: var(--wa-green); color: var(--ink); }

/* Content blocks */
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin: 22px 0; box-shadow: var(--shadow-sm); }
.block > h2 { font-size: clamp(20px, 2.6vw, 27px); margin-bottom: 6px; display: flex; align-items: center; gap: 11px; }
#faq > h2, #install > h2, #known-android > h2, #known-ios > h2 { margin-bottom: 22px; }
.block > h2 .hn { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--wa-green) 18%, transparent); color: var(--wa-teal); display: grid; place-items: center; flex: 0 0 auto; }
[data-theme="dark"] .block > h2 .hn { color: var(--wa-green); }
.block > h2 .hn svg { width: 19px; height: 19px; }
.cc-head h2, .ask-main h2 { font-size: clamp(20px, 2.6vw, 27px); display: flex; align-items: center; gap: 11px; }
.cc-head h2 .hn, .ask-main h2 .hn { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--wa-green) 18%, transparent); color: var(--wa-teal); display: grid; place-items: center; flex: 0 0 auto; }
.cc-head h2 .hn svg, .ask-main h2 .hn svg { width: 19px; height: 19px; }
.block .intro { color: var(--muted); margin-bottom: 18px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 25px 27px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.step .num { counter-increment: step; width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(145deg, var(--wa-green), var(--wa-teal)); color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step .num::before { content: counter(step); }
.step h4 { font-size: 18px; margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* simplified numbered-step flow (iOS install) */
.isteps { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin: 6px 0 0; }
.istep { display: flex; align-items: flex-start; gap: 15px; padding: 25px 27px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.istep-num { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(145deg, var(--wa-green), var(--wa-teal)); color: #fff; font-weight: 800; font-size: 19px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.istep-body h4 { font-size: 18px; margin: 0 0 4px; }
.istep-body p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.istep-arrow { display: none; }

/* Callout */
.callout { display: flex; gap: 13px; padding: 15px 17px; border-radius: var(--radius); background: color-mix(in srgb, var(--wa-green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--wa-green) 30%, transparent); margin: 18px 0; }
.callout svg { width: 22px; height: 22px; color: var(--wa-teal); flex: 0 0 auto; margin-top: 2px; }

/* ---- enriched device content: compatibility verdict, lead intro, cross-links, reddit links ---- */
.compat { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius); margin: 4px 0 16px; border: 1px solid var(--border); }
.compat-tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.compat-tag svg { width: 14px; height: 14px; }
.compat p { margin: 1px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.compat-ok { border-color: #bfe9cf; background: #f1fbf5; }
.compat-ok .compat-tag { background: #d6f3e0; color: #0b7a40; }
.compat-warn { border-color: #f6e2b8; background: #fff9ec; }
.compat-warn .compat-tag { background: #fdecc4; color: #9a6b00; }
.compat-bad { border-color: #f3c9c9; background: #fdf1f1; }
.compat-bad .compat-tag { background: #f8d6d6; color: #b3261e; }
.lead-intro { font-size: 16px; line-height: 1.62; color: var(--text); margin: 0 0 12px; }
.xlinks { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.xlinks svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--wa-teal); }
.xlinks a { color: var(--wa-teal); font-weight: 600; text-decoration: none; }
.xlinks a:hover { text-decoration: underline; }
.gp-link { color: #1a9e57; font-weight: 700; text-decoration: none; }
.gp-link:hover { text-decoration: underline; }
.reddit-link { display: inline-flex; align-items: center; gap: 2px; color: #1a9e57; font-weight: 700; text-decoration: none; white-space: nowrap; }
.reddit-link svg { width: 13px; height: 13px; }
.reddit-link:hover { text-decoration: underline; }

/* ---- always-open FAQ (minimalist: hairline dividers + subtle green accent) ---- */
.faq-open { display: flex; flex-direction: column; }
.faq-open .qa { display: flex; align-items: flex-start; gap: 14px; padding: 19px 0; border-top: 1px solid var(--border); }
.faq-open .qa:first-child { border-top: 0; padding-top: 2px; }
.faq-open .qa-num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, var(--wa-green), var(--wa-teal)); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-top: 2px; }
.faq-open .qa-pic { flex: 0 0 auto; width: 46px; height: 60px; display: grid; place-items: center; margin-top: 2px; }
.faq-open .qa-pic img { max-width: 100%; max-height: 100%; object-fit: contain; }
.faq-open .qa-pic .qa-mock { position: relative; width: 44px; height: 58px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.faq-open .qa-pic .qa-mock::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.faq-open .qa-main { flex: 1 1 auto; min-width: 0; }
.faq-open .q { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.45; }
.faq-open .qa-device { display: inline-flex; align-items: center; gap: 2px; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--wa-teal); text-decoration: none; background: color-mix(in srgb, var(--wa-green) 12%, transparent); padding: 3px 10px; border-radius: var(--radius-pill); }
.faq-open .qa-device svg { width: 13px; height: 13px; }
.faq-open .qa-device:hover { background: color-mix(in srgb, var(--wa-green) 20%, transparent); }
.faq-open .ans { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-open .ans::before { content: "Resolution: "; color: #1a9e57; font-weight: 800; }
.faq-open .ans b { color: var(--text); font-weight: 600; }
@media (max-width: 600px) {
  .faq-open .q { font-size: 16.5px; line-height: 1.4; }
  .faq-open .qa-num { width: 30px; height: 30px; font-size: 14px; border-radius: 8px; }
  .faq-open .ans { font-size: 15px; }
}
.reddit-link .reddit-ic { width: 15px; height: 15px; vertical-align: -3px; }

/* ---- compatibility checklist card ---- */
.compat-card { border-width: 1px; border-style: solid; }
.compat-card.compat-ok { border-color: #bfe9cf; }
.compat-card.compat-warn { border-color: #f6e2b8; }
.compat-card.compat-bad { border-color: #f3c9c9; }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.cc-head h2 { margin: 0; }
.cc-verdict { display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.cc-verdict.cc-ok { background: #d6f3e0; color: #0b7a40; }
.cc-verdict.cc-warn { background: #fdecc4; color: #9a6b00; }
.cc-verdict.cc-bad { background: #f8d6d6; color: #b3261e; }
.cc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cc-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface); font-size: 14.5px; }
.cc-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; flex: 0 0 auto; background: #d6f3e0; color: #0b7a40; }
.cc-ic svg { width: 15px; height: 15px; }
.cc-row.cc-fail .cc-ic { background: #f8d6d6; color: #b3261e; }
.cc-label { color: var(--muted); font-weight: 600; }
.cc-value { margin-left: auto; color: var(--text); font-weight: 700; text-align: right; }

/* ---- ask a question block ---- */
.ask-block { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ask-main h2 { margin: 0 0 4px; }
.ask-sub { margin: 0; color: var(--muted); font-size: 14.5px; }
.ask-btn { flex: 0 0 auto; }
.ask-btn svg { width: 18px; height: 18px; }

/* ---- download modal (link "generating" + ad) ---- */
.dl-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 18px; }
.dl-modal.open { display: flex; }
.dl-modal-scrim { position: absolute; inset: 0; background: rgba(8, 15, 20, .55); backdrop-filter: blur(2px); }
.dl-modal-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 20px); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); width: 100%; max-width: 380px; padding: 22px 22px 24px; text-align: center; }
.dl-modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.dl-modal-title { margin: 4px 0 6px; font-size: 18px; font-weight: 800; color: var(--text); }
.dl-modal-sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.dl-modal-sub .dl-count { font-weight: 800; color: var(--wa-teal); }
.dl-ad { margin: 0 auto 16px; width: 300px; max-width: 100%; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg, #f4f6f6); }
.dl-ad-head { display: flex; align-items: center; gap: 10px; padding: 5px 9px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--border); }
.dl-ad-head span { font-weight: 700; }
.dl-ad-head a { color: var(--muted); text-decoration: none; }
.dl-ad-head a:hover { text-decoration: underline; }
.dl-ad .adsbygoogle { display: block; width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.dl-modal-go { width: 100%; }
.dl-modal-go svg { width: 18px; height: 18px; }
[data-theme="dark"] .callout svg { color: var(--wa-green); }
.callout p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.callout b { color: var(--ink); }

/* Video */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* lazy youtube facade */
.lite-yt { cursor: pointer; }
.lite-yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lite-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; border-radius: 14px; background: rgba(18, 18, 18, .72); transition: background .15s ease; }
.lite-yt:hover .lite-yt-play, .lite-yt:focus-visible .lite-yt-play { background: #ff0000; }
.lite-yt-play::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-40%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.lite-yt:focus-visible { outline: 3px solid var(--wa-teal); outline-offset: 2px; }
.video-ph { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--wa-teal-700), var(--wa-teal)); display: grid; place-items: center; cursor: pointer; }
.video-ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent, rgba(0,0,0,.25)); }
.video-ph .play { position: relative; z-index: 2; width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .15s; }
.video-ph:hover .play { transform: scale(1.08); }
.video-ph .play svg { width: 30px; height: 30px; color: var(--wa-teal-700); margin-left: 4px; }
.video-ph .cap { position: absolute; bottom: 14px; left: 16px; z-index: 2; color: #fff; font-weight: 650; font-size: 14px; }

/* FAQ accordion */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; transition: border-color .14s; }
.faq details[open] { border-color: color-mix(in srgb, var(--wa-green) 45%, var(--border)); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 650; font-size: 15.5px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; flex: 0 0 auto; transition: .18s; }
.faq summary .pm svg { width: 15px; height: 15px; color: var(--wa-teal); }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--wa-green); }
.faq details[open] summary .pm svg { color: #fff; }

/* ============================================================
   Comments
   ============================================================ */
.cmt-count { color: var(--muted); font-weight: 600; font-size: .7em; }
.cmt-form { display: flex; gap: 13px; margin: 6px 0 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.cmt-form-av { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; }
.cmt-form-av svg { width: 22px; height: 22px; }
.cmt-form-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.cmt-name { height: 42px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 0 14px; font-size: 14.5px; color: var(--ink); font-family: inherit; max-width: 280px; }
.cmt-textarea { min-height: 84px; resize: vertical; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 12px; padding: 11px 14px; font-size: 14.5px; color: var(--ink); font-family: inherit; line-height: 1.5; }
.cmt-name:focus, .cmt-textarea:focus { outline: none; border-color: var(--wa-green); box-shadow: 0 0 0 4px var(--ring); }
.cmt-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cmt-note { font-size: 12.5px; color: var(--muted); }
.cmt-submit { height: 44px; font-size: 14.5px; padding: 0 22px; }

.cmt-list { display: flex; flex-direction: column; gap: 28px; }
.cmt { display: flex; gap: 13px; }
.cmt-av { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.cmt-main { flex: 1; min-width: 0; }
.cmt-head { display: flex; align-items: center; column-gap: 8px; row-gap: 2px; margin-bottom: 3px; flex-wrap: wrap; }
.cmt-head b { font-size: 14.5px; color: var(--ink); }
.cmt-date { font-size: 12.5px; color: var(--muted-2); }
@media (max-width: 600px) { .cmt-head { row-gap: 0; } .cmt-head .cmt-date { width: 100%; margin-top: 1px; } }
.cmt-lang { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: var(--surface-3); padding: 1px 6px; border-radius: var(--radius-pill); }
.cmt-text { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; word-wrap: break-word; }
.cmt-acts { margin-top: 7px; }
.cmt-like { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; padding: 3px 4px; border-radius: 8px; }
.cmt-like svg { width: 16px; height: 16px; }
.cmt-like:hover { color: var(--wa-teal); }
.cmt-like.liked { color: #e0245e; }
.cmt-like.liked svg { fill: #e0245e; stroke: #e0245e; }

/* AppWhats official reply */
.cmt.reply { margin-top: 14px; padding: 13px 15px; background: color-mix(in srgb, var(--wa-green) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--wa-green) 26%, var(--border)); border-radius: 14px; }
.cmt.reply .cmt-text { color: var(--ink); }
.cmt-av.aw-av { background: linear-gradient(145deg, var(--wa-green), var(--wa-teal)); }
.cmt-av.aw-av svg { width: 24px; height: 24px; color: #fff; }
.cmt-verified { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--wa-green); color: #fff; }
.cmt-verified svg { width: 11px; height: 11px; }
.cmt-official { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--wa-teal); background: color-mix(in srgb, var(--wa-green) 16%, transparent); padding: 2px 7px; border-radius: var(--radius-pill); }
[data-theme="dark"] .cmt-official { color: var(--wa-green); }
.cmt.user-cmt { animation: cmtIn .35s ease; }
@keyframes cmtIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .cmt-form { padding: 13px; gap: 10px; }
  .cmt-form-av { display: none; }
  /* tighter side gutters for content below the hero (half of the 22px default) */
  .wrap { padding: 0 11px; }
  .site-header .wrap, .hero .wrap, .site-footer .wrap { padding: 0 22px; }
}

/* Related */
.related .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

/* ============================================================
   Prose (about / terms)
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.prose h2 { font-size: 22px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--wa-teal); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 0; }
.trust .t { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.trust .t .ic { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--wa-green) 14%, transparent); color: var(--wa-teal); }
[data-theme="dark"] .trust .t .ic { color: var(--wa-green); }
.trust .t .ic svg { width: 22px; height: 22px; }
.trust .t b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.trust .t span { font-size: 13px; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { margin-top: 50px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 46px 0 30px; }
.site-footer .brand { margin-bottom: 12px; font-size: 30px; }
.site-footer .tg { color: var(--muted); font-size: 14px; max-width: 30ch; }
.fcol h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 12px; }
.fcol a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 5px 0; }
.fcol a:hover { color: var(--wa-teal); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 30px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bot p { margin: 0; color: var(--muted); font-size: 13.5px; }
.footer-bot .dis { max-width: 70ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .device-hero { grid-template-columns: 1fr; gap: 22px; }
  .device-art { position: static; }
  .device-art .phone { --pw: 180px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .nav-search { display: block; position: relative; left: auto; transform: none; width: auto; max-width: none; flex: 1 1 auto; }
  .has-menu { display: none; }            /* hide Brands on mobile */
  .nav-actions .nav-link.hide-sm { display: none; }
  .burger { display: grid; }
  .dl-card { flex-direction: column; align-items: stretch; }
  .dl-card .dl-btn { justify-content: center; }
  .hero { padding: 36px 0 20px; }
  .page-home .hero::before { display: none; }
  .hero-stats { gap: 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .block { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero-stats .s b { font-size: 20px; }
}

/* Mobile slide menu */
.m-menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.m-menu.open { visibility: visible; }
.m-menu .scrim { position: absolute; inset: 0; background: rgba(8,18,22,.5); opacity: 0; transition: .2s; }
.m-menu.open .scrim { opacity: 1; }
.m-menu .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .24s ease; padding: 18px; overflow-y: auto; }
.m-menu.open .panel { transform: none; }
.m-menu .panel .mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.m-menu .panel a { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border-radius: 12px; color: var(--ink-soft); font-weight: 650; font-size: 16px; }
.m-menu .panel a:hover { background: var(--surface-2); color: var(--ink); }
.m-menu .panel .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 16px 0 4px 12px; }
.m-menu .panel .dot { width: 10px; height: 10px; border-radius: 50%; }
.m-menu .panel .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* reveal on scroll — only hidden when JS is active, so no-JS users see everything */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
