/* ============================================================================
   custom-caps.css — Custom Hats embroidery storefront ('custom-caps' channel)
   ----------------------------------------------------------------------------
   Layered over the custom-tees "press-room editorial" look (the nwca-2026
   design source): warm paper ground with a whisper of grain, deep ink-green
   anchor, safety-orange accents, dashed registration motifs. Type: Bricolage
   Grotesque (display) + Public Sans (UI/body).
   Cap-native build — no canvas designer, no size grid. One OSFA stepper per
   color, tier ladder, side-by-side logo proof panel.
   This sheet also styles custom-caps-success.html (success classes at the
   bottom) so the success page loads ONE stylesheet.
   Mobile (~375px) is first-class: sticky order bar, 44px+ touch targets.
   ========================================================================== */

:root {
    /* Ground + ink */
    --paper: #faf8f3;
    --paper-deep: #f1ede3;
    --card: #ffffff;
    --ink: #182219;
    --ink-soft: #41514a;
    --ink-faint: #75847c;
    --line: #e4dfd2;
    --line-strong: #cfc8b6;

    /* Brand greens */
    --green-950: #122b18;
    --green-900: #1b4424;
    --green-700: #2f7d3b;
    --green-600: #38934a;
    --green-100: #e3f1e4;
    --green-50: #f0f7f0;

    /* Accent (safety orange) */
    --rush: #e8590c;
    --rush-deep: #c2410c;
    --rush-soft: #fff1e6;

    /* Status */
    --ok: #2f7d3b;
    --warn: #b45309;
    --warn-soft: #fef3c7;
    --bad: #b91c1c;
    --bad-soft: #fee2e2;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 2px rgba(24, 34, 25, 0.05), 0 8px 24px -12px rgba(24, 34, 25, 0.18);
    --shadow-pop: 0 12px 40px -8px rgba(18, 43, 24, 0.35);

    --font-display: 'Bricolage Grotesque', 'Public Sans', sans-serif;
    --font-body: 'Public Sans', system-ui, sans-serif;

    --bar-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(rgba(24, 34, 25, 0.028) 1px, transparent 1px),
        radial-gradient(rgba(24, 34, 25, 0.018) 1px, transparent 1px);
    background-size: 22px 22px, 34px 34px;
    background-position: 0 0, 11px 17px;
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 0.6em; }
a { color: var(--green-700); }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); font-size: 15px; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--green-900); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-live {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 15px; padding: 12px 20px;
    min-height: 44px;
    transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--green-600); }

.btn-hero {
    background: var(--green-900); color: #fff;
    font-family: var(--font-display); font-size: 17px; padding: 16px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 28px -10px rgba(18, 43, 24, 0.55);
}
.btn-hero:hover { background: var(--green-700); }

.btn-cta { background: var(--rush); color: #fff; white-space: nowrap; }
.btn-cta:hover:not(:disabled) { background: var(--rush-deep); }

.btn-pay {
    width: 100%; background: var(--green-900); color: #fff;
    font-family: var(--font-display); font-size: 17px; min-height: 54px;
}
.btn-pay:hover:not(:disabled) { background: var(--green-700); }

.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong); }
.link-btn { background: none; border: none; color: var(--green-700); text-decoration: underline; padding: 0; font-size: inherit; }

.chip-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--card); border: 1px solid var(--line-strong);
    border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600;
    color: var(--ink-soft); min-height: 38px;
}
.chip-btn:hover { border-color: var(--green-700); color: var(--green-700); }

/* ── Header ──────────────────────────────────────────────────────── */
.site-head { background: var(--card); border-bottom: 1px solid var(--line); }
.site-head-inner {
    max-width: 1240px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 44px; width: auto; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; display: block; line-height: 1.2; }
.brand-text em {
    font-style: normal; font-size: 12.5px; font-weight: 700;
    color: var(--rush); letter-spacing: 0.04em; text-transform: uppercase;
}
.head-contact { display: flex; gap: 18px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; justify-content: flex-end; }
.head-contact a { color: var(--green-900); text-decoration: none; font-weight: 600; }
.head-contact i { color: var(--green-700); margin-right: 5px; }

/* ── Promise banner (proof-first) ────────────────────────────────── */
.promise-banner {
    background: linear-gradient(100deg, var(--green-900), var(--green-700));
    padding: 10px 16px;
}
.promise-tag {
    max-width: 1240px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px; color: #fff;
}
.promise-tag > i {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.14); border: 1px dashed rgba(255, 255, 255, 0.5);
    border-radius: 10px; padding: 9px 11px;
}
.promise-copy strong { display: block; font-family: var(--font-display); font-size: 16.5px; }
.promise-copy span { font-size: 12.5px; opacity: 0.92; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
    max-width: 1240px; margin: 0 auto; padding: 40px 20px 30px;
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 28px; align-items: center;
}
.hero-copy h1 {
    font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.06;
    letter-spacing: -0.015em; margin-bottom: 14px;
}
.hero-underline {
    background-image: linear-gradient(transparent 68%, rgba(232, 89, 12, 0.35) 68%);
    border-radius: 2px;
}
.hero-sub { font-size: 16.5px; color: var(--ink-soft); max-width: 52ch; margin-bottom: 20px; }
.hero-trust { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; }
.hero-trust i { color: var(--green-700); margin-right: 5px; }
.hero-visual { position: relative; }
.hero-visual img {
    width: 100%; max-height: 420px; object-fit: contain;
    filter: drop-shadow(0 22px 32px rgba(24, 34, 25, 0.22));
}

/* ── Trust strip (Erik's locked decisions, verbatim intents) ─────── */
.trust-strip { background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 20px; }
.trust-strip-inner {
    max-width: 1240px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.trust-item i { color: var(--green-700); font-size: 17px; margin-top: 2px; }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); }

/* ── Step 1: cap gallery ─────────────────────────────────────────── */
.gallery-band { padding: 34px 20px 44px; border-bottom: 1px solid var(--line); }
.gallery-inner { max-width: 1240px; margin: 0 auto; }
.gallery-sub { color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; margin: -6px 0 18px; }

.gallery-loading { color: var(--ink-faint); font-size: 14px; padding: 26px 0; }
.gallery-error {
    background: var(--bad-soft); color: var(--bad);
    border: 1px solid rgba(185, 28, 28, 0.3); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 14px; margin: 8px 0 18px;
}

.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    transition: opacity 0.15s ease;
}
.gallery-grid.is-busy { opacity: 0.5; pointer-events: none; }

.gallery-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-card); overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.gallery-card:hover, .gallery-card:focus-visible {
    transform: translateY(-2px); border-color: var(--green-700);
    box-shadow: var(--shadow-pop);
}
.gallery-card:focus-visible { outline: 3px solid rgba(47, 125, 59, 0.4); outline-offset: 2px; }

.gallery-card-hero {
    background: var(--paper-deep); height: 200px;
    display: grid; place-items: center; overflow: hidden;
    border-bottom: 1px dashed var(--line-strong);
}
.gallery-card-hero img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-card-hero i { font-size: 38px; color: var(--line-strong); }

.gallery-card-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.gallery-card-brand {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--green-700);
}
.gallery-card-name { font-family: var(--font-display); font-size: 15.5px; line-height: 1.25; }
.gallery-card-role { font-size: 12px; color: var(--ink-faint); font-weight: 600; }

.gallery-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; gap: 8px;
}
/* "from $23 /cap at 72+" — live API price, skeleton until the bundle lands */
.gallery-card-price { font-size: 13px; font-weight: 700; color: var(--green-900); }
.gallery-card-price strong { font-family: var(--font-display); font-size: 16px; }
.gallery-card-price small { font-weight: 600; color: var(--ink-faint); }
.gallery-card-price.is-error { color: var(--bad); font-weight: 600; cursor: pointer; text-decoration: underline; }
.gallery-card-cta { font-size: 12.5px; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.gallery-card:hover .gallery-card-cta { color: var(--green-900); }
.gallery-card-colors { font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }

/* Skeleton shimmer (gallery price / hero while live data loads) */
.skel {
    display: inline-block; min-width: 90px; min-height: 14px; border-radius: 6px;
    background: linear-gradient(90deg, var(--paper-deep) 25%, #e9e4d6 50%, var(--paper-deep) 75%);
    background-size: 200% 100%; animation: skel-slide 1.1s linear infinite;
    color: transparent;
}
@keyframes skel-slide { to { background-position: -200% 0; } }

/* ── Studio layout ───────────────────────────────────────────────── */
.studio { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.studio-grid {
    display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 10fr);
    gap: 36px; align-items: start;
}
.studio-logo-col { position: sticky; top: 14px; }
.studio-flow-col { min-width: 0; }

.stage { margin-bottom: 40px; scroll-margin-top: 16px; }
.stage-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.stage-num {
    font-family: var(--font-display); font-weight: 800; font-size: 26px;
    color: transparent; -webkit-text-stroke: 1.6px var(--green-700);
    border: 1.6px dashed var(--line-strong); border-radius: 10px;
    width: 46px; height: 46px; display: grid; place-items: center; flex: none;
}
.stage-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }

/* ── Current product strip ───────────────────────────────────────── */
.current-product {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--green-50); border: 1px dashed var(--green-700);
    border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px;
}
.current-product-meta { min-width: 0; display: grid; gap: 1px; }
.current-product-meta strong {
    font-family: var(--font-display); font-size: 15px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.current-product-meta small { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.current-product .chip-btn { flex: none; }

/* ── Side-by-side proof panel (cap photo + logo, NO compositing) ─── */
.proof-panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    padding: 14px; margin-bottom: 16px;
}
.proof-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: stretch; }
.proof-cap {
    background: var(--paper-deep); border-radius: var(--radius-sm);
    display: grid; place-items: center; min-height: 240px; overflow: hidden; position: relative;
}
.proof-cap img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; mix-blend-mode: multiply; }
.proof-cap i { font-size: 44px; color: var(--line-strong); }
.proof-cap-color {
    position: absolute; left: 10px; bottom: 10px;
    background: rgba(24, 34, 25, 0.82); color: #fff; border-radius: 999px;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
}
.proof-logos { display: grid; gap: 10px; align-content: start; }
.proof-logo-slot {
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper); padding: 10px; display: grid; gap: 6px; justify-items: center;
    text-align: center;
}
.proof-logo-slot.has-art { border-style: solid; border-color: var(--green-700); background: var(--green-50); }
.proof-logo-thumb {
    width: 92px; height: 64px; border-radius: 6px; background-size: contain;
    background-position: center; background-repeat: no-repeat; background-color: #fff;
    border: 1px solid var(--line); display: grid; place-items: center;
    font-weight: 800; font-size: 10px; color: var(--ink-faint);
}
.proof-logo-empty { color: var(--ink-faint); font-size: 12.5px; font-weight: 600; }
.location-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--green-100); color: var(--green-900);
    border-radius: 999px; padding: 3px 11px; font-size: 11.5px; font-weight: 700;
}
.location-chip.is-muted { background: var(--paper-deep); color: var(--ink-faint); }
.proof-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin: 10px 4px 0; }

/* ── Logo upload blocks ──────────────────────────────────────────── */
.logo-controls {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 16px;
    display: grid; gap: 18px;
}
.control-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.control-label .included-tag {
    text-transform: none; letter-spacing: 0; margin-left: 6px;
    color: var(--green-700); font-weight: 700;
}

.art-drop {
    border: 2px dashed var(--line-strong); border-radius: var(--radius-sm);
    background: var(--paper); padding: 20px 14px; text-align: center;
    display: grid; gap: 3px; justify-items: center; color: var(--ink-soft);
    transition: border-color 0.15s ease, background 0.15s ease; cursor: pointer;
}
.art-drop:hover, .art-drop.is-over, .art-drop:focus-visible { border-color: var(--green-700); background: var(--green-50); }
.art-drop i { font-size: 24px; color: var(--green-700); }
.art-drop small { color: var(--ink-faint); font-size: 12px; }

.art-file {
    display: flex; align-items: center; gap: 12px; margin-top: 10px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px;
    background: var(--paper);
}
.art-file-thumb {
    width: 44px; height: 44px; border-radius: 6px; background-size: contain;
    background-position: center; background-repeat: no-repeat; background-color: #fff;
    border: 1px solid var(--line); flex: none;
    display: grid; place-items: center; font-weight: 800; font-size: 10px; color: var(--ink-faint);
}
.art-file-meta { min-width: 0; flex: 1; }
.art-file-meta strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-file-meta small { color: var(--ink-faint); }
.art-file-remove {
    border: none; background: none; color: var(--ink-faint); font-size: 15px;
    width: 36px; height: 36px; border-radius: 50%;
}
.art-file-remove:hover { background: var(--bad-soft); color: var(--bad); }

.art-warning {
    margin-top: 10px; border-radius: var(--radius-sm); padding: 10px 12px;
    font-size: 13px; background: var(--warn-soft); color: var(--warn);
    border: 1px solid rgba(180, 83, 9, 0.25);
}
.art-warning.is-info { background: var(--green-50); color: var(--green-900); border-color: rgba(47, 125, 59, 0.25); }

.toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-pill {
    width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong);
    position: relative; transition: background 0.15s ease; flex: none;
}
.toggle-pill::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    border-radius: 50%; background: #fff; transition: left 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.toggle-row input:checked + .toggle-pill { background: var(--green-700); }
.toggle-row input:checked + .toggle-pill::after { left: 21px; }
.toggle-row input:focus-visible + .toggle-pill { outline: 3px solid rgba(47, 125, 59, 0.4); }
.toggle-text { font-weight: 700; }
.toggle-text small { display: block; font-weight: 600; color: var(--ink-faint); }

/* ── Color chips + quantity cards ────────────────────────────────── */
.color-chips { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.color-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--line-strong); background: var(--card);
    border-radius: 999px; padding: 7px 13px 7px 8px; font-weight: 700; font-size: 13.5px;
    color: var(--ink-soft); min-height: 44px;
}
.color-chip.is-active { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }
.color-chip:disabled { opacity: 0.5; cursor: not-allowed; }
.chip-swatch {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background-size: cover; background-position: center; border: 1px solid var(--line-strong);
}
.chip-stock { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.chip-stock.is-low { color: var(--warn); }
.chip-stock.is-out { color: var(--bad); }

.color-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-card); padding: 14px 16px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.color-card .chip-swatch { width: 30px; height: 30px; }
.color-card-name { font-family: var(--font-display); font-size: 16px; flex: 1; min-width: 120px; }
.color-card-name small { display: block; font-family: var(--font-body); font-size: 11.5px; font-weight: 600; color: var(--ink-faint); }
.color-card-name small.is-low { color: var(--warn); }
.color-card-name small.is-out { color: var(--bad); }
.color-card-remove { border: none; background: none; color: var(--ink-faint); width: 38px; height: 38px; border-radius: 50%; }
.color-card-remove:hover { background: var(--bad-soft); color: var(--bad); }

.stepper { display: flex; align-items: stretch; gap: 0; }
.stepper button {
    width: 44px; min-height: 44px; border: 1px solid var(--line-strong); background: var(--card);
    font-size: 17px; font-weight: 700; color: var(--ink-soft);
}
.stepper button:first-child { border-radius: 8px 0 0 8px; }
.stepper button:last-child { border-radius: 0 8px 8px 0; }
.stepper button:hover:not(:disabled) { background: var(--green-50); color: var(--green-900); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper input {
    width: 64px; text-align: center; border: 1px solid var(--line-strong); border-left: none; border-right: none;
    font-weight: 700; font-size: 16px; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 8-cap minimum — inline error (Erik decision #9) */
.min-alert {
    background: var(--bad-soft); color: var(--bad);
    border: 1px solid rgba(185, 28, 28, 0.3); border-radius: var(--radius-sm);
    padding: 11px 13px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px;
}

/* ── Tier ladder ─────────────────────────────────────────────────── */
.ladder-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow-card); margin-top: 4px;
}
.ladder-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.tier-ladder { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tier-ladder th {
    text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-faint); padding: 5px 8px; border-bottom: 1px solid var(--line);
}
.tier-ladder td { padding: 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tier-ladder tr:last-child td { border-bottom: none; }
.tier-ladder td:last-child, .tier-ladder th:last-child { text-align: right; font-weight: 700; }
.tier-ladder tr.is-active td {
    background: var(--green-50); color: var(--green-900); font-weight: 700;
}
.tier-ladder tr.is-active td:first-child { border-left: 3px solid var(--green-700); border-radius: 3px 0 0 3px; }
.tier-ladder .tier-you { font-size: 10.5px; font-weight: 800; color: var(--green-700); letter-spacing: 0.05em; text-transform: uppercase; margin-left: 6px; }
.ladder-foot { margin: 9px 2px 0; font-size: 12px; color: var(--ink-faint); }
.nudge-line { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--green-900); }
.inventory-stamp { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.inventory-error {
    margin-top: 10px; background: var(--warn-soft); color: var(--warn);
    border: 1px solid rgba(180, 83, 9, 0.3); border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: 13.5px;
}

/* ── Forms ───────────────────────────────────────────────────────── */
.form-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-card); padding: 18px; margin-bottom: 14px;
}
.form-card h3 { font-size: 16.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.form-card h3 i { color: var(--green-700); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-span { grid-column: 1 / -1; }
.form-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.form-field input, .form-field textarea {
    width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 10px 12px; min-height: 44px; background: var(--paper);
    transition: border-color 0.12s ease;
}
.form-field textarea { min-height: 60px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--green-700); background: #fff; }

.delivery-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.delivery-card { position: relative; cursor: pointer; }
.delivery-card input { position: absolute; opacity: 0; }
.delivery-card-body {
    display: grid; justify-items: center; gap: 2px; text-align: center;
    border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
    padding: 13px 10px; background: var(--paper); min-height: 84px;
}
.delivery-card-body i { font-size: 19px; color: var(--ink-faint); }
.delivery-card-body small { color: var(--ink-faint); font-weight: 600; }
.delivery-card input:checked + .delivery-card-body { border-color: var(--green-700); background: var(--green-50); }
.delivery-card input:checked + .delivery-card-body i { color: var(--green-700); }
.delivery-card input:focus-visible + .delivery-card-body { outline: 3px solid rgba(47, 125, 59, 0.4); }

.pickup-card {
    display: flex; gap: 12px; background: var(--green-50); border: 1px dashed var(--green-700);
    border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px;
}
.pickup-card i { color: var(--green-700); font-size: 18px; margin-top: 2px; }
.pickup-card p { margin: 2px 0 0; color: var(--ink-soft); }

.tax-stamp { font-size: 12.5px; color: var(--ink-faint); margin: 4px 0 0; min-height: 18px; }
.tax-error {
    margin-top: 8px; background: var(--bad-soft); color: var(--bad);
    border: 1px solid rgba(185, 28, 28, 0.3); border-radius: var(--radius-sm);
    padding: 10px 12px; font-size: 13.5px;
}

/* ── Review ──────────────────────────────────────────────────────── */
.review-lines table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.review-lines th { text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); padding: 5px 6px; border-bottom: 1px solid var(--line); }
.review-lines td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.review-lines td:last-child, .review-lines th:last-child { text-align: right; }
.review-empty { color: var(--ink-faint); font-size: 13.5px; }

.review-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.review-logo { width: 86px; text-align: center; }
.review-logo .proof-logo-thumb { width: 100%; height: 60px; }
.review-logo small { font-size: 10.5px; color: var(--ink-faint); display: block; margin-top: 2px; }

.review-totals { margin-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.tot-row { display: flex; justify-content: space-between; }
.tot-row.is-included { color: var(--green-700); font-weight: 600; }
.tot-row.is-grand {
    font-family: var(--font-display); font-weight: 800; font-size: 19px;
    border-top: 2px solid var(--ink); padding-top: 9px; margin-top: 5px;
}
.review-promise { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--rush-deep); }
.review-ack {
    margin-top: 8px; background: var(--warn-soft); color: var(--warn);
    border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px;
}

.pay-reasons { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.reason-chip {
    border: 1px dashed var(--rush); color: var(--rush-deep); background: var(--rush-soft);
    border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.stripe-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.stripe-note i { font-size: 15px; vertical-align: -1px; }

.rights-ack { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.rights-ack label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.rights-ack input { margin-top: 2px; flex: none; width: 18px; height: 18px; }
.rights-ack strong { color: var(--ink); }

.pay-fineprint {
    margin: 12px 0 0; padding: 0 0 0 16px;
    font-size: 11.5px; line-height: 1.45; color: var(--ink-soft);
}
.pay-fineprint li { margin: 0 0 3px; }

/* ── Marketing bands ─────────────────────────────────────────────── */
.band { padding: 48px 20px; }
.band-title { max-width: 1100px; margin: 0 auto 26px; font-size: 27px; font-weight: 800; letter-spacing: -0.01em; }
.band-how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-step span {
    font-family: var(--font-display); font-weight: 800; font-size: 24px;
    color: transparent; -webkit-text-stroke: 1.5px var(--rush);
    display: inline-grid; place-items: center; width: 42px; height: 42px;
    border: 1.5px dashed var(--line-strong); border-radius: 10px; margin-bottom: 8px;
}
.how-step strong { display: block; font-family: var(--font-display); font-size: 16.5px; margin-bottom: 4px; }
.how-step p { font-size: 13.5px; color: var(--ink-soft); }

.faq { max-width: 760px; margin: 0 auto; }
.band-faq .band-title { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
    font-weight: 700; font-size: 15.5px; padding: 13px 4px; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 20px; color: var(--green-700); }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 4px 14px; color: var(--ink-soft); font-size: 14px; }

.band-guarantee { padding-top: 10px; }
.guarantee-tag {
    max-width: 760px; margin: 0 auto; display: flex; gap: 16px; align-items: flex-start;
    background: var(--green-950); color: #fff; border-radius: 16px; padding: 22px 24px;
    box-shadow: var(--shadow-pop);
}
.guarantee-tag i { font-size: 26px; color: #9be3a8; margin-top: 3px; }
.guarantee-tag strong { font-family: var(--font-display); font-size: 18px; display: block; margin-bottom: 4px; }
.guarantee-tag p { margin: 0; font-size: 14px; opacity: 0.85; }
.guarantee-tag a { color: #9be3a8; font-weight: 700; }

.site-foot { text-align: center; padding: 26px 16px 40px; font-size: 13px; color: var(--ink-faint); }

/* ── Sticky order bar ────────────────────────────────────────────── */
.order-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--green-950); color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    min-height: var(--bar-h);
    box-shadow: 0 -8px 30px rgba(18, 43, 24, 0.35);
    transition: transform 0.2s ease;
}
.order-bar.is-hidden { transform: translateY(110%); }
.order-bar-summary { background: none; border: none; color: #fff; text-align: left; display: grid; gap: 1px; min-height: 44px; }
.order-bar-summary strong { font-family: var(--font-display); font-size: 19px; }
.order-bar-summary span { font-size: 12px; opacity: 0.8; }
.bar-min-note { font-size: 11px; font-weight: 600; color: #ffd9a8; }

/* ── Summary sheet ───────────────────────────────────────────────── */
.sheet-backdrop, .modal-backdrop {
    position: fixed; inset: 0; background: rgba(18, 34, 22, 0.55); z-index: 100;
    display: grid; place-items: center; padding: 18px;
}
.summary-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    background: var(--card); border-radius: 18px 18px 0 0; padding: 14px 20px 26px;
    max-height: 78vh; overflow: auto; box-shadow: var(--shadow-pop);
}
.sheet-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 12px; }
.summary-sheet h3 { font-size: 18px; margin-bottom: 12px; }
.summary-sheet .btn { width: 100%; margin-top: 14px; }

/* ── Pipeline / conflict modals ──────────────────────────────────── */
.pipeline-modal {
    background: var(--card); border-radius: 16px; padding: 24px;
    width: min(440px, 94vw); box-shadow: var(--shadow-pop);
}
.pipeline-modal h3 { font-size: 19px; margin-bottom: 14px; }
.pipeline-steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 11px; }
.pipeline-steps li { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-weight: 600; }
.pipeline-steps li.is-active { color: var(--ink); }
.pipeline-steps li.is-active i { color: var(--rush); }
.pipeline-steps li.is-done { color: var(--green-700); }
.pipeline-steps li.is-done i { color: var(--green-700); }
.pipeline-steps li.is-error { color: var(--bad); }
.pipeline-error {
    background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm);
    padding: 11px 13px; font-size: 13.5px; margin-bottom: 14px;
}
.pipeline-modal .btn { width: 100%; margin-top: 4px; }
.conflict-row { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 14px; }
.conflict-row strong { color: var(--bad); }

/* ── Toasts ──────────────────────────────────────────────────────── */
.tdt-toasts { position: fixed; bottom: calc(var(--bar-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100vw - 28px)); }
.tdt-toast {
    background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 14px;
    font-size: 13.5px; display: flex; align-items: center; gap: 10px; justify-content: space-between;
    box-shadow: var(--shadow-pop); animation: toast-in 0.18s ease;
}
.tdt-toast.is-error { background: var(--bad); }
.tdt-toast.is-success { background: var(--green-900); }
.tdt-toast .link-btn { color: #ffd9a8; font-weight: 700; text-decoration: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Fatal state ─────────────────────────────────────────────────── */
.tdt-fatal { position: fixed; inset: 0; z-index: 150; background: rgba(250, 248, 243, 0.97); display: grid; place-items: center; padding: 20px; }
.tdt-fatal-card { text-align: center; max-width: 420px; }
.tdt-fatal-card i { font-size: 38px; color: var(--rush); margin-bottom: 12px; }
.tdt-fatal-card h2 { font-size: 22px; margin-bottom: 8px; }
.tdt-fatal-phone a { font-family: var(--font-display); font-size: 20px; font-weight: 800; text-decoration: none; }
.tdt-fatal-card .btn { margin-top: 14px; }

/* ── Reveal animation (page load) ────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise 0.5s ease backwards; }
    .hero-copy > *:nth-child(2) { animation-delay: 0.07s; }
    .hero-copy > *:nth-child(3) { animation-delay: 0.14s; }
    .hero-copy > *:nth-child(4) { animation-delay: 0.21s; }
    .hero-visual { animation: rise 0.6s 0.1s ease backwards; }
    @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ── Success page (custom-caps-success.html rides this same sheet) ─ */
.success-body { padding-bottom: 0; }
.success-main { max-width: 640px; margin: 0 auto; padding: 40px 18px 60px; }
.success-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-card); padding: 34px 28px; text-align: center;
}
.success-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.success-card > p { color: var(--ink-soft); }
.success-spin { font-size: 34px; color: var(--green-700); margin-bottom: 14px; }
.success-check { font-size: 46px; color: var(--green-700); margin-bottom: 14px; }
.success-check.is-amber { color: var(--warn); }
.success-order { font-size: 15px; }
.success-order strong { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; }
.success-ship {
    display: inline-block; background: var(--rush-soft); color: var(--rush-deep);
    border: 1px dashed var(--rush); border-radius: 999px; padding: 7px 16px;
    font-weight: 700; font-size: 14px; margin: 6px 0 16px;
}
.success-mockups { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.success-mockups figure { margin: 0; width: 110px; }
.success-mockups img {
    width: 100%; height: 80px; object-fit: contain; border-radius: 10px;
    border: 1px solid var(--line); background: #fff;
}
.success-mockups figcaption { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.success-summary { text-align: left; margin: 18px auto 0; max-width: 420px; }
.success-summary .tot-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.success-summary .tot-row.is-grand {
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 6px;
}
.success-timeline { text-align: left; max-width: 420px; margin: 22px auto 0; display: grid; gap: 12px; }
.success-step { display: flex; gap: 12px; align-items: flex-start; }
.success-step i { color: var(--green-700); font-size: 17px; margin-top: 2px; width: 20px; }
.success-step.is-pending i { color: var(--ink-faint); }
.success-step strong { display: block; font-size: 14.5px; }
.success-step small { color: var(--ink-faint); }
.success-email-note { margin-top: 20px; font-size: 13px; color: var(--ink-faint); }
.success-actions { margin-top: 16px; }
.success-questions { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.success-questions a { color: var(--green-700); font-weight: 700; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .studio-grid { grid-template-columns: 1fr; gap: 26px; }
    .studio-logo-col { position: static; }
    .hero-inner { grid-template-columns: 1fr; padding: 28px 18px 8px; }
    .hero-visual { order: -1; }
    .hero-visual img { max-height: 230px; }
    .how-grid { grid-template-columns: 1fr 1fr; }
    .trust-strip-inner { grid-template-columns: 1fr 1fr; }
    .head-contact span { display: none; }
}

@media (max-width: 560px) {
    body { font-size: 14.5px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
    .gallery-card-hero { height: 150px; }
    .current-product { flex-wrap: wrap; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-cap { min-height: 180px; }
    .proof-logos { grid-template-columns: 1fr 1fr; }
    .head-contact a[href^="mailto"] { display: none; }
    .brand-text strong { font-size: 15px; }
    .promise-copy strong { font-size: 14.5px; }
    .hero-copy h1 { font-size: 29px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .trust-strip-inner { grid-template-columns: 1fr 1fr; gap: 10px; }
    .delivery-cards { grid-template-columns: 1fr 1fr; }
    /* Long gate labels ("Next: confirm you have rights…") must never push
       past 375px — let the bar CTA wrap to two lines instead of nowrap. */
    .btn-cta { font-size: 14px; padding: 10px 14px; white-space: normal; line-height: 1.2; max-width: 64vw; text-align: center; }
    .order-bar-summary strong { font-size: 17px; }
    .stage-head h2 { font-size: 20px; }
    .success-card { padding: 26px 18px; }
    .success-card h1 { font-size: 22px; }
}
