/* BustsBustsBusts — modern refresh.
   JS hooks preserved: .drop.drag, .status-msg(.show/.info/.ok/.err),
   .tracker/.tstep(.done/.active/.error)/[data-pill], .state, .meta, .status-permalink */

:root {
  --ink: #14151a;
  --muted: #6b7180;
  --line: #e9e9f0;
  --bg: #ffffff;
  --soft: #f5f5fa;
  --stone: #efece6;
  --accent: #6d5dfb;
  --accent-2: #a855f7;
  --grad: linear-gradient(135deg, #6d5dfb 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f7eefe 100%);
  --ok: #1f8a4c;
  --warn: #b8860b;
  --err: #c0392b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20,21,26,.04), 0 12px 30px -12px rgba(20,21,26,.18);
  --shadow-lg: 0 30px 60px -24px rgba(76,40,130,.35);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at 80% -10%, #f1edff 0%, transparent 60%),
    radial-gradient(50rem 40rem at -10% 10%, #fdeefb 0%, transparent 55%),
    var(--bg);
  /* Anchor the tints to the viewport so short pages (e.g. the status page)
     don't show a hard seam where the body box — and its gradient — ends. */
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.5rem;
  max-width: 1000px; margin: 0 auto;
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.12rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a.link:hover { color: var(--ink); }
.nav .btn { padding: 0.5rem 1rem; font-size: 0.92rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 1rem; font-weight: 600;
  border: 1px solid transparent;
  background: var(--grad); color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(109,93,251,.6);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(109,93,251,.7); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn.secondary:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.full { width: 100%; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
  padding: 3.5rem 0 4rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--grad-soft);
  padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.1rem; font-weight: 800;
}
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 32rem; margin-bottom: 1.8rem; }
.hero-cta { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.hero-cta .price { color: var(--muted); font-size: 0.92rem; }
.hero-cta .price b { color: var(--ink); }

/* before / after visual */
.ba {
  position: relative; background: var(--stone);
  border-radius: var(--radius-lg); padding: 1rem;
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem;
}
.ba figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.ba figcaption {
  position: absolute; left: 0.6rem; top: 0.6rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(20,21,26,.72); color: #fff; padding: 0.25rem 0.6rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.ba .arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: #fff; color: var(--accent); display: grid; place-items: center;
  box-shadow: var(--shadow); font-size: 1.2rem; font-weight: 700; z-index: 2;
}

/* section primitives */
section.block { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -0.02em; font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 0.6rem; }

/* steps as cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .num {
  width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--accent); font-weight: 800; margin-bottom: 1rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* showcase */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  background: var(--grad-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 2.5rem; overflow: hidden;
}
.showcase img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.showcase h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.showcase p { color: var(--muted); margin-bottom: 0.5rem; }

/* order form */
.order { padding: 3.5rem 0; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto;
}
.price-note { color: var(--muted); margin-bottom: 1.5rem; }
.price-note b { color: var(--ink); font-size: 1.15rem; }
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
input, select {
  font: inherit; padding: 0.75rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109,93,251,.12); }

.drop {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 1.8rem; text-align: center; cursor: pointer; color: var(--muted);
  background: var(--soft); transition: border-color .15s, background .15s;
}
.drop:hover, .drop.drag { border-color: var(--accent); background: #fbfaff; }
.drop input[type="file"] { display: none; }
.drop small { display: block; font-size: 0.8rem; margin-top: 0.3rem; }
.dz-preview { display: none; align-items: center; gap: 0.8rem; text-align: left; }
.dz-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dz-preview strong { color: var(--ink); display: block; font-weight: 600; }
.dz-preview span { font-size: 0.82rem; }

/* size selector — one radio card per bust size */
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.size-card {
  position: relative; display: grid; gap: 0.15rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 0.7rem; text-align: center; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.size-card:hover { border-color: var(--accent); }
.size-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.size-card-label { color: var(--ink); font-weight: 700; font-size: 1rem; }
.size-card-dim { color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.size-card-note { color: var(--muted); font-size: 0.72rem; line-height: 1.25; }
.size-card-price { color: var(--accent); font-weight: 700; margin-top: 0.25rem; }
.size-card:has(input:checked) {
  border-color: var(--accent); background: #fbfaff;
  box-shadow: 0 0 0 4px rgba(109,93,251,.12);
}
.size-card:has(input:focus-visible) { border-color: var(--accent); }

/* "Just the 3D File" — a different product from the physical sizes, so it sits
   as a full-width bar spanning the size grid rather than a 4th size card. */
.size-card--digital {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  text-align: left; gap: 1rem; border-style: dashed;
}
.size-card--digital .size-card-digital-main { display: grid; gap: 0.15rem; }
.size-card--digital .size-card-digital-side {
  display: grid; gap: 0.1rem; text-align: right; white-space: nowrap; justify-items: end;
}
.size-card--digital .size-card-note { font-size: 0.74rem; }
.size-card--digital .size-card-price { margin-top: 0; font-size: 1.05rem; }

@media (max-width: 420px) {
  .size-grid { grid-template-columns: 1fr; }
  .size-card { display: flex; align-items: baseline; justify-content: space-between; text-align: left; gap: 0.5rem; }
  .size-card--digital { align-items: center; }
}

.status-msg { display: none; font-size: 0.9rem; padding: 0.7rem 0.9rem; border-radius: var(--radius); }
.status-msg.show { display: block; }
.status-msg.info { background: var(--soft); color: var(--muted); }
.status-msg.ok { background: #eef7f0; color: var(--ok); }
.status-msg.err { background: #fbeeec; color: var(--err); }
.fine { font-size: 0.8rem; color: var(--muted); text-align: center; }

/* ---- status / order-tracking page ---- */
.status-shell { max-width: 620px; margin: 2.5rem auto; }
.status-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg);
}
.status-card > h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 1.25rem; }

.meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-bottom: 1.75rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
.meta b { color: var(--ink); font-weight: 600; }

/* tracker — vertical timeline with connecting rail */
.tracker { display: grid; gap: 0; }
.tstep { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 0.2rem 0; }
.tstep-rail { display: flex; flex-direction: column; align-items: center; }
.tstep-dot {
  width: 2rem; height: 2rem; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--muted);
  transition: all .2s ease;
}
/* connector line between dots */
.tstep:not(:last-child) .tstep-rail::after {
  content: ""; width: 2px; flex: 1; min-height: 1.4rem; background: var(--line); margin: 0.15rem 0;
}
.tstep-body { padding-bottom: 1.1rem; }
.tstep-body h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.tstep-body .st { font-size: 0.86rem; color: var(--muted); }

.tstep.done .tstep-dot { background: var(--grad); border-color: transparent; color: #fff; }
.tstep.done .tstep-rail::after { background: var(--accent); }
.tstep.active .tstep-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px rgba(109,93,251,.14); }
.tstep.active .tstep-body h4 { color: var(--accent); }
.tstep.active .tstep-body .st { color: var(--ink); }
.tstep.error .tstep-dot { background: var(--err); border-color: var(--err); color: #fff; }
.tstep.error .tstep-body .st { color: var(--err); }

.status-permalink { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.status-permalink a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; text-decoration: none; color: #fff; background: var(--grad);
  padding: 0.7rem 1.3rem; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(109,93,251,.6); transition: transform .15s;
}
.status-permalink a:hover { transform: translateY(-2px); }

.state { text-align: center; padding: 2.5rem 0; color: var(--muted); }
.state h2 { color: var(--ink); margin-bottom: 0.5rem; }
.track-actions { margin-top: 2rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* thank you */
.thanks { text-align: center; padding: 4rem 0; }
.thanks h1 { font-size: 2.2rem; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.thanks p { color: var(--muted); margin-bottom: 0.5rem; }
.thanks .oid { font-weight: 600; color: var(--ink); margin: 1rem 0 2rem; }
.thanks .actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

footer {
  border-top: 1px solid var(--line); padding: 2.5rem 0; margin-top: 3rem;
  color: var(--muted); font-size: 0.85rem; text-align: center;
}

/* responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .hero .ba { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; padding: 1.75rem; }
  .showcase .showcase-img { order: -1; }
}
