/* KUWI Solutions – design A "engineering precision" (spec §4). Dark by default, light theme "Ice" via [data-theme="light"]. */

/* Self-hosted fonts (assets/fonts/LICENSE.md); latin-ext carries ő and ű */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/space-grotesk-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/space-grotesk-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/inter-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/inter-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/jetbrains-mono-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/jetbrains-mono-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg: #0b1120;
  --card: #0f172a;
  --line: #1e293b;
  --line-strong: #334155;
  --text-strong: #f8fafc;
  --text: #e2e8f0;
  --text-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --on-accent: #0b1120;
  --link: #7dd3fc;
  --link-hover: #bae6fd;
  --grid: rgba(148,163,184,0.06);
  --shadow: rgba(0,0,0,0.45);
  --subnav-bg: rgba(15,23,42,0.85);
  --warn: #fbbf24;
  --ok: #4ade80;
  --bad: #f87171;
  --banner-bg: #422006;
  --banner-text: #fde68a;
  --marker-ring: rgba(56,189,248,0.28);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 14px;
  color-scheme: dark;
}
/* light theme "Ice": set on <html> by the inline head script (saved choice, else system setting) */
:root[data-theme="light"] {
  --bg: #eef3fa;
  --card: #ffffff;
  --line: #d5e0ee;
  --line-strong: #b3c4da;
  --text-strong: #0b1120;
  --text: #1e293b;
  --text-2: #334155;
  --muted: #475569;
  --faint: #5b6b82;
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --on-accent: #ffffff;
  --link: #4338ca;
  --link-hover: #312e81;
  --grid: rgba(67,56,202,0.06);
  --shadow: rgba(15,23,42,0.10);
  --subnav-bg: rgba(255,255,255,0.85);
  --warn: #92400e;
  --ok: #166534;
  --bad: #dc2626;
  --banner-bg: #fef3c7;
  --banner-text: #78350f;
  --marker-ring: rgba(67,56,202,0.25);
  color-scheme: light;
}
:root[data-theme="light"] .ec-mock { border: 1px solid var(--line); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.skip-link { position: absolute; left: 16px; top: -100px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 16px; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); }
.logo__mark { width: 34px; height: 34px; border: 2px solid var(--accent); border-radius: 8px; display: grid; place-items: center; font: 500 16px var(--mono); color: var(--accent); }
.logo__text { font: 700 20px var(--display); letter-spacing: 0.04em; }
.logo__text span { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.site-nav a, .site-footer a { color: var(--text-2); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-header__end { display: flex; align-items: center; gap: 16px; }
.lang-switch { font: 400 13px var(--mono); color: var(--muted); text-decoration: none; padding: 12px 4px; }
.menu-toggle { display: none; }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text-2); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
/* sun in dark (switch to light), moon in light; hidden without JS, where it could not work */
:root:not([data-theme]) .theme-toggle, :root[data-theme="light"] .theme-toggle__sun, :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover);color: var(--on-accent); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; }
.btn--ghost:hover { border-color: var(--accent); color: var(--text-strong); }
.btn--link { color: var(--text); padding-inline: 8px; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* sections */
.section { padding-top: 112px; }
.eyebrow { font: 400 14px var(--mono); color: var(--muted); margin-bottom: 12px; }
.eyebrow--accent { color: var(--accent); }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 48px; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* hero */
.hero { padding-block: 80px 40px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
.hero .lead { margin-top: 28px; }
.hero .btn-row { margin-top: 40px; }
.page-hero { padding-top: 72px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; max-width: 860px; }
.page-hero .lead { margin-top: 24px; max-width: 720px; }
.page-hero .btn-row { margin-top: 36px; }

/* architecture diagram */
.diagram { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; font: 400 14px var(--mono); }
.diagram > li { position: relative; }
.diagram > li + li::before { content: ""; position: absolute; left: 50%; top: -28px; height: 28px; border-left: 1px solid var(--line-strong); }
.node { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--text-strong); }
.node small { font-size: 14px; color: var(--muted); }
.node--accent { border-color: var(--accent); }
.node--accent > span { color: var(--accent); }
.node-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* cards */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 32px; color: var(--text); text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); color: var(--text); }
.card__index { font-family: var(--mono); color: var(--accent); }
.card h3 { font-size: 22px; margin: 18px 0 10px; }
.card p { color: var(--muted); }
.card--plain h3 { margin-top: 0; }

/* EasyCoupon band and widget mock */
.band { border: 1px solid var(--accent); border-radius: 20px; background: var(--card); padding: clamp(28px, 5vw, 56px); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand h2 { font-size: 40px; }
.band .lead { margin-top: 20px; }
.hero .brand { margin-bottom: 24px; }
.brand__name { font: 700 28px var(--display); color: var(--text-strong); }
.hero .meta { margin-top: 16px; }
.plan h3 { margin-top: 0; }
/* price table: a row per platform, monthly (big) and yearly (muted) */
.plan__table { width: 100%; margin-top: 20px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plan__table th, .plan__table td { padding: 8px 0; text-align: right; white-space: nowrap; }
.plan__table thead th { padding: 0 0 4px; font: 400 12px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan__table tbody th { text-align: left; font-weight: 500; font-size: 15px; color: var(--text-2); }
.plan__table tbody td:nth-child(2) { padding-left: 12px; font: 700 22px var(--display); color: var(--text-strong); }
.plan__table tbody td:nth-child(3) { padding-left: 12px; font-size: 14px; color: var(--muted); }
.plan__table tbody tr + tr { border-top: 1px solid var(--line); }
.plan__sessions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan__sessions b { color: var(--accent); white-space: nowrap; }
.chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font: 400 13px var(--mono); }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; color: var(--text-2); }
.band .btn-row { margin-top: 36px; }
.ec-mock { width: min(320px, 100%); margin-inline: auto; background: #f8fafc; color: #0f172a; border-radius: 16px; padding: 28px; box-shadow: 0 30px 60px var(--shadow); }
.ec-mock__kicker { font-size: 13px; font-weight: 600; color: #0369a1; text-transform: uppercase; letter-spacing: 0.08em; }
.ec-mock__title { margin-top: 10px; font: 700 32px/1.05 var(--display); }
.ec-mock__code { margin-top: 20px; border: 2px dashed #0284c7; border-radius: 10px; padding: 14px; text-align: center; font: 500 20px var(--mono); }
.ec-mock__note { margin-top: 14px; font-size: 13px; color: #475569; }

/* facts, steps */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 20px; border-top: 1px solid var(--line); }
.facts li { padding-top: 24px; }
.facts strong { display: block; font: 400 16px var(--mono); color: var(--accent); }
.facts b { display: block; margin-top: 8px; color: var(--text-strong); font-weight: 600; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); color: var(--accent); }
.steps b { display: block; margin-top: 10px; color: var(--text-strong); font-size: 20px; font-family: var(--display); }
.steps span { display: block; margin-top: 6px; color: var(--muted); }

/* long-form content */
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 48px 0 16px; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose ul { margin: 0 0 16px; color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; color: var(--text-2); }
.checklist li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.example { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--text-2); margin-top: 16px; }
.example b { color: var(--text-strong); }
.service + .service { border-top: 1px solid var(--line); margin-top: 96px; padding-top: 96px; }
.service__body { display: flex; flex-wrap: wrap; gap: 40px 56px; margin-top: 32px; }
.service__body > * { flex: 1 1 380px; min-width: 0; }
.service h3 { font-size: 18px; margin-bottom: 14px; }
.service > .lead { margin-top: 16px; max-width: 760px; }
.service__cta { margin-top: 32px; }
.meta { font: 400 14px var(--mono); color: var(--muted); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.faq summary { cursor: pointer; color: var(--text-strong); font-weight: 600; font-size: 18px; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 8px 0 8px; color: var(--muted); max-width: 760px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; font-size: 20px; }
.contact-list span { display: block; font: 400 13px var(--mono); color: var(--muted); }

/* EasyCoupon subnav: scrolls inside its own box on phones, never the page */
.ec-subnav { border-block: 1px solid var(--line); background: var(--subnav-bg); }
.ec-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; }
.ec-subnav__links { display: flex; gap: 4px; overflow-x: auto; min-width: 0; scrollbar-width: thin; }
.ec-subnav__links a { flex: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; color: var(--text-2); text-decoration: none; border-radius: 8px; }
.ec-subnav__links a:hover, .ec-subnav__links a[aria-current="page"] { color: var(--accent); }
.ec-subnav__links a[aria-current="page"] { background: var(--line); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 14px; flex: none; }
.ec-page, .ec-article { padding-top: 64px; }
.ec-page > h1, .ec-article h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; max-width: 860px; }
.ec-page > .lead, .ec-article .lead { margin-top: 20px; }
.release { max-width: 760px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.release:last-child { margin-bottom: 96px; }
.release h2 { font-size: 24px; line-height: 1.25; }
.release .meta { margin-top: 6px; }
.release ul { margin-top: 16px; padding-left: 20px; }
.release li + li { margin-top: 8px; }
.release p { margin-top: 16px; }
.ec-article .prose { margin-top: 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; max-width: 760px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text-strong); font-weight: 600; }
.pager a span { font: 400 13px var(--mono); color: var(--muted); }
.pager a[rel="next"] { margin-left: auto; text-align: right; }
.figure { margin: 24px 0; }
.figure img { display: block; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.callout { border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--card); padding: 14px 18px; margin: 0 0 16px; color: var(--text-2); }
.callout--warn { border-left-color: var(--warn); }
.callout p { margin: 0; }
.ui { font-weight: 600; color: var(--text-strong); }

/* explainer visuals (src/visuals.mjs): real crops, labels are HTML */
.vframe { background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px var(--shadow); }
.vframe .figure, .v-media .figure { margin: 0; }
.vframe .figure img { width: 100%; border: 0; border-radius: 0; }
.vframe__bar { display: flex; align-items: center; gap: 28px; height: 28px; padding-inline: 12px; border-bottom: 1px solid var(--line); }
.vframe__dots, .vframe__dots::before, .vframe__dots::after { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.vframe__dots { position: relative; margin-left: 14px; flex: none; }
.vframe__dots::before, .vframe__dots::after { content: ''; position: absolute; top: 0; left: -14px; }
.vframe__dots::after { left: 14px; }
.vframe__url { font: 400 12px var(--mono); color: var(--muted); }
.vframe--phone { border: 6px solid var(--line-strong); border-radius: 28px; }
.v-stage { position: relative; padding: 0 14% 12% 0; }
.v-stage .vframe--phone { position: absolute; right: 0; bottom: 0; width: 27%; }
.example-tag { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 2px 8px; border: 1px solid var(--warn); border-radius: 6px; background: var(--bg); font: 500 11px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); }

.annotated { container-type: inline-size; }
.annotated__body { display: grid; gap: 24px; }
@container (min-width: 640px) { .annotated__body { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; } }
.annotated__media { position: relative; }
.annotated__media .figure { margin: 0; }
.marker { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 500 14px/30px var(--mono); text-align: center; box-shadow: 0 0 0 5px var(--marker-ring); }
.callouts { list-style: none; margin: 0; padding: 0; counter-reset: callout; display: grid; gap: 16px; font-size: 15px; color: var(--text-2); }
.callouts li { counter-increment: callout; position: relative; padding-left: 44px; min-height: 30px; }
.callouts li::before { content: counter(callout); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border: 1px solid var(--accent); border-radius: 50%; font: 500 14px/28px var(--mono); text-align: center; color: var(--accent); }
.callouts strong { color: var(--text-strong); font-weight: 600; }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; }
.flow__step { counter-increment: flow; position: relative; }
.flow__step::before { content: counter(flow, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 14px var(--mono); color: var(--accent); }
.flow__step h3 { margin-top: 16px; font-size: 18px; }
.flow__step p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.v-media { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--card); }
.v-media .figure, .v-media img { height: 100%; }
.v-media img { width: 100%; object-fit: contain; border: 0; border-radius: 0; }
@media (min-width: 1100px) {
  .flow { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .flow__step:not(:last-child)::after { content: ''; position: absolute; top: 10px; left: 40px; right: -20px; height: 1px; background: linear-gradient(90deg, var(--line-strong), var(--accent)); }
}
.v-checkout { height: 100%; display: grid; align-content: center; padding: 34px 14px 10px; }
.v-checkout dl { margin: 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.4; }
.v-checkout dl div { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 8px; padding-bottom: 6px; border-bottom: 1px dashed var(--line-strong); }
.v-checkout dd { margin: 0; font-family: var(--mono); }
.v-checkout dl div:nth-child(2) dd { color: var(--ok); }
.v-checkout dl div:last-child { border: 0; padding: 0; font-weight: 600; color: var(--text-strong); }

.compare { display: grid; gap: 28px; }
@media (min-width: 768px) { .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.compare h3 { margin-top: 16px; font-size: 18px; }
.compare p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.compare__side--bad .v-media { opacity: 0.6; }
.compare__side--bad h3 { text-decoration: line-through; text-decoration-color: var(--bad); }

.ladder { position: relative; padding: 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.ladder__bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ladder__bands li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.ladder__label { grid-column: 1 / -1; font-size: 14px; color: var(--text-2); }
.ladder__bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--accent) var(--w), var(--line) var(--w)); }
.ladder__value { min-width: 10ch; text-align: right; font: 500 15px var(--mono); color: var(--text-strong); }
.v-ai { display: grid; gap: 8px; }
.v-ai__axis { margin-bottom: 14px; font: 400 13px var(--mono); color: var(--muted); }

.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 13px var(--mono); color: var(--text-2); }

/* closing CTA + footer */
.cta-final { border-top: 1px solid var(--line); margin-top: 112px; padding-block: 80px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.cta-final h2 { font-size: clamp(30px, 4vw, 40px); max-width: 680px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 48px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* phones */
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: none; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); font: 500 15px var(--body); cursor: pointer; }
  .site-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .site-header[data-open] .site-nav { display: flex; }
  .site-header__end { order: 4; flex-basis: 100%; justify-content: space-between; }
  .site-header:not([data-open]) .site-header__end { display: none; }
  .section { padding-top: 80px; }
  .hero { padding-top: 48px; }
  .node-pair { grid-template-columns: minmax(0, 1fr); }
  .ec-subnav__inner { flex-wrap: wrap; gap: 4px 16px; }
  .ec-subnav__links { flex: 1 1 100%; }
  .ec-subnav .btn--sm { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .card, .site-nav a { transition: color .15s, background-color .15s, border-color .15s; }
}

/* landing video, features page blocks, page-specific visuals */
.video-band { margin-top: 24px; }
.video-band video { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); }
.feature { display: grid; gap: 32px 56px; align-items: start; padding-top: 96px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature:nth-of-type(even) .feature__text { order: 2; }
}
.feature h2 { font-size: clamp(28px, 3.4vw, 38px); }
.feature__text > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); }
.feature__text ul { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.feature__more { margin-top: 22px; }
.feature__visual { display: grid; gap: 32px; min-width: 0; }
.v-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.v-grid p { margin-top: 10px; font: 400 14px var(--mono); color: var(--text-2); }
.v-grid .vframe img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.v-leak { position: relative; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 40px 16px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.v-leak__site { font: 400 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.v-leak__code { font: 500 26px var(--mono); color: var(--text-strong); text-decoration: line-through; text-decoration-color: var(--bad); }
.v-ab { display: grid; gap: 28px; }
.v-ab__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v-ab__variant { position: relative; }
.v-ab__label { position: absolute; z-index: 1; top: -12px; left: -8px; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 700 16px/32px var(--display); text-align: center; }
.v-badges { height: 100%; display: grid; place-items: center; padding: 16px; }
.v-badges .badges { justify-content: center; }

/* pricing, templates, integrations pages */
.plans { margin-top: 48px; }
.plan h2 { font-size: 26px; }
.plan h2 + p { margin-top: 8px; min-height: 3.2em; color: var(--muted); font-size: 15px; }
.plans__cta { margin-top: 32px; }
.feature--flush { padding-top: 0; }
.ec-page > .section:first-of-type { padding-top: 96px; }
.tpl-jump .chips { margin-top: 32px; }
.tpl-jump a.chip { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.tpl-jump a.chip:hover { border-color: var(--accent); color: var(--text-strong); }
.tpl-group { padding-top: 72px; }
.tpl-group h2 { font-size: clamp(26px, 3vw, 32px); }
.tpl-group__count { font: 400 15px var(--mono); color: var(--muted); }
.tpl-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 24px 20px; }
.tpl h3 { margin-top: 12px; font-size: 17px; }
.tpl__tags { margin-top: 4px; font: 400 13px var(--mono); color: var(--muted); }
.tpl__media { aspect-ratio: 4 / 3; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--card); }
.tpl__media .figure { margin: 0; height: 100%; }
.tpl__media img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.tpl__sketch { height: 100%; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; }
.tpl__sketch span { display: block; height: 10px; width: 70%; border-radius: 5px; opacity: 0.85; }
.tpl__sketch span:nth-child(2) { width: 50%; height: 6px; opacity: 0.5; }
.tpl__sketch span:nth-child(3) { width: 45%; height: 22px; border-radius: 6px; opacity: 1; margin-top: 6px; }
.tpl-cta { margin-top: 56px; }
.int-cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.int-card h2 { font-size: 24px; }
.int-card p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.int-card .int-card__meta { color: var(--text-2); font-size: 14px; }

.v-hub { position: relative; margin-top: 48px; aspect-ratio: 16 / 7; max-width: 960px; margin-inline: auto; }
.v-hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-hub__lines line { stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.v-hub__center, .v-hub__node { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; }
.v-hub__center { left: 50%; top: 50%; margin: 0; padding: 14px 22px; border: 1px solid var(--accent); border-radius: 12px; background: var(--card); font: 700 20px var(--display); color: var(--text-strong); }
.v-hub ul { list-style: none; margin: 0; padding: 0; }
.v-hub__node { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font: 500 14px var(--mono); color: var(--text-2); }
@media (max-width: 640px) {
  .v-hub { aspect-ratio: auto; display: grid; justify-items: center; gap: 16px; }
  .v-hub__lines { display: none; }
  .v-hub__center, .v-hub__node { position: static; transform: none; }
  .v-hub ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
}

/* help index */
.help-cats { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.help-cat h2 { font-size: 22px; }
.help-cat ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.help-cat a { font-weight: 600; text-decoration: none; }
.help-cat a:hover { text-decoration: underline; }
.help-cat li p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.help-support { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 760px; display: grid; gap: 12px; color: var(--text-2); }
.help-support h2 { font-size: 28px; }
.prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); }
.prose li > ul { margin: 8px 0 0; }
.prose code { font: 400 0.9em var(--mono); color: var(--text-strong); }
.prose pre { margin: 0 0 16px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font-size: 14px; line-height: 1.5; }
.prose pre code { color: var(--text); }

/* pre-launch (src/launch.mjs): test-mode banner, greyed trial buttons; VAT note in small print */
.test-banner { margin: 0; padding: 10px 24px; text-align: center; font-size: 14px; font-weight: 500; background: var(--banner-bg); color: var(--banner-text); border-bottom: 1px solid rgba(251,191,36,0.4); }
.btn--disabled, .btn--disabled:hover { background: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.fineprint { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* click to enlarge (assets/js/zoom.js) */
a.zoom { display: block; cursor: zoom-in; }
.v-media a.zoom { height: 100%; }
.marker { pointer-events: none; }
.lightbox { max-width: 96vw; max-height: 94vh; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); overflow: auto; }
.lightbox::backdrop { background: rgba(2,6,23,0.88); }
.lightbox img { display: block; width: auto; height: auto; max-width: calc(96vw - 2px); max-height: calc(94vh - 2px); cursor: zoom-out; }
.lightbox__close { position: sticky; float: right; top: 8px; margin: 8px 8px -52px 0; z-index: 1; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--bg); color: var(--text-strong); font-size: 24px; line-height: 1; cursor: pointer; }
/* phones: show the screenshot at its real size and let it scroll, otherwise it would be no bigger than on the page */
@media (max-width: 768px) {
  .lightbox img { max-width: none; max-height: none; }
}
@media (max-width: 480px) {
  .plan { padding: 24px 20px; }
  .plan__table tbody th { font-size: 14px; }
  .plan__table tbody td:nth-child(2) { padding-left: 8px; font-size: 18px; }
  .plan__table tbody td:nth-child(3) { padding-left: 8px; font-size: 13px; }
}
