/* ============================================================================
   3-day-tees.css — 3-Day Tees design studio (full rebuild 2026-06-09)
   ----------------------------------------------------------------------------
   Aesthetic: "press-room editorial" — warm paper ground with a whisper of
   grain, deep ink-green as the dominant brand anchor, safety-orange rush-tag
   accents, and dashed print-registration motifs echoing the designer canvas.
   Type: Bricolage Grotesque (display) + Public Sans (UI/body).
   Mobile (~380px) is first-class: sticky order bar, thumb-zone controls,
   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;

    /* Rush tag (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);
    /* paper grain — two offset dot lattices, barely-there */
    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;
}
.rush-spark { filter: saturate(1.4); }
.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 ──────────────────────────────────────────────── */
.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));
}

/* ── Studio layout ───────────────────────────────────────────────── */
.studio { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
.studio-grid {
    display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 36px; align-items: start;
}
.studio-canvas-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; }

/* ── Canvas card ─────────────────────────────────────────────────── */
.canvas-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-card);
    padding: 14px; margin-bottom: 16px;
}
.view-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.view-tab {
    flex: 1; border: 1px solid var(--line-strong); background: var(--paper);
    border-radius: var(--radius-sm); padding: 9px 10px; font-weight: 700;
    color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px;
}
.view-tab.is-active { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.tab-badge {
    font-size: 11px; border-radius: 999px; padding: 1px 7px; font-weight: 700;
    background: var(--green-100); color: var(--green-900);
}
.view-tab.is-active .tab-badge { background: rgba(255, 255, 255, 0.2); color: #fff; }
.tab-badge.is-warn { background: var(--warn-soft); color: var(--warn); }

.canvas-wrap { position: relative; background: var(--paper-deep); border-radius: var(--radius-sm); overflow: hidden; touch-action: none; }
#tdt-canvas { display: block; width: 100%; aspect-ratio: 5 / 6; outline: none; }
#tdt-canvas:focus-visible { box-shadow: inset 0 0 0 3px rgba(47, 125, 59, 0.55); }
.canvas-loading {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: var(--green-700); font-size: 26px; background: rgba(250, 248, 243, 0.6);
}
.canvas-note {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    background: rgba(24, 34, 25, 0.86); color: #fff; border-radius: var(--radius-sm);
    padding: 9px 12px; font-size: 13px;
}
.canvas-hint { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin: 8px 0 0; }
.canvas-disclaimer { text-align: center; font-size: 11.5px; color: var(--ink-faint); margin: 4px 14px 0; }

/* ── Zoom close-up (button + lightbox) — 2026-06-10 ─────────────── */
.canvas-zoom-btn {
    position: absolute; right: 10px; bottom: 10px; z-index: 5;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; font-size: 12.5px; font-weight: 600;
    color: var(--green-900); background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line); border-radius: 999px;
    box-shadow: 0 2px 8px rgba(18, 34, 22, 0.14); cursor: pointer;
}
.canvas-zoom-btn:hover { background: #fff; border-color: var(--green-700, #2d5f3f); }
.canvas-zoom-btn:disabled { opacity: 0.6; cursor: wait; }
.zoom-lightbox {
    position: fixed; inset: 0; z-index: 160;   /* above tdt-fatal(150) family */
    background: rgba(18, 34, 22, 0.78);
    display: grid; place-items: center; padding: 18px;
}
.zoom-lightbox[hidden] { display: none; }
.zoom-lightbox-inner { position: relative; max-width: min(920px, 96vw); }
.zoom-lightbox-inner img {
    display: block; width: 100%; max-height: 82vh; object-fit: contain;
    border-radius: var(--radius); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    background: #fff;
}
.zoom-lightbox-caption {
    margin: 10px 4px 0; text-align: center; color: #fff;
    font-size: 13px; opacity: 0.92;
}
.zoom-lightbox-close {
    position: absolute; top: -14px; right: -14px;
    width: 38px; height: 38px; border-radius: 50%;
    border: none; background: #fff; color: var(--green-900);
    font-size: 17px; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
    .zoom-lightbox-close { top: 8px; right: 8px; }
}

/* ── Designer controls ───────────────────────────────────────────── */
.designer-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; }

/* Print size & price readout — free placement (2026-06-10): the price tier
   follows the ART'S printed size, this card is the live "what am I paying
   for" answer that replaced the location pills. */
.size-price-readout {
    border: 1.5px solid var(--green-700); background: var(--green-50);
    border-radius: var(--radius-sm); padding: 2px 12px;
}
.spr-row {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    padding: 9px 0; font-size: 13.5px;
}
.spr-row + .spr-row, .spr-foot { border-top: 1px dashed rgba(47, 125, 59, 0.35); }
.spr-side {
    font-weight: 800; font-size: 11px; letter-spacing: 0.07em;
    color: var(--green-700); min-width: 44px; flex: none;
}
.spr-dims { font-weight: 700; color: var(--green-900); font-variant-numeric: tabular-nums; }
.spr-arrow { font-size: 10px; color: var(--green-700); align-self: center; }
.spr-tier { font-weight: 700; color: var(--green-900); }
.spr-price { margin-left: auto; font-weight: 800; color: var(--green-900); font-variant-numeric: tabular-nums; }
.spr-row.is-empty { color: var(--ink-faint); font-weight: 600; }
.spr-foot { padding: 7px 0 9px; font-size: 12px; color: var(--green-700); font-weight: 600; }
.size-price-note { margin: 8px 2px 0; font-size: 12.5px; color: var(--ink-faint); }
.size-price-note strong { color: var(--ink-soft); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.04em; }

.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); }

.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 { 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); }

input[type="range"] { width: 100%; accent-color: var(--green-700); min-height: 30px; }
.art-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.dpi-meter {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.dpi-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.dpi-dot.is-ok { background: var(--ok); }
.dpi-dot.is-warn { background: var(--warn); }
.dpi-dot.is-bad { background: var(--bad); }
.dpi-ack { margin-top: 8px; font-size: 13.5px; color: var(--warn); }
.dpi-ack label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }

/* ── Color chips + 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: 42px;
}
.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;
}
.color-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.color-card-head .chip-swatch { width: 30px; height: 30px; }
.color-card-head strong { font-family: var(--font-display); font-size: 16px; flex: 1; }
.copy-sizes { font-size: 12.5px; }
.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); }

.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.size-cell { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; text-align: center; background: var(--paper); }
.size-cell.is-out { opacity: 0.55; }
.size-cell-label { font-weight: 800; font-size: 13px; }
.size-cell-label small { font-weight: 600; color: var(--ink-faint); }
.size-cell-stock { font-size: 10.5px; color: var(--ink-faint); margin: 1px 0 6px; }
.size-cell-stock.is-low { color: var(--warn); font-weight: 700; }
.size-cell-stock.is-out { color: var(--bad); font-weight: 700; }
.stepper { display: flex; align-items: stretch; justify-content: center; gap: 0; }
.stepper button {
    width: 34px; min-height: 36px; border: 1px solid var(--line-strong); background: var(--card);
    font-size: 15px; font-weight: 700; color: var(--ink-soft);
}
.stepper button:first-child { border-radius: 7px 0 0 7px; }
.stepper button:last-child { border-radius: 0 7px 7px 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: 44px; text-align: center; border: 1px solid var(--line-strong); border-left: none; border-right: none;
    font-weight: 700; font-size: 14px; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.color-card-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* ── Tier meter ──────────────────────────────────────────────────── */
.tier-meter-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; box-shadow: var(--shadow-card); margin-top: 4px;
}
.tier-meter { position: relative; height: 46px; }
.tier-track { position: absolute; left: 0; right: 0; top: 18px; height: 8px; border-radius: 99px; background: var(--paper-deep); border: 1px solid var(--line); }
.tier-fill { position: absolute; left: 0; top: 18px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--green-600), var(--green-900)); transition: width 0.25s ease; }
.tier-notch { position: absolute; top: 12px; width: 2px; height: 20px; background: var(--line-strong); }
.tier-notch-label { position: absolute; top: 32px; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; color: var(--ink-faint); white-space: nowrap; }
.tier-marker {
    position: absolute; top: 8px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--rush); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transform: translateX(-50%); transition: left 0.25s ease;
}
.nudge-line { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--green-900); }
.nudge-line.is-celebrate { color: var(--rush-deep); }
.inventory-stamp { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.inventory-error {
    margin-top: 10px; 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;
}

/* ── 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; }
.form-field input.is-invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12px; margin-top: 4px; }

.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); }

/* Free-ship nudge — "Add $X.XX more for FREE shipping" (delivery card) */
.free-ship-nudge {
    margin: 8px 2px 0; font-size: 12.5px; font-weight: 600;
    color: var(--green-700);
}
.free-ship-nudge::before { content: "↗ "; }

.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-mockups { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.review-mockup { width: 86px; text-align: center; }
.review-mockup img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-deep); }
.review-mockup small { font-size: 10.5px; color: var(--ink-faint); display: block; margin-top: 2px; }

.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-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-fee small { color: var(--ink-faint); }
.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; }

/* Artwork-rights attestation (gates Pay — mirrors .dpi-ack) */
.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; }
.rights-ack strong { color: var(--ink); }

/* Fine print under the Pay button — --ink-soft passes WCAG AA on white
   (the lighter --ink-faint is ~3.9:1 and fails at this size). */
.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); }

/* Success-page questions CTA (lives here, not custom-tees-success.css —
   both pages load this sheet) */
.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; }

/* ── 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; }
/* Free-ship nudge in the dark bar — light green, quiet */
.bar-ship-nudge { font-size: 11px; font-weight: 600; color: var(--green-100); }

/* ── 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; }

/* ── Step 1: product 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-controls {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.gallery-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-chip {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--line-strong); background: var(--card);
    border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px;
    color: var(--ink-soft); min-height: 40px;
}
.gallery-chip small { font-weight: 600; color: var(--ink-faint); }
.gallery-chip:hover { border-color: var(--green-700); color: var(--green-900); }
.gallery-chip.is-active { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }
.gallery-chip.is-active small { color: var(--green-700); }

.gallery-search { position: relative; flex: 0 1 280px; min-width: 200px; }
.gallery-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--ink-faint); font-size: 13px; pointer-events: none;
}
.gallery-search input {
    width: 100%; border: 1.5px solid var(--line-strong); border-radius: 999px;
    padding: 10px 14px 10px 34px; min-height: 44px; background: var(--card);
}
.gallery-search input:focus { outline: none; border-color: var(--green-700); }

.gallery-loading { color: var(--ink-faint); font-size: 14px; padding: 26px 0; }
.gallery-empty { color: var(--ink-faint); font-size: 14px; padding: 22px 4px; }

.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-style { font-size: 12px; color: var(--ink-faint); font-weight: 600; }

.gallery-card-swatches { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.gallery-swatch {
    width: 26px; height: 26px; border-radius: 50%; padding: 0; overflow: hidden;
    border: 1.5px solid var(--line-strong); background: var(--paper); flex: none;
}
.gallery-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-swatch:hover { border-color: var(--green-700); transform: scale(1.12); }
.gallery-swatch-blank { display: block; width: 100%; height: 100%; background: var(--paper-deep); }
.gallery-swatch-more { font-size: 11px; font-weight: 700; color: var(--ink-faint); }

.gallery-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; gap: 8px;
}
.gallery-card-proof { font-size: 12px; font-weight: 700; color: var(--rush-deep); }
.gallery-card-proof i { margin-right: 3px; }
.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); }

/* ── Current product strip (designer step) ───────────────────────── */
.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; }

/* ── 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); } }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1023px) {
    .studio-grid { grid-template-columns: 1fr; gap: 26px; }
    .studio-canvas-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; }
    .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; }
    .gallery-controls { flex-direction: column; align-items: stretch; }
    .gallery-search { flex: 1 1 auto; }
    .current-product { flex-wrap: wrap; }
    .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; }
    .size-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .delivery-cards { grid-template-columns: 1fr 1fr; }
    .btn-cta { font-size: 14px; padding: 12px 16px; }
    .order-bar-summary strong { font-size: 17px; }
    .stage-head h2 { font-size: 20px; }
}
