/*
 * MorphCam — website stylesheet (redesign, v2)
 * One shared file for every page. Mobile-first: base rules target phones,
 * then @media (min-width: …) enhances for larger screens.
 * Colours match the MorphCam app. Font: Inter, self-hosted (fonts/).
 */

/* ============================================================
   FONT
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0d141c;
  --bg-2: #121c26;
  --surface: #172331;
  --surface-2: #1d2b3b;
  --surface-3: #26384b;
  --border: #233244;
  --border-2: #31455b;
  --text: #f5f8fc;
  --text-2: #b9c6d4;
  --text-3: #97a8bb;
  --accent:       #00B4D8;
  --accent-hover: #22c5e8;
  --accent-ink:   #04252c;
  --accent-soft: rgba(0,180,216,.15);
  --accent-line: rgba(0,180,216,.45);
  --accent-text:  #2cc6e8;   /* accent used as text (links, eyebrows) */
  --on-accent:    #00222a;   /* text on accent buttons */
  --header-bg: rgba(13,20,28,.8);
  --banner-bg: linear-gradient(90deg, rgba(0,180,216,.22), rgba(59,130,246,.22)), #0d141c;
  --glow-1: rgba(0,180,216,.26);
  --glow-2: rgba(59,130,246,.2);
  --band-bg: radial-gradient(70% 120% at 85% 0%, rgba(0,180,216,.12), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(59,130,246,.1), transparent 60%), linear-gradient(180deg, #13212e, #0f1923);
  --cta-bg: radial-gradient(70% 90% at 50% 0%, rgba(0,180,216,.28), transparent 70%), radial-gradient(50% 70% at 100% 100%, rgba(59,130,246,.2), transparent 70%), #152131;
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)), #172331;
  --media-bg: #05080c;      /* frames around videos/screenshots */
  --media-bar: #131d29;
  --media-border: var(--border-2);
  --media-text:   var(--text-2);
  --live:         #10b981;
  --stop:         #ef4444;
  --warn:         #f5a623;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --maxw: 1180px;
  --gutter: 16px;
  --header-h: 64px;
  --announce-h: 0px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: 0 24px 60px rgba(0,0,0,.4);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--announce-h) + 16px);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

a { color: var(--accent-text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { text-wrap: balance; color: var(--text); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 7vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p + p { margin-top: 1em; }
strong { color: var(--text); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 14px;
}
.lead { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.text-center { text-align: center; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.section { padding: 72px 0; position: relative; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--band-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 960px) {
  .section { padding: 112px 0; }
  .section--tight { padding: 64px 0; }
}

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head h2 + p, .section-head h1 + p { margin-top: 16px; }
@media (min-width: 960px) { .section-head { margin-bottom: 56px; } }

.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ''; position: absolute; inset: -10% 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 70% 40%, var(--glow-1), transparent 70%),
    radial-gradient(30% 40% at 20% 70%, var(--glow-2), transparent 70%);
}

.grid { display: grid; gap: 16px; }
.grid > *, .split > *, .hero-grid > *, .picker > * { min-width: 0; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .split--flip > :first-child { order: 2; }
}

.stack > * + * { margin-top: 16px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-md);
  font-size: .9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--surface-3); border-color: #444; color: var(--text); }

.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) {
  .btn-row--stack > .btn { width: 100%; }
}

.cta-note { margin-top: 14px; font-size: .875rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cta-note span { display: inline-flex; align-items: center; gap: 6px; }
.cta-note span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.btn-row--center + .cta-note { justify-content: center; }

/* ============================================================
   ANNOUNCEMENT BANNER (sticky, above the header)
   ============================================================ */
.announce-bar {
  position: sticky; top: 0; z-index: 101;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 48px; min-height: 40px;
  background: var(--banner-bg);
  border-bottom: 1px solid var(--border);
  font-size: .875rem; line-height: 1.5; color: var(--text); text-align: center;
}
.announce-text strong { color: var(--accent-text); }
.announce-text a { font-weight: 600; white-space: nowrap; }
.announce-sep { margin: 0 6px; color: var(--text-3); }
.announce-close {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 1.375rem; line-height: 1;
}
.announce-close:hover { background: var(--surface-3); color: var(--text); }
@media (max-width: 640px) {
  .announce-bar { padding: 8px 44px 8px 16px; font-size: .8125rem; text-align: left; justify-content: flex-start; }
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky; top: var(--announce-h); z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }

.nav { display: none; }
.nav a { color: var(--text-2); font-size: .9375rem; font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); text-decoration: none; }

.header-ctas { display: none; gap: 8px; }
.header-ctas .btn { min-height: 40px; padding: 8px 14px; font-size: .875rem; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.nav-toggle:hover { background: var(--surface-2); }

.theme-toggle {
  margin-left: auto; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); border: 1px solid var(--border-2); background: var(--surface);
}
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (min-width: 1024px) {
  .nav { display: flex; gap: 2px; margin-left: 24px; }
  .header-ctas { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; left: 0; right: 0; bottom: 0;
  top: calc(var(--header-h) + var(--announce-h));
  z-index: 99; background: var(--bg); overflow-y: auto;
  padding: 16px var(--gutter) 32px;
  display: none; flex-direction: column;
}
.nav-open .mobile-menu { display: flex; }
.nav-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  color: var(--text); font-size: 1.25rem; font-weight: 600;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
}
.mobile-menu nav a:hover { text-decoration: none; color: var(--accent-text); }
.mobile-menu .btn-row { margin-top: 24px; flex-direction: column; }
.mobile-menu .btn-row .btn { width: 100%; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============================================================
   DEVICE-AWARE CTAs
   .cta-win / .cta-web / .cta-send are toggled by main.js using
   html[data-device="windows|mac|mobile|other"].
   ============================================================ */
.cta-send { display: none; }
html[data-device="mobile"] .cta-send { display: inline-flex; }
html[data-device="mobile"] .cta-win,
html[data-device="mobile"] .cta-web { display: none; }
html[data-device="mobile"] .show-desktop { display: none; }
.show-mobile { display: none; }
html[data-device="mobile"] .show-mobile { display: block; }

.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 9500;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2);
  padding: 12px 18px; border-radius: var(--r-md); font-size: .9375rem; box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-copy { order: 2; }
.hero-media { order: 1; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--accent-text); }
.hero .lead { max-width: 560px; margin-bottom: 28px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 112px; }
  .hero-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
}

.page-hero { padding: 56px 0 40px; text-align: center; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }
.page-hero .btn-row { justify-content: center; margin-top: 28px; }
@media (min-width: 960px) { .page-hero { padding: 96px 0 56px; } }

/* "Call window" video frame */
.call-window {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--media-bg); border: 1px solid var(--media-border); box-shadow: var(--shadow), 0 0 0 1px rgba(0,180,216,.08);
}
.call-window__bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--media-bar); border-bottom: 1px solid var(--media-border); font-size: .8125rem; color: var(--media-text);
}
.dots { display: inline-flex; gap: 6px; margin-right: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.live-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--text);
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35);
  padding: 3px 8px; border-radius: 999px;
}
.live-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.call-window video, .call-window .poster { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--media-bg); }
.video-toggle {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,.7); color: var(--text); border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.video-toggle:hover { background: rgba(10,10,10,.9); }
.video-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause { display: none; }
.media-caption { margin-top: 12px; font-size: .8125rem; color: var(--text-3); text-align: center; }

/* ============================================================
   APP STRIP (works in …)
   ============================================================ */
.app-strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--band-bg); }
.app-strip p { text-align: center; font-size: .8125rem; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.app-strip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.app-strip li {
  font-size: .9375rem; font-weight: 600; color: var(--text);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .9688rem; }
.card--link:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card--accent { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(0,180,216,.08), transparent 60%), var(--surface); }

.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line);
}
.icon-badge svg { width: 22px; height: 22px; }

.step-num {
  width: 32px; height: 32px; border-radius: 50%; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9375rem;
}

.tick-list li { position: relative; padding-left: 28px; }
.tick-list li + li { margin-top: 10px; }
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2300B4D8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.tick-list--cross li::before {
  background: rgba(239,68,68,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5m0-5l-5 5' fill='none' stroke='%23ef4444' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* ============================================================
   SCREENSHOT FRAME
   ============================================================ */
.shot {
  border-radius: var(--r-lg); overflow: hidden; background: var(--media-bg);
  border: 1px solid var(--media-border); box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.shot__bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: .75rem; color: var(--text-3); }
.shot img { width: 100%; }
.shot--plain { box-shadow: none; }
figure figcaption { margin-top: 12px; font-size: .8125rem; color: var(--text-3); text-align: center; }
@media (hover: hover) and (min-width: 960px) {
  .shot--tilt:hover { transform: perspective(1200px) rotateX(1.5deg) rotateY(-2deg) translateY(-4px); }
}

/* ============================================================
   TABS (camera picker, setup guide)
   ============================================================ */
.tablist {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 24px;
}
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: 42px; padding: 8px 16px; border-radius: 10px;
  font-size: .9375rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tabpanel:focus-visible { outline-offset: 6px; }

.picker { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .picker { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }
.picker .shot { max-width: 420px; margin: 0 auto; }
.picker-where { font-size: .9375rem; }
.picker-where strong { display: block; margin-bottom: 4px; }

/* ============================================================
   BEFORE / AFTER COMPARE SLIDER
   ============================================================ */
.compare {
  --pos: 50%;
  position: relative; max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 5;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--media-border);
  box-shadow: var(--shadow); background: var(--media-bg); user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--accent); pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); pointer-events: none;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.compare__label {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(10,10,10,.72); color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; color: var(--accent); }
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.compare input[type="range"]:focus-visible ~ .compare__handle { outline: 3px solid #fff; outline-offset: 2px; }

/* ============================================================
   PRIVACY SCREENSHOT TAGS (Home)
   ============================================================ */
.privacy-shot { position: relative; }
.privacy-tag {
  position: absolute; top: 72%; display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(10,10,10,.82); border: 1px solid var(--border-2); color: var(--text);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap;
}
.privacy-tag svg { width: 14px; height: 14px; }
.privacy-tag--left { left: 20%; }
.privacy-tag--right { left: 60.5%; color: var(--accent); border-color: var(--accent-line); }
@media (max-width: 480px) { .privacy-tag { font-size: .625rem; padding: 3px 7px; top: 70%; } .privacy-tag svg { display: none; } }

/* Generic "camera menu" mock for apps we have no screenshot of */
.mock-cam {
  max-width: 420px; width: 100%; margin: 0 auto; padding: 16px; border-radius: var(--r-lg);
  background: #fff; color: #111; box-shadow: var(--shadow); font-size: .9375rem;
}
.mock-cam__title { font-weight: 600; color: #555; margin-bottom: 8px; font-size: .875rem; }
.mock-cam__opt { padding: 10px 12px; border-radius: 8px; color: #333; }
.mock-cam__opt + .mock-cam__opt { margin-top: 2px; }
.mock-cam__opt--on { outline: 3px solid var(--stop); outline-offset: -3px; background: #f3f4f6; font-weight: 600; color: #111; }
.mock-cam__opt--on::after { content: ' \2713'; color: #16a34a; }

/* ============================================================
   PLATFORM CHOICE CARDS
   ============================================================ */
.choice h3 { font-size: 1.375rem; margin-bottom: 4px; }
.choice .muted { margin-bottom: 18px; }
.choice .tick-list { margin-bottom: 24px; font-size: .9688rem; }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative;
}
.price-card__credits { color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.price-card__price { color: var(--text); font-weight: 800; font-size: clamp(1.875rem, 5vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.1; }
.price-card__rate { font-size: .8125rem; color: var(--text-3); }
.price-card--featured { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent), 0 18px 50px rgba(0,180,216,.12); }

.rate-box {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px dashed var(--border-2);
  display: grid; gap: 10px;
}
@media (min-width: 720px) { .rate-box { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.rate-box div strong { display: block; font-size: 1.125rem; }
.rate-box div span { font-size: .9063rem; }

.coins { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.coins li { font-size: .8125rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); }

/* ============================================================
   PARTNERS
   ============================================================ */
.stat-big, .card .stat-big, .calc-result .stat-big { margin-top: 0; font-size: clamp(2.75rem, 8vw, 4rem); font-weight: 800; color: var(--text); letter-spacing: -0.04em; line-height: 1; }
.stat-big.accent { color: var(--accent-text); }

.calc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 24px; display: grid; gap: 24px;
}
@media (min-width: 860px) { .calc { grid-template-columns: 1.2fr 1fr; padding: 36px; gap: 40px; align-items: center; } }
.calc label, .calc .label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.calc output { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.calc .field + .field { margin-top: 24px; }
.calc-result { text-align: center; padding: 24px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--border); }
.calc-result .stat-big { font-variant-numeric: tabular-nums; }
.calc-result p { margin-top: 10px; font-size: .875rem; }

input[type="range"].range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
}
input[type="range"].range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--surface-3) var(--fill, 0%)); }
input[type="range"].range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-3); }
input[type="range"].range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
input[type="range"].range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); font-weight: 600; cursor: pointer;
}
.seg input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent-text); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 14px 0 8px; }
.progress span { display: block; height: 100%; width: 10%; background: var(--accent); border-radius: inherit; }

.code-sample {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .9375rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 12px 14px; overflow-x: auto; white-space: nowrap;
}
.code-sample b { color: var(--accent-text); font-weight: 600; }

/* ============================================================
   NOTES / CALLOUTS
   ============================================================ */
.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); font-size: .9688rem;
}
.note svg { width: 20px; height: 20px; color: var(--accent-text); flex-shrink: 0; margin-top: 2px; }
.note--warn { background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.35); }
.note--warn svg { color: var(--warn); }
.note p + p { margin-top: 6px; }
.note ul { list-style: disc; padding-left: 18px; }
.note li + li { margin-top: 4px; }

.ref-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 10px 16px; background: rgba(16,185,129,.1); border-bottom: 1px solid rgba(16,185,129,.3);
  color: var(--text); font-size: .875rem; text-align: center;
}
.ref-note code, .ref-code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--live); }

/* ============================================================
   GUIDE STEPS (How it works)
   ============================================================ */
.guide { counter-reset: step; }
.guide-step { position: relative; padding: 0 0 32px 52px; }
.guide-step:last-child { padding-bottom: 0; }
.guide-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .9375rem;
  display: flex; align-items: center; justify-content: center;
}
.guide-step::after { content: ''; position: absolute; left: 16px; top: 40px; bottom: 6px; width: 2px; background: var(--border); }
.guide-step:last-child::after { display: none; }
.guide-step h3 { margin-bottom: 8px; font-size: 1.1875rem; }
.guide-step p, .guide-step li { font-size: .9688rem; }
.guide-step ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
.guide-step li + li { margin-top: 4px; }
.guide-step .shot, .guide-step figure { margin-top: 16px; max-width: 560px; }
.guide-step .web-only { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); margin-left: 6px; vertical-align: middle; }
.tip { margin-top: 24px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; color: var(--text); font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%2300B4D8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding: 0 4px 22px; font-size: .9688rem; max-width: 720px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  text-align: center; border-radius: 24px; padding: 48px 20px; border: 1px solid var(--accent-line);
  background: var(--cta-bg);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { max-width: 560px; margin: 0 auto 28px; }
@media (min-width: 960px) { .cta-band { padding: 72px 40px; } }

/* ============================================================
   PROSE (About, Trust & Safety, legal)
   ============================================================ */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-bottom: 18px; }
.prose p { font-size: 1.0625rem; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 8px; }

.big-quote { font-size: clamp(1.375rem, 3vw, 1.875rem); color: var(--text); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; text-align: center; max-width: 820px; margin: 0 auto; }

.email-highlight {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--accent-line);
}
.email-highlight p:first-child { font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--text-3); }
.email-highlight a { font-size: 1.375rem; font-weight: 700; }

/* ============================================================
   FORMS (Contact)
   ============================================================ */
.form { display: grid; gap: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--text); font-size: .9375rem; margin-bottom: 8px; }
.form-field input, .form-field textarea, .newsletter-row input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--border-2); color: var(--text); font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus, .form-field textarea:focus, .newsletter-row input:focus {
  outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft);
}
::placeholder { color: var(--text-3); }
.newsletter-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .newsletter-row { flex-direction: row; } .newsletter-row .btn { flex-shrink: 0; } }
.form-success, .form-error { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); font-size: .9375rem; }
.form-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.35); color: var(--text); }
.form-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); color: var(--text); }

.contact-card .email { display: inline-block; font-size: 1.125rem; font-weight: 700; margin: 6px 0 8px; word-break: break-all; }
.copy-btn { font-size: .8125rem; font-weight: 600; color: var(--text-2); padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface-2); }
.copy-btn:hover { color: var(--text); }

/* ============================================================
   LEGAL PAGES (wording unchanged; restyled)
   ============================================================ */
.legal-page-header { padding: 56px 0 24px; }
.legal-page-header-inner { max-width: 760px; margin: 0 auto; }
.legal-page-title { font-size: clamp(2.125rem, 5vw, 3rem); margin-bottom: 10px; }
.legal-date { font-size: .875rem; color: var(--text-3); }
.legal-body { padding: 8px 0 96px; }
.legal-column { max-width: 760px; margin: 0 auto; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--border); }
.legal-section h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 12px; display: flex; gap: 10px; }
.legal-num { color: var(--accent-text); }
.legal-section p, .legal-section li { font-size: .9688rem; }
.legal-section p + p, .legal-section p + ol, .legal-section p + ul, .legal-section ol + p, .legal-section ul + p { margin-top: 12px; }
.legal-alpha-list { list-style: lower-alpha; padding-left: 22px; }
.legal-bullet-list { list-style: disc; padding-left: 22px; }
.legal-section ol:not([class]) { list-style: decimal; padding-left: 22px; }
.legal-section ul:not([class]) { list-style: disc; padding-left: 22px; }
.legal-section li + li { margin-top: 6px; }

/* ============================================================
   404
   ============================================================ */
.notfound { text-align: center; padding: 96px 0; }
.notfound-code { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent-line); display: block; margin-bottom: 12px; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 28px; font-size: .9375rem; }

/* ============================================================
   FOOTER (keeps the site's original footer structure)
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--band-bg); padding: 56px 0 96px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-tagline { margin-top: 12px; font-size: .9375rem; max-width: 280px; }
.footer-contact { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: .9375rem; }
.footer-col-heading { color: var(--text); font-weight: 600; font-size: .875rem; margin-bottom: 12px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--text-2); font-size: .9375rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
}

/* ============================================================
   FLOATING TELEGRAM BUTTON (personal support chat)
   ============================================================ */
.fab-telegram {
  position: fixed; right: 16px; bottom: 16px; z-index: 9000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2);
  font-weight: 600; font-size: .875rem; box-shadow: 0 12px 32px rgba(0,0,0,.5);
  transition: transform .15s, border-color .15s;
}
.fab-telegram:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent-line); color: var(--text); }
.fab-telegram svg { width: 18px; height: 18px; color: var(--accent-text); }
@media (max-width: 480px) {
  .fab-telegram { padding: 12px; }
  .fab-telegram-label { display: none; }
}

/* ============================================================
   MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PAGE-SPECIFIC BITS
   ============================================================ */
ol.grid, ol.guide { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
.h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); }

.partner-strip { display: grid; gap: 24px; align-items: center; padding: 28px; }
.partner-strip h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); margin-bottom: 10px; }
.partner-strip__stats { display: flex; align-items: center; gap: 12px; }
.partner-strip__arrow { font-size: 1.75rem; color: var(--text-3); }
@media (min-width: 960px) { .partner-strip { grid-template-columns: 1.6fr auto auto; gap: 40px; padding: 40px; } }

.guide-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; max-width: 540px; }
.guide-shots .shot { margin-top: 0; }

.page-hero .dl-meta { margin-top: 16px; font-size: .875rem; color: var(--text-3); }
.page-hero .dl-mac { margin-top: 8px; font-size: .9375rem; }
.page-hero .dl-ref { max-width: 560px; margin: 24px auto 0; text-align: left; }
.whats-new { color: var(--text); font-size: 1.0625rem; }

.contact-card .btn-row { margin-top: 18px; }

/* Spacing utilities */
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; }

/* ============================================================
   SLIDER: "real camera hidden" tag
   ============================================================ */
.compare__lock {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; pointer-events: none;
  font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(10,10,10,.78); color: #f5f5f5; border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.compare__lock svg { width: 13px; height: 13px; color: var(--live); }
.compare__label { max-width: calc(50% - 18px); line-height: 1.3; }
@media (max-width: 480px) { .compare__label, .compare__lock { font-size: .6875rem; padding: 4px 8px; } }
.guide-step .compare { margin-top: 16px; max-width: 380px; margin-left: 0; }

/* Video clip inside the guide */
.clip { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--media-bg); border: 1px solid var(--media-border); box-shadow: var(--shadow); }
.clip video { width: 100%; aspect-ratio: 1174 / 660; object-fit: cover; }

/* ============================================================
   DARK THEME extras (default; tokens live in :root)
   ============================================================ */

html:not([data-theme="light"]) body { background: radial-gradient(90% 60% at 50% -10%, rgba(0,180,216,.12), transparent 70%) no-repeat, var(--bg); }
html:not([data-theme="light"]) .hero h1 .accent,
html:not([data-theme="light"]) .stat-big.accent {
  background: linear-gradient(90deg, #22d3ee, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html:not([data-theme="light"]) .btn-primary { background: linear-gradient(135deg, #00c2e8, #3b9cf6); color: #031a24; }
html:not([data-theme="light"]) .btn-primary:hover { background: linear-gradient(135deg, #22d0f2, #5aaefa); color: #031a24; }
html:not([data-theme="light"]) .step-num, html:not([data-theme="light"]) .guide-step::before { background: linear-gradient(135deg, #00c2e8, #3b9cf6); }

/* ============================================================
   LIGHT THEME (html[data-theme="light"], set by js/theme.js from the
   visitor's system setting or the header toggle). Bright and clean;
   dark frames only around videos and screenshots.
   ============================================================ */
html[data-theme="light"] {
  color-scheme: light;
  --bg:           #f7fafc;
  --bg-2:         #eef4f8;
  --surface:      #ffffff;
  --surface-2:    #f1f5f9;
  --surface-3:    #e2e8f0;
  --border:       #e3e9f0;
  --border-2:     #cfd8e3;
  --text:         #0b1626;
  --text-2:       #475569;
  --text-3:       #566479;
  --accent-text:  #036a8c;
  --accent-soft:  rgba(0,180,216,.1);
  --accent-line:  rgba(3,106,140,.32);
  --header-bg:    rgba(255,255,255,.86);
  --banner-bg:    linear-gradient(90deg, #dff6fc, #e3edff);
  --glow-1:       rgba(0,180,216,.18);
  --glow-2:       rgba(99,102,241,.1);
  --band-bg:      radial-gradient(70% 120% at 85% 0%, rgba(0,180,216,.08), transparent 60%), linear-gradient(180deg, #eef6fa, #f4f8fb);
  --cta-bg:       radial-gradient(70% 90% at 50% 0%, rgba(0,180,216,.16), transparent 70%), #ffffff;
  --card-bg:      #ffffff;
  --media-bg:     #0b0f14;
  --media-bar:    #111827;
  --media-border: #1f2937;
  --media-text:   #cbd5e1;
  --shadow:       0 18px 48px rgba(15,23,42,.12);
}
html[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.04); }
html[data-theme="light"] .btn-secondary { background: #fff; border-color: var(--border-2); }
html[data-theme="light"] .btn-secondary:hover { background: var(--surface-2); }
html[data-theme="light"] .hero h1 .accent { color: #0089ad; }
html[data-theme="light"] .call-window__bar .dots i { background: #374151; }
html[data-theme="light"] .mock-cam { border: 1px solid var(--border-2); }
html[data-theme="light"] .note--warn { background: #fff8eb; border-color: #f5d18a; }
html[data-theme="light"] .note--warn svg { color: #b45309; }
html[data-theme="light"] .ref-note { background: #e8faf3; }
html[data-theme="light"] .fab-telegram { background: #fff; box-shadow: 0 10px 28px rgba(15,23,42,.18); }
html[data-theme="light"] .form-field input, html[data-theme="light"] .form-field textarea,
html[data-theme="light"] .newsletter-row input { background: #fff; }
html[data-theme="light"] .tick-list li::before { background-color: rgba(0,180,216,.14); }
html[data-theme="light"] .notfound-code { -webkit-text-stroke-color: rgba(3,106,140,.55); }

/* ============================================================
   GUIDES
   ============================================================ */
.guide-hero { padding: 48px 0 24px; }
.guide-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 16px; }
.guide-hero .lead { margin-bottom: 12px; }
.guide-meta { font-size: .875rem; color: var(--text-3); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--text-3); margin-bottom: 20px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
@media (min-width: 960px) { .guide-hero { padding: 80px 0 32px; } }

.guide-body h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 48px 0 16px; }
.guide-body h3 { margin: 28px 0 12px; }
.guide-body p, .guide-body li { font-size: 1.0625rem; }
.guide-body p + p { margin-top: 14px; }
.guide-body > p, .guide-body > ul, .guide-body > ol { max-width: 68ch; }
.guide-body .note { margin-top: 40px; }

.tldr { padding: 22px 24px; border-radius: var(--r-lg); background: var(--card-bg); border: 1px solid var(--accent-line); }
.tldr__title { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }

ol.steps { counter-reset: s; list-style: none; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 44px; }
ol.steps > li + li { margin-top: 14px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line);
}

.guide-figure { margin: 24px 0 8px; max-width: 380px; }
.guide-figure--wide { max-width: 720px; }
.guide-figure .compare { margin-left: 0; }

.table-wrap { overflow-x: auto; margin: 8px 0; border-radius: var(--r-md); border: 1px solid var(--border); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 520px; background: var(--card-bg); }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp-table thead th { color: var(--text); font-size: .875rem; background: var(--surface-2); }
.cmp-table tbody th { color: var(--text); font-weight: 600; white-space: nowrap; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }

.guide-card { display: flex; flex-direction: column; color: var(--text-2); }
.guide-card:hover { text-decoration: none; }
.guide-card h3 { color: var(--text); }
.guide-card .pill { align-self: flex-start; }
.guide-card__more { margin-top: auto; padding-top: 16px; color: var(--accent-text); font-weight: 600; font-size: .9375rem; }
.related { margin-top: 64px; }
.related__title { font-size: 1.5rem; margin-bottom: 20px; }

/* ============================================================
   CONTRAST FIXES (WCAG AA, both themes)
   ============================================================ */
/* Dark media frames (call window, screenshots, video clip, slider) always use
   the dark-theme colours, so anything placed on them stays readable in light mode. */
html[data-theme="light"] :is(.call-window, .shot, .compare, .clip) {
  color-scheme: dark;
  --text: #f5f8fc; --text-2: #b9c6d4; --text-3: #97a8bb;
  --surface: #172331; --surface-2: #1d2b3b; --surface-3: #26384b;
  --border: #233244; --border-2: #31455b;
  --accent-text: #2cc6e8; --accent-line: rgba(0,180,216,.45);
}

/* Focus ring: cyan is too pale on light backgrounds */
html[data-theme="light"] :focus-visible { outline-color: var(--accent-text); }

/* "Web app only" label: amber is unreadable on white */
html[data-theme="light"] .guide-step .web-only { color: #9a5800; }

/* Form field borders need 3:1 against their surroundings */
.form-field input, .form-field textarea, .newsletter-row input { border-color: #5a7089; }
html[data-theme="light"] .form-field input, html[data-theme="light"] .form-field textarea,
html[data-theme="light"] .newsletter-row input { border-color: #7d8ba0; }

