/* =========================================================
   Bootleg Gift — Homepage = upload-first Tee builder.
   Shared chrome (promo/header/switch/btn/reviews/footer) lives
   in theme.css. This file = homepage-specific styles only.
   ========================================================= */

/* ===== Builder column ===== */
.builder {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 4vw, 44px);
}

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.builder__eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.builder__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.builder__title span { display: block; color: var(--ink); }
.builder__title em { display: block; font-style: italic; font-weight: 600; color: var(--accent-text); }
.builder__sub { margin: 0; max-width: 440px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Honest social proof under the upload box */
.trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.trust-row__avatars { display: inline-flex; }
.trust-row__avatars img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -10px; box-shadow: 0 1px 4px rgba(28, 26, 23, .14); }
.trust-row__avatars img:first-child { margin-left: 0; }
.trust-row__text { font-size: 14px; color: var(--muted); }
.trust-row__text .stars { color: var(--star); letter-spacing: 1px; margin-right: 5px; }
.trust-row__text b { color: var(--ink); font-weight: 700; }

/* ===== Upload box — the hero centerpiece (Stardify-style) ===== */
.upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: clamp(40px, 6vw, 64px) 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--faint);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.upload:hover { border-color: var(--accent); box-shadow: 0 16px 44px rgba(232, 62, 140, .12); }
.upload:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.upload.is-drag { background: var(--accent-soft); border-color: var(--accent); border-style: dashed; }
.upload__icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1.5px dashed var(--faint); border-radius: 16px; color: var(--accent-text); margin-bottom: 12px; }
.upload__icon svg { width: 26px; height: 26px; }
.upload__title { margin: 0; font-weight: 700; font-size: clamp(18px, 2.4vw, 21px); letter-spacing: -.01em; }
.upload__sub { margin: 0; color: var(--muted); font-size: 14px; }
.upload__fine { margin: 5px 0 0; color: #aaa49a; font-size: 12.5px; }

/* ===== Config — revealed after a photo is added ===== */
.config { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 36px); }
.config[hidden] { display: none; }
.config__step { display: flex; flex-direction: column; gap: 12px; }
.config__title { margin: 0; text-align: center; font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.config__title em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 15px; }
.config__help { margin: 0 0 2px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* Uploaded thumbs grid (rendered by JS) */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; width: 100%; }
.thumb { position: relative; aspect-ratio: 1/1; border-radius: var(--r); overflow: hidden; background: var(--bg-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; line-height: 1; }
.thumb-add { display: grid; place-items: center; aspect-ratio: 1/1; border: 1px dashed var(--faint); border-radius: var(--r); color: var(--muted); background: var(--bg-soft); font-size: 22px; }
.thumb-add:hover { color: var(--ink); border-color: var(--ink); }

/* Setting row (auto-remove toggle) */
.setting { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.setting--center { justify-content: center; }
.setting input { position: absolute; opacity: 0; pointer-events: none; }
.setting__sw { position: relative; width: 40px; height: 23px; flex-shrink: 0; background: var(--faint); border-radius: 999px; transition: background .2s ease; }
.setting__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(24,23,22,.25); transition: left .2s ease; }
.setting input:checked + .setting__sw { background: var(--accent); }
.setting input:checked + .setting__sw::after { left: 19px; }
.setting input:focus-visible + .setting__sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.setting b { font-weight: 600; }
.setting em { font-style: normal; color: var(--muted); }

/* Text field */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 600; }
.field__count { color: var(--muted); font-weight: 500; }
.field__count b { color: var(--ink); font-weight: 700; }
.field input[type=text] { width: 100%; padding: 14px 16px; border: 1px solid var(--faint); border-radius: var(--r); background: var(--surface); font-size: 15px; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease; }
.field input[type=text]::placeholder { color: #b6b1aa; }
.field input[type=text]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Reveal-on-type text options (font + colour) */
.text-options { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg-soft); border-radius: var(--r); }
.text-options[hidden] { display: none; }
.text-options__label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.text-options__label:not(:first-child) { margin-top: 6px; }

.fontset { display: flex; flex-wrap: wrap; gap: 8px; }
.fontset button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 70px; padding: 9px 12px; border: 1px solid var(--faint); border-radius: var(--r-sm); background: var(--surface); transition: border-color .12s ease, background .12s ease; }
.fontset button:hover { border-color: var(--muted); }
.fontset button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fontset .s { font-size: 22px; line-height: 1.05; }
.fontset .n { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fontset [data-font=kalam] .s { font-family: "Kalam", cursive; font-weight: 700; }
.fontset [data-font=anton] .s { font-family: "Anton", sans-serif; }
.fontset [data-font=ultra] .s { font-family: "Ultra", serif; }
.fontset [data-font=bree] .s { font-family: "Bree Serif", serif; }
.fontset [data-font=lobster] .s { font-family: "Lobster", cursive; }
.fontset [data-font=cormorant] .s { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--faint); background: var(--c); transition: transform .12s ease; }
.swatches button:hover { transform: translateY(-2px); }
.swatches button.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* ===== Builder CTA ===== */
.builder-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.builder-cta__hint { margin: 0; font-size: 13px; color: var(--muted); }
.builder-cta__trust { margin: 0; font-size: 13px; color: var(--muted); }
.builder-cta__trust .stars { color: var(--star); letter-spacing: 1px; }

/* ===== Trust badges (dicegs-style: icon above label, animated) ===== */
.badges { max-width: var(--container); margin: 0 auto; padding: clamp(40px, 6vw, 64px) var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 28px); }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 11px; }
/* bulletproof centering: grid place-items + line-height:0 (no inline baseline) */
.badge__ic {
  display: grid; place-items: center; line-height: 0;
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  transform-origin: center center;
  animation: badgePulse 2.2s ease-in-out infinite;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.badge__ic > svg { width: 28px; height: 28px; display: block; overflow: visible; }
.badge:nth-child(2) .badge__ic { animation-delay: .3s; }
.badge:nth-child(3) .badge__ic { animation-delay: .6s; }
.badge:nth-child(4) .badge__ic { animation-delay: .9s; }
.badge:hover .badge__ic { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(232, 62, 140, .34); }
.badge b { display: block; font-size: 15px; font-weight: 700; }
.badge span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* Pulse scales from the CENTER, so the icon is always perfectly centered (never drifts). */
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ===== Responsive (homepage-specific) ===== */
@media (max-width: 860px) { .badges { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .badges { grid-template-columns: repeat(2, 1fr); } }
