/* mercator-public — design system v2 (Stripe / MotionArray / Artgrid) */

:root {
    --brand-50:  #f5f4ff;
    --brand-100: #ebe9fe;
    --brand-200: #d6d1fd;
    --brand-500: #635bff;
    --brand-600: #5348e0;
    --brand-700: #3f36b0;
    --ink-900:   #0a2540;
    --ink-700:   #425466;
    --ink-500:   #697386;
    --ink-300:   #a3acb9;
    --ink-100:   #e3e8ee;
    --ink-50:    #f6f9fc;
    --white:     #ffffff;
    --success:   #00d924;
    --danger:    #ed5f74;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(10,37,64,.06),
                 0 1px 3px rgba(10,37,64,.04);
    --shadow-md: 0 4px 12px rgba(10,37,64,.08),
                 0 2px 4px rgba(10,37,64,.04);
    --shadow-lg: 0 20px 40px rgba(10,37,64,.10),
                 0 8px 16px rgba(10,37,64,.06);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo,
                 monospace;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--white);
    font-size: 16px;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main { min-height: calc(100vh - 64px - 320px); }

/* --- Header --- */
.header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--ink-100);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
    color: var(--ink-900);
}
.brand-mark {
    width: 24px; height: 24px;
    object-fit: contain;
    display: block;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
    color: var(--ink-700); font-size: 14px; font-weight: 500;
    transition: color .15s;
}
.nav a:hover { color: var(--brand-600); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* --- Buttons --- */
.btn, .btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: var(--font-sans); font-size: 15px; font-weight: 600;
    border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; text-decoration: none;
    transition: all .15s ease;
}
.btn-primary {
    background: var(--brand-500); color: var(--white);
    box-shadow: 0 1px 1px rgba(255,255,255,.15) inset,
                0 1px 3px rgba(99,91,255,.35);
}
.btn-primary:hover {
    background: var(--brand-600); color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,91,255,.4);
}
.btn-secondary {
    background: var(--white); color: var(--ink-900);
    border-color: var(--ink-100);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--ink-300); color: var(--ink-900);
}
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { color: var(--brand-600); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
    padding: 96px 0 80px;
    background:
      radial-gradient(ellipse 80% 60% at 20% 0%,
        rgba(99,91,255,.10), transparent 60%),
      radial-gradient(ellipse 60% 50% at 90% 10%,
        rgba(255,105,180,.08), transparent 60%),
      var(--white);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hero h1 {
    font-size: 56px; line-height: 1.05; letter-spacing: -0.03em;
    font-weight: 700; margin: 0 0 20px; max-width: 720px;
}
.hero h1 .grad {
    background: linear-gradient(90deg, var(--brand-500), #ff6bcb);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
    font-size: 20px; color: var(--ink-500);
    max-width: 560px; margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 36px; }
    .hero-sub { font-size: 17px; }
}

/* --- Section shell --- */
.section { padding: 72px 0; }
.section-alt { background: var(--ink-50); }
.section-label {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand-600); margin-bottom: 12px;
}
.section-title {
    font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.section-desc {
    color: var(--ink-500); margin: 0 0 40px; max-width: 640px;
}

/* --- Catalog grid --- */
.catalog { padding: 56px 0 96px; }
.catalog-head {
    max-width: 1200px; margin: 0 auto 40px; padding: 0 24px;
}
.catalog-head h1 {
    font-size: 40px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.catalog-head p { color: var(--ink-500); margin: 0; font-size: 17px; }

.product-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    list-style: none;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    padding: 0;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.product-link {
    display: block; color: inherit; text-decoration: none;
}
.product-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f0f0ff, #ffe4f1);
    position: relative;
    overflow: hidden;
}
.product-thumb--image {
    background: var(--ink-900);
}
.product-thumb--image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.product-card:hover .product-thumb--image img {
    transform: scale(1.04);
}
.product-thumb-1 { background: linear-gradient(135deg, #ffd6a5, #ff8fab); }
.product-thumb-2 { background: linear-gradient(135deg, #a0c4ff, #bdb2ff); }
.product-thumb-3 { background: linear-gradient(135deg, #caffbf, #9bf6ff); }
.product-thumb-4 { background: linear-gradient(135deg, #ffc6ff, #fdffb6); }
.product-thumb-5 { background: linear-gradient(135deg, #b8c6db, #f5f7fa); }
.product-thumb-6 { background: linear-gradient(135deg, #fddb92, #d1fdff); }
.product-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(10,37,64,.85); color: white;
    padding: 4px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase;
}
.product-body { padding: 16px 18px 18px; }
.product-cat {
    font-size: 12px; color: var(--brand-600);
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.product-title {
    font-size: 16px; font-weight: 600;
    margin: 6px 0 10px; line-height: 1.35;
}
.product-summary {
    font-size: 13px; color: var(--ink-500);
    margin: 0 0 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px;
}
.product-price {
    font-size: 18px; font-weight: 700; color: var(--ink-900);
    margin: 0;
}
.product-price .cents {
    font-size: 12px; color: var(--ink-500); font-weight: 500;
    text-transform: uppercase; letter-spacing: .04em;
    display: block;
    line-height: 1.2;
}
.product-clipcount {
    font-size: 12px; color: var(--ink-500);
    font-weight: 500;
}

/* --- Product detail (PDP) --- */
.product-detail { padding: 48px 0 96px; }
.pdp-wrap {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.pdp-breadcrumb {
    font-size: 13px; color: var(--ink-500); margin-bottom: 24px;
}
.pdp-breadcrumb a { color: var(--ink-500); }
.pdp-breadcrumb a:hover { color: var(--brand-600); }
.pdp-grid {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px;
    align-items: start;
}
@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: 1fr; }
}
.pdp-preview {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: var(--radius-lg);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.pdp-preview::before {
    content: ''; position: absolute; inset: 0;
    background:
      radial-gradient(circle at 30% 40%,
        rgba(99,91,255,.4), transparent 50%),
      radial-gradient(circle at 70% 60%,
        rgba(255,107,203,.3), transparent 50%);
}
.pdp-preview-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.pdp-play-btn {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255,255,255,.95); border: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    cursor: default;
}
.pdp-play-btn::before {
    content: ''; width: 0; height: 0;
    border-left: 22px solid var(--ink-900);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}
.pdp-meta { display: flex; flex-direction: column; }
.pdp-cat {
    font-size: 12px; color: var(--brand-600);
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.pdp-title {
    font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
    margin: 8px 0 12px; line-height: 1.15;
}
.pdp-desc {
    color: var(--ink-500); margin: 0 0 24px;
    font-size: 15px; line-height: 1.6;
}
.pdp-price-block {
    padding: 20px 0; border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100); margin-bottom: 24px;
}
.pdp-price {
    font-size: 36px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 4px;
}
.pdp-price-note { font-size: 13px; color: var(--ink-500); }
.pdp-trust {
    margin-top: 24px;
    display: flex; flex-direction: column; gap: 10px;
}
.pdp-trust-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--ink-700);
}
.pdp-trust-item::before {
    content: '✓'; color: var(--success);
    font-weight: 700; font-size: 14px;
}

/* --- SKU list on PDP --- */
.sku-list { margin-top: 48px; }
.sku-list h2 {
    font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
    margin: 0 0 20px;
}
.sku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px; list-style: none; padding: 0; margin: 0;
}
.sku-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex; flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
}
.sku-card:hover {
    border-color: var(--brand-200); box-shadow: var(--shadow-md);
}
.sku-tier {
    font-size: 12px; color: var(--brand-600);
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    margin: 0 0 4px;
}
.sku-license {
    font-size: 13px; color: var(--ink-500);
    margin: 0 0 16px;
}
.sku-price {
    font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.sku-card form { margin-top: auto; }

/* --- Empty state --- */
.empty-state {
    max-width: 1200px; margin: 0 auto; padding: 48px 24px;
    text-align: center; color: var(--ink-500);
    font-size: 16px;
}

/* --- Footer --- */
.footer {
    background: var(--ink-900); color: var(--ink-300);
    padding: 64px 0 32px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 48px;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: white; }
.footer-brand p {
    font-size: 14px; margin-top: 12px; color: var(--ink-300);
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: white; margin: 0 0 16px;
}
.footer-col a {
    display: block; color: var(--ink-300);
    font-size: 14px; padding: 6px 0;
}
.footer-col a:hover { color: white; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: 13px; color: var(--ink-500);
    flex-wrap: wrap; gap: 12px;
}
.footer-lang { display: flex; gap: 10px; align-items: center; }
.footer-lang-link { color: var(--ink-300); }
.footer-lang-link:hover { color: #fff; }
.footer-lang-link.is-current { color: #fff; font-weight: 600; }

/* --- PDP preview image (thumbnail_url) --- */
.pdp-preview--image { background: var(--ink-900); }
.pdp-preview--image::before { display: none; }
.pdp-preview-img,
.pdp-preview-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.pdp-preview-video { background: var(--ink-900); }

/* --- PDP "à partir de" price hint --- */
.pdp-price-from {
    font-size: 12px; color: var(--ink-500);
    text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
    margin-bottom: 4px;
}

/* --- Gold button (Max tier CTA) --- */
.btn-gold {
    background: linear-gradient(135deg, #d4a017, #f4c430) !important;
    color: var(--ink-900) !important;
    box-shadow: 0 1px 1px rgba(255,255,255,.3) inset,
                0 1px 3px rgba(212,160,23,.4) !important;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #c09015, #e0b626) !important;
    color: var(--ink-900) !important;
    box-shadow: 0 4px 12px rgba(212,160,23,.5) !important;
}

/* --- Tiers (3-column pricing) --- */
.tiers {
    margin-top: 72px;
    padding-top: 56px;
    border-top: 1px solid var(--ink-100);
}
.tiers-title {
    font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 8px; text-align: center;
}
.tiers-sub {
    color: var(--ink-500); text-align: center;
    max-width: 560px; margin: 0 auto 40px; font-size: 15px;
}
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 900px) {
    .tiers-grid { grid-template-columns: 1fr; }
}
.tier {
    position: relative;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tier:hover {
    border-color: var(--ink-300);
    box-shadow: var(--shadow-md);
}
.tier--featured {
    border: 2px solid var(--brand-500);
    box-shadow: 0 20px 40px rgba(99,91,255,.15),
                0 8px 16px rgba(99,91,255,.10);
    transform: translateY(-8px);
}
.tier--featured:hover {
    box-shadow: 0 24px 50px rgba(99,91,255,.20),
                0 10px 20px rgba(99,91,255,.12);
}
.tier--gold {
    background: linear-gradient(180deg, #fffbea 0%, #ffffff 40%);
    border: 2px solid #d4a017;
}
.tier--gold:hover {
    border-color: #b58712;
    box-shadow: 0 8px 20px rgba(212,160,23,.20);
}
.tier-badge {
    position: absolute;
    top: -14px; left: 50%; transform: translateX(-50%);
    padding: 6px 14px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}
.tier-badge--pop {
    background: var(--brand-500); color: white;
    box-shadow: 0 4px 12px rgba(99,91,255,.4);
}
.tier-badge--gold {
    background: linear-gradient(135deg, #d4a017, #f4c430);
    color: var(--ink-900);
    box-shadow: 0 4px 12px rgba(212,160,23,.35);
}
.tier-name {
    font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
    margin: 0 0 4px;
}
.tier-tag {
    font-size: 13px; color: var(--ink-500);
    margin-bottom: 20px;
}
.tier--gold .tier-tag { color: #8b6914; font-weight: 500; }
.tier-price-block {
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--ink-100);
}
.tier--gold .tier-price-block { border-color: rgba(212,160,23,.25); }
.tier-anchor {
    display: inline-block;
    font-size: 14px; color: var(--ink-300);
    text-decoration: line-through;
    margin-right: 8px;
    vertical-align: 8px;
}
.tier-price {
    display: inline-block;
    font-size: 40px; font-weight: 700; letter-spacing: -0.03em;
    color: var(--ink-900); line-height: 1;
}
.tier-currency {
    font-size: 22px; font-weight: 600;
    vertical-align: 12px;
    color: var(--ink-500);
    margin-right: 2px;
}
.tier-features {
    list-style: none; padding: 0; margin: 0 0 24px;
    flex: 1;
    display: flex; flex-direction: column; gap: 10px;
}
.tier-feat {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--ink-700); line-height: 1.4;
}
.tier-check {
    flex-shrink: 0;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--brand-100); color: var(--brand-600);
    font-size: 12px; font-weight: 700;
    margin-top: 1px;
}
.tier--gold .tier-check {
    background: rgba(212,160,23,.15); color: #8b6914;
}
.tier-feat--locked {
    color: var(--ink-300);
    text-decoration: line-through;
}
.tier-feat--locked .tier-check {
    background: var(--ink-50); color: var(--ink-300);
}
.tier-cta { margin: 0; }

/* --- Account page --- */
.account-page { padding: 48px 0 96px; }
.account-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px;
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    margin-bottom: 48px;
    flex-wrap: wrap; gap: 16px;
}
.account-identity {
    display: flex; align-items: center; gap: 16px;
    min-width: 0;
}
.account-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover;
    background: var(--brand-100);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--white);
}
.account-avatar--placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700;
    color: var(--brand-600);
    background: var(--brand-100);
}
.account-name {
    font-size: 15px; font-weight: 600; color: var(--ink-900);
    line-height: 1.2;
}
.account-email {
    font-size: 13px; color: var(--ink-500);
    line-height: 1.4;
}
.account-title {
    font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.order-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.order-card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.order-thumb-link { display: block; }
.order-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f0f0ff, #ffe4f1);
    position: relative;
    overflow: hidden;
}
.order-thumb-1 { background: linear-gradient(135deg, #ffd6a5, #ff8fab); }
.order-thumb-2 { background: linear-gradient(135deg, #a0c4ff, #bdb2ff); }
.order-thumb-3 { background: linear-gradient(135deg, #caffbf, #9bf6ff); }
.order-thumb-4 { background: linear-gradient(135deg, #ffc6ff, #fdffb6); }
.order-thumb-5 { background: linear-gradient(135deg, #b8c6db, #f5f7fa); }
.order-thumb-6 { background: linear-gradient(135deg, #fddb92, #d1fdff); }
.order-thumb--image { background: var(--ink-900); }
.order-thumb--image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.order-body {
    padding: 16px 18px 18px;
    display: flex; flex-direction: column;
    flex: 1;
}
.order-tier {
    font-size: 12px; color: var(--brand-600);
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.order-title {
    font-size: 16px; font-weight: 600;
    margin: 6px 0 10px; line-height: 1.35;
}
.order-title a { color: var(--ink-900); }
.order-title a:hover { color: var(--brand-600); }
.order-meta {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--ink-500);
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink-100);
}
.order-amount { font-weight: 600; color: var(--ink-700); }
.order-cta { margin-top: auto; }

.account-empty {
    text-align: center;
    padding: 64px 24px;
    background: var(--ink-50);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
}
.account-empty-icon {
    font-size: 48px; color: var(--ink-300);
    margin-bottom: 16px;
    line-height: 1;
}
.account-empty p {
    color: var(--ink-500); margin: 0 0 24px;
    font-size: 15px;
}

/* --- Home featured grid --- */
.product-grid--home {
    padding: 0;
    margin-bottom: 32px;
}
.home-catalog-link { text-align: center; margin: 0; }

/* --- Marketplace delivery page --- */
.delivery-page {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px 96px;
}
.delivery-card {
    max-width: 640px; width: 100%;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.delivery-header { text-align: center; margin-bottom: 32px; }
.delivery-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: #dcfce7; color: #14532d;
    font-size: 26px; font-weight: 700;
    margin-bottom: 12px;
}
.delivery-sub { color: var(--ink-500); font-size: 15px; margin: 4px 0 0; }
.delivery-product {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 20px; margin-bottom: 24px;
    background: var(--ink-50);
    border-radius: var(--radius-md);
}
@media (max-width: 560px) {
    .delivery-product { flex-direction: column; }
    .delivery-thumb { width: 100% !important; }
}
.delivery-thumb {
    width: 180px; flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--ink-900);
}
.delivery-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.delivery-thumb--placeholder {
    background: linear-gradient(135deg, #a0c4ff, #bdb2ff);
}
.delivery-product-info { flex: 1; min-width: 0; }
.delivery-product-name {
    font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
    margin: 8px 0 6px; line-height: 1.25;
}
.delivery-product-desc {
    font-size: 14px; color: var(--ink-500); margin: 0; line-height: 1.5;
}
.delivery-recap {
    width: 100%; border-collapse: collapse; margin-bottom: 20px;
}
.delivery-recap th,
.delivery-recap td {
    text-align: left; padding: 10px 0;
    border-bottom: 1px solid var(--ink-100);
    font-size: 14px; vertical-align: top;
}
.delivery-recap th {
    width: 110px; color: var(--ink-500); font-weight: 500;
}
.delivery-recap td { color: var(--ink-900); }
.delivery-features {
    list-style: none; padding: 0; margin: 0 0 28px;
    display: flex; flex-direction: column; gap: 8px;
}
.delivery-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--ink-700);
}
.delivery-feat-check {
    color: var(--success); font-weight: 700; flex-shrink: 0;
}
.delivery-action { text-align: center; margin-bottom: 32px; }
.delivery-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    border-radius: 999px;
    color: var(--white);
}
.delivery-badge--lite {
    background: linear-gradient(135deg, #b08d57, #d4b483);
}
.delivery-badge--plus {
    background: linear-gradient(135deg, #8e9196, #c9ccd1);
    color: var(--ink-900);
}
.delivery-badge--max {
    background: linear-gradient(135deg, #d4a017, #f4c430);
    color: var(--ink-900);
}
.delivery-title {
    font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
    margin: 8px 0 6px;
}
.delivery-status {
    color: var(--ink-500); font-size: 13px; margin: 12px 0 0;
}
.delivery-fallback {
    font-size: 13px; color: var(--ink-500); margin: 0 0 32px;
}
.delivery-fallback a { font-weight: 600; }
.delivery-help {
    text-align: left;
    padding-top: 24px;
    border-top: 1px solid var(--ink-100);
}
.delivery-help h2,
.delivery-help h3 {
    font-size: 14px; font-weight: 600; margin: 0 0 12px;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-500);
}
.delivery-help ol {
    margin: 0 0 16px; padding-left: 20px;
    color: var(--ink-700); font-size: 14px; line-height: 1.8;
}
.delivery-help code {
    background: var(--ink-50); padding: 1px 6px;
    border-radius: 4px; font-size: 13px;
}
.delivery-support { font-size: 13px; color: var(--ink-500); margin: 0; }

/* --- Legal pages --- */
.legal-page { padding: 48px 0 96px; }
.legal-wrap { max-width: 760px; }
.legal-page h1 {
    font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.legal-updated {
    color: var(--ink-500); font-size: 14px; margin: 0 0 32px;
}
.legal-page h2 {
    font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
    margin: 32px 0 12px;
}
.legal-page p, .legal-page li {
    color: var(--ink-700); font-size: 15px; line-height: 1.7;
}
.legal-page ul { padding-left: 24px; margin: 12px 0; }
.legal-page em { color: #b45309; font-style: normal; font-weight: 600; }

/* --- Customer favorite star (catalog cards) --- */
.product-card { position: relative; }
.fav-star {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--ink-100);
    background: rgba(255,255,255,.92);
    color: var(--ink-500);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all .15s;
}
.fav-star:hover {
    color: #d4a017;
    border-color: #d4a017;
    transform: scale(1.08);
}
.fav-star--on {
    color: #d4a017;
    border-color: #d4a017;
    background: #fffbea;
}

/* --- Download preparing page --- */
.access-preparing {
    min-height: 60vh;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 24px;
}
.prepare-card {
    max-width: 480px; width: 100%;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    box-shadow: var(--shadow-md);
}
.prepare-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--ink-100);
    border-top-color: var(--brand-500);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: prepare-spin 0.9s linear infinite;
}
@keyframes prepare-spin {
    to { transform: rotate(360deg); }
}
.prepare-title {
    font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.prepare-sub {
    color: var(--ink-700); margin: 0 0 20px; font-size: 15px;
}
.prepare-hint {
    color: var(--ink-500); font-size: 14px; margin: 0 0 24px;
}
.prepare-fallback {
    font-size: 13px; color: var(--ink-500);
    padding-top: 20px; border-top: 1px solid var(--ink-100);
    margin: 0;
}
.prepare-fallback a { font-weight: 600; }


/* Download in parts: one row per ZIP part, button on the right. */
.parts-list {
    list-style: none;
    margin: 1.5rem 0 1rem;
    padding: 0;
    text-align: left;
}
.parts-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    padding: .75rem 0;
    border-top: 1px solid var(--ink-100);
}
.parts-name { font-weight: 600; }
.parts-meta { color: var(--ink-500); font-size: 14px; flex: 1 1 auto; }
.parts-row .btn { margin-left: auto; }
.prepare-card:has(.parts-list) { max-width: 640px; }
