/* ==========================================================================
   DOK Genius — public site design system
   Premium B2B SaaS theme: navy base, technical blue, AI violet accent.
   ========================================================================== */

:root {
    /* DOK-157: align with the shared design tokens (dok-theme.css) where the brand
       layer is meant to be common across App + Site. Values fall back to the local
       literals when the shared layer isn't loaded, so the look is unchanged. */
    /* DOK-196: adopt the App's MudTheme palette (DokTheme.cs) so the site→app
       transition has no visual rupture. Primary = blue-600 #2563EB; navy chrome =
       slate-900/800; text/muted = App TextPrimary/TextSecondary; neutrals =
       slate-200/300. The AI accent stays on the shared --dok-accent-ai token. */
    --color-primary: #2563EB;
    --color-primary-rgb: 37, 99, 235;
    --color-primary-dark: #1D4ED8;
    --color-navy: #0F172A;
    --color-navy-700: #1E293B;
    --color-ai: var(--dok-accent-ai, #7C5CFC);
    --color-ai-dark: #5B3FE0;
    --color-bg: #F6F9FF;
    --color-surface: #FFFFFF;
    --color-text: #0F172A;
    --color-muted: #475569;
    --color-line: #E2E8F0;
    --color-line-strong: #CBD5E1;
    --color-soft-blue: #EAF2FF;
    --color-soft-violet: #F1EEFF;
    --color-success: #15A05A;
    --color-error: #E1483C;
    --color-warning: #E08A18;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-soft: 0 14px 38px -18px rgba(15, 23, 42, 0.22);
    --shadow-card: 0 32px 80px -32px rgba(15, 23, 42, 0.32);
    --shadow-glow: 0 24px 60px -24px rgba(var(--color-primary-rgb), 0.45);

    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;

    --font-sans: var(--dok-font-sans, "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 78% -8%, rgba(124, 92, 252, 0.18), transparent 70%),
        radial-gradient(1000px 600px at 6% -10%, rgba(var(--color-primary-rgb), 0.18), transparent 70%),
        linear-gradient(180deg, #FBFCFF 0%, var(--color-bg) 46%, #EEF4FF 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--color-primary-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-primary-rgb), 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 56%);
}

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(var(--color-primary-rgb), 0.45); outline-offset: 2px; border-radius: 8px; }

.site-shell { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

.site-container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

/* ----------------------------------------------------------- Typography -- */
h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
    color: var(--color-navy);
    letter-spacing: -0.03em;
    line-height: 1.08;
    font-weight: 800;
}

h1 {
    max-width: 18ch;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 5.2vw, 4.3rem);
    letter-spacing: -0.04em;
}

h2 {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
}

h3 { margin-bottom: 10px; font-size: 1.18rem; letter-spacing: -0.02em; }

p { color: var(--color-muted); }

.text-gradient {
    background: linear-gradient(105deg, var(--color-primary) 0%, var(--color-ai) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 14px 6px 12px;
    border: 1px solid var(--color-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-primary-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-ai));
}

.eyebrow--ai { color: var(--color-ai-dark); }

/* --------------------------------------------------------------- Header -- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.08);
    background: rgba(246, 249, 255, 0.78);
    backdrop-filter: saturate(160%) blur(16px);
}

.site-header__inner {
    width: min(var(--container), calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    color: var(--color-navy);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.1rem;
}

.site-logo__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    background: transparent;
}

.site-logo__mark img {
    width: 100%;
    height: 100%;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.93rem;
    font-weight: 600;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--color-muted);
    transition: color 140ms ease, background-color 140ms ease;
}

.site-nav a:hover { color: var(--color-navy); background: rgba(var(--color-primary-rgb), 0.07); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.site-link-muted { color: var(--color-navy); font-size: 0.92rem; font-weight: 650; }
.site-link-muted:hover { color: var(--color-primary); }

/* Language selector (DOK-253) */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 800; }
.lang-switch__opt { padding: 4px 6px; border-radius: 8px; color: var(--color-muted); letter-spacing: 0.02em; transition: color 140ms ease, background-color 140ms ease; }
.lang-switch__opt:hover { color: var(--color-navy); background: rgba(var(--color-primary-rgb), 0.07); }
.lang-switch__opt.is-active { color: var(--color-primary); }
.lang-switch__sep { color: var(--color-line-strong); }

.site-nav-toggle { display: none; }
.site-nav-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--color-line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}
.site-nav-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--color-navy);
}

/* -------------------------------------------------------------- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.97rem;
    line-height: 1;
    letter-spacing: -0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.btn .dok-icon { width: 18px; height: 18px; }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-ai) 130%);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -22px rgba(var(--color-primary-rgb), 0.6); }

.btn-secondary {
    color: var(--color-navy);
    border-color: var(--color-line-strong);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: var(--shadow-soft); }

.btn-ghost { color: var(--color-navy); background: transparent; }
.btn-ghost:hover { background: rgba(var(--color-primary-rgb), 0.08); }

.btn-light {
    color: var(--color-navy);
    background: #fff;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.5);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ----------------------------------------------------------------- Hero -- */
.site-hero { position: relative; padding: 84px 0 64px; overflow: hidden; }

.site-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.85fr);
    gap: 56px;
    align-items: center;
}

.site-hero--center .site-hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.site-hero--center h1, .site-hero--center .site-hero__text { margin-left: auto; margin-right: auto; }
.site-hero--center .hero-badges, .site-hero--center .hero-actions { justify-content: center; }

.site-hero__text {
    max-width: 60ch;
    margin-bottom: 0;
    font-size: clamp(1.06rem, 1.6vw, 1.24rem);
    line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-badges span, .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid var(--color-line-strong);
    border-radius: 999px;
    color: var(--color-navy);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 650;
}
.hero-badges span::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--color-success);
}

.site-hero__visual { min-width: 0; }

/* ------------------------------------------------------------- Sections -- */
.page-section { padding: 76px 0; }
.section-soft {
    background: linear-gradient(180deg, rgba(234, 242, 255, 0.7), rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(var(--color-primary-rgb), 0.07);
}
.section-tight { padding-top: 44px; }
.section-dark {
    color: #fff;
    background:
        radial-gradient(700px 380px at 88% 0%, rgba(124, 92, 252, 0.4), transparent 70%),
        linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-700) 100%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, 0.74); }
.section-dark .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #cdd9ff; }

.section-heading { max-width: 760px; margin-bottom: 40px; }
.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading p { max-width: 64ch; font-size: 1.06rem; line-height: 1.7; }

/* ----------------------------------------------------------------- Cards -- */
.feature-grid { display: grid; gap: 20px; }
.feature-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.feature-card, .security-card, .integration-card, .testimonial-card,
.pricing-card, .legal-card, .next-card, .site-form, .form-result {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.feature-card, .security-card, .testimonial-card, .pricing-card,
.legal-card, .next-card, .site-form, .form-result { padding: 26px; }

.feature-card { transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--color-line-strong); box-shadow: var(--shadow-card); }

.feature-card p, .security-card p, .integration-card p,
.pricing-card p, .testimonial-card p { margin-bottom: 0; line-height: 1.62; }

.linear-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    color: var(--color-primary);
    background: linear-gradient(150deg, #fff 0%, var(--color-soft-blue) 100%);
    box-shadow: var(--shadow-xs);
}
.linear-icon .dok-icon { width: 24px; height: 24px; }
.linear-icon--ai {
    color: var(--color-ai-dark);
    background: linear-gradient(150deg, #fff 0%, var(--color-soft-violet) 100%);
    border-color: rgba(124, 92, 252, 0.2);
}

.integration-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.integration-card .linear-icon { flex: 0 0 auto; margin-bottom: 0; width: 46px; height: 46px; }

.security-card { background: linear-gradient(180deg, #fff 0%, rgba(234, 242, 255, 0.5) 100%); }

/* --------------------------------------------------------------- Metrics -- */
.metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.metric-strip article {
    padding: 30px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(124, 92, 252, 0.32), transparent 70%),
        linear-gradient(135deg, var(--color-navy), var(--color-navy-700));
    box-shadow: var(--shadow-card);
}
.metric-strip strong { display: block; color: #fff; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.metric-strip span { display: block; margin-top: 12px; color: #A9C6FF; font-weight: 700; }
.metric-strip p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.66); }

/* ------------------------------------------------------- Case studies -- */
/* DOK-193 — industry case studies: problem → solution → outcome blocks. */
.case-studies { display: grid; gap: 26px; }

.case-study {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    padding: 30px 32px;
}

.case-study__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }

.case-study__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    background: var(--color-soft-blue);
    color: var(--color-primary);
}

.case-study__tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-soft-violet);
    color: var(--color-ai-dark, #5b3fd4);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.case-study__head h3 { margin: 0; }

.case-study__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
}

.case-study__col h4 {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.case-study__col p { margin: 0; color: var(--color-text); }

.case-study__col ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }

.case-study__outcome {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(21, 160, 90, 0.08);
    color: var(--color-text);
    font-weight: 600;
}

.case-study__outcome svg { flex: 0 0 auto; margin-top: 2px; color: var(--color-success); }

.usecase-cta { display: flex; justify-content: center; margin-top: 26px; }

.case-studies__note {
    margin: 26px 0 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    text-align: center;
}

@media (max-width: 860px) {
    .case-study { padding: 22px 20px; }
    .case-study__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- Product screenshots -- */
.chat-mockup, .document-mockup, .integration-panel, .error-illustration {
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

/* DOK-198 — real App screens in a light browser frame (imgs from scripts/site/capture-app-screens). */
.product-frame {
    margin: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.product-frame__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: #EEF2F8;
    border-bottom: 1px solid var(--color-line);
}
.product-frame__bar span { width: 11px; height: 11px; border-radius: 999px; background: #F0908A; }
.product-frame__bar span:nth-child(2) { background: #F5C878; }
.product-frame__bar span:nth-child(3) { background: #83D3A8; }
.product-frame img { display: block; width: 100%; height: auto; }
.product-frame figcaption {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 20px;
    border-top: 1px solid var(--color-line);
}
.product-frame figcaption strong { color: var(--color-navy); font-size: 1.02rem; }
.product-frame figcaption span { color: var(--color-muted); font-size: 0.92rem; }

.product-frame--hero { box-shadow: var(--shadow-glow, var(--shadow-card)); }

.product-tour { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-tour__item--wide { grid-column: 1 / -1; }

@media (max-width: 860px) {
    .product-tour { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------- Timeline -- */
.timeline-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.timeline-flow--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.timeline-flow--wide { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.timeline-flow span {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 74px;
    padding: 14px 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    color: var(--color-navy);
    background: #fff;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
    font-size: 0.92rem;
    text-align: center;
}
.timeline-flow span:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -16px;
    top: 50%;
    z-index: 1;
    width: 16px; height: 16px;
    transform: translateY(-50%);
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}

/* ----------------------------------------------------------- Split panel -- */
.split-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr); gap: 22px; align-items: stretch; }
.split-panel > div:first-child {
    padding: 38px;
    border-radius: var(--radius-xl);
    color: #fff;
    background:
        radial-gradient(500px 280px at 100% 0%, rgba(124, 92, 252, 0.4), transparent 70%),
        linear-gradient(135deg, var(--color-navy), var(--color-navy-700));
    box-shadow: var(--shadow-card);
}
.split-panel > div:first-child h3 { color: #fff; font-size: 1.9rem; margin-bottom: 14px; }
.split-panel > div:first-child p { color: rgba(255, 255, 255, 0.76); margin-bottom: 24px; }

.testimonial-card { display: flex; flex-direction: column; justify-content: center; }
.testimonial-card p { color: var(--color-navy); font-size: 1.18rem; line-height: 1.55; font-weight: 500; }
.testimonial-card div { margin-top: 20px; }
.testimonial-card strong, .testimonial-card span { display: block; }
.testimonial-card strong { color: var(--color-navy); }
.testimonial-card span { color: var(--color-muted); font-size: 0.9rem; }

/* --------------------------------------------------------------- Pricing -- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card--featured {
    border-color: rgba(var(--color-primary-rgb), 0.4);
    box-shadow: 0 40px 90px -36px rgba(var(--color-primary-rgb), 0.5);
    transform: translateY(-10px);
}
.pricing-card__badge {
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-ai));
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pricing-card__price { margin: 18px 0 0; color: var(--color-navy); font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-card__price span { font-size: 0.95rem; font-weight: 700; color: var(--color-muted); letter-spacing: 0; }
.pricing-card__note { margin: 4px 0 0; color: var(--color-muted); font-size: 0.9rem; font-weight: 600; }
.pricing-card ul { display: grid; gap: 12px; margin: 0 0 26px; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--color-line); }
.pricing-card li { position: relative; padding-left: 28px; color: var(--color-muted); font-size: 0.94rem; }
.pricing-card li::before {
    content: "";
    position: absolute;
    left: 0; top: 1px;
    width: 18px; height: 18px;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315A05A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E");
}
.pricing-card .btn { margin-top: auto; width: 100%; }

/* ----------------------------------------------------- Comparison table -- */
.comparison-table { overflow: hidden; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.comparison-table > div { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--color-line); }
.comparison-table > div:last-child { border-bottom: 0; }
.comparison-table__head { color: var(--color-navy); background: #F4F8FF; font-weight: 800; }
.comparison-table span:not(:first-child) { text-align: center; }
.comparison-table div:not(.comparison-table__head) span:first-child { font-weight: 700; color: var(--color-navy); }
.comparison-table div:not(.comparison-table__head) span:not(:first-child) { color: var(--color-muted); }
.comparison-table div:nth-child(even):not(.comparison-table__head) { background: rgba(244, 248, 255, 0.6); }

/* ------------------------------------------------------------------- FAQ -- */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq-item { border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); transition: border-color 150ms ease; }
.faq-item[open] { border-color: var(--color-line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; color: var(--color-navy); cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    width: 20px; height: 20px;
    transition: transform 200ms ease;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 22px 22px; line-height: 1.7; }

/* ---------------------------------------------------------------- Forms -- */
.contact-layout, .signup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side .feature-card { padding: 20px; }
.contact-side .linear-icon { width: 44px; height: 44px; margin-bottom: 14px; }

.site-form { display: grid; gap: 24px; }
.site-form fieldset { margin: 0; padding: 0; border: 0; }
.site-form legend { margin-bottom: 16px; color: var(--color-navy); font-size: 1.05rem; font-weight: 800; }
.form-grid { display: grid; gap: 18px; }
.form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid__wide { grid-column: 1 / -1; }
.site-field { display: grid; gap: 8px; color: var(--color-navy); font-weight: 650; }
.site-field span, .site-check span { font-size: 0.9rem; }
.site-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    padding: 12px 14px;
    color: var(--color-text);
    background: #fff;
    font-weight: 500;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.site-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.12); }
.site-input--area { min-height: 150px; resize: vertical; }
.site-check { display: flex; gap: 12px; align-items: flex-start; color: var(--color-muted); font-weight: 500; }
.site-check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--color-primary); }
.validation-errors { margin: 0; padding: 14px 16px 14px 18px; border: 1px solid rgba(225, 72, 60, 0.24); border-radius: var(--radius-sm); color: #B0271C; background: #FEF3F2; list-style: none; }
.validation-message, .form-error { color: var(--color-error); font-weight: 600; }
.form-error { margin: -4px 0 0; }
.form-result { text-align: left; }
.form-result h3 { margin-bottom: 8px; }
.form-result small { color: var(--color-muted); font-weight: 700; }
.form-result--success { border-color: rgba(21, 160, 90, 0.28); background: linear-gradient(180deg, #fff, #F1FCF5); }
.form-result--success .linear-icon { color: var(--color-success); border-color: rgba(21, 160, 90, 0.22); background: #F1FCF5; }

.next-card { position: sticky; top: 96px; }
.next-card ol { display: grid; gap: 16px; margin: 20px 0; padding: 0; list-style: none; counter-reset: step; }
.next-card li { position: relative; padding-left: 40px; color: var(--color-muted); font-weight: 550; }
.next-card li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0; top: -2px;
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-ai));
    font-size: 0.8rem;
    font-weight: 800;
}
.mini-panel { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius-md); background: var(--color-soft-violet); border: 1px solid rgba(124, 92, 252, 0.16); }
.mini-panel strong { color: var(--color-navy); }
.mini-panel span { color: var(--color-muted); }

/* ----------------------------------------------------------- Chat mockup -- */
.chat-mockup { display: grid; gap: 14px; padding: 24px; }
.chat-mockup__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--color-ai-dark); font-weight: 800; font-size: 0.9rem; }
.chat-mockup__head .linear-icon { width: 34px; height: 34px; margin: 0; }
.chat-message { padding: 16px 18px; border-radius: 18px; font-size: 0.95rem; line-height: 1.55; }
.chat-message--user { margin-left: 48px; color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-bottom-right-radius: 6px; }
.chat-message--ai { margin-right: 28px; color: var(--color-navy); background: #F3F5FF; border: 1px solid var(--color-line); border-bottom-left-radius: 6px; }
.chat-message--ai strong { display: block; color: var(--color-navy); }
.chat-message--ai .chat-sources { display: block; margin-top: 14px; color: var(--color-ai-dark); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.chat-message--ai ul { margin: 8px 0 0; padding-left: 18px; color: var(--color-muted); }
.chat-message--ai li { margin-bottom: 4px; }

/* -------------------------------------------------------------- Security -- */
.security-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.security-list article, .access-levels article, .technical-panel div {
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.security-list strong, .security-list span, .access-levels span, .access-levels p, .technical-panel strong, .technical-panel span { display: block; }
.security-list strong, .access-levels span, .technical-panel strong { color: var(--color-navy); font-weight: 800; }
.security-list span, .technical-panel span { margin-top: 8px; color: var(--color-muted); }

.access-levels, .technical-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.technical-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.access-levels article { border-top: 3px solid var(--color-primary); }
.access-levels article:nth-child(2) { border-top-color: #3B82F6; }
.access-levels article:nth-child(3) { border-top-color: var(--color-ai); }
.access-levels article:nth-child(4) { border-top-color: var(--color-ai-dark); }
.access-levels span { font-size: 1.05rem; letter-spacing: -0.01em; }
.access-levels p { margin: 8px 0 0; color: var(--color-muted); }

/* -------------------------------------------------------- Audit timeline -- */
.audit-timeline { display: grid; gap: 14px; }
.audit-timeline div {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 0.42fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 22px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}
.audit-timeline span { width: 13px; height: 13px; margin-top: 4px; border: 3px solid #fff; border-radius: 999px; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.14); }
.audit-timeline strong { color: var(--color-navy); }
.audit-timeline p { margin: 0; }

/* ----------------------------------------------------- Integration panel -- */
.integration-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 24px; }
.integration-panel span { display: grid; place-items: center; min-height: 74px; border-radius: var(--radius-md); color: var(--color-primary-dark); background: var(--color-soft-blue); font-weight: 800; }
.integration-panel span:nth-child(4n+2) { color: var(--color-ai-dark); background: var(--color-soft-violet); }

/* -------------------------------------------------------- Document mockup -- */
.document-mockup { position: relative; min-height: 420px; padding: 30px; }
.doc-card { position: absolute; width: 72%; padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-card); }
.doc-card span, .doc-card strong { display: block; }
.doc-card span { color: var(--color-primary); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.doc-card strong { margin-top: 12px; color: var(--color-navy); font-size: 1.45rem; line-height: 1.12; }
.doc-card p { margin: 12px 0 0; }
.doc-card--front { left: 24px; top: 38px; z-index: 2; }
.doc-card--back { right: 24px; bottom: 38px; background: linear-gradient(180deg, #fff, #F3F0FF); }
.doc-card--back span { color: var(--color-ai-dark); }

/* ------------------------------------------------------------ CTA banner -- */
.cta-section { padding: 76px 0; }
.cta-section__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 52px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(600px 300px at 92% 8%, rgba(124, 92, 252, 0.5), transparent 70%),
        radial-gradient(600px 300px at 4% 100%, rgba(var(--color-primary-rgb), 0.4), transparent 70%),
        linear-gradient(130deg, var(--color-navy) 0%, var(--color-navy-700) 100%);
    box-shadow: var(--shadow-card);
}
.cta-section__inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(600px 300px at 80% 20%, #000, transparent 75%);
}
.cta-section__inner > * { position: relative; z-index: 1; }
.cta-section .eyebrow { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #cdd9ff; }
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p:not(.eyebrow) { color: rgba(255, 255, 255, 0.78); margin-bottom: 0; font-size: 1.06rem; max-width: 52ch; }
.cta-section .hero-actions { justify-content: flex-end; margin-top: 0; }

/* ----------------------------------------------------------- Home extras -- */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px; padding-top: 8px; }
.trust-strip__label { width: 100%; text-align: center; margin: 0 0 4px; color: var(--color-muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; color: var(--color-navy); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; opacity: 0.78; }
.trust-strip .dok-icon { width: 20px; height: 20px; color: var(--color-primary); }

.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.problem-card { padding: 26px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.problem-card .linear-icon { color: var(--color-error); background: linear-gradient(150deg, #fff, #FEF2F1); border-color: rgba(225, 72, 60, 0.18); }
.problem-card h3 { color: var(--color-navy); }
.problem-card p { margin-bottom: 0; }

.pilot-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr); gap: 48px; align-items: center; }
.pilot-list { display: grid; gap: 16px; margin-top: 26px; }
.pilot-list__item { display: flex; gap: 14px; align-items: flex-start; }
.pilot-list__item .linear-icon { flex: 0 0 auto; width: 42px; height: 42px; margin: 0; color: var(--color-ai-dark); background: rgba(124, 92, 252, 0.12); border-color: rgba(124, 92, 252, 0.2); }
.pilot-list__item .linear-icon .dok-icon { width: 20px; height: 20px; }
.pilot-list__item strong { display: block; color: #fff; margin-bottom: 2px; }
.pilot-list__item p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

.usecase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.usecase-card { padding: 26px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); transition: transform 180ms ease, box-shadow 180ms ease; }
.usecase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.usecase-card .linear-icon { width: 46px; height: 46px; }
.usecase-card h3 { margin-bottom: 8px; }
.usecase-card p { margin-bottom: 0; }
.usecase-card__tag { display: inline-block; margin-top: 16px; padding: 4px 11px; border-radius: 999px; background: var(--color-soft-blue); color: var(--color-primary-dark); font-size: 0.76rem; font-weight: 800; }

.pricing-teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pricing-teaser article { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--color-line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.pricing-teaser article.is-featured { border-color: rgba(var(--color-primary-rgb), 0.35); box-shadow: 0 36px 80px -36px rgba(var(--color-primary-rgb), 0.45); }
.pricing-teaser h3 { margin-bottom: 4px; }
.pricing-teaser .price { margin: 12px 0 16px; color: var(--color-navy); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; }
.pricing-teaser p { margin-bottom: 20px; }
.pricing-teaser .price span { font-size: 0.95rem; font-weight: 700; color: var(--color-muted); letter-spacing: 0; }
.pricing-teaser .btn { margin-top: auto; width: 100%; }
.pricing-teaser__note { margin: 18px 0 0; text-align: center; font-weight: 700; }
.pricing-teaser__note a { color: var(--color-primary-dark); }
.pricing-teaser__note a:hover { color: var(--color-primary); }

/* ------------------------------------------------- Governance ladder (DOK-192) -- */
.gov-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gov-step { padding: 26px; border: 1px solid var(--color-line); border-top-width: 3px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.gov-step h3 { margin-top: 14px; }
.gov-step p { margin-bottom: 0; }
.gov-step em { font-style: normal; font-weight: 700; color: var(--color-ai-dark); }
.gov-step__tag { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.gov-step__tag::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.gov-step--now { border-top-color: var(--color-success); }
.gov-step--now .gov-step__tag { color: var(--color-success); background: rgba(21, 160, 90, 0.1); }
.gov-step--next { border-top-color: var(--color-ai); }
.gov-step--next .gov-step__tag { color: var(--color-ai-dark); background: var(--color-soft-violet); }
.gov-step--future { border-top-color: var(--color-line-strong); background: linear-gradient(180deg, #fff, rgba(234, 242, 255, 0.45)); }
.gov-step--future .gov-step__tag { color: var(--color-muted); background: rgba(71, 85, 105, 0.1); }

/* ------------------------------------------- Model chain (DOK-256) -- */
.model-chain__lead { max-width: 64ch; margin: 0 0 22px; font-weight: 600; color: var(--color-navy); }
.model-flows { display: grid; gap: 24px; margin-bottom: 18px; }
.model-flow__role { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.model-flow__role::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.model-flow__role--setup { color: var(--color-ai-dark); background: var(--color-soft-violet); }
.model-flow__role--use { color: var(--color-primary-dark); background: var(--color-soft-blue); }
.model-chain { display: flex; gap: 14px; }
.model-chain__node { flex: 1 1 0; min-width: 0; position: relative; padding: 18px; border: 1px solid var(--color-line); border-top: 3px solid var(--color-line-strong); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); }
.model-chain__node strong { display: block; color: var(--color-navy); font-size: 1rem; letter-spacing: -0.01em; }
.model-chain__node span { display: block; margin-top: 6px; color: var(--color-muted); font-size: 0.86rem; line-height: 1.5; }
.model-chain__node:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -15px;
    top: 50%;
    z-index: 1;
    width: 16px; height: 16px;
    transform: translateY(-50%);
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}
.model-chain__node--highlight { border-top-color: var(--color-ai); box-shadow: 0 20px 44px -22px rgba(124, 92, 252, 0.45); }
.model-chain__node--highlight strong { color: var(--color-ai-dark); }
.model-chain__note { max-width: 74ch; margin: 0 0 40px; color: var(--color-muted); font-size: 0.92rem; line-height: 1.6; }

/* ----------------------------------------------------------- Error pages -- */
.error-page { display: grid; align-items: center; min-height: 68vh; padding: 84px 0; }
.error-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; }
.error-page h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.error-page p { max-width: 60ch; font-size: 1.08rem; line-height: 1.7; }
.error-meta { display: grid; gap: 6px; max-width: 520px; margin-top: 28px; padding: 16px 18px; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.85); }
.error-meta span { color: var(--color-muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.error-meta strong { color: var(--color-navy); word-break: break-all; }
.error-meta small { color: var(--color-muted); }
.error-illustration { display: grid; place-items: center; min-height: 320px; position: relative; overflow: hidden; }
.error-illustration span { color: rgba(var(--color-primary-rgb), 0.1); font-size: 6.5rem; font-weight: 900; letter-spacing: -0.05em; }
.error-illustration div { position: absolute; width: 130px; height: 170px; border: 2px solid rgba(124, 92, 252, 0.3); border-radius: 22px; transform: rotate(-8deg); background: rgba(255, 255, 255, 0.5); }
.error-illustration strong { position: absolute; bottom: 46px; color: var(--color-primary); letter-spacing: -0.05em; }

/* ----------------------------------------------------------------- Legal -- */
.legal-card { max-width: 860px; margin: 0 auto; }
.legal-card h2 { margin-top: 28px; font-size: 1.4rem; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-warning { padding: 14px 16px; border: 1px solid rgba(224, 138, 24, 0.3); border-radius: var(--radius-sm); color: #93580B; background: #FFF8EC; font-weight: 650; }

/* ---------------------------------------------------------------- Footer -- */
.site-footer { padding: 64px 0 30px; color: rgba(255, 255, 255, 0.7); background: linear-gradient(180deg, var(--color-navy), #06122B); }
.site-footer .site-logo { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(130px, 1fr)); gap: 32px; }
.site-footer__brand p { max-width: 320px; margin: 18px 0; color: rgba(255, 255, 255, 0.66); line-height: 1.65; }
.site-footer__column { display: grid; align-content: start; gap: 12px; }
.site-footer__column h2 { margin: 0 0 6px; color: #fff; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer__column a { color: rgba(255, 255, 255, 0.66); font-size: 0.94rem; transition: color 140ms ease; }
.site-footer__column a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.site-footer .trust-badge { color: #BFD3FF; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }

/* ----------------------------------------------------------- Responsive -- */
@media (max-width: 1080px) {
    .feature-grid--four, .feature-grid--five, .security-list, .access-levels, .technical-panel, .problem-grid, .usecase-grid, .pricing-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-hero__grid, .contact-layout, .signup-layout, .error-page__grid, .pilot-showcase { grid-template-columns: minmax(0, 1fr); }
    .site-hero { padding-top: 60px; }
    .site-hero__visual { max-width: 640px; }
    .next-card { position: static; }
    .cta-section__inner { grid-template-columns: minmax(0, 1fr); padding: 38px; }
    .cta-section .hero-actions { justify-content: flex-start; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .site-header__inner { flex-wrap: wrap; padding: 14px 0; }
    .site-nav-button { display: grid; place-items: center; }
    .site-nav, .site-header__actions { display: none; width: 100%; margin-left: 0; padding: 12px 0 4px; }
    .site-nav-toggle:checked ~ .site-nav, .site-nav-toggle:checked ~ .site-header__actions { display: grid; }
    .site-nav { gap: 4px; }
    .site-nav a { padding: 11px 12px; }
    .site-header__actions { gap: 10px; justify-items: stretch; }
    .feature-grid--two, .feature-grid--three, .pricing-grid, .metric-strip, .timeline-flow, .timeline-flow--six, .timeline-flow--wide, .form-grid--two, .problem-grid, .usecase-grid, .pricing-teaser, .gov-ladder { grid-template-columns: minmax(0, 1fr); }
    .timeline-flow span:not(:last-child)::after { right: auto; top: auto; bottom: -19px; left: 50%; transform: translateX(-50%) rotate(90deg); }
    .model-chain { flex-direction: column; }
    .model-chain__node:not(:last-child)::after { right: auto; top: auto; bottom: -15px; left: 50%; transform: translateX(-50%) rotate(90deg); }
    .split-panel { grid-template-columns: minmax(0, 1fr); }
    .pricing-card--featured { transform: none; }
    /* DOK-195: the plan/storage table scrolls horizontally on small screens —
       give it iOS momentum scrolling and a visible thin scrollbar so the scroll
       is smooth and discoverable, without overflowing the page. */
    .comparison-table { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    .comparison-table > div { min-width: 620px; }
    .preview-metrics, .preview-table div { grid-template-columns: minmax(0, 1fr); }
    .audit-timeline div { grid-template-columns: 22px minmax(0, 1fr); }
    .audit-timeline p { grid-column: 2; }
    .document-mockup { min-height: auto; display: grid; gap: 16px; }
    .doc-card { position: static; width: 100%; }
}

@media (max-width: 560px) {
    .site-container, .site-header__inner { width: calc(100% - 28px); }
    .site-hero { padding: 44px 0 40px; }
    .page-section, .cta-section, .error-page { padding: 48px 0; }
    .feature-card, .security-card, .testimonial-card, .pricing-card, .legal-card, .next-card, .site-form, .form-result, .cta-section__inner, .split-panel > div:first-child { padding: 22px; }
    .feature-grid--four, .feature-grid--five, .security-list, .access-levels, .technical-panel, .site-footer__grid, .integration-panel { grid-template-columns: minmax(0, 1fr); }
    .hero-actions .btn, .site-header__actions .btn, .cta-section .hero-actions .btn { width: 100%; }
    .site-footer__bottom { flex-direction: column; }
}

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