:root {
    --bg: #0a0a0a;
    --bg-elev: #111111;
    --bg-card: #161616;
    --line: #1f1f1f;
    --line-strong: #2a2a2a;
    --text: #ffffff;
    --text-dim: #8a8a8a;
    --text-soft: #b4b4b4;
    --yellow: #f2ff3a;
    --yellow-deep: #d8e600;
    --stripe: #635bff;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Geist', -apple-system, sans-serif;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-image: radial-gradient(ellipse 800px 400px at 10% -10%, rgba(242, 255, 58, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 300px at 100% 0%, rgba(242, 255, 58, 0.04), transparent 60%);
}

/* ─── Top bar ─── */
.topbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 18px 10px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 120ms ease, border-color 120ms ease;
}

.brand:hover {
    background: var(--bg-elev);
    border-color: var(--line);
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 100%;
    display: grid;
    place-items: center;
    color: #000;
    font-weight: 700;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: -2px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.site-nav__link {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 14px;
    transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.site-nav__link svg {
    width: 14px;
    height: 14px;
}

.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__dropdown:hover .site-nav__link {
    color: var(--text);
    background: var(--bg-elev);
    border-color: var(--line);
}

.site-nav__dropdown {
    position: relative;
}

.site-nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 40px));
    background: rgba(17, 17, 17, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
    z-index: 30;
}

.site-nav__dropdown:hover .site-nav__menu,
.site-nav__dropdown:focus-within .site-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: background 120ms ease;
}

.site-nav__menu-item:hover {
    background: var(--bg-card);
}

.site-nav__menu-title,
.site-nav__menu-desc {
    display: block;
}

.site-nav__menu-thumb {
    flex: none;
    width: 68px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
}

.site-nav__menu-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-nav__menu-copy {
    min-width: 0;
}

.site-nav__menu-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.site-nav__menu-desc {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.4;
    margin-top: 3px;
}

/* ─── Layout ─── */
.shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 80px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: stretch;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .shell {
        padding: 16px 20px 60px;
    }

    .topbar {
        padding: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .site-nav__menu {
        left: 0;
        right: auto;
    }
}

/* ─── Left column (Product) ─── */
.product-card {
    position: relative;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    overflow: hidden;
}

.product-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--line-strong);
    margin-bottom: 24px;
}

/* Slider styles */
.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10;
}

.slider-nav__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
    padding: 0;
}

.slider-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #000;
    transform: scale(1.05);
}

.slider-btn:active {
    transform: scale(0.95);
}

.slider-btn svg {
    width: 16px;
    height: 16px;
}

.slider-view-btn {
    height: 36px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.slider-view-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #000;
    transform: scale(1.03);
}

.slider-view-btn svg {
    width: 14px;
    height: 14px;
}

.product-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.chip {
    font-size: 11px;
    font-weight: 600;
    color: #111;
    background: #f0f0f0;
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 5px 10px;
}

.product-title {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-desc {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 22px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.feature-list li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-soft);
    align-items: flex-start;
}

.feature-list .check {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--yellow);
    display: grid;
    place-items: center;
    margin-top: 2px;
}

.feature-list .check svg {
    width: 10px;
    height: 10px;
}

/* ─── Right column (Checkout summary) ─── */
.checkout-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.section-eyebrow {
    color: var(--yellow);
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 26px;
}

/* Contact fields */
.contact-fields {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field label .req {
    color: var(--yellow);
    font-size: 10px;
}

.input {
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
    width: 100%;
}

.input::placeholder {
    color: #555;
}

.input:hover {
    border-color: #383838;
}

.input:focus {
    outline: none;
    border-color: var(--yellow);
    background: #181810;
    box-shadow: 0 0 0 3px rgba(242, 255, 58, 0.12);
}

.field-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Validation errors */
.field-error {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    line-height: 1.4;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

.field-error--block {
    margin: -8px 0 14px;
}

.input.is-invalid {
    border-color: #ff6b6b;
    background: #1a1010;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.input.is-invalid:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.agree-check.is-invalid .agree-check__box {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.form-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff8a8a;
    font-size: 13px;
    line-height: 1.5;
}

.form-section-title {
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Order summary block */
.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 22px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-soft);
}

.order-row .name {
    color: var(--text);
    font-weight: 500;
}

.order-row .price {
    color: var(--text-dim);
    font-weight: 500;
}

/* Agreement checkbox */
.agree-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 18px;
    cursor: pointer;
    user-select: none;
}

.agree-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.agree-check__box {
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: transparent;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
    margin-top: 1px;
}

.agree-check__box svg {
    width: 11px;
    height: 11px;
}

.agree-check:hover .agree-check__box {
    border-color: #383838;
}

.agree-check input[type="checkbox"]:focus-visible + .agree-check__box {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(242, 255, 58, 0.18);
}

.agree-check input[type="checkbox"]:checked + .agree-check__box {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #000;
}

.agree-check__text {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.agree-check__text a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 120ms ease, color 120ms ease;
}

.agree-check__text a:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}

/* Pay button */
.pay-btn {
    margin-top: 4px;
    width: 100%;
    background: var(--yellow);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 0 0 1px rgba(242, 255, 58, 0.4), 0 8px 30px -8px rgba(242, 255, 58, 0.5);
}

.pay-btn:disabled,
.pay-btn[disabled],
.pay-btn.is-disabled {
    background: #2a2a2a;
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
    opacity: 0.6;
}

.pay-btn:disabled:hover,
.pay-btn[disabled]:hover,
.pay-btn.is-disabled:hover {
    background: #2a2a2a;
    transform: none;
}

.pay-btn:disabled .arrow,
.pay-btn[disabled] .arrow,
.pay-btn.is-disabled .arrow {
    opacity: 0.5;
    transform: none;
}

/* ─── Stripe trust block (refined) ─── */
.stripe-trust {
    margin-top: 22px;
    background: linear-gradient(180deg, #131313, #0e0e0e);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.stripe-trust__icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 20%, rgba(99, 91, 255, 0.45), transparent 65%),
    #1a1a2e;
    border: 1px solid rgba(99, 91, 255, 0.35);
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 0 24px -8px rgba(99, 91, 255, 0.6);
}

.stripe-trust__icon svg {
    width: 18px;
    height: 18px;
}

.stripe-trust__text {
    flex: 1;
    min-width: 0;
}

.stripe-trust__line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.stripe-trust__line .stripe-wordmark {
    color: var(--stripe);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stripe-trust__sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-dim);
}

.stripe-trust__badges {
    display: flex;
    gap: 6px;
    flex: none;
}

.stripe-badge {
    font-family: 'Geist Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #111;
    background: #f0f0f0;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 5px 7px;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .stripe-trust__badges {
        display: none;
    }
}

/* ─── Refund policy section ─── */
.refund-section {
    margin-top: 32px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: flex-start;
}

.refund-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--yellow);
    display: grid;
    place-items: center;
    color: #000;
}

.refund-icon svg {
    width: 22px;
    height: 22px;
}

.refund-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.refund-body {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.refund-body a {
    color: var(--yellow);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 255, 58, 0.3);
    transition: border-color 120ms ease;
}

.refund-body a:hover {
    border-color: var(--yellow);
}

/* ─── Templates index ─── */
.templates-hero {
    max-width: 820px;
    margin: 20px 0 36px;
}

.templates-title {
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin-bottom: 14px;
}

.templates-subtitle {
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.65;
}

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

.template-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #101010 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.template-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
}

.template-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 240ms ease;
}

.template-card:hover .template-card__media img {
    transform: scale(1.025);
}

.template-card__body {
    padding: 24px;
}

.template-card__title {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin-bottom: 10px;
}

.template-card__title a {
    color: var(--text);
    text-decoration: none;
}

.template-card__desc {
    min-height: 72px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.template-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.template-card__price {
    color: var(--yellow);
    font-family: 'Geist Mono', monospace;
    font-size: 15px;
    font-weight: 600;
}

.template-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.template-card__link svg {
    width: 15px;
    height: 15px;
    transition: transform 120ms ease;
}

.template-card__link:hover svg {
    transform: translateX(2px);
}

@media (max-width: 540px) {
    .refund-section {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 24px;
    }

    .checkout-card, .product-card {
        padding: 22px;
    }

    .stripe-trust {
        flex-wrap: wrap;
    }
}

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

    .templates-title {
        font-size: 34px;
    }

    .template-card__desc {
        min-height: 0;
    }

    .template-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Subtle entrance */
.product-card, .checkout-card, .refund-section {
    animation: rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.checkout-card {
    animation-delay: 80ms;
}

.refund-section {
    animation-delay: 140ms;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Legal pages ─── */
.legal-shell {
    max-width: 820px;
}

.legal-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 48px;
    animation: rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.legal-title {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin: 8px 0 10px;
}

.legal-updated {
    color: var(--text-dim);
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.legal-prose {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.legal-prose h2 {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 32px 0 12px;
}

.legal-prose h2:first-child {
    margin-top: 0;
}

.legal-prose p {
    margin: 0 0 14px;
}

.legal-prose ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-prose li {
    margin-bottom: 8px;
}

.legal-prose strong {
    color: var(--text);
    font-weight: 600;
}

.legal-prose a {
    color: var(--yellow);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 255, 58, 0.3);
    transition: border-color 120ms ease;
}

.legal-prose a:hover {
    border-color: var(--yellow);
}

.legal-footer-note {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 13px;
}

.legal-footer-note a {
    color: var(--yellow);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 255, 58, 0.3);
}

.legal-footer-note a:hover {
    border-color: var(--yellow);
}

@media (max-width: 640px) {
    .legal-card {
        padding: 28px 22px;
    }

    .legal-title {
        font-size: 26px;
    }
}

/* ─── Site footer ─── */
.site-footer {
    margin-top: 48px;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 32px;
    align-items: center;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: none;
}

.site-footer__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-footer__name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.site-footer__tag {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: flex-end;
}

.site-footer__links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13px;
    transition: color 120ms ease;
}

.site-footer__links a:hover {
    color: var(--yellow);
}

.site-footer__copy {
    grid-column: 1 / -1;
    padding: 20px 0 8px;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 12px;
    font-family: 'Geist Mono', monospace;
    letter-spacing: 0.04em;
}

@media (max-width: 720px) {
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        justify-content: flex-start;
    }
}

/* ─── Cookie consent ─── */
.cookie-consent {
    position: fixed;
    inset: auto 24px 24px;
    z-index: 80;
    display: flex;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-consent.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cookie-consent.is-leaving {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.cookie-consent__panel {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 24px;
    align-items: end;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(17, 17, 17, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.cookie-consent__eyebrow {
    color: var(--yellow);
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.cookie-consent__title {
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 6px;
}

.cookie-consent__text {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
    max-width: 560px;
}

.cookie-consent__link {
    display: inline-flex;
    color: var(--yellow);
    font-size: 13px;
    margin-top: 10px;
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 255, 58, 0.32);
}

.cookie-consent__link:hover {
    border-color: var(--yellow);
}

.cookie-consent__preferences {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.cookie-consent__preferences[hidden] {
    display: none;
}

.cookie-consent__option {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
}

.cookie-consent__option strong,
.cookie-consent__option small {
    display: block;
}

.cookie-consent__option strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}

.cookie-consent__option small {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 2px;
}

.cookie-consent__option input {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--yellow);
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-consent__button {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 0 16px;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
    white-space: nowrap;
}

.cookie-consent__button--primary {
    background: var(--yellow);
    color: #000;
}

.cookie-consent__button--primary:hover {
    background: var(--yellow-deep);
}

.cookie-consent__button--muted,
.cookie-consent__button--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text-soft);
}

.cookie-consent__button--muted:hover,
.cookie-consent__button--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

@media (max-width: 720px) {
    .cookie-consent {
        inset: auto 14px 14px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
        align-items: stretch;
        border-radius: 16px;
        padding: 18px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__button {
        flex: 1 1 140px;
    }
}
