/* Astrid-inspired application layer: calm blue, cream, olive, black and generous editorial space. */
:root {
    --astrid-blue: #dce7e9;
    --astrid-blue-strong: #88a9c3;
    --astrid-cream: #faf4e6;
    --astrid-olive: #cbd2aa;
    --astrid-olive-deep: #6f7950;
    --astrid-white: #fffdf7;
    --astrid-black: #10110f;
    --astrid-muted: #4f554d;
    --astrid-line: rgb(16 17 15 / 18%);
    --astrid-serif: Georgia, "Times New Roman", Times, serif;
    --astrid-sans: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}

body {
    color: var(--astrid-black);
    font-family: var(--astrid-sans);
}

::selection {
    background: var(--astrid-olive);
    color: var(--astrid-black);
}

:focus-visible {
    outline-color: var(--astrid-olive-deep);
}

.site-header {
    border-bottom-color: var(--astrid-line);
    background: rgb(245 249 247 / 94%);
    color: var(--astrid-black);
}

.brand img {
    width: 52px;
}

.brand-copy {
    border-left: 0;
}

.brand-copy strong {
    color: var(--astrid-black);
    font-family: var(--astrid-sans);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.04em;
    text-transform: none;
}

.brand-copy small {
    color: var(--astrid-muted);
    letter-spacing: .1em;
}

.site-nav a,
.header-actions .text-link,
.logout-button,
.nav-logout-button {
    color: var(--astrid-black);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.site-nav a::after {
    background: var(--astrid-black);
}

.header-actions {
    gap: 18px;
}

.header-actions .button,
.site-header .button {
    min-height: 42px;
    padding-inline: 20px;
    border-color: var(--astrid-black);
    border-radius: 999px;
    background: transparent;
    color: var(--astrid-black);
    letter-spacing: 0;
    text-transform: none;
}

.header-actions .button:hover,
.site-header .button:hover {
    border-color: var(--astrid-black);
    background: var(--astrid-black);
    color: var(--astrid-white);
}

.logout-button,
.nav-logout-button {
    padding: 9px 16px;
    border: 1px solid var(--astrid-black);
    border-radius: 999px;
}

.logout-button:hover,
.nav-logout-button:hover {
    background: var(--astrid-black);
    color: var(--astrid-white);
}

.button {
    border-color: var(--astrid-black);
    border-radius: 999px;
    background: var(--astrid-black);
    color: var(--astrid-white);
    font-family: var(--astrid-sans);
    letter-spacing: .02em;
}

.button:hover {
    border-color: var(--astrid-olive-deep);
    background: var(--astrid-olive-deep);
}

.button-yellow {
    border-color: var(--astrid-olive);
    background: var(--astrid-olive);
    color: var(--astrid-black);
}

.button-yellow:hover {
    border-color: var(--astrid-black);
    background: var(--astrid-black);
    color: var(--astrid-white);
}

.eyebrow {
    color: var(--astrid-olive-deep);
    font-weight: 700;
}

.wizard-page,
.dashboard-page,
.order-detail-page,
.admin-page,
.auth-page,
.public-page {
    background-color: var(--astrid-cream);
    background-image: radial-gradient(circle at 24% 18%, rgb(255 255 255 / 55%) 0 1px, transparent 1.5px);
    background-size: 28px 28px;
    color: var(--astrid-black);
}

:is(.wizard-page, .dashboard-page, .order-detail-page, .admin-page, .auth-page, .public-page) :is(h1, h2, h3) {
    color: var(--astrid-black);
    font-family: var(--astrid-serif);
    font-weight: 400;
    letter-spacing: -.045em;
}

:is(.wizard-page, .dashboard-page, .order-detail-page, .admin-page, .auth-page, .public-page) mark {
    background: transparent;
    color: var(--astrid-olive-deep);
    font-family: var(--astrid-serif);
    font-style: italic;
    font-weight: 400;
}

.wizard-shell,
.dashboard-shell,
.order-detail-shell,
.admin-shell {
    padding-top: clamp(70px, 8vw, 120px);
    padding-bottom: clamp(90px, 10vw, 150px);
}

.wizard-heading h1,
.dashboard-hero h1,
.admin-heading h1 {
    max-width: 920px;
    font-size: clamp(54px, 7vw, 104px);
    line-height: .92;
}

.wizard-heading > p,
.dashboard-hero p,
.admin-heading p {
    max-width: 660px;
    color: var(--astrid-muted);
    font-size: 17px;
    line-height: 1.7;
}

.wizard-layout,
.admin-detail-grid {
    gap: clamp(28px, 5vw, 70px);
}

.wizard-panel,
.wizard-preview,
.dashboard-overview,
.order-card,
.order-hero,
.detail-card,
.admin-card,
.admin-filters,
.admin-table-wrap,
.bank-transfer-panel {
    border-color: var(--astrid-line) !important;
    border-radius: 26px;
    background: var(--astrid-white);
    box-shadow: none;
}

.wizard-progress li span,
.progress-ring,
.status-badge {
    border-color: var(--astrid-line);
}

.wizard-progress li.is-active span,
.wizard-progress li.is-complete span,
.progress-track span {
    border-color: var(--astrid-black);
    background: var(--astrid-black);
    color: var(--astrid-white);
}

.wizard-step legend {
    font-family: var(--astrid-serif);
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 400;
    letter-spacing: -.03em;
}

.field input,
.field select,
.field textarea,
.admin-filters select {
    border-color: var(--astrid-line);
    border-radius: 12px;
    background: #fff;
}

.auth-page .site-header,
.auth-page .site-footer {
    display: block;
}

.auth-page main {
    min-height: auto;
}

.auth-shell {
    min-height: calc(100dvh - 82px);
    grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
    background: var(--astrid-blue);
}

.auth-card {
    width: min(100%, 620px);
    padding: clamp(54px, 8vw, 110px);
    background: var(--astrid-cream);
}

.auth-logo {
    display: none;
}

.auth-card h1 {
    font-size: clamp(48px, 5.8vw, 82px);
    line-height: .93;
}

.auth-card > p {
    color: var(--astrid-muted);
}

.auth-form .button {
    border-radius: 999px;
    background: var(--astrid-olive);
    color: var(--astrid-black);
}

.auth-form .button:hover {
    background: var(--astrid-black);
    color: var(--astrid-white);
}

.auth-art {
    min-height: 760px;
    color: var(--astrid-black);
}

.auth-art-media img {
    filter: saturate(.82) brightness(1.08);
}

.auth-art-shade,
.auth-art-plum .auth-art-shade {
    background: linear-gradient(180deg, transparent 45%, rgb(220 231 233 / 84%));
}

.auth-art-caption {
    color: var(--astrid-black);
}

.auth-art-caption blockquote {
    font-family: var(--astrid-serif);
    font-size: clamp(32px, 4vw, 58px);
    font-weight: 400;
    letter-spacing: -.045em;
}

.auth-art-caption > span,
.auth-art-caption > p {
    color: var(--astrid-black);
}

.dashboard-overview {
    overflow: hidden;
}

.dashboard-page .order-card-list {
    gap: clamp(16px, 1.5vw, 24px);
}

.overview-stat.is-purple,
.order-card-mark,
.admin-price {
    background: var(--astrid-olive);
    color: var(--astrid-black);
}

.order-card {
    overflow: hidden;
}

.order-card-main {
    background: transparent;
}

.order-card h3,
.admin-order-hero h1 {
    font-family: var(--astrid-serif);
}

.detail-hero .detail-title h1,
.admin-order-hero h1 {
    color: var(--astrid-white);
}

.detail-hero .detail-title p,
.admin-order-hero > div:first-child > small,
.admin-order-hero > div:first-child > p {
    color: rgb(255 255 255 / 76%);
}

.admin-table {
    position: relative;
}

.site-footer {
    background: var(--astrid-black);
    color: var(--astrid-white);
}

.site-footer h2,
.footer-statement h2 {
    color: var(--astrid-white);
    font-family: var(--astrid-serif);
    font-weight: 400;
    letter-spacing: -.045em;
}

.site-footer .editorial-kicker,
.site-footer .editorial-link {
    color: var(--astrid-olive);
}

.public-hero {
    padding: clamp(84px, 10vw, 145px) 0;
    background: var(--astrid-blue);
    color: var(--astrid-black);
}

.public-hero::after {
    right: 4vw;
    bottom: -280px;
    width: min(42vw, 620px);
    height: min(42vw, 620px);
    border-color: rgb(16 17 15 / 14%);
}

.public-hero h1 {
    max-width: 1000px;
    font-family: var(--astrid-serif);
    font-size: clamp(58px, 8.5vw, 124px);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .9;
}

.public-hero p,
.legal-hero p {
    color: var(--astrid-muted);
}

.public-section {
    background: var(--astrid-cream);
}

.public-card,
.cookie-table {
    border-color: var(--astrid-line);
    border-radius: 24px;
    background: var(--astrid-white);
}

.public-card-number,
.map-pin {
    background: var(--astrid-olive);
    color: var(--astrid-black);
}

.public-card h2,
.map-region-heading h2,
.map-placeholder h3,
.legal-content h2,
.cookie-intro h2 {
    font-family: var(--astrid-serif);
    font-weight: 400;
}

.map-panel {
    border: 1px solid var(--astrid-line);
    border-radius: 28px;
    background-color: var(--astrid-blue);
    background-image:
        linear-gradient(90deg, rgb(16 17 15 / 6%) 1px, transparent 1px),
        linear-gradient(rgb(16 17 15 / 6%) 1px, transparent 1px);
    box-shadow: none;
}

.map-region-heading {
    background: var(--astrid-white);
}

.legal-hero,
.privacy-hero,
.cookies-hero {
    background: var(--astrid-blue);
    color: var(--astrid-black);
}

.legal-hero .eyebrow {
    color: var(--astrid-olive-deep);
}

.legal-summary {
    border-left-color: var(--astrid-olive-deep);
    background: var(--astrid-white);
}

.legal-content section {
    border-bottom-color: var(--astrid-line);
}

.legal-content section > span,
.legal-content a,
.cookie-table a {
    color: var(--astrid-olive-deep);
}

.notice-chip,
.legal-review-note {
    border-color: var(--astrid-olive-deep);
    background: #edf0d8;
    color: var(--astrid-black);
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-card {
        width: 100%;
        max-width: none;
    }

    .auth-art {
        min-height: 560px;
        order: -1;
    }
}

@media (max-width: 1120px) {
    body.nav-is-open {
        overflow: hidden;
    }

    .site-nav {
        position: fixed;
        z-index: 45;
        inset: 70px 0 0;
        display: flex;
        min-height: calc(100dvh - 70px);
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 34px 24px 44px;
        border: 0;
        background: var(--astrid-cream);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px);
        transition: opacity .35s ease, transform .5s cubic-bezier(.4, 0, .2, 1);
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: min(100%, 520px);
        padding: 10px 0;
        border: 0;
        font-family: var(--astrid-serif);
        font-size: clamp(27px, 8vw, 36px);
        font-weight: 400;
        letter-spacing: -.035em;
        text-align: center;
    }

    .nav-logout-form {
        width: min(100%, 420px);
        padding: 20px 0 0;
        margin-top: 10px;
        border-top: 1px solid var(--astrid-line);
    }

    .nav-logout-button {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
        text-align: center;
    }

    .nav-toggle {
        position: relative;
        z-index: 60;
    }

    .nav-toggle span:not(.sr-only) {
        background: var(--astrid-black);
        transition: transform .25s ease, opacity .2s ease;
    }

    .nav-toggle[aria-expanded="true"] span:not(.sr-only):first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
        transform: translateY(-3.5px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .wizard-heading h1,
    .dashboard-hero h1,
    .admin-heading h1 {
        font-size: clamp(46px, 14vw, 68px);
    }

    .auth-card {
        padding: 54px 24px 70px;
    }

    .auth-card h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .auth-art {
        min-height: 220px;
        order: 0;
    }

    .auth-art-caption {
        display: none;
    }
}
