.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 720;
    letter-spacing: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    color: var(--color-bg);
    font-weight: 780;
}

.brand-word {
    font-size: 17px;
}

.site-nav a,
.footer-grid a {
    color: var(--color-text-muted);
    transition: color .2s var(--ease-out), background .2s var(--ease-out);
}

.site-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
}

.site-nav a:hover,
.site-nav a.is-active,
.footer-grid a:hover {
    color: var(--color-text);
}

.site-nav a.nav-cta {
    color: var(--color-accent-contrast);
    background: var(--color-accent);
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta.is-active {
    color: var(--color-accent-contrast);
    background: color-mix(in srgb, var(--color-accent) 88%, var(--color-text));
}

.nav-toggle {
    display: none;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: transparent;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 720;
    cursor: pointer;
}

.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--color-border);
    background: var(--surface-alpha);
    border-radius: 999px;
}

.segmented a {
    min-width: 38px;
    padding: 8px 10px;
    color: var(--color-text-muted);
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.segmented a.is-active {
    color: var(--color-accent-contrast);
    background: var(--color-accent);
}

.theme-switch {
    position: relative;
    width: 68px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--surface-alpha);
    padding: 4px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: border-color .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.theme-switch:hover {
    border-color: color-mix(in srgb, var(--color-accent) 46%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 10%, var(--surface-alpha));
}

.theme-switch:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.theme-switch-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.theme-switch-thumb {
    position: absolute;
    z-index: 0;
    inset: 0 auto 0 0;
    width: 50%;
    background: var(--color-accent);
    border-radius: inherit;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-accent) 34%, transparent);
    transform: translateX(0);
    transition: transform .28s var(--ease-out), box-shadow .2s var(--ease-out);
}

.theme-switch-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 100%;
    color: color-mix(in srgb, var(--color-text-muted) 78%, transparent);
    transition: color .2s var(--ease-out), transform .2s var(--ease-out);
}

.theme-switch-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:root[data-theme="dark"] .theme-switch-icon-dark,
:root[data-theme="light"] .theme-switch-icon-light {
    color: var(--color-accent-contrast);
    transform: scale(1.04);
}

:root[data-theme="light"] .theme-switch-thumb {
    transform: translateX(100%);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.02;
}

h1 {
    font-size: clamp(36px, 5.2vw, 68px);
    max-width: 880px;
}

.hero-simple h1,
.product-hero h1,
.article-page h1 {
    font-size: clamp(34px, 4.3vw, 58px);
    max-width: 820px;
}

h2 {
    font-size: clamp(28px, 3.4vw, 48px);
}

h3 {
    font-size: 20px;
    line-height: 1.15;
}

p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.lead {
    font-size: clamp(17px, 1.55vw, 20px);
    max-width: 720px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-weight: 720;
    text-align: center;
    transition: transform .2s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary:hover {
    box-shadow: 0 12px 32px color-mix(in srgb, var(--color-accent) 28%, transparent);
}

.button-primary {
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border-color: transparent;
}

.button-secondary {
    background: var(--surface-alpha);
}

.button-icon {
    width: 19px;
    height: 19px;
    flex: none;
}

.narrow > .button {
    margin-top: 22px;
}

.hero-proof {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    max-width: 720px;
}

.hero-proof span,
.contact-aside article {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 14px;
    align-items: baseline;
    position: relative;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    background: var(--surface-alpha);
    border-radius: var(--radius-card);
    color: var(--color-text-muted);
}

.hero-proof span::before,
.mini-checklist li::before,
.reason-stack p::before,
.contact-aside article::before {
    content: "";
    display: block;
    position: static;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-green) 18%, transparent);
}

.surface-card,
.product-card,
.pricing-card,
.article-card,
.partnership-card,
.preview-explainer,
.form-card,
.value-card,
.contact-aside {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-soft);
}

.surface-card,
.product-card,
.pricing-card,
.article-card,
.value-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 24px;
}

.surface-card a,
.product-card a,
.article-card a,
.text-link {
    color: var(--color-accent);
    font-weight: 720;
}

.surface-card a,
.product-card a,
.article-card a,
.pricing-card .button {
    margin-top: auto;
}

.product-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.product-card-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-card-meta .eyebrow {
    margin-bottom: 12px;
}

.status-pill {
    flex: none;
    padding: 6px 9px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text);
    background: color-mix(in srgb, var(--color-green) 14%, var(--surface-alpha));
    font-size: 12px;
    font-weight: 760;
}

.product-accent {
    width: 54px;
    height: 4px;
    margin-bottom: 22px;
    background: var(--color-accent);
}

.product-accent-green { background: var(--color-green); }
.product-accent-violet { background: var(--color-violet); }
.product-accent-gold { background: var(--color-gold); }

.store-note,
.store-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.store-note {
    margin: 18px 0 0;
    color: var(--color-text);
    font-weight: 720;
}

.store-hint {
    width: fit-content;
    margin: 4px 0 18px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--surface-alpha);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 760;
}

.store-note img,
.store-hint img {
    width: 18px;
    height: 18px;
    flex: none;
}

.pricing-card strong {
    display: block;
    margin: 18px 0;
    font-size: clamp(24px, 2.3vw, 30px);
}

.plan-fit {
    margin-top: -8px;
    color: var(--color-text);
    font-weight: 720;
}

.pricing-card li,
.feature-list li {
    margin: 10px 0;
    color: var(--color-text-muted);
}

.service-list,
.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-list div,
.capability-grid span {
    min-height: 72px;
    display: flex;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--color-border);
    background: var(--surface-alpha);
    border-radius: var(--radius-card);
}

.value-card {
    min-height: 220px;
}

.value-card h3 {
    margin-bottom: 12px;
}

.mini-checklist {
    display: grid;
    gap: 8px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.mini-checklist li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 16px;
    align-items: baseline;
    position: relative;
    min-height: auto;
    margin: 0;
    padding: 8px 0;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 48px;
}

.stats-strip div {
    padding: 18px;
    border-top: 1px solid var(--color-border);
}

.stats-strip strong {
    display: block;
    font-size: clamp(26px, 3vw, 34px);
}

.stats-strip span {
    color: var(--color-text-muted);
}

.steps {
    display: grid;
    gap: 16px;
}

.step {
    padding: 24px;
    border-top: 1px solid var(--color-border);
}

.step span {
    color: var(--color-accent);
    font-weight: 760;
}

.partnership-card,
.preview-explainer {
    padding: clamp(28px, 5vw, 56px);
}

.reason-stack {
    display: grid;
    gap: 12px;
}

.reason-stack p {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 20px;
    align-items: baseline;
    position: relative;
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
}

.contact-aside {
    padding: clamp(24px, 4vw, 38px);
}

.contact-aside article {
    border: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 0;
    background: transparent;
    padding: 18px 14px;
}

.contact-aside article h3,
.contact-aside article p {
    grid-column: 2;
}

.contact-aside article h3 {
    margin-bottom: 8px;
}

.contact-aside article p {
    margin: 0;
}

.contact-aside .reason-stack p {
    padding: 0;
    border-top: 0;
}

.contact-aside .reason-stack p::before {
    content: none;
}

.product-proof {
    margin-bottom: 34px;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--color-border);
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--color-green) 11%, transparent), transparent 46%),
        var(--color-bg-elevated);
}

.preview-explainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-band {
    padding: 64px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 52%),
        var(--color-bg-elevated);
}

.cta-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-band h2 {
    max-width: 780px;
}

.pin-demo {
    display: flex;
    gap: 10px;
}

.pin-demo span {
    width: 42px;
    height: 54px;
    border: 1px solid var(--color-border);
    background: var(--surface-alpha);
}

.form-card {
    padding: 26px;
}

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

.form-intro h2 {
    font-size: clamp(24px, 2.5vw, 34px);
    margin-bottom: 10px;
}

.form-intro p,
.form-note {
    margin: 0;
}

.coupon-banner {
    margin: 0 0 20px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--color-green) 36%, var(--color-border));
    border-radius: var(--radius-card);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--color-green) 12%, transparent), transparent 58%),
        var(--surface-alpha);
}

.coupon-banner span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-green);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coupon-banner strong {
    display: block;
    color: var(--color-text);
}

.coupon-banner p {
    margin: 8px 0 0;
}

.form-note {
    margin-top: 14px;
    font-size: 14px;
}

.form-card label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.coupon-field span {
    font-size: 13px;
    line-height: 1.5;
}

.form-card input,
.form-card select,
.form-card textarea {
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 8px;
    padding: 13px 14px;
    outline: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.form-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.form-message.is-success {
    color: var(--color-success);
}

.form-message.is-error {
    color: var(--color-danger);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.tag-row span {
    padding: 6px 9px;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 999px;
    font-size: 13px;
}

.compact-tags {
    margin-top: 20px;
}

.compact-tags span {
    font-size: 12px;
}

.footer-grid h2 {
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--color-text);
}

.footer-grid a {
    display: block;
    margin: 9px 0;
}

.footer-link-button {
    display: block;
    width: fit-content;
    margin: 9px 0;
    padding: 0;
    border: 0;
    color: var(--color-text-muted);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color .2s var(--ease-out);
}

.footer-link-button:hover {
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-links a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-muted);
    background: var(--surface-alpha);
    transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background .2s var(--ease-out), transform .2s var(--ease-out);
}

.social-links a:hover {
    color: var(--color-text);
    border-color: color-mix(in srgb, var(--color-accent) 46%, var(--color-border));
    transform: translateY(-2px);
}

.social-links .social-icon {
    flex: none;
    width: 18px;
    height: 18px;
    fill: currentColor;
    overflow: visible;
}

.social-links .social-icon rect,
.social-links .social-icon circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.social-links .social-icon circle:last-child {
    fill: currentColor;
    stroke: none;
}

.analytics-consent {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    padding: 18px;
    pointer-events: none;
}

.analytics-consent-panel {
    width: min(940px, calc(100vw - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: color-mix(in srgb, var(--color-bg-elevated) 94%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.analytics-consent-copy h2 {
    font-size: clamp(22px, 2vw, 28px);
}

.analytics-consent-copy p:last-child {
    margin-bottom: 0;
}

.analytics-consent-copy a {
    color: var(--color-accent);
    font-weight: 720;
}

.analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.analytics-consent-actions .button {
    min-width: 150px;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav a {
        border-radius: var(--radius-card);
        padding: 12px 14px;
    }
}

@media (max-width: 680px) {
    .header-controls {
        gap: 6px;
    }

    .segmented {
        padding: 2px;
    }

    .segmented a {
        min-width: 34px;
        padding: 7px 8px;
    }

    .theme-switch {
        width: 60px;
        height: 34px;
        padding: 3px;
    }

    .theme-switch-icon svg {
        width: 14px;
        height: 14px;
    }

    h1 {
        font-size: clamp(32px, 9vw, 36px);
        line-height: 1.05;
    }

    .hero-simple h1,
    .product-hero h1,
    .article-page h1 {
        font-size: clamp(30px, 8.5vw, 36px);
    }

    .service-list,
    .capability-grid,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .preview-explainer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-band-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .analytics-consent {
        padding: 12px;
    }

    .analytics-consent-panel {
        width: calc(100vw - 24px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .analytics-consent-actions {
        justify-content: stretch;
    }
}
