/* evostickers.app (KAN-405): one stylesheet for the product page (index.html), the help centre
   (scripts/docs/build_help_site.py --product stickers copies it to /help), the legal pages, delete-account and 404.
   Colours follow the app (stickersApp ui/theme/StickersTheme.kt) and the icon (docs/stickers/brand): coral on warm
   paper-white, warm charcoal in dark mode. No web fonts from elsewhere (CSP, privacy): the system font only. */

:root {
    --coral: #E85D4A;
    --coral-hi: #F38064;
    --coral-deep: #C9432F;
    --coral-ink: #A8321F;
    --coral-soft: #FFDAD3;
    --coral-wash: #FFF1EC;
    --amber: #F2A33A;
    --leaf: #3E9B6B;
    --bg: #FFFBF8;
    --bg-alt: #FFF3EE;
    --fg: #241815;
    --muted: #6B5652;
    --line: #F0DCD5;
    --card: #FFFFFF;
    --card-line: rgba(168, 50, 31, 0.10);
    --head-bg: rgba(255, 251, 248, 0.84);
    --link: #B83A26;
    --shadow-sm: 0 2px 6px rgba(92, 29, 18, 0.05), 0 8px 24px rgba(92, 29, 18, 0.07);
    --shadow-lg: 0 12px 34px rgba(92, 29, 18, 0.10), 0 34px 80px rgba(92, 29, 18, 0.14);
    --coral-brush: linear-gradient(135deg, #F38064 0%, #E85D4A 55%, #C9432F 100%);
    --hero-bg:
        radial-gradient(760px 460px at 92% -10%, rgba(243, 128, 100, 0.30), transparent 62%),
        radial-gradient(620px 420px at -8% 105%, rgba(242, 163, 58, 0.16), transparent 60%),
        linear-gradient(180deg, #FFF3EE 0%, #FFFBF8 100%);
    --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 22px;
    --max: 1180px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --coral-soft: #5C2A22;
        --coral-wash: #2A1C19;
        --bg: #1A1110;
        --bg-alt: #221715;
        --fg: #F3E3DE;
        --muted: #CBB3AD;
        --line: #3A2A26;
        --card: #261A18;
        --card-line: rgba(255, 180, 166, 0.12);
        --head-bg: rgba(26, 17, 16, 0.84);
        --link: #FFB4A6;
        --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.38), 0 34px 80px rgba(0, 0, 0, 0.45);
        --hero-bg:
            radial-gradient(760px 460px at 92% -10%, rgba(232, 93, 74, 0.30), transparent 62%),
            radial-gradient(620px 420px at -8% 105%, rgba(242, 163, 58, 0.10), transparent 60%),
            linear-gradient(180deg, #241614 0%, #1A1110 100%);
        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; }

h1, h2, h3, h4, .eyebrow { 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(--amber); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--head-bg);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}

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

/* The one-line "EVoStickers" sticker is the wordmark (brand/mark-name.svg). */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; color: var(--fg); }

.brand img { height: 60px; width: auto; }

.brand small { font-weight: 700; color: var(--muted); font-size: .9rem; border-inline-start: 1px solid var(--line); padding-inline-start: 11px; }

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

nav.links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color .2s; }

nav.links a:hover, nav.links a[aria-current] { color: var(--fg); }

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

.lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0 8px;
    height: 40px;
    background: var(--card);
}

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

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

.lang select option { color: #241815; background: #fff; }

.menu-toggle { display: none; background: var(--card); border: 1px solid var(--line); color: var(--fg); 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: 14px;
    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(--coral-brush); color: #fff; box-shadow: 0 8px 22px rgba(232, 93, 74, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btn-primary:hover { box-shadow: 0 12px 30px rgba(232, 93, 74, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.28); }

.btn-ghost { color: var(--fg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }

.btn-ghost:hover { border-color: var(--coral-hi); }

.btn-quiet { color: var(--link); background: rgba(232, 93, 74, 0.10); }

.btn-white { color: var(--coral-ink); background: #fff; box-shadow: 0 8px 22px rgba(92, 29, 18, 0.25); }

.btn-outline-white { color: #fff; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.08); }

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

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }

/* Faint die-cut sheet grid behind the hero. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(232, 93, 74, 0.22) 1.2px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
    pointer-events: none;
}

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

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--link);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

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

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

.hero h1 em { font-style: normal; background: var(--coral-brush); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero .lead { font-size: 1.16rem; color: var(--muted); max-width: 560px; margin: 0 0 32px; }

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

.hero .note { margin-top: 20px; font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

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

/* Screenshot stage: the desktop editor, a phone over it and a printed sticker. */
.stage { position: relative; padding-bottom: 40px; }

.frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: var(--card);
}

.frame .dots { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }

.frame .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.phone {
    position: absolute;
    inset-inline-end: -14px;
    bottom: -6px;
    width: 31%;
    border-radius: 26px;
    overflow: hidden;
    border: 6px solid #2A1C19;
    background: #2A1C19;
    box-shadow: var(--shadow-lg);
}

.phone img { border-radius: 19px; }

/* A sticker as printed on a thermal label printer: black on white, slightly tilted. */
.sticker {
    position: relative;
    background: #fff;
    color: #000;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 24px rgba(92, 29, 18, 0.22);
}

.sticker .in { border: 3px solid #000; border-radius: 9px; padding: 10px 14px; text-align: center; }

.sticker .peel { position: absolute; inset-inline-end: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, #fff 45%, #F3ECE8 50%, #E7D9D3 100%); border-end-end-radius: 14px; box-shadow: -2px -2px 4px rgba(92, 29, 18, 0.12); clip-path: polygon(100% 0, 0 100%, 0 0); transform: rotate(180deg); }

.hero .sticker { position: absolute; inset-inline-start: -22px; bottom: -8px; width: 54%; max-width: 280px; transform: rotate(-5deg); }

.sticker .s-name { font-weight: 800; font-size: 1.22rem; line-height: 1.2; font-family: 'Segoe Script', 'Bradley Hand', 'Comic Sans MS', cursive, var(--font); color: #000; }

.sticker .s-line { height: 0; border-top: 2px dashed #000; margin: 8px 0; }

.sticker .s-dates { font-size: 0.86rem; font-weight: 600; color: #000; }

.sticker .s-dates b { font-weight: 800; }

/* A date's label ("best before", "use by") never splits and stays with its date (&nbsp; in index.html). */
.sticker .s-dates span, .sticker .s-sub span { white-space: nowrap; }

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

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

.pillar strong { display: block; font-size: 0.98rem; }

.pillar span:not(.icon) { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.45; margin-top: 2px; }

.icon {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--coral-wash);
    color: var(--coral);
    border: 1px solid var(--card-line);
}

.icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.icon.warm { background: var(--coral-brush); color: #fff; border: 0; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }

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

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

.kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }

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

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

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

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

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

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

.badge { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); background: var(--coral-soft); border-radius: 999px; padding: 2px 8px; margin-inline-start: 6px; vertical-align: middle; }

@media (prefers-color-scheme: dark) { .badge { color: #FFDAD3; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }

.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;
    background: var(--coral-brush);
    color: #fff;
    font-weight: 800;
    margin-bottom: 14px;
}

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

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

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

.shots figure { margin: 0; }

.shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--card); }

.shots figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; font-weight: 600; margin-top: 10px; }

/* Use cases: a wall of stickers */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }

.use { display: grid; gap: 14px; }

.use .sticker { transform: rotate(var(--tilt, -2deg)); }

.use:nth-child(2n) .sticker { --tilt: 1.6deg; }

.use:nth-child(3n) .sticker { --tilt: -1deg; }

.use .s-name { font-size: 1.12rem; }

.use .s-sub { font-size: 0.84rem; font-weight: 600; color: #000; }

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

.use h3 { margin: 0 0 2px; font-size: 1.05rem; }

/* Pricing */
.billing-toggle { display: inline-flex; margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }

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

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

.billing-toggle .save { font-size: 0.74rem; opacity: .85; margin-inline-start: 4px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin: 0 auto; }

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

.plan.featured { border: 2px solid var(--coral); box-shadow: var(--shadow-lg); }

.plan .ribbon { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--coral-brush); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }

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

.plan .sub { margin: 4px 0 18px; color: var(--muted); font-size: 0.95rem; }

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

.plan .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.02em; }

.plan .per { color: var(--muted); font-weight: 600; }

.plan .price-sub { color: var(--muted); font-size: 0.9rem; min-height: 24px; margin-bottom: 18px; }

.plan ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 9px; flex: 1; }

.ticks li { position: relative; padding-inline-start: 28px; font-size: 0.96rem; }

.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--coral-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23E85D4A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

.price-note { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 26px auto 0; max-width: 720px; }

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

.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(--coral); transition: transform .2s; }

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

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

.help-more { text-align: center; margin-top: 34px; }

/* Help cards (product page and help index) */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 44px; }

.help-card { display: flex; gap: 14px; 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: border-color .2s, transform .15s; }

.help-card:hover { border-color: var(--coral-hi); transform: translateY(-1px); }

.help-card h3 { margin: 0 0 4px; font-size: 1rem; }

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

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

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

.family a:hover { border-color: var(--coral-hi); }

.family b { display: block; font-size: 1.05rem; }

.family span { color: var(--muted); font-size: 0.92rem; }

/* Call to action */
.cta-band .panel {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(600px 260px at 50% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
        var(--coral-brush);
    color: #fff;
    border-radius: 30px;
    padding: 64px 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(255, 255, 255, 0.9); }

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

/* ---------- Footer ---------- */
footer.site { background: #241614; color: rgba(255, 228, 220, 0.66); padding: 52px 0 40px; font-size: 0.92rem; }

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

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

footer.site .brand img { height: 54px; }

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(255, 228, 220, 0.82); text-decoration: none; }

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

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

footer.site .copy + .copy { margin-top: 6px; padding-top: 0; border: 0; }

/* ---------- Text pages: legal, delete account, 404 ---------- */
.page-hero { padding: 56px 0 96px; background: var(--hero-bg); }

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 8px; }

.page-hero p { color: var(--muted); margin: 0; max-width: 680px; }

.page-hero .switch { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--link); text-decoration: none; }

.page-body { margin-top: -64px; position: relative; z-index: 2; padding-bottom: 80px; max-width: 900px; }

/* ---------- 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: var(--muted); margin: 0; max-width: 640px; font-size: 1.06rem; }

.help-hero .crumbs { font-size: 0.88rem; margin-bottom: 14px; color: var(--muted); }

.help-hero .crumbs a { color: var(--link); 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 var(--line);
    background: var(--card);
    color: var(--fg);
    outline: none;
    box-shadow: var(--shadow-sm);
}

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

.search input::placeholder { color: var(--muted); }

.search input:focus { border-color: var(--coral); }

.search svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: var(--muted); }

.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; }

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

.topics.sections[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(232, 93, 74, 0.12); color: var(--link); font-weight: 700; }

.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(--coral); 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.4rem; letter-spacing: -0.01em; margin: 2em 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(--link); text-underline-offset: 3px; }

.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 code { font-family: var(--mono); background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }

.doc pre { background: #2A1C19; color: #FFE4DC; 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(--coral); background: rgba(232, 93, 74, 0.07); border-radius: 0 12px 12px 0; }

.doc .info { margin: 18px 0; padding: 14px 18px; border-inline-start: 4px solid var(--coral); background: rgba(232, 93, 74, 0.07); border-radius: 0 12px 12px 0; }

.untranslated { color: var(--muted); font-style: italic; }

.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: var(--coral-hi); }

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

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

.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(--coral-brush); color: #fff; }

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

.help-contact .btn { color: var(--coral-ink); background: #fff; }

/* ---------- 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: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-sm);
    }
    header.site.open nav.links a { padding: 10px 8px; font-size: 1rem; }
    .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-bottom: 120px; }
    .stage { max-width: 640px; margin: 0 auto; width: 100%; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .help-grid, .topics, .uses, .family { 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 img { height: 50px; }
    .brand small { display: none; }
    .lang select { max-width: 92px; }
    .btn-open { display: none; }
    header.site.open nav.links .menu-only { display: block; }
    section { padding: 72px 0; }
    .hero .wrap { padding-top: 44px; }
    .hero .ctas .btn { flex: 1 1 100%; }
    .hero .sticker { inset-inline-start: -4px; bottom: -34px; width: 66%; }
    .phone { width: 36%; inset-inline-end: -4px; }
    .pillars, .grid-3, .steps, .help-grid, .topics, .plans, .uses, .family { grid-template-columns: 1fr; }
    .pillars { margin-top: -36px; }
    .pillar { padding: 16px; }
    .plan { padding: 28px 20px 22px; }
    .doc { padding: 26px 20px; border-radius: 18px; }
    .help-hero, .page-hero { padding: 40px 0 88px; }
    .pager { grid-template-columns: 1fr; }
    .pager .next { grid-column: 1; }
    .cta-band .panel { padding: 48px 20px; border-radius: 24px; }
    .cta-band .ctas .btn { flex: 1 1 100%; }
}

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