:root {
    /* deploy-marker: run-web-image-deploy-history-market-fixes-2026-07-21 */
    /* Light monochrome Unimatch design system (2026-07-10): extracted from
       the real unimatch.ai CSS. Flat surfaces separated by thin #e3e3e3
       borders and pale tints — no shadows, no glows, no gradients, no blur.
       Near-black ink on off-white, pill buttons, large card radii,
       animations limited to transform/opacity at .3s. */
    --bg: #fafafa;
    --bg-deep: #fafafa;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-glow: #ffffff;
    --ink: #1a1a1a;
    /* Design audit 2026-07-12: #9ca3af was ~2.54:1 on white (fails WCAG AA
       4.5:1 for body text). #666c78 measures ~5.28:1 on #fff and >=4.5:1 on
       all three --tint backgrounds below (contrast math, WCAG relative
       luminance formula, verified via script — not eyeballed). */
    --muted: #666c78;
    --line: #e3e3e3;
    --tint-1: #f4f6f5;
    --tint-2: #f1f3ff;
    --tint-3: #f2fcff;
    --primary: #1a1a1a;
    --primary-deep: #1a1a1a;
    --secondary: #4b5563;
    --success: #14532d;
    --success-tint: #eaf5ee;
    --warning: #8a5a12;
    --warning-tint: #faf3e6;
    --danger: #b81111;
    --danger-tint: #fdeeee;
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --radius-xl: 40px;
    --radius-lg: 28px;
    --radius-md: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    overscroll-behavior-y: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Decorative blobs removed from base.html; keep the class inert in case a
   cached template still renders it. */
.ambient,
.ambient-one,
.ambient-two {
    display: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 0 0 48px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #ffffff;
    font-weight: 600;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--secondary);
    font-weight: 500;
    opacity: 1;
    transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
    border: 1px solid transparent;
}

/* Design audit 2026-07-12: unimatch.ai "spotlight" nav — hovering the group
   dims siblings, the hovered link snaps back to full opacity. */
.site-nav:hover a {
    opacity: 0.5;
}

.site-nav a:hover {
    color: var(--ink);
    background: var(--tint-1);
    transform: scale(1.04);
    opacity: 1;
}

.page-content {
    padding-top: 28px;
}

.hero,
.panel,
.report-card,
.stat-card,
.support-strip {
    border: 1px solid var(--line);
    background: var(--surface);
}

.support-strip {
    margin-top: 24px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border-radius: 24px;
    background: var(--surface);
}

.support-kicker {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.support-logos {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.support-logo-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 96px;
    padding: 16px 24px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--tint-1);
    overflow: hidden;
}

.support-logo-card-fasie {
    background: #ffffff;
}

.support-logo-card-platform {
    /* The Platform Tech wordmark ships white-on-transparent, so this one
       card keeps a flat deep-blue field for legibility. */
    background: #123f66;
    border-color: #123f66;
}

.support-logo-img,
.support-logo-fallback {
    position: relative;
    z-index: 1;
}

.support-logo-img {
    display: block;
    width: auto;
    max-width: min(430px, 100%);
    height: auto;
    object-fit: contain;
    opacity: 0.88;
}

.support-logo-img-fasie {
    max-height: 76px;
}

.support-logo-img-platform {
    max-height: 72px;
}

.support-logo-fallback {
    display: none;
    align-items: center;
    width: min(430px, 100%);
}

.support-logo-fasie {
    gap: 18px;
    color: #0f4e8a;
}

.support-logo-platform {
    gap: 20px;
    color: #fff;
    text-transform: uppercase;
}

.support-fasie-mark {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #0f4e8a;
    color: #fff;
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.08em;
}

.support-fasie-wordmark,
.support-platform-wordmark {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.08;
    font-weight: 600;
}

.support-fasie-wordmark {
    gap: 3px;
    font-size: clamp(1rem, 1.45vw, 1.28rem);
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.support-fasie-wordmark span,
.support-platform-wordmark span {
    overflow-wrap: anywhere;
}

.support-fasie-wordmark::after {
    content: "";
    width: min(190px, 72%);
    height: 6px;
    margin-top: 5px;
    border-radius: 999px;
    background: rgba(15, 78, 138, 0.14);
}

.support-platform-mark {
    position: relative;
    flex: 0 0 74px;
    width: 74px;
    height: 72px;
    transform: translateY(-1px);
}

.support-platform-mark span {
    position: absolute;
    display: block;
    background: #fff;
}

.support-platform-mark span:nth-child(1) {
    left: 2px;
    top: 8px;
    width: 62px;
    height: 20px;
    transform: skewY(-30deg) rotate(-30deg);
}

.support-platform-mark span:nth-child(2) {
    left: 22px;
    top: 24px;
    width: 20px;
    height: 44px;
    transform: skewY(30deg);
}

.support-platform-mark span:nth-child(3) {
    left: 43px;
    top: 27px;
    width: 18px;
    height: 37px;
    transform: skewY(-30deg);
}

.support-platform-wordmark {
    gap: 2px;
    font-size: clamp(1.15rem, 1.8vw, 1.58rem);
    letter-spacing: 0.015em;
}

.support-platform-wordmark span:not(:first-child) {
    font-size: 0.58em;
    letter-spacing: 0.06em;
}

.support-copy {
    margin: 0;
    max-width: 1060px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
}

.log-console {
    margin: 0;
    max-height: 540px;
    overflow: auto;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--tint-1);
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
}

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 36px 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: none;
}

.eyebrow,
.panel-kicker,
.monitor-label {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 20ch;
    margin-bottom: 16px;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 600;
    /* Design audit 2026-07-12: unimatch.ai scales tracking with size; the
       h1 is tightened beyond the shared -0.02em used by h2/h3. */
    letter-spacing: -0.03em;
    line-height: 1.2;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* A stat/panel VALUE (the big number) is not a heading in its own right — it
   has no meaning without the preceding label, so it must not be an <h2/h3>
   (a screen reader's heading list would otherwise read bare "1", "0",
   "110374" with zero context). Keeps the exact same visual size/weight the
   headings have. */
.panel-value {
    display: block;
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-copy,
.section-intro p,
.panel p,
.report-card p,
.error-item p,
.monitor-meta {
    color: var(--secondary);
    line-height: 1.5;
}

.hero-actions,
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: center;
}

.hero-actions-single {
    align-items: center;
}

.hero-actions-single form {
    width: 100%;
    margin: 0;
}

.button-big {
    width: 100%;
    min-height: 64px;
    padding: 0 28px;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.compact-actions {
    margin-top: 12px;
}

.button-group form {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.button:hover {
    transform: scale(1.04);
}

.button.disabled,
.button[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.button.primary {
    background: var(--ink);
    color: #ffffff;
}

.button.ghost {
    background: var(--tint-1);
    border-color: var(--tint-1);
    color: var(--ink);
}

.button.ghost:hover {
    border-color: var(--line);
    background: var(--tint-1);
}

.button.danger {
    background: var(--danger-tint);
    border-color: var(--danger);
    color: var(--danger);
}

.button.danger:hover {
    background: var(--danger-tint);
    border-color: var(--danger);
}

.text-link {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stats-grid,
.panel-grid,
.report-grid,
.manual-collection-grid,
.monitor-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.seo-section {
    margin-top: 56px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.seo-section h2 {
    margin-bottom: 20px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border-top: 1px solid var(--line);
    padding: 18px 0 8px;
}

.faq-item summary {
    cursor: pointer;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 500;
}

.faq-item p {
    max-width: 780px;
    margin: 12px 0 0;
}

.report-grid,
.manual-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-collection-grid {
    margin-bottom: 22px;
}

.monitor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.panel,
.report-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.stat-card span,
.stat-card em {
    display: block;
}

.stat-card em {
    margin-top: 4px;
    font-size: 0.78rem;
    font-style: normal;
    color: var(--muted);
}

.stats-as-of {
    margin: 8px 2px 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Pale surface tints stand in for the old glowing accent blobs. */
.accent-sand,
.accent-sky,
.accent-mint,
.accent-coral {
    position: relative;
    overflow: hidden;
}

.accent-sand::before,
.accent-sky::before,
.accent-mint::before,
.accent-coral::before {
    content: none;
}

.accent-sand { background: var(--tint-1); }
.accent-sky { background: var(--tint-2); }
.accent-mint { background: var(--tint-3); }
.accent-coral { background: var(--surface); }

.section-intro {
    margin-bottom: 22px;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--ink);
}

label small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    color-scheme: light;
}

textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
    opacity: 1;
}

select {
    color: var(--ink);
    background-color: var(--surface);
}

select:invalid {
    color: var(--muted);
}

select option {
    color: var(--ink);
    background-color: var(--surface);
}

.auth-error {
    color: var(--danger);
    font-weight: 600;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.toggle-row input {
    width: 18px;
    min-height: 18px;
}

.panel-wide {
    grid-column: span 2;
}

.panel-header,
.error-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--tint-1);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--line);
}

.badge.success {
    background: var(--success-tint);
    color: var(--success);
    border-color: var(--success-tint);
}

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

.error-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--danger-tint);
    border: 1px solid var(--line);
}

.status-banner {
    margin-bottom: 18px;
}

.status-banner.warning {
    background: var(--warning-tint);
    border-color: var(--line);
}

.status-banner.success {
    background: var(--success-tint);
    border-color: var(--line);
}

.status-error {
    margin-top: 8px;
    color: var(--danger);
    font-weight: 500;
    white-space: pre-wrap;
}

.parser-monitor {
    margin-bottom: 22px;
}

.selection-panel {
    display: grid;
    gap: 18px;
}

.selection-copy,
.selection-hint {
    max-width: 82ch;
}

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

.selection-actions {
    align-items: center;
}

.run-history-panel {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.run-history-list {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.run-history-item {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--tint-1);
    min-width: 0;
    overflow: hidden;
}

.run-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.run-history-head > div {
    min-width: 0;
    flex: 1 1 320px;
}

.run-history-meta {
    margin: 6px 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.run-history-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.run-history-grid > div {
    min-width: 0;
}

.run-history-grid strong,
.run-history-head strong,
.run-history-error,
.run-detail-line {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.run-history-error {
    margin: 14px 0 0;
    color: var(--danger);
}

.run-history-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.run-history-details summary {
    cursor: pointer;
    font-weight: 500;
}

.run-detail-line {
    margin: 10px 0 0;
}

.run-detail-line.error {
    color: var(--danger);
}

.run-detail-line.warning {
    color: var(--warning);
}

.progress-shell {
    width: 100%;
    height: 12px;
    margin: 18px 0 14px;
    border-radius: 999px;
    background: var(--tint-1);
    overflow: hidden;
    border: 1px solid var(--line);
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--ink);
    transition: width 300ms ease;
}

.monitor-meta {
    margin-bottom: 14px;
}

.status-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.stat-label {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    font-size: 1.5rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--tint-1);
    color: var(--ink);
    font-family: "SFMono-Regular", "Menlo", monospace;
    font-size: 0.92em;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 18px;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumbs a {
    color: var(--ink);
    text-decoration: none;
}

.seo-landing-hero h1 {
    max-width: 24ch;
}

.seo-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-steps li {
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--tint-1);
}

.seo-steps li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}

.seo-steps p,
.seo-disclaimer,
.seo-related p {
    margin-bottom: 0;
    color: var(--secondary);
    line-height: 1.55;
}

.seo-disclaimer {
    max-width: 820px;
    margin-top: 22px;
    font-size: 0.88rem;
}

.seo-related {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 22px 2px 4px;
}

@media (max-width: 960px) {
    .hero,
    .stats-grid,
    .panel-grid,
    .seo-benefits,
    .report-grid,
    .manual-collection-grid,
    .field-grid,
    .monitor-grid,
    .run-history-grid,
    .selection-grid {
        grid-template-columns: 1fr;
    }

    .panel-wide {
        grid-column: auto;
    }

    .support-logos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100vw - 20px, 1220px);
        padding-top: 0;
    }

    .seo-section {
        margin-top: 28px;
        padding: 22px 18px;
    }

    .seo-steps {
        grid-template-columns: 1fr;
    }

    .seo-related {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .stat-card,
    .panel,
    .report-card,
    .support-strip {
        padding: 18px;
    }

    .site-header {
        align-items: center;
        gap: 12px;
        padding: 12px 4px;
        overflow: hidden;
    }

    .brand {
        flex: 0 0 auto;
        gap: 8px;
        font-size: 0.78rem;
        letter-spacing: 0;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .site-nav {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        /* The hidden scrollbar leaves zero visual sign that "Отчеты",
           "Подписки", "Админ" exist off-screen on narrow phones — fade the
           trailing edge so a clipped nav item reads as "more this way", not
           as the row simply ending. */
        mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    }

    .site-nav a {
        flex: 0 0 auto;
        padding: 8px 9px;
        font-size: 0.8rem;
        text-align: center;
    }

    .page-content {
        padding-top: 16px;
    }

    h1 {
        max-width: none;
        font-size: clamp(1.85rem, 8.2vw, 2.25rem);
        line-height: 1.2;
    }

    .panel-header,
    .run-history-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .badge {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .selection-actions,
    .hero-actions,
    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .selection-actions .button,
    .selection-actions form,
    .hero-actions .button,
    .hero-actions form,
    .button-group .button,
    .button-group form {
        width: 100%;
    }

    .button {
        min-height: 52px;
        width: 100%;
    }

    input,
    select,
    textarea {
        min-height: 54px;
        font-size: 1rem;
    }

    .support-strip {
        margin-bottom: 14px;
        padding: 12px;
    }

    .support-logo-card {
        min-height: 76px;
        padding: 12px;
        border-radius: 14px;
    }

    .support-logo-img,
    .support-logo-fallback {
        max-width: 100%;
    }

    .support-logo-fasie,
    .support-logo-platform {
        gap: 12px;
        justify-content: center;
    }

    .support-logo-img-fasie {
        max-height: 58px;
    }

    .support-logo-img-platform {
        max-height: 56px;
    }

    .support-fasie-mark {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.7rem;
    }

    .support-platform-mark {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
        transform: scale(0.72);
        transform-origin: center;
    }

    .support-fasie-wordmark {
        font-size: 0.82rem;
    }

    .support-platform-wordmark {
        font-size: 0.98rem;
    }

    .support-copy {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .hero {
        gap: 16px;
        margin-bottom: 16px;
    }

    .hero-copy {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }
}

/* Homepage overhaul, 2026-07-18.
   Visual reference: Unimatch's calm monochrome surfaces and spatial scale.
   Product structure: the existing ProfitScanner search, monitoring,
   analytics and report flows. No third-party interface is copied. */
:root {
    --accent: #2457d6;
    --accent-soft: #eaf0ff;
    --bg: #f8f9fb;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-glow: #ffffff;
    --ink: #17191e;
    --secondary: #505664;
    --muted: #686f7d;
    --line: #dfe3ea;
    --tint-1: #f0f3f7;
    --tint-2: #edf2ff;
    --tint-3: #eef6f8;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 14px;
}

body {
    font-family: "Segoe UI Variable", "Aptos", system-ui, -apple-system, sans-serif;
    background: var(--bg);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--surface);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.page-shell {
    width: min(1360px, calc(100vw - 40px));
}

.site-header {
    min-height: 72px;
    padding: 12px 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.site-nav {
    flex-wrap: nowrap;
    align-items: center;
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--tint-1);
}

.nav-toggle {
    display: none;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.page-content {
    padding-top: 18px;
}

.site-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-top: 96px;
    padding: 28px 0 4px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer span,
.site-footer a {
    color: var(--ink);
    font-weight: 600;
}

.site-footer p {
    margin: 0;
}

.home-page .page-content {
    overflow: clip;
}

.home-hero {
    min-height: min(660px, calc(100dvh - 110px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(28px, 3.5vw, 50px);
}

.home-hero h1 {
    max-width: none;
    margin-bottom: 22px;
    font-size: clamp(2.8rem, 3.2vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.home-hero .hero-copy {
    max-width: 42ch;
    margin-bottom: 28px;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.home-hero .hero-actions {
    flex-wrap: nowrap;
    align-items: center;
}

.home-hero .hero-actions form {
    margin: 0;
}

.home-hero .button-big {
    width: auto;
    min-height: 54px;
    padding: 0 24px;
    font-size: 0.96rem;
    white-space: nowrap;
}

.home-hero-media,
.analysis-media {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: calc(var(--radius-xl) - 8px);
    background: var(--tint-1);
}

.home-hero-media img,
.analysis-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-media img {
    object-position: 56% center;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.stats-band article {
    min-width: 0;
    padding: 28px 32px;
}

.stats-band article + article {
    border-left: 1px solid var(--line);
}

.stats-band span,
.stats-band small {
    display: block;
    color: var(--muted);
}

.stats-band strong {
    display: block;
    margin: 8px 0 4px;
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 600;
    letter-spacing: -0.045em;
}

.stats-band small {
    font-size: 0.78rem;
}

.home-workflow,
.home-analysis,
.home-tools,
.home-page .support-strip,
.home-faq {
    margin-top: clamp(76px, 9vw, 128px);
}

.home-workflow {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
    padding: 0 clamp(12px, 4vw, 64px);
}

.workflow-intro {
    position: sticky;
    top: 112px;
}

.workflow-intro h2,
.analysis-copy h2,
.tools-main h2,
.home-faq h2 {
    max-width: 14ch;
    font-size: clamp(2.25rem, 4.25vw, 4.35rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.workflow-intro p,
.analysis-copy > p,
.tools-main > p {
    max-width: 48ch;
    color: var(--secondary);
    font-size: 1.05rem;
}

.workflow-list {
    border-top: 1px solid var(--line);
}

.workflow-list article {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) 1fr;
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.workflow-list h3,
.workflow-list p {
    margin: 0;
}

.workflow-list h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.workflow-list p {
    max-width: 43ch;
    color: var(--secondary);
}

.home-analysis {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap: 18px;
    min-height: 620px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
}

.analysis-media img {
    object-position: 52% center;
}

.analysis-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 64px);
}

.analysis-links {
    display: grid;
    margin-top: 26px;
    border-top: 1px solid var(--line);
}

.analysis-links a {
    position: relative;
    padding: 16px 32px 16px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

.analysis-links a::after {
    content: "↗";
    position: absolute;
    right: 4px;
    color: var(--accent);
}

.home-tools {
    display: grid;
    grid-template-columns: 1.3fr 0.86fr 0.86fr;
    grid-template-rows: repeat(2, minmax(180px, auto));
    gap: 18px;
}

.tools-main,
.tool-link {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.tools-main {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 500px;
    padding: clamp(32px, 5vw, 64px);
    background: var(--ink);
    color: var(--surface);
}

.tools-main h2 {
    color: inherit;
}

.tools-main > p {
    color: color-mix(in srgb, var(--surface) 70%, transparent);
}

.tools-main .button.primary {
    margin-top: 18px;
    background: var(--surface);
    color: var(--ink);
}

.tool-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background: var(--surface);
    transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.tool-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.tool-link span {
    color: var(--muted);
}

.tool-link strong {
    max-width: 13ch;
    font-size: clamp(1.35rem, 2.3vw, 2.15rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.tool-link-market {
    background: var(--accent-soft);
}

.home-page .support-strip {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
}

.support-title {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.home-page .support-logos {
    margin-bottom: 18px;
}

.home-faq {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 8vw, 120px);
    padding: clamp(28px, 5vw, 64px);
}

.home-faq h2 {
    margin: 0;
}

.home-faq .faq-list {
    gap: 0;
}

.home-faq .faq-item {
    padding: 20px 0;
}

.faq-item summary {
    list-style: none;
    position: relative;
    padding-right: 42px;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: -2px;
    right: 4px;
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.button:active,
.tool-link:active {
    transform: scale(0.98);
}

:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero-copy {
        animation: home-enter 0.72s var(--ease-out) both;
    }

    .stats-band {
        animation: home-enter 0.72s 0.16s var(--ease-out) both;
    }

    @supports (animation-timeline: view()) {
        .home-workflow,
        .home-analysis,
        .home-tools,
        .home-page .support-strip,
        .home-faq {
            animation: section-enter linear both;
            animation-timeline: view();
            animation-range: entry 4% cover 24%;
        }
    }
}

@keyframes home-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes section-enter {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101114;
        --surface: #17191e;
        --surface-strong: #1b1e24;
        --surface-glow: #1b1e24;
        --ink: #f1f3f7;
        --secondary: #b7bdc8;
        --muted: #9ba3b1;
        --line: #303540;
        --tint-1: #22262e;
        --tint-2: #1e2942;
        --tint-3: #182a2e;
        --accent: #7da2ff;
        --accent-soft: #1d2943;
        --success-tint: #183023;
        --warning-tint: #332818;
        --danger-tint: #3a1e22;
        color-scheme: dark;
    }

    input,
    select,
    textarea {
        color: var(--ink);
        color-scheme: dark;
        background: var(--surface-strong);
        border-color: var(--line);
    }

    input::placeholder,
    textarea::placeholder {
        color: color-mix(in srgb, var(--muted) 72%, transparent);
    }

    select:invalid {
        color: var(--muted);
    }

    select option {
        color: var(--ink);
        background-color: var(--surface-strong);
    }

    .site-header {
        background: color-mix(in srgb, var(--bg) 90%, transparent);
    }

    .button.primary,
    .brand-mark {
        background: #f1f3f7;
        border-color: #f1f3f7;
        color: #17191e;
    }

    .tools-main {
        background: #0c0d10;
        color: #f1f3f7;
    }

    .tools-main .button.primary {
        background: #f1f3f7;
        color: #17191e;
    }

    .home-hero-media img,
    .analysis-media img {
        filter: brightness(0.78) contrast(1.04);
    }

    .support-logo-card-fasie {
        background: #f7f8fa;
    }
}

@media (max-width: 1080px) {
    .home-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero h1 {
        font-size: clamp(2.75rem, 5vw, 4.2rem);
    }

    .home-workflow,
    .home-faq {
        gap: 48px;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: min(100vw - 24px, 1360px);
    }

    .site-header {
        min-height: 64px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        width: min(320px, calc(100vw - 24px));
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 12%, transparent);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 12px 14px;
    }

    .home-hero,
    .home-analysis,
    .home-workflow,
    .home-faq {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero-copy {
        min-height: 500px;
        padding: 42px 28px;
    }

    .home-hero-media {
        aspect-ratio: 4 / 3;
    }

    .stats-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-band article:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .stats-band article:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .workflow-intro {
        position: static;
    }

    .home-analysis {
        min-height: auto;
    }

    .analysis-media {
        aspect-ratio: 16 / 10;
    }

    .home-tools {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .tools-main {
        grid-column: 1 / 3;
        grid-row: auto;
        min-height: 430px;
    }
}

@media (max-width: 640px) {
    .site-header {
        overflow: visible;
    }

    .site-nav {
        min-width: unset;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .page-content {
        padding-top: 10px;
    }

    .home-hero {
        padding: 10px;
        border-radius: 24px;
    }

    .home-hero-copy {
        min-height: 0;
        padding: 26px 18px 20px;
    }

    .home-hero h1 {
        max-width: none;
        margin-bottom: 16px;
        font-size: clamp(1.7rem, 7.8vw, 2rem);
        line-height: 0.98;
    }

    .home-hero .hero-copy {
        margin-bottom: 20px;
        font-size: 0.96rem;
    }

    .home-hero .hero-actions {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .home-hero .hero-actions form,
    .home-hero .button-big {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        padding-inline: 12px;
        font-size: 0.84rem;
    }

    .home-hero .hero-actions form .button-big {
        width: 100%;
    }

    .home-hero-media {
        height: 190px;
        aspect-ratio: auto;
    }

    .stats-band article {
        padding: 22px 18px;
    }

    .stats-band strong {
        font-size: 2rem;
    }

    .home-workflow,
    .home-analysis,
    .home-tools,
    .home-page .support-strip,
    .home-faq {
        margin-top: 72px;
    }

    .home-workflow {
        padding: 0 10px;
        gap: 36px;
    }

    .workflow-list article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .workflow-intro h2,
    .analysis-copy h2,
    .tools-main h2,
    .home-faq h2 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .home-analysis {
        padding: 10px;
        border-radius: 24px;
    }

    .analysis-copy {
        padding: 30px 14px 20px;
    }

    .home-tools {
        grid-template-columns: 1fr;
    }

    .tools-main,
    .tool-link {
        grid-column: auto;
        min-height: 230px;
        padding: 28px;
    }

    .tools-main {
        min-height: 420px;
    }

    .home-faq {
        gap: 24px;
        padding: 28px 20px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
