@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  --ground: #f7f9fe;
  --card: #ffffff;
  --well: #eef1fa;
  --border: #dde2f0;
  --brand: #0b119c;
  --brand-hover: #080c78;
  --brand-soft: #c1cbf9;
  --on-brand: #ffffff;
  --on-brand-muted: #d5dafb;
  --on-brand-quiet: rgba(255, 255, 255, .14);
  --on-brand-quiet-hover: rgba(255, 255, 255, .22);
  --brand-line: rgba(255, 255, 255, .2);
  --font-display: "Montserrat", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --input: #8389a3;
  --ink: #010110;
  --ink-quiet: rgba(11, 17, 156, .07);
  --ink-quiet-hover: rgba(11, 17, 156, .13);
  --muted: #555b75;
  --accent-text: #0b119c;
  --accent-mark: #0b119c;

  --signal-success: #1e8a4c;
  --signal-warning: #b26a00;
  --signal-danger: #c0362c;
  --signal-neutral: #8389a3;
  --status-success-bg: #e6f4ec;
  --status-success-fg: #17663a;
  --status-warning-bg: #fdf1dc;
  --status-warning-fg: #8a4f00;
  --status-danger-bg: #fbe9e7;
  --status-danger-fg: #9b2a22;
  --status-info-bg: #e8ecfd;
  --status-info-fg: #0b119c;

  --radius-sm: .375rem;
  --radius-md: .625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-pill: 9999px;
  --duration-snappy: 150ms;
  --ease-base: cubic-bezier(.2, 0, 0, 1);

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 450;
  --bs-body-color: var(--ink);
  --bs-fg-body: var(--ink);
  --bs-bg-body: var(--card);
  --bs-border-color: var(--border);
  --bs-primary-base: var(--brand);
  --bs-primary-bg: var(--brand);
  --bs-primary-fg: var(--brand);
  --bs-primary-contrast: var(--on-brand);
  --bs-primary-border: var(--brand);
  --bs-primary-focus-ring: var(--accent-mark);
}

@layer custom {
  body {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--bs-body-font-family);
    font-weight: 450;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
  }

  a:not([class]) { color: var(--accent-text); text-underline-offset: .18em; }
  a:not([class]):hover { color: var(--brand-hover); }

  :focus-visible { outline: 2px solid var(--accent-mark); outline-offset: 2px; }

  .title-page { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
  .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; }
  .title-section { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; margin: 0; }
  .title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin: 0; }
  .label { font-size: .8125rem; font-weight: 550; color: var(--muted); line-height: 1.3; }
  .text-2sm { font-size: .875rem; }
  .muted { color: var(--muted); }
  .metric { font-weight: 640; font-variant-numeric: tabular-nums; }
  .metric-lg { font-size: 1.5rem; font-weight: 640; font-variant-numeric: tabular-nums; line-height: 1.2; }
  .identifier { font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

  .btn-solid, .btn-quiet, .btn-text-quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.5rem;
    padding: .5rem 1.25rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-weight: 550;
    font-size: .9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-snappy) var(--ease-base), border-color var(--duration-snappy) var(--ease-base);
  }
  .btn-solid.theme-primary { background: var(--brand); color: var(--on-brand); }
  .btn-solid.theme-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
  .btn-solid.btn-lg { min-height: 3rem; font-size: 1rem; padding-inline: 1.75rem; }
  .btn-solid:disabled, .btn-solid[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
  .btn-quiet { background: var(--ink-quiet); color: var(--brand); }
  .btn-quiet:hover { background: var(--ink-quiet-hover); color: var(--brand); }
  .btn-quiet.btn-sm { min-height: 1.75rem; padding: .2rem .65rem; font-size: .8125rem; }
  .btn-text-quiet { background: none; color: var(--muted); min-height: 1.5rem; padding: 0; font-size: .875rem; font-weight: 500; text-decoration: underline; text-underline-offset: .18em; }
  .btn-text-quiet:hover { color: var(--ink); }

  .site-header { background: var(--ground); }
  .site-brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
  .site-brand:hover { color: var(--ink); }
  .site-brand img { height: 40px; width: auto; border-radius: var(--radius-sm); }
  .site-brand strong { font-size: 1rem; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; }
  .site-brand span { font-size: .8125rem; font-weight: 600; color: var(--brand); background: var(--ink-quiet); border-radius: var(--radius-pill); padding: .2rem .625rem; }
  .site-link { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
  .site-link:hover { color: var(--brand); }
  .pay-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--brand-soft); }

  .hero { padding: 1rem 0 3rem; }
  .hero-grid { display: grid; gap: 2rem; align-items: center; }
  .hero-copy { display: flex; flex-direction: column; gap: 1.25rem; }
  .hero-eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--brand); font-size: .875rem; font-weight: 600; }
  .hero-eyebrow::before { content: ""; width: 2rem; height: 2px; border-radius: 1px; background: var(--brand); }
  .hero-title { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); margin: 0; }
  .hero-title em { font-style: normal; color: var(--brand); }
  .hero-lead { color: var(--muted); font-size: 1.0625rem; max-width: 30rem; margin: 0; }
  .hero-deadline { display: flex; align-items: center; gap: .625rem; font-size: .9375rem; font-weight: 500; }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }
  .hero-actions a:not([class*="btn"]) { color: var(--ink); text-underline-offset: .2em; font-weight: 500; }
  .hero-actions a:not([class*="btn"]):hover { color: var(--brand); }
  .hero-photo { aspect-ratio: 3 / 2; border-radius: var(--radius-xl); overflow: hidden; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
  @media (min-width: 992px) {
    .hero { padding: 2rem 0 4.5rem; }
    .hero-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; }
    .hero-photo { aspect-ratio: 4 / 3; }
  }

  .how { background: var(--card); border-block: 1px solid var(--border); }
  .how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; counter-reset: how; }
  @media (min-width: 768px) { .how ol { grid-template-columns: repeat(3, 1fr); } }
  .how li { counter-increment: how; display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; padding: 1.5rem 0; }
  .how li + li { border-top: 1px solid var(--border); }
  @media (min-width: 768px) { .how li { padding: 1.75rem 1.75rem 1.75rem 0; } .how li + li { border-top: 0; border-left: 1px solid var(--border); padding-left: 1.75rem; } }
  .how li::before { content: counter(how); grid-row: span 2; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--brand); font-weight: 600; font-variant-numeric: lining-nums; }
  .how strong { font-weight: 600; }
  .how span { color: var(--muted); font-size: .9375rem; }

  .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .875rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

  .sponsors { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
  .sponsors li, .sponsors ul > li { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--muted); }

  .panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  .panel-body { padding: 1.25rem; }
  @media (min-width: 768px) { .panel-body { padding: 1.5rem; } }
  .panel-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

  .meta { display: grid; grid-template-columns: max-content 1fr; gap: .75rem 1.5rem; margin-bottom: 0; align-items: baseline; }
  .meta dt { font-size: .8125rem; font-weight: 550; color: var(--muted); }
  .meta dd { margin: 0; }
  .meta-stacked { grid-template-columns: 1fr; gap: .25rem; }
  .meta-stacked dd + dt { margin-top: .75rem; }

  .status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 550; }
  .dot { width: .5rem; height: .5rem; border-radius: 50%; flex: none; background: var(--signal-neutral); }
  .dot-success { background: var(--signal-success); }
  .dot-warning { background: var(--signal-warning); }
  .dot-danger { background: var(--signal-danger); }

  .banner { display: flex; gap: .75rem; align-items: flex-start; padding: .875rem 1rem; border-radius: var(--radius-md); border: 1px solid transparent; font-size: .9375rem; }
  .banner svg { flex: none; width: 1.125rem; height: 1.125rem; margin-top: .15rem; }
  .banner-info { background: var(--status-info-bg); color: var(--status-info-fg); }
  .banner-success { background: var(--status-success-bg); color: var(--status-success-fg); }
  .banner-warning { background: var(--status-warning-bg); color: var(--status-warning-fg); }
  .banner-danger { background: var(--status-danger-bg); color: var(--status-danger-fg); }
  .banner ul { margin: .25rem 0 0; padding-left: 1.1rem; }

  .intro-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--radius-xl); border: 1px solid var(--border); display: block; }

  .product-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color var(--duration-snappy) var(--ease-base); }
  .product-card:hover { border-color: var(--input); color: var(--ink); }
  .product-card:hover .product-card-name { text-decoration: underline; text-underline-offset: .18em; }
  .product-card-media { background: var(--well); border-bottom: 1px solid var(--border); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.25rem; }
  .product-card-media .garment { height: 100%; width: auto; max-width: 100%; }
  .product-card-body { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
  .product-card-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
  .product-card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .75rem; }

  .photo-print { position: relative; container-type: inline-size; width: 100%; }
  .photo-print img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
  .photo-print-text {
    position: absolute; left: var(--print-x); top: var(--print-y); width: var(--print-w);
    transform: translate(-50%, -50%); text-align: center; white-space: nowrap; overflow: visible;
    color: #f4f2ec; font-family: var(--bs-body-font-family); font-weight: 700; letter-spacing: .02em; line-height: 1;
    opacity: .94; pointer-events: none;
  }
  .photo-print-text.is-placeholder { opacity: .45; }
  .product-card-media .photo-print { height: 100%; display: grid; place-items: center; }
  .product-card-media .photo-print img { max-height: 100%; width: auto; max-width: 100%; }
  .view-toggle { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: var(--radius-pill); background: var(--ink-quiet); margin-top: .75rem; }
  .view-toggle button { border: 0; background: none; border-radius: var(--radius-pill); padding: .375rem .875rem; font-size: .875rem; font-weight: 500; color: var(--muted); cursor: pointer; min-height: 2rem; }
  .view-toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--border); }
  .preview-photo { max-width: 460px; margin-inline: auto; }
  .garment { display: block; }
  .garment-print { font-family: var(--bs-body-font-family); font-weight: 700; }
  .garment-print.is-placeholder { opacity: .4; }

  .crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; font-size: .875rem; color: var(--muted); }
  .crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--input); }
  .crumbs a { color: var(--muted); }
  .crumbs a:hover { color: var(--ink); }

  .preview { background: var(--well); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1rem, 4vw, 2.5rem); top: 1.5rem; }
  .preview .garment { width: 100%; height: auto; max-height: 440px; }
  .preview figcaption { text-align: center; margin-top: .75rem; }

  .field { display: flex; flex-direction: column; gap: .375rem; }
  .field-label { font-size: .875rem; font-weight: 550; color: var(--ink); }
  .field-label .muted { font-weight: 450; }
  .field-help { font-size: .8125rem; color: var(--muted); margin: 0; }
  .field-error { font-size: .8125rem; color: var(--status-danger-fg); font-weight: 550; margin: 0; }
  .form-control { font-size: 1rem; border-color: var(--input); border-radius: var(--radius-md); min-height: 2.75rem; background: var(--card); color: var(--ink); }
  .form-control:focus { border-color: var(--accent-mark); box-shadow: 0 0 0 1px var(--accent-mark); outline: none; }
  .form-control.is-invalid { border-color: var(--signal-danger); }
  .form-control::placeholder { color: var(--muted); opacity: .8; }

  .input-counter { position: relative; }
  .input-counter .form-control { padding-right: 4rem; }
  .input-counter output { position: absolute; right: .875rem; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }

  .sizes { border: 0; padding: 0; margin: 0; min-width: 0; }
  .sizes legend { float: none; width: auto; margin-bottom: .375rem; font-size: .875rem; font-weight: 550; padding: 0; }
  .size-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
  .size-option { position: relative; }
  .size-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .size-option span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 4rem; min-height: 2.75rem; padding: .25rem .875rem;
    border: 1px solid var(--input); border-radius: var(--radius-md);
    font-variant-numeric: tabular-nums; font-weight: 500; background: var(--card);
    transition: background-color var(--duration-snappy) var(--ease-base), border-color var(--duration-snappy) var(--ease-base);
  }
  .size-option:hover span { border-color: var(--brand); }
  .size-option input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
  .size-option input:focus-visible + span { outline: 2px solid var(--accent-mark); outline-offset: 2px; }
  .size-option input:disabled + span { opacity: .55; }

  .qty { width: 5.5rem; min-height: 3rem; text-align: center; font-variant-numeric: tabular-nums; }

  .check-field { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; }
  .check-field input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--brand); flex: none; }

  .item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
  .item + .item { border-top: 1px solid var(--border); }
  .item-thumb { flex: none; width: 4rem; height: 4rem; border-radius: var(--radius-md); background: var(--well); border: 1px solid var(--border); display: grid; place-items: center; padding: .25rem; }
  .item-thumb .garment { width: 100%; height: 100%; }
  .item-main { flex: 1; min-width: 0; }
  .item-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }

  .summary-row { display: flex; justify-content: space-between; gap: 1rem; }
  .summary-total { border-top: 1px solid var(--border); padding-top: .875rem; margin-top: .25rem; }
  .sticky-panel { position: sticky; top: 1.5rem; }

  .empty { text-align: center; padding: 3rem 1.25rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
  .empty-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--well); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); margin-bottom: .5rem; }
  .empty-icon svg { width: 1.25rem; height: 1.25rem; }

  .steps { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; padding: 0; margin: 0; counter-reset: step; }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; font-size: .8125rem; color: var(--muted); font-weight: 500; }
  .steps li::before { counter-increment: step; content: counter(step); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--input); font-variant-numeric: tabular-nums; font-weight: 600; position: relative; z-index: 1; }
  .steps li::after { content: ""; position: absolute; top: .875rem; left: 50%; width: 100%; height: 1px; background: var(--border); }
  .steps li:last-child::after { display: none; }
  .steps li.is-done { color: var(--ink); }
  .steps li.is-done::before { content: "✓" / ""; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
  .steps li.is-done:not(:has(+ .is-done))::before { content: counter(step); }
  .steps li.is-done::after { background: var(--brand); }
  .steps li.is-done:not(:has(+ .is-done))::after { background: var(--border); }

  .copy-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

  .site-footer { background: var(--brand); font-size: .875rem; color: var(--on-brand-muted); }
  .site-footer a { color: var(--on-brand); text-underline-offset: .18em; }
  .site-footer .footer-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--on-brand); margin-bottom: .25rem; }

  .pay-panel { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
  .pay-panel .panel-head { border-color: var(--brand-line); }
  .pay-panel .meta dt { color: var(--on-brand-muted); }
  .pay-panel .muted { color: var(--on-brand-muted); }
  .pay-panel .ink-strong { color: var(--on-brand); }
  .pay-panel .btn-quiet { background: var(--on-brand-quiet); color: var(--on-brand); }
  .pay-panel .btn-quiet:hover { background: var(--on-brand-quiet-hover); }

  .demo-pay { background: var(--ground); min-height: 100vh; display: flex; flex-direction: column; }
  .demo-pay-ribbon { background: var(--status-warning-bg); color: var(--status-warning-fg); text-align: center; font-size: .875rem; font-weight: 550; padding: .625rem 1rem; border-bottom: 1px solid var(--border); }
  .demo-pay-main { flex: 1; display: grid; place-items: center; padding: 2rem 1rem; }
  .demo-pay-card { width: 100%; max-width: 26rem; }
  .demo-pay-amount { font-size: 2.5rem; font-weight: 640; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .demo-pay-badge { font-size: .75rem; font-weight: 600; color: var(--status-warning-fg); background: var(--status-warning-bg); border-radius: var(--radius-sm); padding: .2rem .5rem; }

  .prose h2 { font-size: 1.0625rem; font-weight: 600; margin: 1.75rem 0 .5rem; }
  .prose { max-width: 42rem; }

  .measure { max-width: 36rem; }
  .item-name { font-weight: 600; color: var(--ink); text-decoration: none; }
  .item-name:hover { text-decoration: underline; text-underline-offset: .18em; color: var(--ink); }
  .ink-strong { font-weight: 600; color: var(--ink); }
  .banner-link { color: inherit; text-underline-offset: .18em; }
  .banner:focus { outline: 2px solid var(--accent-mark); outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
