/* ==========================================================================
   Candivo website. One stylesheet, no framework, no web fonts, no third-party requests.
   Light and dark themes (the visitor's system by default, a switch in the header).
   ========================================================================== */

/* ---- tokens ------------------------------------------------------------------------------------------------------ */
:root {
  --brand-50: #e8f6f7; --brand-100: #c9ebee; --brand-200: #9bdbe0; --brand-300: #62c2cb; --brand-400: #2fa5b1;
  --brand-500: #148b97; --brand-600: #0e7c86; --brand-700: #0b6770; --brand-800: #09525a; --brand-900: #073e44; --brand-950: #04282c;

  --bg: #ffffff;
  --bg-alt: #f3f8f9;
  --surface: #ffffff;
  --surface-2: #f6fafb;
  --border: #dbe6e9;
  --border-strong: #c2d3d8;
  --text: #0c1f26;
  --muted: #455c64;
  --subtle: #678089;
  --link: var(--brand-700);
  --link-hover: var(--brand-900);
  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);
  --on-primary: #ffffff;
  --chip-bg: var(--brand-50);
  --chip-fg: var(--brand-700);
  --ok: #0f766e;
  --no: #b4410c;
  --focus: var(--brand-500);
  --code-bg: #0d2329;
  --code-fg: #d9eef0;
  --hero-glow: rgb(20 139 151 / 0.16);
  --shadow-sm: 0 1px 2px rgb(7 62 68 / 0.06), 0 1px 3px rgb(7 62 68 / 0.05);
  --shadow-md: 0 8px 24px -8px rgb(7 62 68 / 0.18);
  --shadow-lg: 0 30px 60px -20px rgb(7 62 68 / 0.35), 0 12px 24px -12px rgb(7 62 68 / 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 68px;

  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  --bg: #061417;
  --bg-alt: #081c20;
  --surface: #0b2125;
  --surface-2: #0e272c;
  --border: #17373d;
  --border-strong: #24505a;
  --text: #e8f3f4;
  --muted: #a2bcc1;
  --subtle: #7f9ca2;
  --link: var(--brand-300);
  --link-hover: var(--brand-200);
  --chip-bg: rgb(20 139 151 / 0.2);
  --chip-fg: var(--brand-200);
  --ok: #5fd3c9;
  --no: #f59a6b;
  --code-bg: #030d10;
  --hero-glow: rgb(20 139 151 / 0.28);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.55);
  --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 12px 24px -12px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061417;
    --bg-alt: #081c20;
    --surface: #0b2125;
    --surface-2: #0e272c;
    --border: #17373d;
    --border-strong: #24505a;
    --text: #e8f3f4;
    --muted: #a2bcc1;
    --subtle: #7f9ca2;
    --link: var(--brand-300);
    --link-hover: var(--brand-200);
    --chip-bg: rgb(20 139 151 / 0.2);
    --chip-fg: var(--brand-200);
    --ok: #5fd3c9;
    --no: #f59a6b;
    --code-bg: #030d10;
    --hero-glow: rgb(20 139 151 / 0.28);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.55);
    --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 0.7), 0 12px 24px -12px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

/* ---- base -------------------------------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); color: var(--brand-950); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.5rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.65rem); letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
.h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code { padding: 0.12em 0.4em; border-radius: 6px; background: var(--chip-bg); color: var(--chip-fg); border: 1px solid transparent; word-break: break-word; }
strong { font-weight: 700; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--brand-800); color: #fff; font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.fine { font-size: 0.875rem; color: var(--subtle); }

/* theme-dependent pictures and icons */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
:root[data-theme="dark"] img.only-dark, :root[data-theme="dark"] .frame img.only-dark { display: block !important; }
:root[data-theme="dark"] .ico.only-dark { display: inline-block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none !important; }
  :root:not([data-theme="light"]) img.only-dark, :root:not([data-theme="light"]) .frame img.only-dark { display: block !important; }
  :root:not([data-theme="light"]) .ico.only-dark { display: inline-block !important; }
}

/* ---- buttons ----------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 46px; padding: 0.65em 1.3em; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-size: 0.97rem; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 0.8em 1.6em; font-size: 1.04rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0.45em 1em; font-size: 0.9rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 20px -8px rgb(14 124 134 / 0.7); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); box-shadow: 0 12px 24px -8px rgb(14 124 134 / 0.75); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand-500); color: var(--link); }
.btn-light { background: #fff; color: var(--brand-800); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-900); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.45); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 0.12); color: #fff; border-color: #fff; }
.btn.is-disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.icon-btn:hover { border-color: var(--brand-500); }
.icon-btn .ico { width: 1.2rem; height: 1.2rem; vertical-align: middle; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5em; margin: 0 0 1.25rem; padding: 0.35em 0.95em 0.35em 0.75em;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-size: 0.875rem; font-weight: 600; line-height: 1.3;
}
.pill-free { background: var(--chip-bg); color: var(--chip-fg); border-color: color-mix(in srgb, var(--brand-500) 35%, transparent); }

/* ---- header ------------------------------------------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -16px rgb(7 62 68 / 0.3); }
.header-in { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: linear-gradient(145deg, var(--brand-500), var(--brand-700)); color: #fff; box-shadow: 0 6px 14px -6px rgb(14 124 134 / 0.8); }
.brand-mark svg { width: 1.4rem; height: 1.4rem; }
.nav { margin-left: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 0.5em 0.85em; border-radius: 10px; color: var(--muted); font-size: 0.97rem; font-weight: 550; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.nav-links a:hover { color: var(--text); background: var(--chip-bg); }
.nav-links a[aria-current="page"] { color: var(--link); background: var(--chip-bg); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.langs { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.langs a { padding: 0.28em 0.6em; border-radius: 7px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--primary); color: #fff; }
.nav-burger { display: none; }

/* ---- hero -------------------------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 55% at 78% 8%, var(--hero-glow), transparent 70%),
    radial-gradient(40% 45% at 4% 18%, color-mix(in srgb, var(--brand-400) 12%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 60% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 60% 20%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.display { margin-bottom: 1.25rem; }
.grad { background: linear-gradient(95deg, var(--brand-600), #13a8b8 55%, #35c6cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .grad { background-image: linear-gradient(95deg, #4fd0da, #8be8ee 60%, #bff4f6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grad { background-image: linear-gradient(95deg, #4fd0da, #8be8ee 60%, #bff4f6); } }
.lead { margin-bottom: 1.5rem; color: var(--muted); font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75rem 0 1.5rem; }
.cta-center { justify-content: center; }
.ticks { list-style: none; display: grid; gap: 0.6rem; }
.ticks li { display: flex; align-items: flex-start; gap: 0.65em; }
.ticks .ico { margin-top: 0.22em; color: var(--ok); stroke-width: 2.4; }
.ticks-no .ico { color: var(--no); }
.ticks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; font-size: 0.97rem; color: var(--muted); }

.hero-visual { position: relative; padding: 0 0 56px; }
.hero-main { transform: perspective(1800px) rotateY(-4deg) rotateX(1.5deg); transform-origin: 70% 40%; }
.hero-card { position: absolute; left: -4%; bottom: 8px; width: 58%; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-lg); }
.hero-card img { display: block; width: 100%; height: auto; }
.hero-visual .hero-phone { position: absolute; right: -1%; bottom: -12px; width: 25%; max-width: 200px; z-index: 3; }

/* ---- frames: a browser window and a phone around a screenshot --------------------------------------------------- */
.frame { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.frame-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame-bar i:nth-child(1) { background: #ff6b5f; }
.frame-bar i:nth-child(2) { background: #ffbd3f; }
.frame-bar i:nth-child(3) { background: #2fcf5b; }
.frame-bar span { flex: 1; max-width: 360px; margin-left: 12px; padding: 2px 12px; overflow: hidden; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--subtle); font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap; }
.frame img.crop { aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; }
.frame img.crop-wide { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.frame-phone { position: relative; width: 100%; max-width: 250px; padding: 9px; border-radius: 36px; background: #0b171b; border: 1px solid #263a41; box-shadow: var(--shadow-lg); }
.frame-phone img { border-radius: 28px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.frame-notch { position: absolute; top: 15px; left: 50%; z-index: 2; width: 56px; height: 6px; margin-left: -28px; border-radius: 6px; background: #0b171b; }

/* ---- facts ------------------------------------------------------------------------------------------------------- */
.facts { border-block: 1px solid var(--border); background: var(--bg-alt); }
.facts-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.facts-list li { display: grid; gap: 2px; padding: 26px 20px; text-align: center; }
.facts-list li + li { border-left: 1px solid var(--border); }
.facts-list strong { color: var(--link); font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.facts-list span { color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

/* ---- sections ---------------------------------------------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 780px; margin: 0 auto clamp(32px, 4vw, 56px); }
.section-head.center { text-align: center; }
.section-head .lead { margin: 1rem 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5em; margin: 0 0 0.9rem; color: var(--link); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow .ico { width: 1.25em; height: 1.25em; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin: 1rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.mini { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, transform 0.2s; }
.mini:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.mini h3 { margin: 0.9rem 0 0.35rem; font-size: 1.05rem; }
.mini p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.55; }
.chip-icon { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--chip-bg); color: var(--chip-fg); }
.chip-icon .ico { width: 1.45rem; height: 1.45rem; vertical-align: middle; }
.chip-sm { width: 40px; height: 40px; border-radius: 12px; }
.chip-sm .ico { width: 1.25rem; height: 1.25rem; }
.center-link { margin: clamp(28px, 4vw, 48px) 0 0; text-align: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(28px, 4vw, 52px) 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature-flip .feature-copy { order: 2; }
.feature-tag { display: inline-flex; align-items: center; gap: 0.55em; margin: 0 0 0.9rem; color: var(--link); font-size: 0.9rem; font-weight: 700; }
.feature-num { display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding: 0 0.4em; border-radius: 10px; background: var(--primary); color: #fff; font-size: 0.8rem; letter-spacing: 0.03em; }
.feature h3 { margin-bottom: 1rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; font-weight: 800; }
.feature-copy > p { color: var(--muted); }
.feature-copy .ticks { margin: 1.25rem 0 1.5rem; }
.more { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; text-decoration: none; }
.more .ico { transition: transform 0.15s; }
.more:hover .ico { transform: translateX(3px); }
.feature-media, .split-media { position: relative; }
.feature-media .float-phone, .split-media .float-phone { position: absolute; right: -10px; bottom: -34px; width: 27%; max-width: 190px; z-index: 3; }
.float-card { position: absolute; left: -22px; bottom: -26px; width: 56%; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-lg); }
.float-card img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-flip .split-copy { order: 2; }
.split-copy .lead { margin-bottom: 1.25rem; }
.split-copy .ticks { margin-top: 1.25rem; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding: 20px 0 40px; }
.phones .frame-phone { max-width: 210px; flex: 1 1 0; }
.phones .phone-a { transform: translateY(24px) rotate(-3deg); margin-right: -18px; }
.phones .phone-b { z-index: 2; transform: translateY(-6px); }
.phones .phone-c { transform: translateY(28px) rotate(3deg); margin-left: -18px; }

/* caps list (features page) */
.caps { display: grid; gap: 0; margin: 1.5rem 0 0; }
.caps > div { padding: 14px 0; border-top: 1px solid var(--border); }
.caps dt { font-weight: 700; margin-bottom: 2px; }
.caps dd { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* tour */
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tour-tab { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1.1em; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.tour-tab:hover { border-color: var(--brand-500); color: var(--text); }
.tour-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px -8px rgb(14 124 134 / 0.8); }
.tour-panel { display: grid; gap: 22px; }
.tour-panel[hidden] { display: none; }
.tour-text { max-width: 720px; margin: 0 auto; text-align: center; }
.tour-text h3 { font-size: 1.45rem; }
.tour-text p { margin: 0.5rem 0 0; color: var(--muted); }
.tour .frame { max-width: 1040px; margin-inline: auto; width: 100%; }
.hint { display: flex; align-items: center; justify-content: center; gap: 0.5em; margin: 22px 0 0; color: var(--subtle); font-size: 0.9rem; }

/* dark band */
.band-dark { background: radial-gradient(60% 80% at 80% 0%, rgb(20 139 151 / 0.3), transparent 70%), linear-gradient(180deg, #05191d, #07272d); color: #e6f2f3; border-block: 1px solid #0f3238; }
.band-dark .eyebrow { color: var(--brand-300); }
.band-dark .lead { color: #a9c6ca; }
.card-dark { background: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.1); box-shadow: none; }
.card-dark:hover { background: rgb(255 255 255 / 0.07); border-color: rgb(95 211 201 / 0.45); }
.card-dark p { color: #a9c6ca; }
.card-dark .chip-icon { background: rgb(20 139 151 / 0.28); color: var(--brand-200); }
.btn.btn-light .ico { stroke-width: 2.2; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; box-shadow: 0 8px 16px -8px rgb(14 124 134 / 0.8); }
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.need { margin: 40px auto 0; max-width: 900px; text-align: center; }
.need h3 { margin-bottom: 14px; font-size: 1rem; color: var(--subtle); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.45em 1em 0.45em 0.8em; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 0.93rem; font-weight: 550; }
.chips .ico { color: var(--ok); stroke-width: 2.4; }

/* free */
.free-grid .card:hover { transform: none; }
.card-yes { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.card-no { border-color: color-mix(in srgb, var(--no) 40%, var(--border)); }
.card-yes h3, .card-no h3 { display: flex; align-items: center; gap: 0.5em; margin: 0 0 1rem; }
.card-yes h3 .ico { color: var(--ok); }
.card-no h3 .ico { color: var(--no); }
.card-yes .ticks, .card-no .ticks { color: var(--text); }
.bytrends { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, var(--chip-bg), var(--surface)); }
.bytrends h3 { margin-bottom: 0.4rem; }
.bytrends p { margin: 0; max-width: 640px; color: var(--muted); }
.bytrends-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.compare-table, .doc-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.compare-table th, .compare-table td, .doc-table th, .doc-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--surface-2); color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.compare-table tbody th, .doc-table tbody th { font-weight: 650; width: 26%; }
.compare-table tbody tr:last-child > *, .doc-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table td { color: var(--muted); }
.compare-table .us { background: color-mix(in srgb, var(--brand-500) 9%, transparent); color: var(--text); font-weight: 600; }
.compare-table thead .us { color: var(--link); }
.compare-table td.us { display: table-cell; }
.compare-table td.us .ico { margin-right: 0.5em; color: var(--ok); stroke-width: 2.6; }
.compare-table td.us > span { display: inline; }
.table-wrap + .fine { margin-top: 14px; text-align: center; }

/* faq */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 1.08rem; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--link); transition: transform 0.2s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq-a { padding: 0 4px 22px; color: var(--muted); }
.faq-a p { margin: 0; max-width: 70ch; }

/* cta band */
.cta-band { position: relative; overflow: clip; padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(60% 120% at 85% 0%, rgb(255 255 255 / 0.12), transparent 60%), linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { max-width: 640px; margin: 1rem auto 0; color: #cfe9ec; }
.cta-band .fine { margin-top: 0.5rem; color: #a9d3d8; }
.cta-band .cta-row { margin-bottom: 0.5rem; }

/* ---- inner pages ------------------------------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: clip; padding: clamp(44px, 6vw, 84px) 0 clamp(28px, 4vw, 48px); background: radial-gradient(50% 90% at 85% 0%, var(--hero-glow), transparent 70%); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 18ch; margin-bottom: 1.1rem; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); }
.page-hero .lead { max-width: 760px; margin-bottom: 0; }
.page-hero.notfound { padding: 96px 0 112px; border: 0; }
.page-hero.notfound h1 { margin-inline: auto; }
.page-hero.notfound .lead { margin-inline: auto; }
.big-404 { margin: 0; color: var(--brand-300); font-size: clamp(5rem, 4rem + 8vw, 10rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; opacity: 0.6; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.75rem; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.4em 0.95em 0.4em 0.75em; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.jump a:hover { border-color: var(--brand-500); color: var(--link); transform: translateY(-1px); }
.jump .ico { color: var(--link); }

.detail { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.detail-head h2 { margin: 1rem 0 0.75rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.detail-head p { color: var(--muted); }
.detail-list { display: grid; gap: 0; list-style: none; }
.detail-list li { display: flex; gap: 0.8em; padding: 16px 0; border-top: 1px solid var(--border); }
.detail-list li:first-child { border-top: 0; padding-top: 0; }
.detail-list .ico { margin-top: 0.25em; color: var(--ok); stroke-width: 2.4; }
.todo { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; counter-reset: todo; }
.todo li { position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); counter-increment: todo; }
.todo li::before { content: counter(todo); position: absolute; left: 18px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--chip-bg); color: var(--chip-fg); font-weight: 800; }
.callout { max-width: 860px; margin: 28px auto 0; padding: 24px 28px; border: 1px solid color-mix(in srgb, var(--no) 40%, var(--border)); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface); }
.callout h3 { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.5rem; }
.callout h3 .ico { color: var(--no); }
.callout p { margin: 0; color: var(--muted); }
.callout-sm { margin: 18px 0; padding: 14px 18px; border-color: var(--border); border-left-color: var(--brand-500); }
.callout-sm p { display: flex; gap: 0.65em; margin: 0; color: var(--text); font-size: 0.97rem; }
.callout-sm .ico { margin-top: 0.2em; color: var(--link); }
.report { display: flex; gap: 22px; align-items: flex-start; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.report h2 { margin-bottom: 0.6rem; font-size: 1.6rem; }
.report p { color: var(--muted); }

/* download */
.dl-section { padding-top: clamp(36px, 5vw, 64px); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.dl-card { position: relative; padding: 32px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.dl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, var(--brand-600), #35c6cf); }
.dl-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dl-top .pill { margin: 0 0 0 auto; }
.dl-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--chip-bg); color: var(--chip-fg); }
.dl-icon .ico { width: 1.7rem; height: 1.7rem; vertical-align: middle; }
.dl-name { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.dl-meta { margin: 0; color: var(--subtle); font-size: 0.92rem; }
.sha { margin: 22px 0 6px; }
.sha-label { display: flex; align-items: center; gap: 0.5em; margin: 0 0 8px; color: var(--muted); font-size: 0.88rem; font-weight: 650; }
.code-line { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.code-line code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font-size: 0.8rem; word-break: break-all; }
.dl-facts { display: grid; gap: 8px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; color: var(--muted); font-size: 0.95rem; }
.dl-facts li { display: flex; gap: 0.6em; }
.dl-facts .ico { margin-top: 0.25em; color: var(--ok); stroke-width: 2.4; }
.dl-side h2 { margin-bottom: 1rem; font-size: 1.5rem; }
.req { display: grid; gap: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.req li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 0.95rem; }
.req li:first-child { border-top: 0; }
.req-k { color: var(--subtle); font-weight: 650; }
.req-v { color: var(--text); overflow-wrap: anywhere; }
.codeblock { border: 1px solid #16363c; border-radius: var(--radius-sm); background: var(--code-bg); color: var(--code-fg); padding: 16px 18px; }
.codeblock pre { margin: 0; overflow-x: auto; font-size: 0.86rem; line-height: 1.7; }
.codeblock code { padding: 0; background: none; border: 0; color: inherit; }
.codeblock .code-title { display: flex; align-items: center; gap: 0.5em; margin: 0 0 8px; color: #8fb5bb; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.codeblock .code-title:not(:first-child) { margin-top: 18px; }
.codeblock .fine { margin: 14px 0 0; color: #7fa2a8; }
.files { display: grid; gap: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.files li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); font-size: 0.95rem; }
.files li:first-child { border-top: 0; }
.file-name { display: flex; align-items: center; gap: 0.6em; color: var(--link); }
.file-name code { padding: 0; background: none; color: var(--text); font-weight: 650; }
.file-text { color: var(--muted); }
.notes h3 { margin: 1.75rem 0 0.6rem; font-size: 1.15rem; }
.notes h3:first-child { margin-top: 0; }
.plain { display: grid; gap: 0.5rem; padding-left: 1.2em; color: var(--muted); }
.plain li::marker { color: var(--brand-500); }

/* docs and prose */
.docs-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.docs-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc-title { margin: 0 0 10px; color: var(--subtle); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.docs-toc ul { display: grid; gap: 2px; list-style: none; }
.docs-toc a { display: block; padding: 0.4em 0.7em; border-radius: 8px; color: var(--muted); font-size: 0.93rem; font-weight: 550; text-decoration: none; }
.docs-toc a:hover { background: var(--chip-bg); color: var(--link); }
.prose { max-width: 78ch; }
.prose h2 { display: flex; align-items: center; gap: 0.6em; margin: 0 0 1rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h2 .ico { width: 1.3em; height: 1.3em; padding: 0.3em; box-sizing: content-box; border-radius: 10px; background: var(--chip-bg); color: var(--chip-fg); vertical-align: middle; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p { color: var(--muted); }
.prose ul, .prose ol { display: grid; gap: 0.6rem; margin: 0 0 1.2em; padding-left: 1.3em; color: var(--muted); }
.prose li::marker { color: var(--brand-500); font-weight: 700; }
.prose strong { color: var(--text); }
.prose .codeblock { margin: 0 0 1.2em; }
.prose .table-wrap { margin: 0 0 1.2em; }
.doc { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--border); }
.doc:last-child { margin-bottom: 0; border-bottom: 0; }
.doc-table th, .doc-table td { font-size: 0.95rem; }
.doc-table thead th { background: var(--surface-2); color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.doc-table tbody th { width: 30%; color: var(--text); }
.doc-table td { color: var(--muted); }
.legal h2 { display: block; margin: 2rem 0 0.6rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.legal p { font-size: 0.98rem; }
.legal-item { margin-left: 1.5rem; }
.may-grid { margin-bottom: 32px; }

/* about */
.support-card { padding: 32px; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }
.support-card h3 { margin: 1rem 0 0.5rem; font-size: 1.5rem; }
.support-card p { color: var(--muted); }
.support-card .ticks { margin: 1.25rem 0 1.5rem; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.demo-acc { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.demo-acc h3 { margin: 0.9rem 0 0.35rem; font-size: 1.1rem; }
.demo-acc p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.demo-acc .demo-login { margin: auto 0 0; }
.demo-acc code { font-size: 0.82rem; overflow-wrap: anywhere; }
.demo-pass { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.6em 1.1em; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--muted); }

/* ---- footer ------------------------------------------------------------------------------------------------------ */
.site-footer { padding: 64px 0 28px; background: #041114; color: #a9c6ca; }
.site-footer a { color: #cfe3e5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-about .brand { color: #fff; }
.footer-about p { max-width: 36ch; margin: 1rem 0 1.25rem; font-size: 0.95rem; }
.footer-about .btn-secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); }
.footer-about .btn-secondary:hover { border-color: #fff; text-decoration: none; }
.footer-col h2 { margin: 0 0 14px; color: #fff; font-size: 0.82rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; list-style: none; font-size: 0.95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-free { display: inline-flex; align-items: center; gap: 0.5em; color: var(--brand-200); }

/* ---- motion, lightbox, toast ------------------------------------------------------------------------------------ */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rv.in { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; overflow: auto; padding: 56px 20px 32px; background: rgb(3 12 14 / 0.88); backdrop-filter: blur(6px); }
.lightbox.open { display: block; }
.lightbox img { display: block; width: min(100%, 1500px); margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.6); background: var(--surface); }
.lightbox .cap { max-width: 900px; margin: 14px auto 0; color: #cfe3e5; font-size: 0.92rem; text-align: center; }
.lightbox button { position: fixed; top: 12px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 50%; background: rgb(0 0 0 / 0.5); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / 0.15); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; max-width: min(92vw, 520px); padding: 14px 20px; border-radius: 12px; background: #0b2e34; color: #fff; box-shadow: var(--shadow-lg); font-size: 0.95rem; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive -------------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav-burger { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); display: none; margin: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); background: var(--bg); box-shadow: 0 24px 40px -24px rgb(7 62 68 / 0.4); }
  .nav.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 0.8em 0.9em; font-size: 1.05rem; }
  .header-cta { display: none; }
  .hero-grid, .feature, .split, .detail, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-flip .feature-copy, .split-flip .split-copy { order: 0; }
  .hero-visual { max-width: 760px; margin-inline: auto; width: 100%; }
  .hero-main { transform: none; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { position: static; }
  .docs-toc ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .steps, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-list li:nth-child(odd) { border-left: 0; }
  .facts-list li:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .facts-list li:last-child { grid-column: 1 / -1; border-left: 0; }
  .feature-media .float-phone, .split-media .float-phone { right: 4px; bottom: -20px; }
  .float-card { left: 4px; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .ticks-row { grid-template-columns: minmax(0, 1fr); }
  .hero-card { display: none; }
  .hero-visual .hero-phone { right: 4px; width: 30%; }
  .hero-visual { padding-bottom: 36px; }
  .phones { padding-bottom: 28px; }
  .phones .phone-a { margin-right: -28px; }
  .phones .phone-c { margin-left: -28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .req li, .files li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .report { flex-direction: column; }
  .bytrends { padding: 22px; }
  .langs a { padding: 0.28em 0.5em; }
  .header-in { gap: 10px; }
  .brand-name { font-size: 1.15rem; }
  .compare-table th, .compare-table td, .doc-table th, .doc-table td { padding: 12px 14px; }
}
@media (max-width: 420px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .lightbox, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- small screens: the language links move into the menu, cards become compact rows ------------------------------------- */
.nav-langs { display: none; }
@media (max-width: 560px) {
  .langs { display: none; }
}
@media (max-width: 980px) {
  .nav-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; padding: 14px 4px 0; border-top: 1px solid var(--border); }
  .nav-links .nav-langs a { padding: 0.45em 0.95em; border: 1px solid var(--border); border-radius: 999px; font-size: 0.95rem; }
  .nav-links .nav-langs a[aria-current="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
}
@media (max-width: 720px) {
  .mini { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 16px 18px; }
  .mini .chip-icon { grid-row: 1 / span 2; }
  .mini h3 { margin: 0 0 2px; font-size: 1.02rem; }
  .card { padding: 22px; }
  .section-head { margin-bottom: 28px; }
}

/* copy button on code blocks (added by site.js) */
.prose .codeblock { position: relative; }
.code-copy { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-color: rgb(255 255 255 / 0.18); background: rgb(255 255 255 / 0.06); color: #cfe3e5; font-size: 1.05rem; line-height: 1; }
.code-copy:hover { border-color: var(--brand-300); background: rgb(255 255 255 / 0.12); }

/* a wide picture inside a page's top section */
.page-hero .hero-shot { max-width: 1040px; margin: clamp(28px, 4vw, 44px) 0 0; }

/* the installer's pages: narrow pictures, text beside them */
.frame img.crop-tall { aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.tour-narrow .tour-panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); max-width: 1000px; margin-inline: auto; }
.tour-narrow .tour-text { text-align: left; margin: 0; }
.tour-narrow .frame { max-width: 560px; }
.installer-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin: 40px auto 0; }
.installer-shot { margin: 0; }
.installer-shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.93rem; font-weight: 600; text-align: center; }
@media (max-width: 860px) {
  .tour-narrow .tour-panel { grid-template-columns: minmax(0, 1fr); }
  .tour-narrow .tour-text { text-align: center; }
  .installer-strip { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}

/* "this site also exists in Bulgarian / Croatian", shown once to a visitor whose browser speaks it */
.lang-hint { position: fixed; left: 50%; bottom: 20px; z-index: 250; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 20px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg); font-size: 0.95rem; transform: translateX(-50%); }
.lang-hint a { font-weight: 650; text-decoration: none; }
.lang-hint .icon-btn { width: 32px; height: 32px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }

/* who it is for */
.audience { padding-bottom: clamp(24px, 4vw, 48px); }
.who { display: flex; gap: 18px; align-items: flex-start; padding: 6px 4px; }
.who h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.who p { margin: 0; color: var(--muted); font-size: 0.97rem; }
