/* ─────────────────────────────────────────────────────────────────────────────
   OptiLayer Online / OptiLayer AI — the product pages (site_base.html.twig)
   Large light headings, numbered sections (01 / …), mono labels, thin rules; a light and a dark theme
   (<html data-theme>, chosen by the visitor or by the system). The application pages (sign-in, account,
   chat, admin) keep styles.css.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --paper: #f5f8fa;
    --paper-2: #eaf1f5;
    --surface: #ffffff;
    --surface-2: #f7fafc;
    --ink: #10263a;
    --ink-soft: #24384b;
    --muted: #40596b;
    --faint: #6b8296;
    --line: #cfdce5;
    --line-strong: #a9bfcd;
    --accent: #08689a;
    --accent-strong: #075b89;
    --accent-ink: #ffffff;
    --accent-soft: #deeff5;
    --accent-line: #1587a1;
    --warm: #9b5610;
    --ok: #127a52;
    --mast: rgba(255, 255, 255, 0.86);
    --hero-glow: radial-gradient(ellipse at 74% 45%, #ffffff 0%, #f8fbfc 48%, #edf3f7 100%);
    --shadow: 0 10px 30px rgba(9, 32, 53, 0.08);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --wrap: 1320px;
    --gutter: clamp(16px, 5vw, 72px);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --paper: #081120;
    --paper-2: #0d192b;
    --surface: #102033;
    --surface-2: #0f1d2f;
    --ink: #ecf3f8;
    --ink-soft: #d3e1ec;
    --muted: #b4c6d7;
    --faint: #8ba2b7;
    --line: #2b3f52;
    --line-strong: #3d566c;
    --accent: #78ddf2;
    --accent-strong: #a7edfc;
    --accent-ink: #081d2b;
    --accent-soft: #17354a;
    --accent-line: #1587a1;
    --warm: #f6b978;
    --ok: #5fd3a2;
    --mast: rgba(8, 17, 32, 0.86);
    --hero-glow: radial-gradient(ellipse at 75% 42%, #12223a 0%, transparent 55%), #081120;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.site {
    margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper);
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:where(.site) :where(h1, h2, h3, h4, p, figure, ul) { margin: 0; }
.site a { color: inherit; text-decoration: none; }
.site a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.site :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.site img, .site svg { max-width: 100%; }
.site .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.site .skip { position: absolute; left: -10000px; }
.site .skip:focus { position: fixed; left: 16px; top: 10px; z-index: 50; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); }
.site .mono { font-family: var(--mono); }
.site [hidden] { display: none !important; }
.site .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Masthead ─────────────────────────────────────────────────────────────── */
.mast {
    position: sticky; top: 0; z-index: 30; background: var(--mast);
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.mast .bar { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand:hover { text-decoration: none !important; }
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.brand-word { font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.brand-sep { width: 1px; height: 20px; background: var(--line-strong); }
.brand-product { font-weight: 560; font-size: 16px; letter-spacing: -0.02em; color: var(--ink-soft); }
.mast nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.mast nav a { color: var(--ink-soft); }
.mast nav a.current { color: var(--accent); }
.mast .tools { display: flex; align-items: center; gap: 10px; }
.theme-switch, .menu-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
    border: 1px solid var(--line-strong) !important; border-radius: 6px !important; font-size: 13px !important; color: var(--ink-soft) !important;
}
.theme-switch svg, .menu-btn svg { width: 17px; height: 17px; flex: none; display: block; }
.theme-switch .label { display: inline; }
.theme-switch .to-light, :root[data-theme="dark"] .theme-switch .to-dark { display: none; }
:root[data-theme="dark"] .theme-switch .to-light { display: inline; }
.menu-btn { display: none; }
.btn-signin { padding: 8px 14px !important; font-size: 13px !important; }

/* the language switcher of i18n.js (its own markup), restyled */
.site .lang-switcher-wrap { position: relative; display: inline-block; z-index: 40; }
.site .lang-switch-btn {
    display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; cursor: pointer;
    border: 1px solid var(--line-strong); border-radius: 6px; background: transparent; color: var(--ink-soft); font-size: 13px;
}
.site .lang-dropdown {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 190px; max-height: 70vh; overflow: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow);
}
[dir="rtl"] .site .lang-dropdown { right: auto; left: 0; }
.site .lang-option { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 14px; color: var(--muted); }
.site .lang-option:hover { background: var(--paper-2); color: var(--ink); }
.site .lang-option.active { color: var(--accent); font-weight: 600; }

/* ── Buttons, labels ─────────────────────────────────────────────────────── */
.site .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 20px;
    font-weight: 650; font-size: 14px; line-height: 1.2; border-radius: 6px; border: 1px solid transparent;
    transition: background .16s, border-color .16s, transform .16s; white-space: nowrap;
}
.site .btn:hover { text-decoration: none; transform: translateY(-1px); }
.site .btn.primary { background: var(--accent); color: var(--accent-ink); }
.site .btn.primary:hover { background: var(--accent-strong); }
:root:not([data-theme="dark"]) .site .btn.primary:hover { background: #084c72; }
.site .btn.ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.site .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.site .btn.wide { width: 100%; }
.site .text-action { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--accent); }

.eyebrow {
    display: flex; align-items: center; gap: 10px; text-transform: uppercase;
    font: 600 11px/1.5 var(--mono); letter-spacing: 0.15em; color: var(--muted);
}
.eyebrow i { width: 24px; height: 2px; background: var(--accent-line); display: inline-block; }
.mini { font: 600 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line-strong);
    border-radius: 4px; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { background: var(--hero-glow); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-body { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 2%; min-height: clamp(470px, 42vw, 600px); }
.hero-copy { padding: 56px 0 44px; position: relative; z-index: 1; }
.site h1 {
    margin: 20px 0 22px; font-size: clamp(44px, 5.3vw, 80px); line-height: 1.01; letter-spacing: -0.058em; font-weight: 600;
    text-wrap: balance;
}
.site h1 span, .site h1 em { display: block; }
.site h1 em { font-style: normal; color: var(--accent); }
.intro { font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.62; max-width: 540px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.hero-plan {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 26px; font-size: 13px; color: var(--muted);
}
.hero-plan strong { font: 600 19px var(--mono); color: var(--ink); }
.hero-plan i { width: 1px; height: 13px; align-self: center; background: var(--line-strong); }
.hero-figure { position: relative; align-self: stretch; display: grid; place-items: center; min-width: 0; margin: 10px 0; }
.hero-figure .art-grid {
    position: absolute; inset: 6% 0; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 40px 40px; -webkit-mask-image: radial-gradient(black 40%, transparent 74%); mask-image: radial-gradient(black 40%, transparent 74%);
}
.hero-figure svg.art { position: relative; width: min(92%, 520px); height: auto; overflow: visible; }
.hero-figure figcaption {
    position: absolute; left: 6%; bottom: 7%; display: flex; gap: 10px; align-items: center;
    font: 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.hero-figure figcaption b { color: var(--accent); font-weight: 600; }
.reg { position: absolute; font: 15px var(--mono); color: var(--line-strong); }
.reg.r1 { top: 7%; left: 2%; } .reg.r2 { top: 7%; right: 2%; } .reg.r3 { bottom: 7%; right: 2%; }

.hero-rail { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding: 18px 0 22px; }
.hero-rail a { display: flex; align-items: center; gap: 12px; padding: 4px 7%; border-left: 1px solid var(--line); }
.hero-rail a:first-child { border-left: 0; padding-left: 0; }
.hero-rail span { font: 10px var(--mono); color: var(--faint); }
.hero-rail svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.hero-rail b { font-size: 14px; font-weight: 560; }

/* the stack drawing: layers in the theme's colours */
.art .plate { stroke: var(--surface); stroke-opacity: .9; stroke-width: 1; }
:root[data-theme="dark"] .art .plate { stroke: #9fe3f3; stroke-opacity: .35; }
.art .substrate-top { fill: var(--surface-2); stroke: var(--line-strong); }
.art .substrate-side { fill: var(--paper-2); stroke: var(--line-strong); }
.art .ray { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; fill: none; }
.art .ray.r { stroke: var(--warm); stroke-dasharray: 5 6; }
.art text { font: 10px var(--mono); fill: var(--faint); letter-spacing: .06em; }
.art .pillar { fill: var(--accent); stroke: var(--surface); stroke-width: .6; }
.art .pillar.side { opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
    .art .lift { animation: lift 6s ease-in-out infinite; }
    .art .lift:nth-of-type(2n) { animation-delay: -1.5s; }
    @keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(60px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section.tint { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 8%; margin: 16px 0 40px; }
.site h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.05; letter-spacing: -0.052em; font-weight: 600; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.site h3 { font-size: 19px; font-weight: 620; letter-spacing: -0.02em; line-height: 1.3; }

/* numbered rules: what the product does */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.rules.two { grid-template-columns: repeat(2, 1fr); }
.rule { padding: 24px 28px 28px 0; border-bottom: 1px solid var(--line); }
.rule + .rule { padding-left: 28px; border-left: 1px solid var(--line); }
.rules:not(.two) .rule:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.rules.two .rule:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
.rule .mini { display: block; margin-bottom: 14px; color: var(--accent); }
.rule h3 { margin-bottom: 8px; }
.rule p { color: var(--muted); font-size: 15px; line-height: 1.62; }
.rule a { color: var(--accent); }

/* the instrument: a panel with a head, as the application draws one */
.instrument { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.inst-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.inst-head b { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.inst-head small { font: 10px var(--mono); letter-spacing: .06em; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* split: a list on the left, a picture on the right */
.split { display: grid; grid-template-columns: .82fr 1.6fr; gap: 6%; align-items: start; }
.steps-list { border-top: 1px solid var(--line-strong); }
.steps-list li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 6px 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.site ul.steps-list { padding: 0; }
.steps-list small { font: 11px var(--mono); color: var(--accent); padding-top: 3px; }
.steps-list b { font-size: 17px; font-weight: 620; }
.steps-list p { grid-column: 2; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.handoff { margin-top: 22px; padding: 16px 18px; border-left: 2px solid var(--accent-line); background: linear-gradient(90deg, var(--accent-soft), transparent); font-size: 14px; }
.handoff b { display: block; margin-bottom: 3px; }
.handoff span { color: var(--muted); }

.screen { margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.screen a { display: block; padding: 12px; cursor: zoom-in; }
.screen img { display: block; width: 100%; height: auto; border-radius: 5px; border: 1px solid var(--line); }
.screen figcaption {
    display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line);
    font: 10.5px/1.5 var(--mono); color: var(--muted);
}

/* applications: a two-column list with rules */
.apps { columns: 2; column-gap: 40px; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.apps li { list-style: none; break-inside: avoid; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.apps li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 12px; height: 2px; background: var(--accent-line); }

/* ── Products (the home page) ────────────────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.product-art { height: 190px; background: var(--paper-2); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.product-art svg { width: 70%; height: 80%; }
.product-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product h3 { font-size: 28px; letter-spacing: -0.04em; font-weight: 620; }
.product p { color: var(--muted); font-size: 15px; }
.product ul { padding: 0; border-top: 1px solid var(--line); }
.product li { list-style: none; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; }
.product li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.product .price-line { font: 13px var(--mono); color: var(--muted); }
.product .price-line strong { color: var(--ink); font-size: 16px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

/* ── Platforms ───────────────────────────────────────────────────────────── */
.platform-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; align-items: start; }
.platform-grid h2 { margin: 16px 0 18px; }
.platform-grid > div > p:not(.eyebrow) { color: var(--muted); font-size: 16px; }
.platform-list { border-top: 1px solid var(--line-strong); }
.platform-list details { border-bottom: 1px solid var(--line); }
.platform-list summary {
    list-style: none; display: flex; align-items: center; gap: 14px; padding: 17px 2px; cursor: pointer; font-size: 17px; font-weight: 600;
}
.platform-list summary::-webkit-details-marker { display: none; }
.platform-list summary svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.platform-list summary small { margin-left: auto; font: 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.platform-list summary::after { content: '+'; color: var(--accent); font: 400 20px var(--mono); width: 18px; text-align: center; }
.platform-list details[open] summary::after { content: '×'; }
.platform-list details p { padding: 0 2px 18px 36px; color: var(--muted); font-size: 15px; }
.platform-list details.mine summary { color: var(--accent); }
.qr { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.qr img { width: 112px; height: 112px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; min-width: 156px;
    background: #0b0f14; color: #fff !important; border-radius: 8px; border: 1px solid #39424d; line-height: 1.15;
}
.store-badge svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.store-badge small { display: block; font-size: 10px; opacity: .8; }
.store-badge b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.soon { opacity: .55; pointer-events: none; }
.store-note { font: 10.5px var(--mono); color: var(--faint); margin-top: 6px; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8%; align-items: start; }
.pricing h2 { margin: 16px 0 18px; }
.pricing > div > p:not(.eyebrow) { color: var(--muted); }
.checks { padding: 0; margin: 22px 0 0; }
.checks li { list-style: none; display: flex; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--ink-soft); }
.checks li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.price-card { border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); padding: 26px 28px 28px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 16px; }
.price-row > div { padding: 18px 0 6px; }
.price-row > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.price { font-size: clamp(40px, 4.4vw, 58px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.price-per { font-size: 13px; color: var(--muted); margin-top: 8px; }
.price-save { font: 11px var(--mono); color: var(--ok); margin-top: 4px; }
.price-card .trial { margin: 18px 0 18px; font-size: 14.5px; color: var(--ink-soft); }
.price-card .fine { margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.institutional { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.institutional a { color: var(--accent); font-weight: 600; }

/* ── Closing band ────────────────────────────────────────────────────────── */
.closing { padding: clamp(56px, 6vw, 90px) 0; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 26px; }
.closing h2 { max-width: 760px; }
.closing p { color: var(--muted); margin-top: 14px; max-width: 620px; }

/* ── AI agent: a conversation ────────────────────────────────────────────── */
.chat-card .chat { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 10px; line-height: 1.55; }
.msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 3px; }
.msg.agent { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.msg .mini { display: block; margin-bottom: 4px; }
.msg.user .mini { color: inherit; opacity: .75; }
.msg table { border-collapse: collapse; margin-top: 8px; font: 12px var(--mono); width: 100%; }
.msg td { padding: 3px 8px 3px 0; border-top: 1px solid var(--line); }
.msg .good { color: var(--ok); font-weight: 600; }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--paper-2); }
.readouts > div { padding: 12px 18px; }
.readouts > div + div { border-left: 1px solid var(--line); }
.readouts small { display: block; font: 10px var(--mono); color: var(--muted); }
.readouts strong { display: block; font: 500 19px/1.5 var(--mono); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-foot { padding: 34px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot .brand-word { font-size: 15px; color: var(--ink); }

/* the cookie banner of the site (components/_cookie_banner.html.twig) */
.site .cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-radius: 10px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px;
}
.site .cookie-banner[hidden] { display: none; }
.site .cookie-banner p { margin: 0; flex: 1 1 320px; line-height: 1.5; }
.site .cookie-banner a { color: var(--accent); }
.site .cookie-banner-actions { display: flex; gap: 8px; }
.site .btn-cookie { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line-strong); }
.site .btn-cookie-accept { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* appearing on scroll (app.js marks .fade-in elements .visible) */
@media (prefers-reduced-motion: no-preference) {
    .site .fade-in { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
    .site .fade-in.visible { opacity: 1; transform: none; }
}

/* ── Narrow screens ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .mast nav { gap: 18px; }
}
@media (max-width: 960px) {
    .menu-btn { display: inline-flex; }
    .mast nav {
        display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px var(--gutter) 12px;
    }
    .mast nav.open { display: flex; }
    .mast nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .mast nav a:last-child { border-bottom: 0; }
    .hero-body, .section-head, .split, .platform-grid, .pricing { grid-template-columns: 1fr; }
    .hero-copy { padding-bottom: 8px; }
    .hero-figure { min-height: 0; margin: 0 0 18px; }
    .hero-figure svg.art { width: min(78%, 420px); }
    .hero-figure figcaption { position: static; justify-content: center; margin-top: 4px; }
    .hero-figure .reg { display: none; }
    .section-head { gap: 16px; }
    .rules { grid-template-columns: repeat(2, 1fr); }
    .rules .rule, .rules .rule + .rule { padding: 22px 22px 24px 0; border-left: 0; }
    .rules:not(.two) .rule:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
    .split { gap: 34px; }
}
@media (max-width: 640px) {
    .theme-switch .label, .brand-sep, .brand-product { display: none; }
    .mast .tools { gap: 6px; }
    .hero-rail { grid-template-columns: 1fr; padding: 8px 0 14px; }
    .hero-rail a, .hero-rail a:first-child { border-left: 0; padding: 10px 0; border-top: 1px solid var(--line); }
    .hero-rail a:first-child { border-top: 0; }
    .rules, .rules.two { grid-template-columns: 1fr; }
    .rules .rule, .rules .rule + .rule, .rules:not(.two) .rule:nth-child(2n) { padding: 20px 0; border-left: 0; }
    .apps { columns: 1; }
    .price-row { grid-template-columns: 1fr; }
    .price-row > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .readouts { grid-template-columns: 1fr; }
    .readouts > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .site .btn { padding: 12px 16px; }
    .hero-actions .btn { flex: 1 1 auto; }
}
