/* evolabels.app product site and help centre (KAN-181): one stylesheet for index.html and the help
   pages (scripts/docs/build_help_site.py copies it to /help). Colours follow the app (theme/Theme.kt):
   cobalt primary, deep ink for dark surfaces, the warm tertiary as accent; label paper stays white. */
@font-face {
    font-family: 'Open Sans';
    src: url('/open_sans.ttf') format('truetype');
    font-weight: 300 800;
    font-display: swap;
}

:root {
    --ink: #07122B;
    --ink-2: #0C1D45;
    --ink-3: #13306E;
    --cobalt: #003D9B;
    --cobalt-2: #0052CC;
    --sky: #B2C5FF;
    --sky-soft: #DAE2FF;
    --ember: #E8622A;
    --ember-soft: #FFB599;
    --mint: #2BB673;
    --paper: #FFFFFF;
    --bg: #F6F7FC;
    --bg-alt: #EEF1FA;
    --fg: #191B23;
    --muted: #4F5363;
    --line: #DCE0EE;
    --card: #FFFFFF;
    --card-line: rgba(0, 61, 155, 0.10);
    --shadow-sm: 0 2px 6px rgba(7, 18, 43, 0.06), 0 8px 24px rgba(7, 18, 43, 0.06);
    --shadow-lg: 0 10px 30px rgba(7, 18, 43, 0.10), 0 30px 70px rgba(7, 18, 43, 0.14);
    --cobalt-brush: linear-gradient(135deg, #0052CC 0%, #2F6BFF 55%, #0046B8 100%);
    --ember-brush: linear-gradient(135deg, #FF8A4C 0%, #E8622A 60%, #C94A17 100%);
    --ink-brush: linear-gradient(160deg, #050C1F 0%, #0B1B42 45%, #13306E 100%);
    --font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 20px;
    --max: 1180px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0B0F1A;
        --bg-alt: #0F1526;
        --fg: #E4E6EF;
        --muted: #A6ABBE;
        --line: #252C42;
        --card: #121A2E;
        --card-line: rgba(178, 197, 255, 0.12);
        --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35), 0 30px 70px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

/* Long compound words (de, fi, sv...) must not push headings past a phone screen. */
h1, h2, h3, h4, .eyebrow, .ribbon { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

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

/* ---------- Header ---------- */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 12, 31, 0.80);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(178, 197, 255, 0.14);
    color: #fff;
}

header.site .bar { display: flex; align-items: center; gap: 22px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-inline-end: auto; color: #fff; }

.brand img { width: 38px; height: 38px; border-radius: 11px; background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(47, 107, 255, 0.35); }

.brand b { font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; }

.brand b i { font-style: normal; color: var(--sky); }

.brand small { font-weight: 600; color: var(--sky); opacity: .8; font-size: .9rem; border-inline-start: 1px solid rgba(178, 197, 255, .3); padding-inline-start: 11px; }

nav.links { display: flex; gap: 24px; }

nav.links a { color: rgba(255, 255, 255, 0.74); text-decoration: none; font-size: 0.94rem; font-weight: 600; transition: color .2s; }

nav.links a:hover, nav.links a[aria-current] { color: #fff; }

nav.links .menu-only { display: none; }

.lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(178, 197, 255, 0.28);
    border-radius: 11px;
    padding: 0 8px;
    height: 40px;
}

.lang svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

.lang select { background: transparent; color: inherit; border: 0; font: inherit; font-size: 0.9rem; max-width: 130px; cursor: pointer; padding: 6px 0; }

.lang select option { color: #191B23; }

.menu-toggle { display: none; background: none; border: 1px solid rgba(178, 197, 255, 0.28); color: #fff; border-radius: 11px; width: 42px; height: 40px; cursor: pointer; }

.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 13px;
    padding: 13px 22px;
    font: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

.btn-primary { background: var(--cobalt-brush); color: #fff; box-shadow: 0 8px 24px rgba(0, 82, 204, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 82, 204, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn-accent { background: var(--ember-brush); color: #fff; box-shadow: 0 8px 24px rgba(232, 98, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.05); }

.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }

.btn-quiet { color: var(--cobalt-2); background: rgba(0, 82, 204, 0.08); }

@media (prefers-color-scheme: dark) { .btn-quiet { color: var(--sky); background: rgba(178, 197, 255, 0.1); } }

.btn-sm { padding: 9px 16px; font-size: 0.92rem; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(800px 480px at 88% -8%, rgba(47, 107, 255, 0.45), transparent 62%),
        radial-gradient(620px 420px at 70% 105%, rgba(232, 98, 42, 0.22), transparent 60%),
        radial-gradient(700px 520px at -12% 100%, rgba(19, 48, 110, 0.9), transparent 60%),
        var(--ink-brush);
}

/* Faint label-roll grid behind the hero. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(178, 197, 255, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(178, 197, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 56px;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 128px;
}

.hero .wrap > * { min-width: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ember-soft);
    background: rgba(232, 98, 42, 0.12);
    border: 1px solid rgba(255, 181, 153, 0.28);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }

.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 22px; font-weight: 800; }

.hero h1 em { font-style: normal; background: linear-gradient(100deg, #B2C5FF 0%, #fff 45%, #FFB599 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero .lead { font-size: 1.16rem; color: rgba(228, 233, 255, 0.8); max-width: 560px; margin: 0 0 34px; }

.ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero .note { margin-top: 20px; font-size: 0.9rem; color: rgba(218, 226, 255, 0.62); display: flex; align-items: center; gap: 8px; }

.hero .note svg { width: 17px; height: 17px; fill: var(--mint); flex: none; }

/* Screenshot stage with a printed label floating over it. */
.stage { position: relative; }

.frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(178, 197, 255, 0.28);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(178, 197, 255, 0.05);
    background: #0B1B42;
}

.ai-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    background: rgba(5, 12, 31, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 10px;
    border-radius: 999px;
}

.ai-badge svg { width: 13px; height: 13px; fill: #FFB599; }

.label-card {
    position: absolute;
    inset-inline-start: -34px;
    bottom: -54px;
    width: 46%;
    max-width: 250px;
    min-width: 190px;
    /* Printed by a thermal printer: black on white only (KAN-184). */
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 14px 15px 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    transform: rotate(-4deg);
    font-size: 0.72rem;
    line-height: 1.38;
    z-index: 3;
}

[dir="rtl"] .label-card { transform: rotate(4deg); }

/* Die-cut notches of a label roll. */
.label-card::before, .label-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: #0B1B42;
}

.label-card::before { left: -7px; }

.label-card::after { right: -7px; }

.label-card .lc-name { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }

.label-card .lc-ing { margin: 6px 0; }

.label-card .lc-ing b { color: #000; text-transform: uppercase; }

.label-card .lc-dates { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; border-top: 1px dashed #000; padding-top: 6px; font-variant-numeric: tabular-nums; }

.label-card .lc-dates span { font-weight: 400; }

.label-card .lc-dates strong { text-align: end; }

.label-card .lc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }

.label-card .lc-qr { width: 34px; height: 34px; flex: none; background:
    conic-gradient(from 90deg at 30% 30%, #000 25%, transparent 0) 0 0 / 8px 8px,
    #fff; border: 3px solid #000; border-radius: 3px; }

.label-card .lc-tag { font-size: 0.64rem; font-weight: 800; letter-spacing: .08em; color: #fff; background: #000; padding: 3px 7px; border-radius: 3px; text-transform: uppercase; }

/* ---------- Pillars over the hero edge ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -60px;
    position: relative;
    z-index: 4;
}

.pillar {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-line);
}

.pillar strong { display: block; font-size: 1.02rem; line-height: 1.3; margin-bottom: 3px; }

/* The text only: a bare `.pillar span` also matched the icon tile and took its centering away (KAN-241). */
.pillar div span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; display: block; }

/* ---------- Icons ---------- */
.icon {
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--cobalt-brush);
    box-shadow: 0 8px 18px rgba(0, 82, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.icon.warm { background: var(--ember-brush); box-shadow: 0 8px 18px rgba(232, 98, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sections ---------- */
section { padding: 104px 0; scroll-margin-top: 70px; }

.section-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }

.kicker { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt-2); margin-bottom: 12px; }

@media (prefers-color-scheme: dark) { .kicker { color: var(--sky); } }

.section-head h2, .split h2 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }

.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.alt { background: var(--bg-alt); }

.dark { background: var(--ink-brush); color: #fff; position: relative; overflow: hidden; }

.dark .kicker { color: var(--ember-soft); }

.dark .section-head p, .dark .split p { color: rgba(218, 226, 255, 0.72); }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(0, 82, 204, 0.25); }

.card h3 { font-size: 1.16rem; line-height: 1.3; margin: 18px 0 8px; }

.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

ul.ticks { list-style: none; padding: 0; margin: 14px 0 0; }

ul.ticks li { position: relative; padding-inline-start: 26px; margin: 7px 0; font-size: 0.93rem; color: var(--muted); }

ul.ticks li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.32em;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(43, 182, 115, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232BB673' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.dark ul.ticks li { color: rgba(228, 233, 255, 0.82); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }

.step { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow-sm); }

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--ink-brush);
    box-shadow: 0 6px 16px rgba(7, 18, 43, 0.3);
    margin-bottom: 16px;
}

.step h3 { margin: 0 0 6px; font-size: 1.12rem; }

.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.shots figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--card-line); background: var(--card); }

.shots img { width: 100%; }

/* Compliance split (dark band) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.split > * { min-width: 0; }

.split p { font-size: 1.05rem; }

.law-list { display: grid; gap: 14px; }

.law {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(178, 197, 255, 0.14);
    border-radius: 16px;
    padding: 18px;
}

.law h3 { margin: 0 0 4px; font-size: 1.04rem; }

.law p { margin: 0; font-size: 0.93rem; color: rgba(218, 226, 255, 0.72); }

.fineprint { margin-top: 18px; font-size: 0.84rem; color: rgba(218, 226, 255, 0.55); }

.printers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.printers span { font-size: 0.82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(178, 197, 255, 0.22); color: rgba(228, 233, 255, 0.85); }

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 26px; }

.billing-toggle button { font: inherit; font-weight: 700; font-size: 0.9rem; border: 0; background: none; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }

.billing-toggle button[aria-pressed="true"] { background: var(--ink-brush); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 22px;
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
}

.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--cobalt-brush) border-box; box-shadow: var(--shadow-lg); }

.plan .ribbon { position: absolute; max-width: calc(100% - 24px); top: -12px; inset-inline-start: 24px; font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--ember-brush); padding: 4px 10px; border-radius: 999px; }

.plan h3 { margin: 0; font-size: 1.2rem; }

.plan .devices { color: var(--muted); font-size: 0.92rem; margin: 2px 0 18px; }

.plan .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; min-height: 52px; margin-bottom: 4px; }

.plan .amount { font-size: 2.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }

.plan .per { color: var(--muted); font-size: 0.9rem; }

.plan .price.pending .amount { font-size: 1.05rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }

.plan .per-device { color: var(--muted); font-size: 0.82rem; min-height: 1.3em; margin-bottom: 18px; }

.plan .btn { margin-top: auto; width: 100%; }

.plan ul.ticks { margin: 0 0 22px; }

.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 11px; background: var(--bg-alt); border: 1px solid var(--line); margin: 2px 0 16px; }

.seg button { font: inherit; font-size: 0.85rem; font-weight: 700; border: 0; background: none; color: var(--muted); padding: 5px 12px; border-radius: 8px; cursor: pointer; }

.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: var(--shadow-sm); }

.plans-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }

.plan.enterprise { background: var(--ink-brush); color: #fff; border-color: rgba(178, 197, 255, 0.2); }

.plan.enterprise .devices, .plan.enterprise .per, .plan.enterprise ul.ticks li { color: rgba(218, 226, 255, 0.75); }

.free-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 18px;
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px dashed rgba(0, 82, 204, 0.3);
    background: rgba(0, 82, 204, 0.04);
}

.free-strip p { margin: 0; color: var(--muted); }

.free-strip strong { color: var(--fg); }

.included { margin-top: 34px; text-align: center; color: var(--muted); font-size: 0.93rem; }

.included ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.included li { padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.86rem; color: var(--fg); }

.price-note { margin-top: 16px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* ---------- Help ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.help-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}

.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(0, 82, 204, 0.3); }

.help-card h3 { margin: 0 0 4px; font-size: 1.02rem; line-height: 1.3; }

.help-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.help-card .icon { width: 42px; height: 42px; border-radius: 12px; }

.help-card .icon svg { width: 21px; height: 21px; }

.help-more { display: flex; justify-content: center; margin-top: 30px; }

.faq { max-width: 820px; margin: 56px auto 0; display: grid; gap: 12px; }

.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow-sm); }

.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cobalt-2); transition: transform .2s; }

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Call to action */
.cta-band .panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(47, 107, 255, 0.45), transparent 70%),
        radial-gradient(500px 240px at 90% 110%, rgba(232, 98, 42, 0.28), transparent 70%),
        var(--ink-brush);
    color: #fff;
    border-radius: 30px;
    padding: 70px 32px;
    box-shadow: var(--shadow-lg);
}

.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 12px; }

.cta-band p { margin: 0 auto 30px; max-width: 580px; color: rgba(218, 226, 255, 0.78); }

.cta-band .ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer.site { background: #050C1F; color: rgba(218, 226, 255, 0.6); padding: 52px 0 40px; font-size: 0.92rem; }

footer.site .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }

footer.site .brand { margin-bottom: 12px; }

footer.site h4 { color: #fff; font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 12px; }

footer.site nav { display: grid; gap: 8px; }

footer.site a { color: rgba(218, 226, 255, 0.78); text-decoration: none; }

footer.site a:hover { color: #fff; }

footer.site .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(178, 197, 255, 0.12); font-size: 0.85rem; }

/* Cookie notice */
#cookie-banner {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 60;
    max-width: 760px;
    margin: 0 auto;
    display: none;
    align-items: center;
    gap: 16px;
    background: var(--card);
    color: var(--fg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px 14px 20px;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
}

#cookie-banner p { margin: 0; flex: 1; }

/* ---------- Help centre (build_help_site.py) ---------- */
.help-hero { padding: 56px 0 96px; }

.hero.help-hero .wrap { display: block; padding-top: 0; padding-bottom: 0; }

.help-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0 0 10px; }

.help-hero p { color: rgba(218, 226, 255, 0.78); margin: 0; max-width: 640px; font-size: 1.06rem; }

.help-hero .crumbs { font-size: 0.88rem; margin-bottom: 14px; color: rgba(218, 226, 255, 0.6); }

.help-hero .crumbs a { color: var(--sky); text-decoration: none; }

.search { position: relative; max-width: 560px; margin-top: 28px; }

.search input {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 15px 18px 15px 48px;
    border-radius: 14px;
    border: 1px solid rgba(178, 197, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

[dir="rtl"] .search input { padding: 15px 48px 15px 18px; }

.search input::placeholder { color: rgba(218, 226, 255, 0.55); }

.search input:focus { border-color: var(--sky); background: rgba(255, 255, 255, 0.12); }

.search svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: rgba(218, 226, 255, 0.6); }

.help-body { margin-top: -64px; position: relative; z-index: 2; padding-bottom: 80px; }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.topics .help-card[hidden] { display: none; }

.no-results { display: none; text-align: center; color: var(--muted); padding: 30px; }

.help-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 28px; align-items: start; }

.side { position: sticky; top: 92px; margin-top: 84px; }

.side h2 { font-size: 0.76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

.side nav { display: grid; gap: 2px; }

.side nav a { display: block; text-decoration: none; color: var(--muted); font-size: 0.9rem; line-height: 1.35; padding: 7px 12px; border-radius: 10px; }

.side nav a:hover { background: var(--bg-alt); color: var(--fg); }

.side nav a[aria-current="page"] { background: rgba(0, 82, 204, 0.1); color: var(--cobalt-2); font-weight: 700; }

@media (prefers-color-scheme: dark) { .side nav a[aria-current="page"] { background: rgba(178, 197, 255, 0.12); color: var(--sky); } }

.toc nav a { padding: 4px 12px; font-size: 0.85rem; border-inline-start: 2px solid var(--line); border-radius: 0; }

.toc nav a:hover { border-color: var(--cobalt-2); background: none; }

.doc {
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: 24px;
    padding: 44px 52px;
    box-shadow: var(--shadow-lg);
    min-width: 0;
}

.doc > h1:first-child { display: none; }

.doc h2 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 2.1em 0 0.6em; padding-top: 4px; scroll-margin-top: 90px; }

.doc h2:first-of-type { margin-top: 0.2em; }

.doc h3 { font-size: 1.12rem; margin: 1.6em 0 0.4em; scroll-margin-top: 90px; }

.doc p, .doc li { color: var(--fg); }

.doc a { color: var(--cobalt-2); text-underline-offset: 3px; }

@media (prefers-color-scheme: dark) { .doc a { color: var(--sky); } }

.doc ul, .doc ol { padding-inline-start: 1.3em; }

.doc li { margin: 4px 0; }

.doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 18px 0; font-size: 0.93rem; }

.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: start; vertical-align: top; }

.doc th { background: var(--bg-alt); font-weight: 700; }

.doc tr:first-child th:first-child { border-start-start-radius: 10px; }

.doc tr:first-child th:last-child { border-start-end-radius: 10px; }

.doc code { font-family: var(--mono); background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }

.doc pre { background: var(--ink); color: #E4E9FF; padding: 16px; overflow-x: auto; border-radius: 12px; }

.doc pre code { background: none; padding: 0; color: inherit; }

.doc img { max-width: min(380px, 100%); border: 1px solid var(--line); border-radius: 16px; margin: 18px 0; box-shadow: var(--shadow-sm); }

.doc blockquote { margin: 18px 0; padding: 12px 18px; border-inline-start: 4px solid var(--ember); background: rgba(232, 98, 42, 0.06); border-radius: 0 12px 12px 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }

.pager a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); }

.pager a:hover { border-color: rgba(0, 82, 204, 0.3); }

.pager small { display: block; color: var(--muted); font-size: 0.8rem; }

.pager b { color: var(--cobalt-2); }

@media (prefers-color-scheme: dark) { .pager b { color: var(--sky); } }

.pager .next { text-align: end; grid-column: 2; }

.help-contact { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 18px; background: var(--ink-brush); color: #fff; }

.help-contact p { margin: 0; color: rgba(218, 226, 255, 0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .help-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .toc { display: none; }
}

@media (max-width: 980px) {
    nav.links { display: none; }
    .menu-toggle { display: inline-grid; place-items: center; }
    header.site.open nav.links {
        display: grid;
        position: absolute;
        top: 70px;
        inset-inline: 0;
        gap: 4px;
        padding: 12px 16px 18px;
        background: rgba(5, 12, 31, 0.97);
        border-bottom: 1px solid rgba(178, 197, 255, 0.14);
    }
    header.site.open nav.links a { padding: 10px 8px; font-size: 1rem; }
    .hero .wrap, .split { grid-template-columns: 1fr; }
    .hero .wrap { padding-bottom: 140px; gap: 64px; }
    .stage { max-width: 640px; margin: 0 auto; width: 100%; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .help-grid, .topics { grid-template-columns: 1fr 1fr; }
    .plans { grid-template-columns: 1fr 1fr; }
    .shots { grid-template-columns: 1fr 1fr; }
    .help-layout { grid-template-columns: 1fr; }
    .side { position: static; margin-top: 0; }
    .side.pages { display: none; }
    footer.site .cols { grid-template-columns: 1fr 1fr; }
    footer.site .cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .wrap { padding: 0 16px; }
    header.site .bar { gap: 10px; height: 64px; }
    header.site.open nav.links { top: 64px; }
    .brand b { font-size: 1.15rem; }
    .brand small { display: none; }
    .brand img { width: 34px; height: 34px; }
    .lang select { max-width: 92px; }
    .btn-login { display: none; }
    header.site.open nav.links .menu-only { display: block; }
    section { padding: 76px 0; }
    .hero .wrap { padding-top: 52px; }
    .hero .ctas .btn { flex: 1 1 100%; }
    .label-card { inset-inline-start: -6px; bottom: -70px; width: 62%; }
    .pillars, .grid-3, .steps, .help-grid, .topics, .plans-wide { grid-template-columns: 1fr; }
    .plans { gap: 12px; }
    .plan { padding: 22px 16px 18px; }
    .plan .amount { font-size: 1.6rem; }
    .plan .price { min-height: 40px; }
    .plan .ribbon { inset-inline: 12px; text-align: center; font-size: 0.64rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pillar { padding: 16px; }
    .doc { padding: 26px 20px; border-radius: 18px; }
    .help-hero { padding: 40px 0 88px; }
    .pager { grid-template-columns: 1fr; }
    .pager .next { grid-column: 1; }
    .cta-band .panel { padding: 52px 20px; border-radius: 24px; }
    #cookie-banner { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

.topics.sections { margin-top: 18px; }

.topics.sections[hidden] { display: none; }

.billing-toggle[hidden] { display: none; }

.plan .seg { align-self: flex-start; }

.shots .ai-badge { top: auto; bottom: 12px; }

/* A help page shown in English because its translation is missing (KAN-198). */
.untranslated { margin: 0 0 24px; padding: 10px 14px; border-inline-start: 4px solid var(--ember); background: rgba(232, 98, 42, 0.08); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 0.9rem; }
