/* Gignal marketing: existing navy/amber identity, native CSS.
   DESIGN_VARIANCE 7 / MOTION_INTENSITY 7 / VISUAL_DENSITY 4.
   Radius: buttons 8px, containers 16px. Layers: nav 20, menu 21,
   native dialog top layer. Theme follows the OS across the whole page. */
@font-face {
    font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
    src: url("../fonts/ibm-plex-sans-latin.b2c9031d9fd6.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: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
    src: url("../fonts/ibm-plex-sans-cyrillic.70800b98b5e7.woff2") format("woff2");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: "Unbounded"; font-style: normal; font-weight: 600; font-display: swap;
    src: url("../fonts/unbounded-latin.b7d1ea512372.woff2") format("woff2");
}
:root {
    color-scheme: light dark;
    /* Нейтралі — рівно ті самі значення, що --bg/--surface/--surface-muted/
       --text/--text-muted/--border у base.html. Лендінг і застосунок стоять
       поруч у сценарії «зареєструвався й одразу потрапив усередину», і будь-яка
       розбіжність відтінку читається як перехід на інший продукт. Бурштинова
       група лишається власною: на лендінгу вона несе більше тексту, тож потребує
       світлішого відтінку для контрасту. */
    --paper: #f5f6f4; --surface: #ffffff; --wash: #eef1f0;
    --ink: #132e3c; --muted: #51626c; --line: #dee3e1;
    --amber: #f0a202; --amber-hover: #e49a04; --amber-ink: #815506;
    --amber-wash: #f8edce; --focus: #936000; --float-shadow: rgb(19 46 60 / .18);
    --nav-underline-secondary: #132e3c;
    --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --paper: #0f1417; --surface: #171d21; --wash: #1c2327;
        --ink: #eef1f2; --muted: #9aa5aa; --line: #2a3236;
        --amber-ink: #efb53c; --amber-wash: #2e2410; --focus: #f0b43f;
        --float-shadow: rgb(0 0 0 / .46);
        --nav-underline-secondary: #eef1f2;
    }
}
html[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0f1417; --surface: #171d21; --wash: #1c2327;
    --ink: #eef1f2; --muted: #9aa5aa; --line: #2a3236;
    --amber-ink: #efb53c; --amber-wash: #2e2410; --focus: #f0b43f;
    --float-shadow: rgb(0 0 0 / .46); --nav-underline-secondary: #eef1f2;
}
html[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; vertical-align: middle; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; }
h3 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
/* WCAG 2.4.1: перший фокусований елемент сторінки, видимий лише у фокусі. */
.skip-link { position: fixed; top: 0; left: 0; z-index: 1000; transform: translateY(-120%);
    padding: 12px 18px; border-radius: 0 0 6px 0; background: var(--amber); color: #132e3c;
    font-weight: 700; text-decoration: none; }
.skip-link:focus, .skip-link:focus-visible { transform: translateY(0); }
main[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--amber); color: #132e3c; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 104px; }
.muted { color: var(--muted); }
.eyebrow { font-size: .72rem; text-transform: uppercase; font-weight: 600; letter-spacing: .15em; }
.section-heading { max-width: 660px; margin-bottom: 42px; }
.section-heading p { margin-top: 18px; color: var(--muted); max-width: 55ch; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 52px; padding: 13px 21px; border: 1px solid transparent; border-radius: 8px; background: var(--amber); color: #132e3c; font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s; }
.button:hover { background: var(--amber-hover); }
.button-small { min-height: 42px; padding: 10px 15px; font-size: .875rem; gap: 10px; }
/* Стрілка «→» на кнопці виглядала дешево (власник, 2026-10-08): кнопка й так кличе до дії.
   У текстових посиланнях («Відкрити →») стрілка лишається — там вона й показує, що це перехід. */
.button .icon-arrow-right { display: none; }
.button:active { transform: translateY(1px); }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--wash); }
.button:active { transform: scale(.98); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 8px; font-size: .96rem; line-height: 1.4; text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 20px; background: var(--surface); color: var(--ink); z-index: 30; }
.skip-link:focus { top: 12px; }

/* Navigation remains familiar; the menu works without JavaScript. */
.nav-sentinel { height: 1px; position: absolute; top: 0; }
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.is-scrolled { border-color: var(--line); }
.nav-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: "Unbounded", var(--font); font-weight: 600; font-size: 1.1rem; letter-spacing: -.04em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links, .nav-actions { display: flex; align-items: center; gap: 27px; }
.nav-links a, .login-link { position: relative; text-decoration: none; font-size: .875rem; font-weight: 500; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .login-link:hover { color: var(--ink); }
.nav-links a::after, .login-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) 0 68%, var(--nav-underline-secondary) 68% 100%); transform: scaleX(0); transform-origin: right; transition: transform .32s cubic-bezier(.16,1,.3,1); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .login-link:hover::after, .login-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { gap: 22px; }
.public-preferences { display: flex; align-items: center; gap: 7px; }
.lang-switch { position: relative; display: grid; grid-template-columns: repeat(2, 36px); align-items: center; gap: 0; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); isolation: isolate; overflow: hidden; }
.lang-switch::before { content: ""; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: 36px; border-radius: 5px; background: var(--amber); box-shadow: 0 5px 14px -9px var(--float-shadow); transition: transform .34s cubic-bezier(.16,1,.3,1); }
.lang-switch:has(button[value="en"][aria-current])::before { transform: translateX(36px); }
.lang-switch button { border: 0; border-radius: 5px; min-width: 36px; min-height: 32px; color: var(--muted); background: transparent; padding: 3px; font-size: .66rem; font-weight: 600; transition: color .22s, transform .22s; }
.lang-switch button:hover { color: var(--ink); transform: translateY(-1px); }
.lang-switch button[aria-current] { color: #132e3c; font-weight: 700; }
.public-theme-toggle { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); color: var(--ink); overflow: hidden; transition: background .2s, transform .2s; }
.public-theme-toggle:hover { background: var(--amber-wash); transform: rotate(-5deg); }
.public-theme-toggle svg { position: absolute; transition: opacity .25s, transform .35s cubic-bezier(.16,1,.3,1); }
.theme-moon { opacity: 0; transform: translateY(17px) rotate(20deg); }
html[data-theme="dark"] .theme-sun { opacity: 0; transform: translateY(-17px) rotate(-20deg); }
html[data-theme="dark"] .theme-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-sun { opacity: 0; transform: translateY(-17px) rotate(-20deg); }
    :root:not([data-theme]) .theme-moon { opacity: 1; transform: none; }
}
.mobile-menu { display: none; }
.mobile-menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu:not([open]) > .mobile-menu-panel { display: none; }
.mobile-menu-panel { position: absolute; z-index: 21; top: 68px; left: 16px; right: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mobile-menu-panel > a { display: block; padding: 12px 8px; text-decoration: none; }

/* The Gignal bird is a shared signature on public pages. It sits beside the
   first message instead of floating over controls; the landing has its own
   two-scene mascot story and disables this shared instance. */
main { position: relative; isolation: isolate; }
.public-page-mascot { position: absolute; z-index: 2; top: 46px; right: max(38px, calc((100vw - 1280px) / 2)); width: 142px; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; isolation: isolate; transition: transform .34s cubic-bezier(.16,1,.3,1); }
.public-page-mascot::before { content: ""; position: absolute; z-index: -1; inset: 13% 4% 0 10%; border-radius: 50%; background: var(--amber); transform: rotate(-8deg); }
.public-page-mascot img { width: 116%; max-width: none; transform: translate(-4%, -2%) rotate(-2deg); }
main:has(.auth-section) .public-page-mascot { top: 238px; right: auto; left: calc(50% - 108px); width: 120px; }
.public-page-mascot--welcome::before { inset: 19% 10% 4% 4%; border-radius: 43% 57% 54% 46%; transform: rotate(7deg); }
.public-page-mascot--welcome img { width: 100%; transform: rotate(-3deg); }
.public-page-mascot--momentum { top: 34px; width: 220px; aspect-ratio: 3 / 2; }
.public-page-mascot--momentum::before { inset: 17% 2% 5% 17%; border-radius: 46% 54% 45% 55%; transform: rotate(-5deg); }
.public-page-mascot--momentum img { width: 118%; transform: translate(-8%, -4%) rotate(-2deg); }
.public-page-mascot::after { content: ""; position: absolute; z-index: 2; opacity: 0; pointer-events: none; }
.public-page-mascot--welcome::after { top: 13%; right: 5%; width: 17px; height: 3px; border-radius: 99px; background: var(--ink); box-shadow: 8px 9px 0 -1px var(--ink); transform: rotate(-34deg) scaleX(.4); transform-origin: left center; }
.public-page-mascot--guide::after { right: 2%; bottom: 12%; width: 16px; height: 16px; border: 2px solid var(--ink); border-left-color: transparent; border-radius: 50%; transform: rotate(-24deg) scale(.5); }
.public-page-mascot--momentum::after { left: 2%; top: 42%; width: 24px; height: 3px; border-radius: 99px; background: var(--ink); box-shadow: -9px 10px 0 -1px var(--ink), 7px -10px 0 -1px var(--ink); transform: rotate(-12deg) scaleX(.35); transform-origin: right center; }

/* The bird reacts to the task beside it: greeting a focused form, following a
   legal/docs link, or leaning into a plan choice. The containing UI owns the
   hover/focus target so the decorative image never steals pointer events. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    main:has(.auth-card:hover) .public-page-mascot--welcome,
    main:has(.auth-card:focus-within) .public-page-mascot--welcome { transform: translateY(-6px) rotate(-2deg); }
    main:has(.legal-toc a:hover) .public-page-mascot--guide,
    main:has(.legal-doc-nav a:hover) .public-page-mascot--guide { transform: translate(3px, -4px) rotate(2deg); }
    main:has(.price-card:hover) .public-page-mascot--momentum,
    main:has(.legal-doc-nav a:hover) .public-page-mascot--momentum { transform: translate(7px, -5px) rotate(-1deg); }
}

/* Real product screens carry the hero. The supporting crops add depth without
   inventing metrics or recreating the application with decorative HTML. */
.hero { overflow: clip; padding-top: 54px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 42px; min-height: 610px; }
.hero-copy { padding-bottom: 20px; position: relative; z-index: 1; }
.hero-copy .eyebrow { color: var(--muted); margin-bottom: 25px; }
.hero h1 { font-size: clamp(2.9rem, 4.9vw, 4.6rem); line-height: 1.075; letter-spacing: -.055em; font-weight: 600; }
.hero h1 span { display: block; white-space: nowrap; }
html[lang="en"] .hero h1 { font-size: clamp(2.7rem, 4.1vw, 3.9rem); }
.headline-accent { color: var(--ink); position: relative; width: max-content; isolation: isolate; }
.headline-accent::after { content: ""; position: absolute; z-index: -1; left: 0; right: 1%; height: .13em; bottom: .05em; background: var(--amber); transform: rotate(-1deg); }
.hero-lede { margin-top: 28px; max-width: 390px; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-actions .text-link { font-size: .9rem; }
.hero-fineprint { max-width: 455px; margin-top: 18px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.hero-fineprint strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-demo { display: contents; }
.closing-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* --- вибір демо: те саме і у вікні на лендінгу, і на сторінці /demo/ --- */
.demo-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.demo-card-form { display: contents; }
.demo-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 9px;
    width: 100%; height: 100%; text-align: left; cursor: pointer;
    padding: 22px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); color: var(--ink);
    transition: border-color .2s, background .2s;
}
.demo-card:hover { border-color: var(--amber); background: var(--wash); }
.demo-card-title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.demo-card-summary { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.demo-card-points { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.demo-card-points span {
    font-size: .76rem; color: var(--muted);
    padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
}
.demo-card-go {
    display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 10px;
    font-size: .88rem; font-weight: 600; color: var(--amber-ink, var(--ink));
}
.demo-card:hover .demo-card-go { text-decoration: underline; text-underline-offset: 4px; }

.demo-dialog {
    padding: 26px; border: 1px solid var(--line); border-radius: 14px;
    width: min(720px, 94vw); max-height: 92dvh; background: var(--surface); color: var(--ink);
}
.demo-dialog::backdrop { background: rgb(6 18 26 / .8); }
.demo-dialog-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.demo-dialog-head h2 { font-size: 1.35rem; line-height: 1.25; }
.demo-dialog-head p { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.demo-dialog-head .dialog-close { margin: 0 0 0 auto; flex-shrink: 0; }

.demo-section { padding: 70px 0 90px; }
.demo-section .section-heading { margin-bottom: 32px; }
.demo-foot { margin-top: 26px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.demo-foot > p { max-width: 62ch; }
.demo-foot-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    margin-top: 22px; padding: 22px 26px; border: 1px solid var(--line); border-left: 3px solid var(--amber);
    border-radius: 14px; background: var(--wash);
}
.demo-foot-cta strong { display: block; color: var(--ink); font-size: 1.02rem; }
.demo-foot-cta span { display: block; margin-top: 4px; }

@media (max-width: 620px) {
    .demo-picker { grid-template-columns: 1fr; }
    .demo-dialog { padding: 20px; }
    .demo-dialog-head h2 { font-size: 1.15rem; }
}
.hero-stage { position: relative; width: 760px; max-width: none; height: 580px; isolation: isolate; }
.hero-stage::before { content: ""; position: absolute; z-index: -1; width: 470px; height: 470px; top: 45px; left: 145px; border-radius: 50%; background: var(--amber-wash); opacity: .8; }
.hero-product { display: block; position: absolute; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; background: #f5f6f4; box-shadow: 0 28px 70px -38px var(--float-shadow); }
.hero-product-main { z-index: 1; width: 690px; top: 42px; left: 34px; transform: rotate(-1.4deg); transform-origin: center; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.hero-product-main:hover { transform: rotate(0deg) translateY(-4px); }
.hero-product-money { z-index: 3; width: 355px; max-height: 218px; left: -24px; bottom: 14px; transform: rotate(2.4deg); }
.hero-product-time { z-index: 2; width: 315px; max-height: 195px; right: -8px; top: 6px; transform: rotate(2deg); }
.hero-product img { width: 100%; }
.hero-mascot { position: absolute; z-index: 5; right: 8px; bottom: -2px; width: 155px; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; isolation: isolate; }
.hero-mascot::before { content: ""; position: absolute; z-index: -1; inset: 13% 4% 0 10%; border-radius: 50%; background: var(--amber); transform: rotate(-8deg); }
.hero-mascot img { width: 116%; max-width: none; transform: translate(-4%, -2%) rotate(-2deg); }
.product-chrome { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; font-size: .68rem; color: #51626c; background: #f8f9f7; border-bottom: 1px solid #dce1df; }
.product-chrome span:first-child { display: flex; align-items: center; gap: 9px; }
@media (prefers-color-scheme: dark) {
    .hero-product { background: #0f1517; }
    .product-chrome { background: var(--surface); color: var(--muted); border-bottom-color: var(--line); }
}
.proof-strip { border-bottom: 1px solid var(--line); }
.hero-foundation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 21px; color: var(--muted); font-size: .8rem; }
.hero-foundation > span { display: flex; align-items: center; }
.hero-foundation > span + span { padding-left: 28px; border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .hero-foundation { gap: 10px 24px; } .hero-foundation > span + span, .hero-foundation .proof-promo + span { padding-left: 0; border-left: 0; } }
.proof-promo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.proof-promo strong { color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.proof-promo svg { color: var(--amber-ink); }
.proof-promo:hover { text-decoration: underline; text-underline-offset: 4px; }
.proof-promo + span { padding-left: 28px; border-left: 1px solid var(--line); }

.problem-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; align-items: start; }
.problem-grid h2 { max-width: 430px; font-size: clamp(2rem, 3.4vw, 3.15rem); }
.problem-benefits { display: grid; gap: 30px; }
.problem-benefits > div { display: flex; align-items: start; gap: 20px; }
.benefit-icon { color: var(--amber-ink); padding-top: 2px; }
.problem-benefits p { margin-top: 8px; color: var(--muted); font-size: .98rem; max-width: 44ch; }

/* Three confusions the product actually removes, each paired with what it does
   instead. A hairline grid rather than three floating cards: the pairing is the
   content, so the cells stay identical and only the copy carries the weight. */
.accuracy-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--line); overflow: hidden; }
.accuracy-list > li { padding: 28px 26px 30px; background: var(--surface); }
.accuracy-miss { display: flex; align-items: start; gap: 12px; margin: 0; font-weight: 600; line-height: 1.38; }
.accuracy-miss svg { flex: 0 0 auto; margin-top: 3px; color: var(--amber-ink); }
.accuracy-fix { margin-top: 14px; color: var(--muted); font-size: .96rem; }

/* A long, pinned scene turns the import promise into a visible sequence. The
   baseline stays readable; supporting browsers bind the motion to scroll. */
.flow-statement { min-height: 104svh; position: relative; overflow: clip; view-timeline-name: --flow-scene; view-timeline-axis: block; }
.flow-statement-sticky { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 80px 48px; isolation: isolate; }
.flow-statement-sticky::before { content: ""; position: absolute; z-index: -2; width: min(72vw, 920px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--amber-wash) 0 22%, transparent 68%); opacity: .74; }
.flow-statement h2 { position: relative; z-index: 2; max-width: 1000px; text-align: center; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.16; }
.flow-statement h2 span { display: inline; }
.flow-statement .flow-lead { display: block; margin-bottom: .2em; color: var(--amber-ink); }
.flow-statement.is-armed [data-flow-word] { opacity: .18; transform: translateY(18px); transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--flow-index, 0) * 90ms); }
.flow-statement.is-armed .flow-lead { opacity: 1; }
.flow-statement.is-visible [data-flow-word] { opacity: 1; transform: none; }
.flow-orbit { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.flow-node { position: absolute; display: flex; align-items: center; gap: 12px; width: 178px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); background: color-mix(in srgb, var(--surface) 91%, transparent); box-shadow: 0 22px 55px -36px var(--float-shadow); opacity: .88; }
.flow-node > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; color: var(--amber-ink); background: var(--amber-wash); }
.flow-node strong, .flow-node small { display: block; }
.flow-node strong { font-size: .84rem; line-height: 1.25; }
.flow-node small { margin-top: 2px; color: var(--muted); font-size: .67rem; line-height: 1.25; }
.flow-node-csv { top: 17%; left: 7%; transform: rotate(-5deg); }
.flow-node-clients { top: 20%; right: 6%; transform: rotate(4deg); }
.flow-node-time { bottom: 17%; left: 10%; transform: rotate(3deg); }
.flow-node-tax { right: 9%; bottom: 18%; transform: rotate(-4deg); }
.flow-progress { position: absolute; z-index: 3; left: 50%; bottom: 44px; width: min(260px, 40vw); height: 2px; overflow: hidden; transform: translateX(-50%); background: var(--line); }
.flow-progress span { display: block; width: 100%; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

/* An ordinary copy-and-screenshot sequence is the baseline. At desktop the
   observer enhances it into a sticky stage, without a per-frame scroll handler. */
.product-section { padding-top: 22px; }
.product-section .section-heading { max-width: 710px; }
.product-story { display: grid; gap: 46px; }
.story-steps { list-style: none; display: grid; gap: 72px; margin: 0; padding: 0; }
.story-step { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 44px; }
.story-copy { position: relative; display: flex; align-items: flex-start; gap: 18px; padding-block: 22px; }
.story-copy h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.story-copy p { max-width: 31ch; margin-top: 12px; color: var(--muted); font-size: .96rem; }
.story-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--amber-ink); background: var(--surface); transition: color .35s, border-color .35s, background .35s; }
.story-screen { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: zoom-in; text-decoration: none; }
.story-screen img { width: 100%; }
.story-stage { display: none; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 32px 80px -52px var(--float-shadow); }
.story-stage-panels { position: relative; aspect-ratio: 1440 / 1000; overflow: hidden; background: var(--surface); }
.story-stage-panel { position: absolute; inset: 0; border: 0; border-radius: 0; opacity: 0; transform: translateY(28px) scale(.965); pointer-events: none; transition: opacity .48s ease, transform .72s cubic-bezier(.16,1,.3,1); }
.story-stage-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story-stage-progress { height: 3px; background: var(--line); }
.story-stage-progress span { display: block; width: 100%; height: 100%; background: var(--amber); transform: scaleX(.25); transform-origin: left; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.story-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.story-footer a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--ink); font-weight: 500; text-decoration: none; }
.story-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .flow-statement.is-armed { min-height: 230svh; }
    .flow-statement.is-armed .flow-statement-sticky { height: 100svh; min-height: 0; position: sticky; top: 0; }
    .product-story.is-enhanced { grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr); gap: clamp(54px, 6vw, 96px); align-items: start; }
    .product-story.is-enhanced .story-steps { gap: 0; }
    .product-story.is-enhanced .story-step { min-height: 68svh; display: flex; align-items: center; opacity: .24; transform: translateX(-12px); transition: opacity .42s ease, transform .55s cubic-bezier(.16,1,.3,1); }
    .product-story.is-enhanced .story-step.is-active { opacity: 1; }
    .product-story.is-enhanced .story-step.is-active { transform: none; }
    .product-story.is-enhanced .story-step > .story-screen { display: none; }
    .product-story.is-enhanced .story-stage { display: block; position: sticky; top: 108px; }
    .product-story.is-enhanced .story-step.is-active .story-icon { color: #132e3c; border-color: var(--amber); background: var(--amber); }
    .product-story.is-enhanced .story-copy::before { content: ""; position: absolute; top: 0; bottom: 0; left: -24px; width: 2px; background: var(--line); transform: scaleY(.18); transform-origin: top; transition: background .35s, transform .5s cubic-bezier(.16,1,.3,1); }
    .product-story.is-enhanced .story-step.is-active .story-copy::before { background: var(--amber); transform: scaleY(1); }
}

/* Native scroll timelines keep motion synchronized with the scrollbar without
   a scroll listener. Browsers without the API keep the observer fallback. */
@supports (animation-timeline: view()) {
    @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
        @keyframes flow-word-scrub {
            from { opacity: .14; transform: translateY(22px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes flow-node-left {
            0% { opacity: 0; transform: translate(-80px, 42px) rotate(-12deg) scale(.88); }
            34%, 72% { opacity: .92; transform: translate(0, 0) rotate(-3deg) scale(1); }
            100% { opacity: 0; transform: translate(38px, -38px) rotate(4deg) scale(.94); }
        }
        @keyframes flow-node-right {
            0% { opacity: 0; transform: translate(80px, 34px) rotate(12deg) scale(.88); }
            34%, 72% { opacity: .92; transform: translate(0, 0) rotate(3deg) scale(1); }
            100% { opacity: 0; transform: translate(-38px, -38px) rotate(-4deg) scale(.94); }
        }
        @keyframes flow-progress-scrub { to { transform: scaleX(1); } }
        @keyframes hero-main-drift { to { translate: 0 -46px; scale: .975; } }
        @keyframes hero-money-drift { to { translate: -18px -84px; rotate: -1.5deg; } }
        @keyframes hero-time-drift { to { translate: 22px -28px; rotate: 1.5deg; } }

        .flow-statement.is-armed [data-flow-word] {
            animation-name: flow-word-scrub;
            animation-duration: 1ms;
            animation-timing-function: linear;
            animation-fill-mode: both;
            animation-timeline: --flow-scene;
            transition: none;
        }
        .flow-statement h2 [data-flow-word]:nth-child(1) { animation-range: cover 27% cover 33%; }
        .flow-statement h2 [data-flow-word]:nth-child(2) { animation-range: cover 33% cover 39%; }
        .flow-statement h2 [data-flow-word]:nth-child(3) { animation-range: cover 38% cover 44%; }
        .flow-statement h2 [data-flow-word]:nth-child(4) { animation-range: cover 43% cover 49%; }
        .flow-statement h2 [data-flow-word]:nth-child(5) { animation-range: cover 48% cover 54%; }
        .flow-statement h2 [data-flow-word]:nth-child(6) { animation-range: cover 53% cover 60%; }
        .flow-node {
            animation-duration: 1ms;
            animation-timing-function: linear;
            animation-fill-mode: both;
            animation-timeline: --flow-scene;
            animation-range: cover 27% cover 65%;
        }
        .flow-node-csv, .flow-node-time { animation-name: flow-node-left; }
        .flow-node-clients, .flow-node-tax { animation-name: flow-node-right; }
        .flow-node-time, .flow-node-tax { animation-direction: reverse; }
        .flow-progress span { animation: flow-progress-scrub 1ms linear both; animation-timeline: --flow-scene; animation-range: cover 27% cover 65%; }

        .hero-product-main {
            animation-name: product-arrive, hero-main-drift;
            animation-duration: .85s, 1ms;
            animation-timing-function: cubic-bezier(.16,1,.3,1), linear;
            animation-fill-mode: both, both;
            animation-timeline: auto, scroll(root block);
            animation-range: normal, 0 850px;
        }
        .hero-product-money {
            animation-name: product-arrive, hero-money-drift;
            animation-duration: .8s, 1ms;
            animation-delay: .16s, 0s;
            animation-timing-function: cubic-bezier(.16,1,.3,1), linear;
            animation-fill-mode: both, both;
            animation-timeline: auto, scroll(root block);
            animation-range: normal, 0 850px;
        }
        .hero-product-time {
            animation-name: product-arrive, hero-time-drift;
            animation-duration: .8s, 1ms;
            animation-delay: .26s, 0s;
            animation-timing-function: cubic-bezier(.16,1,.3,1), linear;
            animation-fill-mode: both, both;
            animation-timeline: auto, scroll(root block);
            animation-range: normal, 0 850px;
        }
    }
}

.how-section { background: var(--wash); }
.how-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; align-items: start; }
.how-intro .eyebrow { color: var(--muted); margin-bottom: 24px; }
.how-intro h2 { max-width: 390px; }
.how-intro > p:not(.eyebrow) { color: var(--muted); margin: 24px 0 30px; max-width: 37ch; }
.import-steps { list-style: none; margin: 0; padding: 0; }
.import-steps--timed .step-time { font-size: .74rem; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.price-roi { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.import-steps li { position: relative; display: flex; gap: 25px; padding-bottom: 35px; }
.import-steps li:last-child { padding-bottom: 0; }
.import-steps li:not(:last-child)::after { content: ""; position: absolute; top: 49px; left: 22px; bottom: 9px; width: 1px; background: var(--line); }
.step-number { display: flex; justify-content: center; align-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-weight: 500; color: var(--amber-ink); }
.import-steps h3 { padding-top: 9px; }
.import-steps p { color: var(--muted); margin-top: 10px; font-size: .95rem; max-width: 43ch; }

/* «Як зараз — і як із Gignal» */
.vs-table { display: grid; gap: 10px; margin-top: 44px; }
.vs-row { display: grid; grid-template-columns: minmax(150px, .5fr) minmax(0, 1fr) minmax(0, 1.15fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.vs-row > span { padding: 18px 22px; font-size: .95rem; line-height: 1.55; }
.vs-row > span[role=rowheader] { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.vs-row > span[role=rowheader] svg { flex: 0 0 auto; color: var(--amber-ink); }
.vs-before { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, #c2553f 55%, transparent); text-decoration-thickness: 1px; }
.vs-after { display: flex; gap: 10px; align-items: flex-start; background: var(--amber-wash); color: var(--ink); font-weight: 500; }
.vs-after svg { flex: 0 0 auto; margin-top: 4px; color: #2c9583; }
.vs-head { border: 0; background: transparent; }
.vs-head > span { padding-block: 0 4px; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 767px) {
    .vs-head { display: none; }
    .vs-row { grid-template-columns: 1fr; }
    .vs-row > span { padding: 14px 18px; }
    .vs-row > span[role=rowheader] { padding-bottom: 0; }
}

/* «Скільки ви отримуєте насправді» */
.calc-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.calc-intro h2 { margin-top: 12px; }
.calc-intro p:not(.eyebrow) { margin-top: 18px; max-width: 44ch; color: var(--muted); }
.calc-intro .button { margin-top: 28px; }
.calc-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); padding: clamp(20px, 3vw, 32px); box-shadow: 0 40px 80px -50px var(--float-shadow); }
.calc-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.calc-inputs label { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.calc-inputs input { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: 600 1.05rem/1.2 inherit; font-variant-numeric: tabular-nums; }
.calc-inputs input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.calc-steps { display: grid; gap: 8px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.calc-steps li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; }
.calc-steps b { color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-steps .calc-minus b { color: #c2553f; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--amber); color: #132e3c; }
.calc-result small { display: block; font-size: .78rem; font-weight: 600; opacity: .8; }
.calc-result strong { display: block; margin-top: 4px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-loss { margin-top: 14px; font-weight: 600; font-size: .95rem; }
.calc-note { margin-top: 10px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .calc-result { grid-template-columns: 1fr; } }
@media (max-width: 340px) { .calc-inputs { grid-template-columns: 1fr; } }

.capabilities { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.capability { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 28px; }
.capability p { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-top: 13px; }
.capability-icon { display: inline-flex; color: var(--amber-ink); margin-bottom: 26px; }
.plan-label { display: block; color: var(--muted); font-size: .73rem; font-weight: 500; margin-bottom: 12px; }
.capability-featured { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: var(--amber-wash); padding: 36px; border-color: transparent; }
.capability-featured h3 { font-size: 2rem; font-weight: 500; letter-spacing: -.035em; max-width: 12ch; }
.capability-featured .capability-icon { margin-bottom: 45px; }
.capability-featured .text-link { margin-top: 26px; }
.capability-tax { grid-column: span 2; background: var(--wash); display: flex; align-items: start; gap: 24px; }
.capability-tax .capability-icon { margin-top: 3px; }
.capability-tax p { max-width: 60ch; }

.pricing-section { padding-top: 20px; }
.pricing-layout { display: grid; grid-template-columns: .96fr 1fr 1fr; gap: 20px; align-items: stretch; }
.pricing-intro { padding: 24px 38px 0 0; }
.pricing-intro h2 { font-size: clamp(2rem, 2.7vw, 2.6rem); }
.pricing-intro > p { color: var(--muted); margin-block: 22px; max-width: 32ch; }
.price-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.price-card-pro { border-color: var(--amber); }
.price-plan { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 600; font-size: 1rem; }
.price-plan span { color: var(--muted); font-size: .7rem; font-weight: 400; }
.price { font-size: 3.8rem; line-height: 1.1; letter-spacing: -.055em; font-weight: 500; margin: 26px 0 12px; }
.price > span { margin-left: 9px; font-size: .85rem; letter-spacing: 0; color: var(--muted); font-weight: 400; white-space: nowrap; }
.price-card > p { color: var(--muted); font-size: .9rem; }
.price-card ul { list-style: none; padding: 25px 0 30px; margin: 0; }
.price-card li { padding: 11px 0; font-size: .875rem; line-height: 1.45; }
.price-card li + li { border-top: 1px solid var(--line); }
.price-card .button { margin-top: auto; font-size: .9rem; }

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.faq-layout h2 { max-width: 390px; }
.faq-intro { color: var(--muted); margin-top: 22px; margin-bottom: 10px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; padding: 25px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 1.025rem; font-weight: 500; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--amber-ink); }
.faq-list summary svg { transition: transform .2s; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list p { font-size: .94rem; color: var(--muted); padding: 0 35px 27px 0; line-height: 1.75; }

.closing-section { padding-block: 30px 80px; }
.closing-poster { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; min-height: 570px; overflow: hidden; border-radius: 26px; color: #132e3c; background: var(--amber); }
.closing-poster .closing-copy { position: relative; z-index: 1; padding: 72px 26px 72px 64px; }
.closing-poster .closing-copy .eyebrow, .closing-poster .closing-copy > p:not(.eyebrow) { color: rgb(19 46 60 / .76); }
.closing-poster .closing-copy h2 { max-width: 560px; font-size: clamp(2.6rem, 4vw, 4.35rem); }
.closing-poster .closing-copy > p:not(.eyebrow) { max-width: 52ch; }
.closing-poster .closing-fineprint { max-width: 64ch; margin: 24px 0 0; color: rgb(19 46 60 / .72); font-size: .75rem; line-height: 1.55; }
.button-dark { border-color: #132e3c; color: #ffffff; background: #132e3c; }
.button-dark:hover { color: #ffffff; background: #1c4052; }
.button-poster-outline { border-color: rgb(19 46 60 / .38); color: #132e3c; background: transparent; }
.button-poster-outline:hover { color: #132e3c; background: rgb(255 255 255 / .18); }
.closing-poster .closing-art { align-self: stretch; display: grid; place-items: center; min-height: 0; padding: 46px 36px 38px 0; background: transparent; }
.closing-poster .closing-art img { width: min(100%, 590px); height: auto; object-fit: contain; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.closing-copy { padding: 60px 48px; }
.closing-copy .eyebrow { color: var(--muted); margin-bottom: 24px; }
.closing-copy h2 { max-width: 440px; }
.closing-copy > p:not(.eyebrow) { margin-block: 22px 28px; color: var(--muted); max-width: 42ch; font-size: 1rem; }
.closing-art { overflow: hidden; min-height: 400px; background: #102b38; }
.closing-art img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.closing-product-preview {
    display: flex; align-items: center; min-width: 0; padding: 38px 0 38px 38px;
    background: linear-gradient(135deg, #102b38, #0b1e28);
}
.closing-product-frame { display: block; width: 112%; height: 100%; }
.closing-product-preview img {
    display: block; object-position: left top;
    border: 1px solid rgb(255 255 255 / .16); border-right: 0; border-radius: 12px 0 0 12px;
    box-shadow: 0 24px 54px rgb(0 0 0 / .28);
}
.closing-product-image--dark { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .closing-product-image--light { display: none; }
    :root:not([data-theme]) .closing-product-image--dark { display: block !important; }
}
html[data-theme="light"] .closing-product-image--light { display: block; }
html[data-theme="light"] .closing-product-image--dark { display: none !important; }
html[data-theme="dark"] .closing-product-image--light { display: none; }
html[data-theme="dark"] .closing-product-image--dark { display: block !important; }
.story-img--dark { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .story-img--light { display: none; }
    :root:not([data-theme]) .story-img--dark { display: block !important; }
}
html[data-theme="light"] .story-img--light { display: block; }
html[data-theme="light"] .story-img--dark { display: none !important; }
html[data-theme="dark"] .story-img--light { display: none; }
html[data-theme="dark"] .story-img--dark { display: block !important; }
/* Для кого Gignal: вкладки-сценарії з анімованими макетами. Без JS усі три
   панелі видно одна під одною у фінальному стані; з JS (.is-enhanced) показана
   одна, лічильники й анімації стартують, коли секція з'являється у вікні. */
.audience-section { padding-top: 40px; }
.audience-section .section-heading { max-width: 640px; }
.audience { display: grid; grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr); gap: 24px; margin-top: 48px; align-items: stretch; }
.audience-tabs { display: grid; gap: 12px; grid-auto-rows: 1fr; }
.audience-tab { position: relative; overflow: hidden; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: center; width: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-align: left; transition: border-color .3s, box-shadow .4s, transform .4s cubic-bezier(.16,1,.3,1), background .3s; }
.audience-tab strong { display: block; font-size: 1.12rem; letter-spacing: -.02em; }
.audience-tab small { display: block; margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.audience-tab-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--wash); color: var(--amber-ink); transition: background .3s, color .3s, transform .4s cubic-bezier(.16,1,.3,1); }
.audience-tab:hover { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.audience-tab[aria-selected="true"] { border-color: var(--amber); transform: translateX(8px); box-shadow: 0 22px 44px -28px var(--float-shadow); }
.audience-tab[aria-selected="true"] .audience-tab-icon { background: var(--amber); color: #132e3c; transform: rotate(-6deg) scale(1.06); }
.audience-tab-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.audience.is-playing .audience-tab[aria-selected="true"] .audience-tab-bar { animation: aud-bar 8s linear forwards; }
.audience.is-paused .audience-tab-bar { animation-play-state: paused; }
.audience-stage { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background:
    radial-gradient(60% 80% at 92% 8%, color-mix(in srgb, var(--amber) 26%, transparent), transparent 70%),
    radial-gradient(55% 70% at 4% 100%, color-mix(in srgb, #2c9583 18%, transparent), transparent 72%),
    var(--surface); box-shadow: 0 40px 90px -58px var(--float-shadow); }
.audience-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .55; mask-image: linear-gradient(115deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 90%); pointer-events: none; }
.audience-panel { position: relative; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: 40px; align-items: center; min-height: 500px; padding: 48px; }
.audience:not(.is-enhanced) .audience-panel + .audience-panel { border-top: 1px solid var(--line); }
.audience.is-enhanced .audience-tabs { display: grid; }
.audience:not(.is-enhanced) .audience-tabs { display: none; }
.audience:not(.is-enhanced) { grid-template-columns: 1fr; }
.audience.is-enhanced .audience-panel:not(.is-active) { display: none; }
.audience-eyebrow { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--amber-wash); color: var(--amber-ink); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.audience-copy h3 { margin-top: 18px; font-size: clamp(1.6rem, 2.5vw, 2.25rem); line-height: 1.16; letter-spacing: -.035em; }
.audience-copy > p:not(.audience-eyebrow) { margin-top: 16px; max-width: 36ch; color: var(--muted); }
.audience-copy .text-link { margin-top: 24px; }
.audience-note { margin-top: 18px; color: var(--muted); font-size: .8rem; text-align: right; }

/* Макет продукту */
.mock { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 50px 90px -46px var(--float-shadow), 0 2px 0 rgb(255 255 255 / .04) inset; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transform-origin: 30% 50%; }
.mock-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.mock-chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-chrome i:first-child { background: #e4796b; }
.mock-chrome i:nth-child(2) { background: var(--amber); }
.mock-chrome i:nth-child(3) { background: #4cc2ad; }
.mock-chrome span { margin-left: 10px; }
.mock-body { display: grid; gap: 14px; padding: 20px; }
.mock b { font-weight: 600; }
.mock small { display: block; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.mock-avatar { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--amber-wash); color: var(--amber-ink); font-weight: 700; font-size: .82rem; }
.mock-avatar--b { background: color-mix(in srgb, #3d6f91 22%, var(--surface)); color: #3d6f91; }
.mock-avatar--c { background: color-mix(in srgb, #2c9583 22%, var(--surface)); color: #2c9583; }
html[data-theme="dark"] .mock-avatar--b { color: #7eb1d4; }
html[data-theme="dark"] .mock-avatar--c { color: #4cc2ad; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .mock-avatar--b { color: #7eb1d4; }
    :root:not([data-theme]) .mock-avatar--c { color: #4cc2ad; }
}
.mock-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--amber) 70%, var(--line)); border-radius: 12px; background: var(--amber-wash); color: var(--amber-ink); font-size: .9rem; }
.mock-file span { margin-left: auto; font-size: .76rem; opacity: .85; }
.mock-progress { height: 6px; overflow: hidden; border-radius: 999px; background: var(--wash); }
.mock-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), #f6c453); transform-origin: left; }
.mock-rows, .mock-bars, .mock-team-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mock-rows li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 22px; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.mock-rows em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2c9583; color: #fff; }
.mock-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.mock-total strong { color: var(--ink); font-size: 1.7rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mock-total--accent { margin-top: 2px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--amber); color: #132e3c; }
.mock-total--accent strong { color: #132e3c; font-size: 2rem; }
.mock-pay { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid color-mix(in srgb, #2c9583 45%, var(--line)); border-radius: 14px; background: color-mix(in srgb, #2c9583 9%, var(--surface)); }
.mock-pay-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #2c9583; color: #fff; }
.mock-pay b { font-size: 1.15rem; }
.mock-pay strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mock-bars li { display: grid; gap: 7px; }
.mock-bars li > div { display: flex; justify-content: space-between; font-size: .88rem; }
.mock-bars li > div b { font-variant-numeric: tabular-nums; }
.mock-bars i { display: block; height: 9px; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #3d6f91, #7eb1d4); transform-origin: left; }
.mock-bars li + li i { background: linear-gradient(90deg, #2c9583, #4cc2ad); }
.mock-table-head, .mock-team-rows li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: 12px; align-items: center; }
.mock-table-head { padding: 0 12px; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.mock-team-rows li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.mock-team-rows li > div:first-child { display: flex; align-items: center; gap: 10px; }
.mock-team-rows em { font-style: normal; font-variant-numeric: tabular-nums; }
.mock-margin { display: flex; align-items: center; gap: 10px; }
.mock-margin i { display: block; flex: 1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--amber), #f6c453) left / var(--m) 100% no-repeat, var(--wash); transform-origin: left; }
.mock-margin b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.mock-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 18px 36px -16px var(--float-shadow); color: var(--ink); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.mock-chip svg { color: #2c9583; }
.mock-chip--a { right: 24px; bottom: -18px; }
.mock-chip--b { left: 24px; bottom: -18px; }
.mock-chip--b svg { color: var(--amber-ink); }
.mock-chip--c { right: 24px; top: -16px; }
.mock-chip--c svg { color: #3d6f91; }

@keyframes aud-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
    .audience.is-enhanced:not(.is-live) .audience-panel * { animation-play-state: paused !important; }
    .audience-panel.is-active .audience-copy > * { animation: aud-rise .7s cubic-bezier(.16,1,.3,1) both; }
    .audience-panel.is-active .audience-copy > :nth-child(2) { animation-delay: .08s; }
    .audience-panel.is-active .audience-copy > :nth-child(3) { animation-delay: .16s; }
    .audience-panel.is-active .audience-copy > :nth-child(4) { animation-delay: .24s; }
    .audience-panel.is-active .mock { animation: aud-mock .9s cubic-bezier(.16,1,.3,1) both; }
    .audience:not(.is-enhanced) .audience-panel .mock, .audience:not(.is-enhanced) .audience-panel .audience-copy > * { animation: none; }
    .audience-panel.is-active .mock-file { animation: aud-drop .7s cubic-bezier(.34,1.4,.64,1) .35s both; }
    .audience-panel.is-active .mock-progress span { animation: aud-fill 1.1s cubic-bezier(.45,0,.2,1) 1s both; }
    .audience-panel.is-active .mock-rows li { animation: aud-rise .6s cubic-bezier(.16,1,.3,1) calc(1.9s + var(--i) * .22s) both; }
    .audience-panel.is-active .mock-rows .mock-tick { animation: aud-pop .45s cubic-bezier(.34,1.7,.64,1) calc(2.2s + var(--i) * .22s) both; }
    .audience-panel.is-active .mock-total { animation: aud-rise .6s ease 2.2s both; }
    .audience-panel.is-active .mock-pay { animation: aud-slide .7s cubic-bezier(.16,1,.3,1) .45s both; }
    .audience-panel.is-active .mock-bars li { animation: aud-rise .5s ease calc(1.5s + var(--i) * .2s) both; }
    .audience-panel.is-active .mock-bars i { animation: aud-grow 1s cubic-bezier(.16,1,.3,1) calc(1.6s + var(--i) * .2s) both; }
    .audience-panel.is-active .mock-total--accent { animation: aud-rise .6s ease 2.1s both, aud-glow 1.6s ease 3.2s 1; }
    .audience-panel.is-active .mock-table-head { animation: aud-rise .5s ease .5s both; }
    .audience-panel.is-active .mock-team-rows li { animation: aud-rise .6s cubic-bezier(.16,1,.3,1) calc(.8s + var(--i) * .2s) both; }
    .audience-panel.is-active .mock-margin i { animation: aud-grow 1s cubic-bezier(.16,1,.3,1) calc(1.3s + var(--i) * .2s) both; }
    .audience-panel.is-active .mock-chip { animation: aud-chip .6s cubic-bezier(.34,1.5,.64,1) 3.2s both, aud-float 4s ease-in-out 3.8s infinite; }
    .audience-panel.is-active .mock-chip--c { animation-delay: 2.6s, 3.2s; }
    .audience-tab, .audience-tab-icon { will-change: transform; }
}
@keyframes aud-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes aud-mock { from { opacity: 0; transform: perspective(1400px) rotateY(-14deg) rotateX(6deg) translateY(26px) scale(.96); } }
@keyframes aud-drop { from { opacity: 0; transform: translateY(-34px) rotate(-3deg); } }
@keyframes aud-fill { from { transform: scaleX(0); } }
@keyframes aud-grow { from { transform: scaleX(0); } }
@keyframes aud-pop { from { opacity: 0; transform: scale(.2); } }
@keyframes aud-slide { from { opacity: 0; transform: translateX(-36px); } }
@keyframes aud-chip { from { opacity: 0; transform: translateY(14px) scale(.8); } }
@keyframes aud-float { 50% { transform: translateY(-6px); } }
@keyframes aud-glow { 40% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--amber) 35%, transparent); } }
@media (max-width: 1100px) {
    .audience { grid-template-columns: 1fr; margin-top: 36px; }
    .audience.is-enhanced .audience-tabs { grid-auto-rows: auto; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
    .audience-tab { scroll-snap-align: start; padding: 16px 18px; }
    .audience-tab[aria-selected="true"] { transform: translateY(-3px); }
    .audience-panel { grid-template-columns: 1fr; min-height: 0; padding: 36px 32px 44px; gap: 36px; }
    .audience-copy > p:not(.audience-eyebrow) { max-width: 52ch; }
}
@media (max-width: 640px) {
    .audience-panel { padding: 28px 18px 40px; }
    .mock { transform: none; margin-bottom: 18px; }
    .mock-body { padding: 16px; }
    .mock-chip--a, .mock-chip--b, .mock-chip--c { right: 12px; left: auto; bottom: -16px; top: auto; }
    .mock-table-head, .mock-team-rows li { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr); gap: 8px; }
    .mock-team-rows li { padding: 8px; }
    .mock-avatar { flex-basis: 28px; width: 28px; height: 28px; }
    .audience-note { text-align: left; }
}
.site-footer {
    --footer-bg: #e8edeb; --footer-strong: #132e3c; --footer-text: #40555f;
    --footer-muted: #4f6068; --footer-line: #cbd6d2; --footer-cta: #8a5200;
    position: relative; overflow: hidden; border-top: 1px solid var(--footer-line);
    color: var(--footer-strong); background: var(--footer-bg);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .site-footer {
        --footer-bg: #0b1318; --footer-strong: #eef1f2; --footer-text: #c6d0d3;
        --footer-muted: #8a979d; --footer-line: #26343b; --footer-cta: var(--amber);
    }
}
html[data-theme="dark"] .site-footer {
    --footer-bg: #0b1318; --footer-strong: #eef1f2; --footer-text: #c6d0d3;
    --footer-muted: #8a979d; --footer-line: #26343b; --footer-cta: var(--amber);
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--amber) 35%, #2e9f86 64%, transparent); opacity: .8; }
.footer-main { display: grid; grid-template-columns: minmax(270px, 1.05fr) minmax(520px, 1.6fr); gap: clamp(70px, 9vw, 150px); padding-block: 72px 64px; }
.footer-brand { position: relative; min-height: 220px; }
.footer-logo { color: var(--footer-strong); width: fit-content; }
.footer-logo img { width: 36px; height: 36px; }
.footer-promise { max-width: 31ch; margin-top: 19px; color: var(--footer-text); font-size: .94rem; line-height: 1.65; }
.footer-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 25px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--footer-cta, var(--amber)); font-size: .9rem; font-weight: 600; text-decoration: none; }
.footer-cta svg { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.footer-cta:hover svg { transform: translateX(5px); }
.footer-mascot { position: absolute; right: -22px; bottom: -32px; width: 142px; height: 142px; object-fit: contain; opacity: .56; filter: brightness(0) saturate(100%) invert(67%) sepia(97%) saturate(2032%) hue-rotate(359deg) brightness(99%) contrast(102%); transform: rotate(-4deg); pointer-events: none; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.footer-links section { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.footer-links h2 { margin-bottom: 7px; color: var(--footer-muted); font-size: .67rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; }
.footer-links a { position: relative; color: var(--footer-text); font-size: .85rem; line-height: 1.4; text-decoration: none; transition: color .18s, transform .18s; }
.footer-links a:hover { color: var(--footer-strong); transform: translateX(3px); }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-status span { width: 7px; height: 7px; border-radius: 50%; background: #53d49b; box-shadow: 0 0 0 4px rgb(83 212 155 / .1); }
.footer-bottom { border-top: 1px solid var(--footer-line); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--footer-muted); font-size: .73rem; padding-block: 22px 26px; }
.footer-assurance { display: inline-flex; align-items: center; gap: 7px; text-align: right; }
.footer-assurance svg { color: var(--footer-cta, var(--amber)); }
.preview-dialog { padding: 0; border: 1px solid var(--line); border-radius: 12px; width: min(1440px, 94vw); max-width: 94vw; max-height: 94dvh; overflow: hidden; background: var(--surface); }
.preview-dialog::backdrop { background: rgb(6 18 26 / .8); }
.dialog-image-scroll { overflow: auto; max-height: calc(94dvh - 62px); }
.dialog-image-scroll > img { width: 100%; }
.dialog-close { margin: 8px 8px 8px auto; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; }

/* Motion communicates hierarchy on entry, and the selection of a new view.
   Content is visible by default even if JS or observers are unavailable. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
    .hero-copy { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
    @keyframes product-arrive { from { opacity: 0; transform: translateY(18px) rotate(0); } }
    @keyframes mascot-arrive { from { opacity: 0; transform: translate(20px, 16px) rotate(8deg); } }
    @keyframes mascot-welcome-mark { 0%, 42% { opacity: 0; transform: rotate(-34deg) scaleX(.4); } 70% { opacity: 1; transform: rotate(-34deg) scaleX(1.15); } 100% { opacity: .7; transform: rotate(-34deg) scaleX(1); } }
    @keyframes mascot-guide-mark { 0%, 50% { opacity: 0; transform: rotate(-80deg) scale(.5); } 100% { opacity: .65; transform: rotate(-24deg) scale(1); } }
    @keyframes mascot-speed-mark { 0%, 32% { opacity: 0; transform: translateX(10px) rotate(-12deg) scaleX(.35); } 72% { opacity: .8; } 100% { opacity: .55; transform: translateX(0) rotate(-12deg) scaleX(1); } }
    .hero-product-main { animation: product-arrive .85s cubic-bezier(.16,1,.3,1) both; }
    .hero-product-money { animation: product-arrive .8s .16s cubic-bezier(.16,1,.3,1) both; }
    .hero-product-time { animation: product-arrive .8s .26s cubic-bezier(.16,1,.3,1) both; }
    .hero-mascot { animation: mascot-arrive .75s .48s cubic-bezier(.16,1,.3,1) both; }
    .public-page-mascot { animation: mascot-arrive .7s .2s cubic-bezier(.16,1,.3,1) both; }
    .public-page-mascot--welcome::after { animation: mascot-welcome-mark .95s .48s cubic-bezier(.16,1,.3,1) both; }
    .public-page-mascot--guide::after { animation: mascot-guide-mark .9s .56s cubic-bezier(.16,1,.3,1) both; }
    .public-page-mascot--momentum::after { animation: mascot-speed-mark .85s .46s cubic-bezier(.16,1,.3,1) both; }
    [data-reveal].reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
    [data-reveal].reveal-ready.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero-product-main, .hero-product-main:hover, .button:active { transform: none; }
}
@media (max-width: 1200px) {
    .wrap { width: calc(100% - 64px); }
    .nav-links { gap: 18px; }
    .nav-actions { gap: 16px; }
    .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; min-height: 550px; }
    .hero-stage { width: 650px; height: 510px; }
    .hero-product-main { width: 590px; left: 30px; }
    .hero-product-money { width: 300px; left: -10px; max-height: 185px; }
    .hero-product-time { width: 270px; right: 0; max-height: 168px; }
    .hero-mascot { right: 2px; width: 138px; }
    .hero h1 { font-size: 4.9vw; }
    .hero-actions { gap: 12px; }
    .hero-actions .button { padding-inline: 16px; }
    .problem-grid, .how-layout, .faq-layout { gap: 65px; }
    .pricing-layout { grid-template-columns: 1fr 1fr; }
    .pricing-intro { grid-column: 1 / -1; padding: 0 0 15px; }
    .pricing-intro h2 { max-width: none; }
    .pricing-intro > p { max-width: 55ch; margin-block: 14px; }
}
@media (max-width: 1023px) {
    /* права колонка футера має мінімум 520px — на планшеті «Правова інформація» виходила за край */
    .footer-main { grid-template-columns: 1fr; gap: 48px; }
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .nav-actions > .public-preferences { display: none; }
    .section { padding-block: 76px; }
    .hero { padding-top: 45px; }
    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 38px; }
    .hero-copy { max-width: 680px; }
    .hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
    .hero-stage { width: min(760px, 92vw); height: min(580px, 70vw); margin-inline: auto; }
    .hero-product-main { width: 91%; left: 4.5%; }
    .hero-product-money { width: 47%; left: 0; }
    .hero-product-time { width: 42%; right: 0; }
    .hero-mascot { right: 4px; width: 150px; }
    .hero-lede { font-size: 1rem; }
    .public-page-mascot { top: 34px; right: 34px; width: 118px; }
    main:has(.auth-section) .public-page-mascot { top: 190px; right: 34px; left: auto; width: 108px; }
    .public-page-mascot--momentum { width: 180px; }
    .accuracy-list { grid-template-columns: 1fr 1fr; }
    .accuracy-list > li:last-child { grid-column: 1 / -1; }
    .capabilities { grid-template-columns: 1fr 1fr; }
    .capability-featured { grid-row: auto; padding: 28px; }
    .capability-featured h3 { font-size: 1.5rem; max-width: 18ch; }
    .capability-featured .capability-icon { margin-bottom: 26px; }
    .capability-tax { grid-column: auto; display: block; }
    .closing-copy { padding: 40px 32px; }
    .closing-poster { grid-template-columns: 1fr 1fr; min-height: 500px; }
    .closing-poster .closing-copy { padding: 52px 10px 52px 42px; }
    .closing-poster .closing-copy h2 { font-size: clamp(2.35rem, 5vw, 3.4rem); }
    .closing-poster .closing-art { padding: 34px 24px 30px 0; }
}
@media (max-width: 767px) {
    .wrap { width: calc(100% - 40px); }
    .section { padding-block: 64px; }
    h2 { font-size: 2.15rem; }
    .nav-inner { height: 68px; gap: 12px; }
    .nav-actions { gap: 10px; }
    .nav-actions > .login-link { display: none; }
    .nav-actions > .button-small { font-size: .75rem; padding-inline: 11px; min-height: 40px; gap: 6px; }
    .nav-actions > .button-small svg { display: none; }
    .brand { gap: 7px; }
    .brand span { font-size: .95rem; }
    .brand img { width: 28px; height: 28px; }
    .public-page-mascot { top: 16px; right: 13px; width: 62px; opacity: .96; }
    main:has(.auth-section) .public-page-mascot { top: 76px; right: 14px; width: 64px; }
    .auth-copy .eyebrow, .auth-copy h1 { padding-right: 72px; }
    .public-page-mascot--momentum { top: 10px; width: 72px; }
    .hero { padding-top: 35px; }
    .hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; min-height: 0; }
    .hero-copy { padding-bottom: 0; }
    .hero-copy .eyebrow { font-size: .66rem; margin-bottom: 20px; }
    .hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
    html[lang="en"] .hero h1 { font-size: clamp(1.95rem, 7.3vw, 3.8rem); }
    .hero-lede { margin-top: 22px; max-width: 40ch; font-size: 1rem; }
    .hero-actions { margin-top: 24px; gap: 12px 18px; }
    .hero-actions .button { min-height: 48px; font-size: .9rem; }
    .hero-actions .text-link { font-size: .83rem; gap: 7px; }
    .hero-stage { width: calc(100% + 12px); height: min(410px, 91vw); margin-left: -6px; }
    .hero-stage::before { width: 70vw; height: 70vw; max-width: 340px; max-height: 340px; top: 25px; left: 15%; }
    .hero-product { border-radius: 10px; }
    .hero-product-main { width: 94%; top: 22px; left: 3%; transform: none; }
    .hero-product-main:hover { transform: none; }
    .hero-product-money { width: 48%; left: -2px; bottom: 4px; max-height: 31vw; transform: rotate(2deg); }
    .hero-product-time { display: none; }
    .hero-mascot { right: -2px; bottom: -12px; width: 118px; }
    .product-chrome { padding: 9px 12px; font-size: .6rem; }
    .hero-foundation { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-block: 18px; font-size: .72rem; }
    .hero-foundation > span + span, .proof-promo + span { padding-left: 0; border-left: 0; }
    .proof-promo { flex-basis: 100%; margin-bottom: 3px; }
    .problem-grid, .how-layout, .faq-layout { grid-template-columns: 1fr; gap: 34px; }
    .problem-grid h2 { font-size: 2.15rem; max-width: 430px; }
    .accuracy-list { grid-template-columns: minmax(0, 1fr); }
    .accuracy-list > li { padding: 22px 20px 24px; }
    .problem-benefits { gap: 24px; }
    .problem-benefits > div { gap: 16px; }
    .problem-benefits h3 { font-size: 1.1rem; }
    .problem-benefits p { font-size: .92rem; }
    .section-heading { margin-bottom: 30px; }
    .section-heading p { font-size: .96rem; }
    .product-section { padding-top: 0; }
    .flow-statement { min-height: auto; }
    .flow-statement-sticky { min-height: 72svh; padding: 70px 20px; }
    .flow-statement h2 { font-size: clamp(2.15rem, 9vw, 3.4rem); }
    .product-story, .story-steps { gap: 52px; }
    .story-step { grid-template-columns: 1fr; gap: 22px; }
    .story-copy { gap: 14px; }
    .story-copy h3 { font-size: 1.3rem; }
    .story-copy p { margin-top: 8px; font-size: .91rem; }
    .story-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; }
    .story-screen { border-radius: 10px; }
    .story-footer { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 28px; }
    .how-intro h2 { max-width: 370px; }
    .how-intro > p:not(.eyebrow) { font-size: .96rem; }
    .import-steps li { gap: 18px; }
    .import-steps h3 { font-size: 1.1rem; }
    .import-steps p { font-size: .91rem; }
    .capabilities { grid-template-columns: 1fr; gap: 14px; }
    .capability { padding: 26px; }
    .capability-featured { grid-row: auto; }
    .capability-tax { grid-column: auto; }
    .capability-featured h3 { font-size: 1.65rem; }
    .capability-icon { margin-bottom: 20px; }
    .pricing-layout { grid-template-columns: 1fr; gap: 18px; }
    .pricing-intro { grid-column: auto; margin-bottom: 8px; }
    .price-card { padding: 27px; }
    .price-card .button { width: 100%; }
    .faq-list summary { font-size: .97rem; padding-block: 23px; }
    .faq-list p { font-size: .91rem; padding-right: 15px; }
    .closing-section { padding-block: 0 50px; }
    .closing-grid { grid-template-columns: 1fr; }
    .closing-poster { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
    .closing-copy { padding: 32px 25px; }
    .closing-poster .closing-copy { padding: 38px 26px 10px; }
    .closing-copy h2 { font-size: 2.1rem; }
    .closing-poster .closing-copy h2 { font-size: clamp(2.2rem, 10.5vw, 3.1rem); }
    .closing-actions .button { width: 100%; }
    .closing-copy .eyebrow { font-size: .62rem; }
    .closing-copy > p:not(.eyebrow) { font-size: .95rem; }
    .closing-art { min-height: 0; height: 260px; }
    .closing-art img { object-position: center 65%; }
    .closing-product-preview { padding: 24px 0 24px 24px; }
    .closing-product-frame { width: 108%; }
    .closing-product-preview img { object-position: left top; }
    .closing-poster .closing-art { height: auto; padding: 6px 10px 22px; }
    .closing-poster .closing-art img { width: min(108%, 560px); object-position: center; }
    .dialog-image-scroll > img { width: 1000px; max-width: none; }
    .footer-main { grid-template-columns: 1fr; padding-block: 42px 34px; gap: 42px; }
    .footer-brand { min-height: 0; padding-right: 100px; }
    .footer-promise { max-width: 30ch; }
    .footer-mascot { right: -8px; bottom: -8px; width: 112px; height: 112px; }
    .footer-links { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; padding-block: 20px; }
    .footer-assurance { text-align: left; }
}
@media (max-width: 374px) {
    .wrap { width: calc(100% - 32px); }
    .brand span { font-size: .82rem; }
    .nav-actions { gap: 2px; }
    .nav-actions > .button-small { font-size: .69rem; padding-inline: 9px; }
    .hero-actions { align-items: start; flex-direction: column; }
    .footer-brand { padding-right: 72px; }
    .footer-mascot { width: 90px; height: 90px; }
    .footer-links { grid-template-columns: 1fr; }
}

@media print {
    .site-nav { position: static; }
    [data-reveal].reveal-ready,
    .flow-statement.is-armed [data-flow-word] { opacity: 1; transform: none; }
    .hero-grid { min-height: 0; }
    .hero-stage { width: 100%; height: auto; }
    .hero-stage::before, .hero-product-money, .hero-product-time, .hero-mascot { display: none; }
    .hero-product-main { width: 100%; position: static; transform: none; box-shadow: none; }
    .flow-statement, .flow-statement.is-armed { min-height: auto; }
    .flow-statement-sticky, .flow-statement.is-armed .flow-statement-sticky { min-height: 0; height: auto; position: static; padding-block: 80px; }
    .product-story.is-enhanced { display: block; }
    .product-story.is-enhanced .story-steps { gap: 52px; }
    .product-story.is-enhanced .story-step { min-height: 0; display: grid; grid-template-columns: 1fr; gap: 22px; opacity: 1; break-inside: avoid; }
    .product-story.is-enhanced .story-step > .story-screen { display: block; }
    .product-story.is-enhanced .story-stage { display: none; }
}

/* Pricing page — ті самі токени, ритм і картки планів, що на лендінгу. Нове тут
   лише порівняльна таблиця: у ній сенс сторінки, тож вона читається як таблиця
   (заголовки рядків і груп), а не як сітка з галочками. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.plans-hero { padding-top: 64px; }
.plans-hero-inner > * { max-width: 760px; }
.plans-hero .eyebrow { color: var(--muted); margin-bottom: 22px; }
.plans-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.09; letter-spacing: -.045em; font-weight: 600; }
.plans-lede { margin-top: 24px; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.plans-section { padding-top: 56px; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan-card { padding: 34px; }
.plan-card .price { margin-top: 22px; }
.plan-card .button { margin-top: auto; }
.plan-note { margin-top: 16px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.plan-note strong { color: var(--ink); font-weight: 600; }
.plans-seats { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); }
.plans-seats p { color: var(--muted); font-size: .92rem; max-width: 78ch; }
.compare-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; contain: paint; }
.compare-table { width: 100%; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td { padding: 15px 24px; border-bottom: 1px solid var(--line); font-weight: 400; }
.compare-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.compare-table thead th:not(:first-child), .compare-table td { width: 136px; text-align: center; }
.compare-table tbody th[scope="row"] { font-size: .95rem; }
.compare-table td { color: var(--muted); }
.compare-table td svg { color: var(--amber-ink); }
.compare-table .pro-cell { background: var(--amber-wash); }
.compare-table .compare-group { background: var(--wash); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; width: auto; text-align: left; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.closing-grid-plain { grid-template-columns: 1fr; }
.closing-grid-plain .closing-copy { padding: 56px 48px; }
.closing-grid-plain .hero-actions { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 1023px) {
    .plans-hero { padding-top: 40px; }
    .plans-section { padding-top: 40px; }
    .plan-card { padding: 28px; }
}
@media (max-width: 767px) {
    .plans-hero { padding-top: 30px; }
    .plans-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .plans-lede { font-size: .98rem; margin-top: 20px; }
    .plans-section { padding-top: 30px; }
    .plans-grid { grid-template-columns: 1fr; gap: 16px; }
    .plan-card { padding: 26px; }
    .plans-seats { align-items: flex-start; gap: 12px; padding: 18px; }
    .plans-seats p { font-size: .88rem; }
    .compare-card { overflow-x: auto; }
    .compare-table { table-layout: fixed; }
    .compare-table th, .compare-table td { padding: 12px 10px; }
    .compare-table thead th:not(:first-child), .compare-table td { width: 64px; }
    .closing-grid-plain .closing-copy { padding: 32px 25px; }
}

/* Рядок акції в герої — єдиний вхід в акцію на сторінці. Вікно поверх лендінгу
   свідомо прибрали: воно перекривало сторінку одразу на вході. Тут же акція
   нікому не заважає, видима без JS і лишається на місці весь час.
   Навмисно стриманий: головний акцент героя лишається за кнопкою, тут акцент
   несе лише число. */

/* Публічна довідка — ті самі токени й ритм. Читається як посібник: розділи
   розгорнуті, зміст ліворуч тримається на sticky без JS. Єдиний акцентний
   елемент — сходинка 5 станів грошей: це справжня послідовність, тому тут
   нумерація доречна, а амбер дістається лише «Отримано», бо лише цей стан
   рахується доходом. Префікс guide- навмисний: .docs-* належать внутрішній
   довідці в оболонці застосунку. */
.guide-hero { padding: 64px 0 40px; }
/* Відступ 304px = колонка змісту (232) + проміжок (72): заголовок стоїть рівно
   над текстом статті, тож на сторінці лишається два ліві краї, а не три. */
.guide-hero-inner { padding-left: 304px; }
.guide-hero-inner > * { max-width: 760px; }
.guide-hero .eyebrow { margin-bottom: 22px; }
.guide-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.09; letter-spacing: -.045em; font-weight: 600; }
.guide-lede { margin-top: 24px; color: var(--muted); font-size: 1.05rem; max-width: 56ch; }
.guide-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 72px; padding-bottom: 96px; align-items: start; }
.guide-toc { position: sticky; top: 112px; }
.guide-toc .eyebrow { margin-bottom: 16px; }
.guide-toc ul { margin: 0 0 12px; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.guide-toc li + li { margin-top: 2px; }
.guide-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 18px; border-left: 1px solid transparent; color: var(--muted); font-size: .93rem; line-height: 1.35; text-decoration: none; transition: color .2s, border-color .2s; }
.guide-toc a:hover { color: var(--ink); border-left-color: var(--amber); }
.guide-article { max-width: 68ch; }
.guide-block { padding-top: 48px; scroll-margin-top: 112px; }
.guide-block:first-child { padding-top: 8px; }
.guide-block + .guide-block { border-top: 1px solid var(--line); }
.guide-block h2 { font-size: 1.62rem; line-height: 1.2; letter-spacing: -.03em; margin-bottom: 18px; }
.guide-block * + h2 { margin-top: 48px; }
.guide-toc .guide-toc-cta { display: inline-flex; margin: 18px 0 0; padding: 10px 16px; border: 0; color: #132e3c; font-weight: 600; }
.guide-toc .guide-toc-cta:hover { color: #132e3c; border: 0; }
.guide-block .button { margin-top: 6px; }
/* Кнопка калькулятора на публічній сторінці була сірою кнопкою браузера. */
.calc-form button { border: 0; border-radius: 8px; background: var(--amber); color: #132e3c; font-weight: 600; cursor: pointer; min-height: 44px; }
.calc-form button:hover { background: var(--amber-hover); }
.guide-block p + p, .guide-block > * + p { margin-top: 16px; }
.guide-block p { color: var(--muted); }
.guide-block h3 { margin-top: 38px; margin-bottom: 0; font-size: 1.05rem; line-height: 1.3; letter-spacing: -.01em; }
.guide-block h3 + p { margin-top: 8px; }
.guide-list { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.guide-list li + li { margin-top: 8px; }
.guide-roles { margin: 20px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.guide-roles > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 16px 22px; background: var(--surface); }
.guide-roles dt { font-weight: 600; }
.guide-roles dd { margin: 0; color: var(--muted); font-size: .95rem; }
.guide-states { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: none; }
.guide-state { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 0 0 22px; position: relative; }
.guide-state::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--line); }
.guide-state:last-child { padding-bottom: 0; }
.guide-state:last-child::before { display: none; }
.guide-state-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.guide-state h3 { margin-top: 0; padding-top: 10px; } /* без margin з .guide-block h3: інакше підпис зʼїжджав нижче за кружечок */
.guide-state p { margin-top: 6px; font-size: .95rem; }
.guide-state.is-final .guide-state-num { border-color: var(--amber); background: var(--amber); color: #132e3c; }
.guide-state.is-final h3 { color: var(--amber-ink); }
.guide-note { display: flex; gap: 14px; margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--wash); font-size: .95rem; }
.guide-note svg { color: var(--amber-ink); margin-top: 3px; }
.guide-note span { color: var(--ink); }
@media (max-width: 1023px) {
    .guide-hero { padding-top: 40px; }
    .guide-hero-inner { padding-left: 0; }
    .guide-layout { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
    .guide-toc { position: static; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
    .guide-toc ul { display: flex; flex-wrap: wrap; gap: 4px 0; border-left: 0; }
    .guide-toc li + li { margin-top: 0; }
    .guide-toc a { margin-left: 0; padding: 8px 16px 8px 0; border-left: 0; }
    .guide-toc a:hover { border-left-color: transparent; text-decoration: underline; text-underline-offset: 5px; }
    .guide-article { max-width: none; }
}
@media (max-width: 767px) {
    .guide-hero { padding-top: 30px; }
    .guide-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    .guide-lede { font-size: .98rem; margin-top: 20px; }
    .guide-block { padding-top: 36px; }
    .guide-block h2 { font-size: 1.4rem; }
    .guide-roles > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
    .guide-state { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
    .guide-state::before { left: 18px; top: 38px; }
    .guide-state-num { width: 38px; height: 38px; font-size: .88rem; }
    .guide-state h3 { padding-top: 7px; }
    .guide-note { padding: 16px 18px; }
}

/* Реєстрація й правові сторінки — ті самі токени, що решта публічних сторінок.
   Колір помилки задано тут локально (у палітрі лендінга його не було), світла й
   темна версії поруч, щоб не розсинхронізувались. */
.auth-section { padding: 56px 0 96px; }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 72px; align-items: start; }
.auth-copy h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; margin-top: 20px; }
.auth-lede { margin-top: 20px; color: var(--muted); max-width: 46ch; }
.auth-points { margin: 28px 0 0; padding: 0; list-style: none; }
.auth-points li { padding: 11px 0; color: var(--muted); font-size: .95rem; }
.auth-points li + li { border-top: 1px solid var(--line); }
.auth-card { --danger: #a33327; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.auth-card form { margin: 0; }
.auth-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; }
.auth-card label { font-size: .88rem; font-weight: 600; }
.auth-card input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; }
.auth-card input:hover { border-color: var(--muted); }
.auth-card small { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.auth-card .field-error, .auth-error { color: var(--danger); font-size: .85rem; line-height: 1.5; }
.auth-error { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--danger); border-radius: 8px; }
.auth-card .button { width: 100%; margin-top: 4px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; }
.auth-google:hover { border-color: var(--muted); }
.google-signup-form { display: flex; flex-direction: column; gap: 14px; }
.auth-consent { display: grid !important; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0 0 17px; color: var(--muted); font-size: .84rem !important; font-weight: 400 !important; line-height: 1.45; cursor: pointer; }
.auth-consent--google { margin-bottom: 0; }
.auth-card .auth-consent input { appearance: none; display: grid; place-items: center; width: 19px; min-width: 19px; min-height: 19px; height: 19px; margin: 1px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.auth-card .auth-consent input::after { content: ""; width: 5px; height: 9px; border: solid #132e3c; border-width: 0 2px 2px 0; opacity: 0; transform: translateY(-1px) rotate(45deg) scale(.5); transition: opacity .15s, transform .15s; }
.auth-card .auth-consent input:checked { border-color: var(--amber); background: var(--amber); }
.auth-card .auth-consent input:checked::after { opacity: 1; transform: translateY(-1px) rotate(45deg) scale(1); }
.auth-consent a { color: var(--amber-ink); text-underline-offset: 3px; }
.consent-error { display: block; margin: -10px 0 14px 30px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: .82rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-legal { margin: 18px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
/* На вході під формою два посилання, на реєстрації одне — тож це flex із
   переносом, а не текстовий рядок. */
.auth-alt { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; }
/* «Забули пароль?» — тихе посилання під полем пароля; перехід вхід ↔ реєстрація — окремий
   помітний рядок, а не два підкреслені посилання в одну лінію (власник, 2026-10-08). */
.auth-forgot { margin: -8px 0 16px; text-align: right; font-size: .86rem; }
.auth-forgot a { color: var(--muted); text-decoration: none; }
.auth-forgot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-switch {
    display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
    margin-top: 22px; padding: 14px 16px; border-radius: 10px; background: var(--wash);
    color: var(--muted); font-size: .94rem;
}
.auth-switch a { color: var(--amber-ink, var(--ink)); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-card small ul { margin: 6px 0 0; padding-left: 17px; }
.auth-card small li + li { margin-top: 4px; }
.legal-subnav { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.legal-subnav .wrap { display: flex; justify-content: center; }
.legal-hero { padding: 52px 0 32px; }
/* Заголовок і текст документа — одна колонка зі спільними лівим і правим
   краями, відцентрована у .wrap. Ширину обмежуємо дітям, а не самому блоку:
   max-width на блоці разом з авто-полями .wrap дав би два різні ліві краї —
   заголовок окремо, текст документа окремо. Міра в px, а не ch, бо ch
   рахується від кегля самого елемента, і в h1 та в абзаці це різна ширина. */
.legal-hero-inner > * { max-width: 930px; margin-inline: auto; }
.legal-hero .eyebrow { margin-bottom: 20px; }
.legal-hero h1 { font-size: clamp(2.1rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; }
.legal-lede { max-width: 650px; margin-top: 20px; margin-left: max(0px, calc((100% - 930px) / 2)); color: var(--muted); font-size: 1.05rem; }
.legal-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.legal-effective { margin: 0; color: var(--muted); font-size: .9rem; }
.legal-save { width: fit-content; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; transition: color .2s, border-color .2s, transform .2s; }
.legal-save:hover { color: var(--ink); border-color: var(--amber); transform: translateY(-1px); }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 700px); gap: 72px; justify-content: center; align-items: start; padding-bottom: 96px; }
.legal-doc-nav { display: flex; width: min(930px, 100%); gap: 26px; overflow-x: auto; scrollbar-width: none; }
.legal-doc-nav::-webkit-scrollbar { display: none; }
.legal-doc-nav a { position: relative; flex: 0 0 auto; padding: 17px 0 15px; color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.legal-doc-nav a::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: transparent; }
.legal-doc-nav a:hover { color: var(--ink); }
.legal-doc-nav a[aria-current="page"] { color: var(--ink); }
.legal-doc-nav a[aria-current="page"]::after { background: var(--amber); }
.legal-layout > * { min-width: 0; }
.legal-toc { position: sticky; top: 104px; padding-top: 30px; }
.legal-toc .eyebrow { margin-bottom: 14px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.legal-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--muted); font-size: .86rem; line-height: 1.35; text-decoration: none; transition: color .2s, border-color .2s; }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--ink); border-left-color: var(--amber); }
.legal-doc { min-width: 0; max-width: 700px; padding-bottom: 0; }
.legal-doc h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-doc h2[id] { scroll-margin-top: 112px; }
.legal-doc h2:first-child { margin-top: 24px; padding-top: 0; border-top: 0; }
.legal-doc p { margin-top: 14px; color: var(--muted); overflow-wrap: anywhere; }
.legal-doc ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.legal-doc li + li { margin-top: 9px; }
.legal-doc a { color: var(--amber-ink); }
.legal-note { margin-top: 20px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--amber) 52%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.legal-note p { margin-top: 6px; }
.legal-facts, .legal-operator { margin: 18px 0 0; }
.legal-facts > div, .legal-operator > div { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.legal-facts dt, .legal-operator dt { color: var(--ink); font-weight: 600; }
.legal-facts dd, .legal-operator dd { margin: 0; color: var(--muted); }
.legal-table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.legal-table table { width: 100%; border-collapse: collapse; min-width: 540px; }
.legal-table th, .legal-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--wash); color: var(--ink); font-size: .84rem; }
.legal-table td { color: var(--muted); font-size: .92rem; }
.legal-table tr:last-child td { border-bottom: 0; }
@media (prefers-color-scheme: dark) {
    .auth-card { --danger: #f0a898; }
}
@media (max-width: 1023px) {
    .auth-section { padding: 36px 0 64px; }
    .auth-layout { grid-template-columns: 1fr; gap: 36px; }
    .legal-hero { padding-top: 40px; }
    .legal-layout { grid-template-columns: 1fr; gap: 26px; padding-bottom: 64px; }
    .legal-toc { position: static; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
    .legal-toc ol { display: flex; max-width: 100%; gap: 4px 18px; overflow-x: auto; padding-bottom: 5px; border-left: 0; scrollbar-width: thin; }
    .legal-toc li { flex: 0 0 auto; }
    .legal-toc a { margin: 0; padding: 5px 0; border-left: 0; }
    .legal-doc { max-width: none; }
}
@media (max-width: 767px) {
    .auth-section { padding: 26px 0 48px; }
    .auth-card { padding: 24px; }
    .legal-hero { padding-top: 30px; }
    .legal-doc h2 { font-size: 1.18rem; margin-top: 32px; padding-top: 24px; }
    .legal-facts > div, .legal-operator > div { grid-template-columns: 1fr; gap: 5px; }
    .legal-subnav .wrap { justify-content: flex-start; }
    .legal-doc-nav { gap: 20px; }
    .legal-actions { align-items: stretch; flex-direction: column; gap: 10px; }
    .legal-save { width: 100%; justify-content: center; }
}

/* On long guides and legal documents the bird becomes a quiet reading
   companion after the hero. It stays out of forms and content on small screens. */
@media (min-width: 1024px) {
    .public-page-mascot[data-mascot-companion].is-companion {
        position: fixed; top: auto; right: 20px; bottom: 22px; width: 76px;
        opacity: .92; z-index: 12;
    }
    .public-page-mascot[data-mascot-companion].is-companion::before { opacity: .82; }
}
@media (prefers-reduced-motion: no-preference) {
    @keyframes mascot-notice { 0%, 100% { transform: none; } 38% { transform: translateY(-5px) rotate(-3deg); } 68% { transform: translateY(-2px) rotate(2deg); } }
    .public-page-mascot.is-noticing { animation: mascot-notice .58s cubic-bezier(.16,1,.3,1); }
}

@media print {
    .site-nav, .site-footer, .public-page-mascot, .legal-toc, .legal-subnav, .legal-save { display: none !important; }
    body { background: #fff; color: #111; font-size: 11pt; }
    .wrap, .legal-doc { width: 100%; max-width: none; }
    .legal-hero { padding: 0 0 18px; }
    .legal-layout { display: block; padding: 0; }
    .legal-doc h2 { break-after: avoid; }
    .legal-doc p, .legal-doc li { color: #333; }
}

/* Повідомлення на публічних сторінках (вхід, реєстрація, лендинг).
   Раніше marketing_base їх не виводив узагалі: помилка з /signup/ лишалась у
   черзі, сторінка виглядала незмінною, а плашка вискакувала аж усередині
   застосунку після успішної реєстрації. */
.public-messages{list-style:none;margin:1.25rem 0 0;padding:0;display:grid;gap:.5rem}
.public-messages li{padding:.7rem 1rem;border:1px solid var(--border);border-radius:var(--radius-sm,6px);background:var(--surface);font-size:.92rem}
.public-messages li.error{border-color:#b3261e;background:#fce4e1;color:#7a1a15}
.public-messages li.success{border-color:#157a47;background:#e1f3e7;color:#0f5330}
.public-messages li.warning{border-color:#8a5e12;background:#fbefd2;color:#6b480e}

/* Сторінка «Перевірте пошту» — лише текст, без правої картки форми:
   двоколонкова сітка лишила б порожню половину. */
.auth-layout--narrow{grid-template-columns:minmax(0,1fr);max-width:48rem}

@media (max-width: 760px) {
    .footer-links a, .footer-cta { padding-block: 10px; }
    .footer-links section { gap: 0; }
    .auth-alt a { display: inline-block; padding-block: 10px; }
}

/* Анімований птах виходить за край вікна й розширює layout-viewport на телефонах. */
body { overflow-x: clip; }

/* Реєстрація/вхід на телефоні: форма має бути на першому екрані, список переваг — лише на широких. */
@media (max-width: 760px) { .auth-points { display: none; } }

/* Талісман на правових сторінках на вузькому екрані наповзав на вкладки й давав горизонтальний скрол */
@media (max-width: 640px) {
    .public-page-mascot--guide { display: none; }
}

/* Пароль: правила стислим списком (раніше важчий за самі поля) */
.auth-card small ul { margin: 4px 0 0; padding-left: 16px; font-size: .78rem; line-height: 1.35; }
.auth-card small li + li { margin-top: 2px; }
/* Талісман на реєстрації/вході не повинен лягати на рядки переваг: у широкому макеті — під ними, у лівій колонці */
@media (min-width: 1000px) {
    main:has(.auth-section) .public-page-mascot { top: 520px; left: max(48px, calc((100vw - 1280px) / 2 + 48px)); }
}
