/* Belle Partner Graphics. Tokens are joinbelle.com's (via the Belle Design System); the system's
   published tokens.css is stale, so the values the components need are declared here.
   Light-only, like the site. Dark moments use navy-glow, quiet boxes use blush. */
:root {
  --belle-white: #ffffff;
  --belle-dark: #1a1a1a;
  --belle-dark-hover: #333333;
  --belle-surface: #f5f4f0;
  --belle-border: #e9e9e9;
  --belle-blue: #007eb1;
  --belle-blue-dark: #005a80;
  --belle-yellow: #f7f870;
  --belle-yellow-dark: #f0f060;
  --belle-navy: #0e2a3a;
  --belle-navy-mid: #163a4e;
  --belle-sky: #7cc4e2;
  --belle-pink: #f099fb;
  --belle-pink-light: #f9c6de;
  --belle-pink-warm: #f28dbf;
  --belle-blush: #fde8f1;
  --belle-teal: #00bba5;
  --belle-clay: #c17659;
  --belle-clay-soft: #ebd8cd;
  --belle-clay-dark: #7f3f2b;
  --navy-glow: linear-gradient(120deg, #163a4e 0%, rgba(0, 126, 177, 0.3) 65%, rgba(242, 141, 191, 0.28) 100%), #0e2a3a;
  --bg: var(--belle-white);
  --fg: var(--belle-dark);
  --fg-muted: rgba(26, 26, 26, 0.7);
  --fg-brand: var(--belle-blue);
  --fg-accent: var(--belle-clay-dark);
  --border: var(--belle-border);
  --border-strong: rgba(26, 26, 26, 0.25);
  --focus-ring: var(--belle-blue);
  --font-body: "Brockmann", Arial, Helvetica, sans-serif;
  --font-display: "Brockmann", Arial, Helvetica, sans-serif;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-cta: 0 10px 24px -8px rgba(26, 26, 26, 0.45);
  color-scheme: light;
}
@font-face { font-family: "Brockmann"; src: url("/ds/fonts/brockmann-regular-webfont.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Brockmann"; src: url("/ds/fonts/brockmann-medium-webfont.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Brockmann"; src: url("/ds/fonts/brockmann-semibold-webfont.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Brockmann"; src: url("/ds/fonts/brockmann-bold-webfont.woff2") format("woff2"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.625; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Floating pill nav */
.topbar { position: sticky; top: 0; z-index: 10; padding: calc(env(safe-area-inset-top, 0px) + 14px) 24px 0; max-width: 1328px; margin: 0 auto; }
.topbar .bds-nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--belle-dark); text-decoration: none; }
.nav-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--fg-muted); padding-left: 12px; border-left: 1px solid var(--border); }
@media (max-width: 520px) { .topbar { padding-inline: 16px; } .nav-tag { display: none; } }

/* Gate */
.gate { padding: 48px 24px 96px; max-width: 1328px; margin: 0 auto; }
.gate-card { background: var(--navy-glow); color: var(--belle-white); border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 72px); display: grid; gap: 18px; max-width: 880px; }
.gate-card h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.gate-card p { margin: 0; font-size: 18px; color: rgba(255, 255, 255, 0.82); max-width: 52ch; }
.hl-on-dark { color: var(--belle-yellow); }
.gate-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.gate-form input { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; padding: 14px 18px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.96); color: var(--belle-dark); }
.gate-status { min-height: 1.4em; font-size: 15px; color: var(--belle-pink-light); }
@media (max-width: 640px) { .gate { padding: 24px 16px 64px; } }

/* App layout: form left, live preview right (stacks on phones, preview first). */
.wrap { max-width: 1328px; margin: 0 auto; padding: 40px 24px 72px; }
@media (max-width: 640px) { .wrap { padding: 24px 16px 56px; } }
.hero { display: grid; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.hero p { margin: 0; font-size: 18px; color: var(--fg-muted); max-width: 62ch; }
.steps-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--fg-muted); }
.steps-line li { display: inline-flex; align-items: center; gap: 8px; }
.steps-line b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--belle-yellow); color: var(--fg); font-size: 12px; font-weight: 700; }

.grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .topbar { position: static; } }

.form { display: grid; gap: 28px; min-width: 0; }
.section { display: grid; gap: 14px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.hint { font-size: 13px; color: var(--fg-muted); line-height: 1.45; margin: 0; }
.blush-box { background: linear-gradient(170deg, var(--belle-white), var(--belle-blush)); border: 1px solid #f6d3e3; border-radius: var(--radius-xl); padding: 20px; }
.paste-box, .you-box, .prices-box { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; color: var(--fg); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
select, input[type="text"], textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; color: var(--fg); background: var(--belle-white); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-xs); }
textarea { resize: vertical; min-height: 80px; }
#paste { min-height: 120px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, label.file:focus-within, .dropzone:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bds-btn[disabled] { background: rgba(26, 26, 26, 0.1); color: rgba(26, 26, 26, 0.45); box-shadow: none; cursor: not-allowed; }
.status { font-size: 14px; color: var(--fg-muted); min-height: 1.4em; line-height: 1.45; }
.status.is-err { color: var(--belle-clay-dark); }
.status.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 999px; border: 2px solid var(--belle-pink-warm); border-right-color: transparent; vertical-align: -1px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Draft drop zone */
.dropzone { position: relative; display: grid; place-items: center; gap: 10px; min-height: 140px; padding: 18px; border: 1.5px dashed rgba(156, 74, 114, 0.35); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.75); cursor: pointer; text-align: center; transition: background-color 150ms ease, border-color 150ms ease; }
.dropzone:hover, .dropzone.is-over { background: var(--belle-white); border-color: var(--belle-pink-warm); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { max-height: 180px; width: auto; border-radius: 8px; box-shadow: var(--shadow-xs); }
.dropzone__text { font-size: 14px; color: var(--fg-muted); }
.dropzone__text b { color: var(--fg); }
.removed { margin: 0; padding: 10px 14px; border-radius: var(--radius-md); background: var(--belle-white); border: 1px solid #f6d3e3; font-size: 14px; line-height: 1.45; }

.seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 22px; background: var(--belle-white); width: fit-content; max-width: 100%; }
.seg button { font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.025em; text-transform: uppercase; border: 0; background: transparent; color: var(--fg-muted); border-radius: var(--radius-pill); padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: background-color 150ms ease, color 150ms ease; }
.seg button:hover { color: var(--fg); background: rgba(26, 26, 26, 0.05); }
.seg button[aria-pressed="true"] { background: var(--belle-yellow); color: var(--fg); }
.swatch { width: 14px; height: 14px; border-radius: 999px; border: 1px solid rgba(26, 26, 26, 0.15); flex: none; }
.sw-white { background: linear-gradient(135deg, #fff 55%, var(--belle-yellow)); }
.sw-navy { background: linear-gradient(135deg, var(--belle-navy-mid) 45%, var(--belle-pink-warm)); }
.sw-blue { background: linear-gradient(135deg, var(--belle-blue) 60%, var(--belle-yellow)); }
.sw-pink { background: linear-gradient(135deg, var(--belle-pink-light) 60%, #ffffff); }
.sw-ink { background: linear-gradient(135deg, var(--belle-dark) 60%, var(--belle-yellow)); }

label.file { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
label.file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.thumb { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; border: 1px solid var(--border); }

.prices-list { display: grid; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 0; }
.prices-list .cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 10px; }
.prices-list .cat:first-child { margin-top: 0; }
.prices-list .prow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 4px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.prices-list .prow span:last-child { color: var(--fg-muted); text-align: right; flex: 1 1 auto; min-width: 0; }
.prices-list .prow b { font-weight: 600; }

.preview-col { position: sticky; top: 96px; display: grid; gap: 16px; min-width: 0; }
@media (max-width: 960px) { .preview-col { position: static; } }
.stage { background: var(--belle-surface); border-radius: var(--radius-xl); padding: 24px; display: grid; place-items: center; min-width: 0; }
.stage img { display: block; width: 100%; height: auto; max-height: 74vh; object-fit: contain; border-radius: 6px; box-shadow: var(--shadow-md); background: #fff; }
.stage.is-story img { max-width: 400px; }
.stage.is-square img { max-width: 560px; }
@media (max-width: 640px) { .stage { padding: 14px; } }
.warn { font-size: 14px; line-height: 1.45; background: var(--belle-clay-soft); color: var(--belle-clay-dark); border-radius: var(--radius-md); padding: 10px 14px; }
.meta { font-size: 13px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.caption-box { display: grid; gap: 8px; }
#caption { min-height: 150px; font-size: 14px; }

.rules { margin-top: 64px; background: var(--navy-glow); color: var(--belle-white); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.rules h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 700; }
.rules .bds-checks { font-size: 15px; gap: 10px; max-width: 72ch; }
.bds-checks--light { color: rgba(255, 255, 255, 0.88); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
