@import url("manrope.345602bdecaf.css");

/* Single stylesheet for every non-admin page: the marketing site (base.html/home.html),
   auth (login.html/register.html), and the sell/order popups. They can't all
   {% extends %} one template (the popups are standalone documents opened in a popup
   window), so this file is the shared source of truth instead — edit tokens or
   components here and every page picks it up. Admin/Jazzmin styling lives separately
   in admin_theme.css. */

:root {
    color-scheme: light;
    --color-bg: #f4fbf9;
    --color-surface: #ffffff;
    --color-text: #263238;
    --color-muted: #6c757d;
    --color-accent: #236b56;
    --color-accent-dark: #18533f;
    --color-on-accent: #ffffff;
    --color-header-action: #236b56;
    --color-border: #dbe8e3;
    --color-warm-surface: #fcf8f1;
    --color-warm-border: #e9dfcf;
    --color-warm-accent: #985336;
    --color-warm-chip: #f1e5d6;
    --color-danger: #dd3333;
    --font-sans: var(--kramlad-font-family);

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 56px;

    --radius-sm: 8px;
    --radius-md: 12px;
}

/* Public pages use the explicit light/dark choice stored under the same key as Jazzmin.
   Each page sets data-bs-theme on <html> before this stylesheet paints. */
:root[data-bs-theme="dark"] {
    color-scheme: dark;
    --color-bg: #14211d;
    --color-surface: #1c2b26;
    --color-text: #e7f1ee;
    --color-muted: #9fb3ad;
    --color-accent: #8fd0bd;
    --color-accent-dark: #a9dccb;
    --color-on-accent: #10271f;
    --color-header-action: #9ed5c5;
    --color-border: #33473f;
    --color-warm-surface: #292a24;
    --color-warm-border: #51483d;
    --color-warm-accent: #e7b092;
    --color-warm-chip: #443a30;
    --color-danger: #ff6b6b;
}

:root[data-palette="zephyr"] {
    --color-bg: #f5f7ff;
    --color-text: #23304d;
    --color-muted: #626f89;
    --color-accent: #3459e6;
    --color-accent-dark: #2948bd;
    --color-on-accent: #ffffff;
    --color-header-action: #2948bd;
    --color-border: #d9e1f3;
}
:root[data-palette="united"] {
    --color-bg: #fcf8f1;
    --color-text: #3c2f21;
    --color-muted: #786a58;
    --color-accent: #a95d0b;
    --color-accent-dark: #92500b;
    --color-on-accent: #ffffff;
    --color-header-action: #92500b;
    --color-border: #eadbc3;
}
:root[data-bs-theme="dark"][data-palette="zephyr"] {
    --color-bg: #111827;
    --color-surface: #1b2639;
    --color-text: #eef2ff;
    --color-muted: #aab7d0;
    --color-accent: #8ea5ff;
    --color-accent-dark: #adc0ff;
    --color-on-accent: #15234b;
    --color-header-action: #adc0ff;
    --color-border: #35445e;
}
:root[data-bs-theme="dark"][data-palette="united"] {
    --color-bg: #211a13;
    --color-surface: #30261b;
    --color-text: #fbf2e3;
    --color-muted: #c7b599;
    --color-accent: #ecae5a;
    --color-accent-dark: #f5c47b;
    --color-on-accent: #30200d;
    --color-header-action: #f5c47b;
    --color-border: #59452e;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
}
body:not(.home-page):not(.popup) {
    background: linear-gradient(180deg, var(--color-bg), var(--color-warm-surface));
}
button, input, select, textarea { font-family: inherit; }

a { color: var(--color-accent); text-decoration: none; }
a:not(.btn):hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* --- buttons: shared by the marketing site, auth forms, and the popups' own
   <button> actions. */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 15px;
}
button.btn { font-family: inherit; }
.btn + .btn { margin-left: var(--space-3); }
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-on-accent); }
.btn-block { width: 100%; }

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
}
.card-auth { width: min(100%, 440px); margin: 0 auto; background: var(--color-warm-surface); border-color: var(--color-warm-border); }
.card-auth h2 { margin: 0 0 var(--space-5); font-size: 28px; line-height: 1.2; }
.card-security { max-width: 680px; margin: 0 auto; }
.card-security h1 { margin-top: 0; }
.security-panel {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
}
.security-panel:first-of-type { border-top: 0; }
.security-panel h2 { margin: 0 0 var(--space-2); }
.security-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.security-actions .btn { margin: 0; }
.totp-qr { display: block; width: min(240px, 100%); margin: var(--space-5) auto; }
.authenticator-secret,
.recovery-codes {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    overflow-wrap: anywhere;
}
.recovery-codes { min-height: 230px; resize: vertical; }
.security-warning { color: var(--color-danger); font-weight: 600; }

/* --- form rows: used by login/register AND both popups. */
.row { margin-bottom: 16px; }
.row label { display: block; margin-bottom: 6px; font-weight: 500; }
.row input,
.row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 15px;
}
.row-checkbox {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 8px;
}
.row-checkbox label { grid-column: 2; grid-row: 1; margin: 0; font-size: 14px; font-weight: 400; }
.row-checkbox input { grid-column: 1; grid-row: 1; width: auto; margin-top: 3px; }
.row-checkbox .errorlist { grid-column: 1 / -1; }
.helptext { color: var(--color-muted); font-size: 13px; margin-top: 4px; }
.errorlist { color: var(--color-danger); padding-left: 18px; margin: 4px 0; }
.error { color: var(--color-danger); margin-bottom: 12px; font-size: 14px; }
.form-footnote { margin-top: var(--space-4); color: var(--color-muted); }
.actions { text-align: right; }

/* --- marketing site layout (base.html). */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.site-header .logo { font-weight: 700; font-size: 20px; }
.site-header .logo a { display: inline-flex; align-items: center; gap: 9px; }
.site-header .logo img { display: block; width: 30px; height: 30px; object-fit: contain; }
.site-header.workspace-header {
    min-height: 68px;
    justify-content: flex-start;
    gap: 20px;
    padding: 12px 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.workspace-header .app-brand { flex-shrink: 0; color: var(--color-text); font-size: 21px; font-weight: 800; }
.workspace-header .account-context {
    min-width: 0;
    overflow-wrap: anywhere;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--color-border);
}
.workspace-header .company-name { color: var(--color-muted); }
.workspace-header .user-name { color: var(--color-text); font-weight: 650; }
.workspace-header .company-name + .user-name {
    padding-left: 12px;
    border-left: 1px solid var(--color-border);
}
.site-header .header-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.site-header .header-actions > * { flex-shrink: 0; }
.site-header .header-actions form { margin: 0; }
.site-header:not(.workspace-header) .header-actions > a:not(.btn) { color: var(--color-header-action); }
.site-header:not(.workspace-header) .header-actions > a:not(.btn)[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.workspace-header .header-actions a { color: var(--color-header-action); }
.workspace-header .header-actions a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-header .header-actions select {
    max-width: 145px;
    padding: 7px 9px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
}
.header-select { position: relative; display: inline-flex; min-width: 0; }
.header-select__trigger, .header-select__menu { display: none; }
.site-header .header-actions .link-button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: var(--color-header-action);
    cursor: pointer;
}
.site-header .header-actions .link-button:hover { text-decoration: underline; }
.lessons-page { max-width: 1120px; margin: 0 auto; }
.lessons-page h1 { margin: 0 0 var(--space-2); font-size: clamp(30px, 3.5vw, 42px); line-height: 1.15; letter-spacing: -.03em; }
.lessons-intro { margin: 0 0 var(--space-6); color: var(--color-muted); }
.lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-5); }
.lesson-card { display: block; overflow: hidden; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); color: var(--color-text); box-shadow: 0 12px 32px rgba(26, 62, 48, .06); }
.lesson-card:hover, .lesson-card:focus-within { border-color: var(--color-accent); }
.lesson-preview { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-border); }
.lesson-preview-button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.lesson-preview-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lesson-preview video { display: block; width: 100%; height: 100%; background: #000; }
.lesson-preview iframe { display: block; width: 100%; height: 100%; border: 0; }
.lesson-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 56px; height: 40px; transform: translate(-50%, -50%); border-radius: 12px; background: #ce181e; color: white; font-size: 20px; }
.lesson-info { padding: var(--space-4); }
.lesson-title { margin: 0 0 var(--space-2); font-size: 18px; }
.lesson-description { margin: 0 0 var(--space-3); color: var(--color-muted); }
.lesson-watch { color: var(--color-header-action); }
.lessons-empty p { margin: 0; }
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 700px) {
    .site-header:not(.workspace-header) {
        position: relative;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: var(--space-4);
    }
    .site-header:not(.workspace-header) .header-actions {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        font-size: 14px;
    }
    .site-header:not(.workspace-header) .header-actions .btn { padding: 8px 12px; font-size: 14px; }
    .site-header:not(.workspace-header) .lang-switcher { position: absolute; top: 14px; right: 16px; }
    .site-header:not(.workspace-header) .lang-switcher select { max-width: 120px; }
    .card-auth { padding: 26px 24px; }
}
@media (max-width: 420px) {
    .auth-content { padding-inline: 12px; }
    .auth-content .card-auth { padding: 24px 20px; }
}
@media (max-width: 980px) {
    .site-header.workspace-header {
        --mobile-header-font-size: 13px;
        min-height: 0;
        gap: 2px 8px;
        padding: 4px 8px 5px;
        flex-wrap: wrap;
    }
    .workspace-header .app-brand {
        order: 1;
        flex: 0 0 auto;
        font-size: 18px;
        line-height: 30px;
    }
    .workspace-header .account-context {
        order: 2;
        min-width: 0;
        flex: 1 1 0;
        gap: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        white-space: nowrap;
        font-size: var(--mobile-header-font-size);
    }
    .workspace-header .account-context span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .workspace-header .company-name { flex: 0 1 auto; }
    .workspace-header .user-name { flex: 0 1 auto; }
    .workspace-header .company-name + .user-name { padding-left: 6px; border-left: 0; }
    .workspace-header .header-actions {
        order: 3;
        flex: 0 0 100%;
        margin-left: 0;
        gap: 5px;
        flex-wrap: wrap;
        font-size: var(--mobile-header-font-size);
        line-height: 1.2;
    }
    .workspace-header .header-actions select {
        width: auto;
        max-width: 98px;
        height: 26px;
        padding: 1px 4px;
        border-radius: 6px;
        font-size: inherit;
        line-height: inherit;
    }
    .workspace-header .header-select > select.header-select__native {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        clip-path: inset(50%);
    }
    .workspace-header .header-select__trigger {
        position: relative;
        display: inline-flex;
        align-items: center;
        max-width: 98px;
        height: 26px;
        padding: 1px 22px 1px 5px;
        overflow: hidden;
        border: 1px solid var(--color-border);
        border-radius: 6px;
        background: var(--color-surface);
        color: var(--color-text);
        font: inherit;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .workspace-header .header-select__trigger::after {
        content: "▾";
        position: absolute;
        right: 6px;
        font-size: 11px;
    }
    .workspace-header .header-select__menu:not([hidden]) {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        z-index: 50;
        display: grid;
        min-width: 150px;
        padding: 5px;
        border: 1px solid var(--color-border);
        border-radius: 9px;
        background: var(--color-surface);
        box-shadow: 0 12px 32px rgba(30, 60, 50, .16);
        font-size: inherit;
        line-height: 1.25;
    }
    .workspace-header .header-select__option {
        width: 100%;
        padding: 6px 8px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--color-text);
        font: inherit;
        text-align: left;
        white-space: nowrap;
        cursor: pointer;
    }
    .workspace-header .header-select__option:hover,
    .workspace-header .header-select__option:focus,
    .workspace-header .header-select__option.is-selected {
        background: color-mix(in srgb, var(--color-accent) 16%, var(--color-surface));
        outline: none;
    }
    .workspace-header .header-actions .link-button {
        font-size: inherit;
        line-height: inherit;
    }
}
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.page-content { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.site-footer {
    text-align: center;
    color: var(--color-muted);
    padding: 32px 0;
    font-size: 14px;
}
.site-footer p { margin: 0 0 var(--space-2); }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer-notice { font-size: 13px; }
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }

/* --- public legal documents. */
.legal-document { max-width: 800px; margin: 0 auto; line-height: 1.65; }
.legal-document h1 { margin-top: 0; line-height: 1.2; }
.legal-document h2 { margin-top: 32px; line-height: 1.3; }
.legal-document h3 { margin-top: 24px; }
.legal-document li + li { margin-top: 6px; }
.legal-meta { color: var(--color-muted); }
.legal-warning {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-sm);
}
.legal-details { padding-left: 0; list-style: none; }

/* --- mandatory first-time/revised legal acceptance. */
.legal-acceptance-intro,
.legal-acceptance-form { max-width: 800px; margin: 0 auto var(--space-5); }
.legal-acceptance-intro h1 { margin-top: 0; }
.legal-acceptance-documents { max-width: 880px; margin: 0 auto var(--space-5); }
.legal-acceptance-document {
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}
.legal-acceptance-document summary {
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    font-weight: 700;
}
.legal-acceptance-document > .legal-document {
    max-width: none;
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.legal-acceptance-form .row-checkbox { margin-bottom: var(--space-4); }

/* --- home.html: public product presentation. */
.home-page { background: linear-gradient(180deg, #f5fbf8 0%, #f8fcfa 54%, #f3f9f5 100%); }
:root[data-bs-theme="dark"] body.home-page { background: #14211d; }
.home-page .site-header .logo a { color: var(--color-header-action); }
.home-page .site-header .header-actions > a:not(.btn) { color: var(--color-header-action); }
.home-page .site-header .btn-primary { color: var(--color-on-accent); }
.home-page .home-container { max-width: 1280px; padding-top: 0; padding-bottom: 96px; }
.home-page .home-container .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; transition: background-color .2s ease, border-color .2s ease; }
.home-page a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 4vw, 64px); padding: 72px 0 84px; }
.hero-copy { min-width: 0; }
.section-eyebrow { margin: 0 0 18px; color: var(--color-header-action); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { max-width: 600px; margin: 0 0 24px; font-size: clamp(38px, 4.3vw, 64px); line-height: 1.07; letter-spacing: -.045em; }
.hero .hero-description { max-width: 540px; margin: 0 0 30px; color: var(--color-muted); font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { margin: 0; }
.hero-access-note { margin: 17px 0 0; color: var(--color-header-action); font-size: 14px; font-weight: 700; line-height: 1.5; }
.hero-access-note::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--color-accent); vertical-align: 2px; }
.product-preview { min-width: 0; margin: 0; }
.product-preview-frame { overflow: hidden; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); box-shadow: 0 24px 70px rgba(25, 65, 50, .15), 10px 12px 0 rgba(188, 113, 77, .08); }
.product-preview-slides { position: relative; aspect-ratio: 1440 / 1000; }
.product-preview-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.product-preview-slide.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.product-preview-slide picture, .product-preview-slide img { display: block; width: 100%; height: 100%; }
.product-preview-slide img { object-fit: cover; object-position: top; }
.product-preview-slide-video img { position: absolute; width: 155%; max-width: none; height: auto; left: -19%; top: -22%; object-fit: initial; }
.product-preview-tabs { display: none; gap: 4px; margin-top: 16px; padding: 4px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
.product-preview.is-enhanced .product-preview-tabs { display: flex; }
.product-preview-tab { flex: 1 1 0; min-width: 0; padding: 9px 7px; border: 0; border-radius: 8px; background: transparent; color: var(--color-muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; }
.product-preview-tab:hover, .product-preview-tab.is-active { background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)); color: var(--color-header-action); }
.product-preview-tab:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.product-preview figcaption { margin-top: 10px; color: var(--color-muted); font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .product-preview-slide { transition: none; } }
.home-onboarding { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); align-items: center; gap: clamp(28px, 4vw, 56px); margin-bottom: 28px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface); box-shadow: 0 12px 32px rgba(25, 65, 50, .05); }
.home-onboarding .section-eyebrow { margin-bottom: 12px; }
.home-onboarding-intro h2 { margin: 0 0 12px; font-size: clamp(25px, 2.5vw, 32px); line-height: 1.18; letter-spacing: -.035em; }
.home-onboarding-intro > p:last-child { margin: 0; color: var(--color-muted); line-height: 1.55; }
.home-onboarding-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.home-onboarding-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-content: start; min-width: 0; }
.home-onboarding-number { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)); color: var(--color-header-action); font-size: 14px; font-weight: 800; }
.home-onboarding-steps h3 { margin: 3px 0 7px; font-size: 16px; line-height: 1.35; }
.home-onboarding-steps p { grid-column: 2; margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.5; }
.home-flow { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 56px); padding: clamp(30px, 4vw, 54px); border: 1px solid var(--color-warm-border); border-radius: 24px; background: var(--color-warm-surface); }
.home-flow .section-eyebrow { color: var(--color-warm-accent); }
.home-flow-intro h2 { margin: 0 0 14px; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.16; letter-spacing: -.035em; }
.home-flow-intro > p:last-child { margin: 0; color: var(--color-muted); line-height: 1.55; }
.home-flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.home-flow-steps li { display: flex; flex-direction: column; min-width: 0; padding-left: 19px; border-left: 1px solid var(--color-warm-border); }
.home-flow-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 10px; background: var(--color-warm-chip); color: var(--color-warm-accent); font-size: 13px; font-weight: 800; }
.home-flow-steps h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; }
.home-flow-steps p { margin: 0 0 18px; color: var(--color-muted); line-height: 1.55; }
.home-flow-visual { position: relative; overflow: hidden; height: 132px; margin-top: auto; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-surface); }
.home-flow-visual img { position: absolute; display: block; width: 165%; max-width: none; height: auto; left: -17%; top: -21%; }
.home-flow-visual-stock img { width: 195%; left: -93%; top: -88%; }
.home-features { padding: 86px 0 80px; }
.home-features-heading { max-width: 680px; margin-bottom: 28px; }
.home-features-heading h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-content: start; column-gap: 18px; padding: 26px; }
.feature-icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--color-accent) 13%, var(--color-surface)); color: var(--color-header-action); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin: 2px 0 10px; font-size: 18px; line-height: 1.3; }
.feature-card p { margin: 0; color: var(--color-muted); line-height: 1.55; }
.home-start { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(30px, 4vw, 52px); border-radius: 24px; background: #205d49; color: #fff; }
.home-start > div:first-child { max-width: 640px; }
.home-start h2 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
.home-start p:last-child { margin: 0; color: #dfede5; line-height: 1.55; }
.home-start-actions { display: grid; justify-items: center; gap: 16px; flex: 0 0 auto; }
.home-start .btn-primary { min-width: 220px; background: #fff; color: #205d49; }
.home-start .btn-primary:hover { background: #ebf6ef; }
.home-start-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.home-start-link:hover { color: #f2c1a7; }
:root[data-bs-theme="dark"] .home-start { background: #225544; }
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; padding: 48px 0 64px; }
    .hero-copy { max-width: 720px; }
    .product-preview { max-width: 880px; }
    .home-onboarding { grid-template-columns: 1fr; }
    .home-flow { grid-template-columns: 1fr; }
    .home-start { align-items: flex-start; flex-direction: column; }
    .home-start-actions { justify-items: start; }
}
@media (max-width: 600px) {
    .home-page .home-container { padding-inline: 18px; }
    .hero { gap: 32px; padding: 42px 0 56px; }
    .hero h1 { font-size: clamp(36px, 10vw, 48px); }
    .hero-actions .btn { width: 100%; }
    .product-preview-frame { border-radius: 12px; }
    .product-preview-slides { aspect-ratio: 4 / 5; }
    .product-preview-slide-video img { width: auto; height: 185%; left: -72%; top: -40%; }
    .product-preview-tabs { overflow-x: auto; margin-top: 12px; scrollbar-width: thin; }
    .product-preview-tab { flex: 0 0 auto; min-width: 88px; }
    .home-onboarding { gap: 24px; padding: 26px 22px; border-radius: 16px; }
    .home-onboarding-steps { grid-template-columns: 1fr; gap: 19px; }
    .home-flow { gap: 26px; padding: 26px 22px; border-radius: 16px; }
    .home-flow-steps { grid-template-columns: 1fr; gap: 22px; }
    .home-flow-steps li { padding-left: 16px; }
    .home-flow-number { margin-bottom: 10px; }
    .home-flow-visual { height: 158px; }
    .home-features { padding: 62px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 22px; }
    .home-start { padding: 28px 22px; border-radius: 16px; }
    .home-start-actions, .home-start .btn-primary { width: 100%; }
}

/* --- sell/order popups: standalone documents, no header/footer/container, just a
   compact form. */
body.popup { padding: 20px; background: var(--color-surface); }
body.popup h3 { margin: 0 0 var(--space-4); font-size: 16px; font-weight: 700; }
