:root {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --ink: #121214;
  --muted: #6a6a72;
  --line: rgba(18, 18, 20, 0.1);
  --accent: #f22d78;
  --blush: #ffd6e8;
  --paper: #ffffff;
  --desk: #f3f3f5;
  --desk-ink: #121214;
  --signal: #d21f2a;
  --max: 1120px;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --display: "Nunito", "Segoe UI", sans-serif;
  --bubble: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; -webkit-user-drag: none; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(820px 380px at 8% -12%, rgba(242, 45, 120, 0.18), transparent 62%),
    radial-gradient(640px 320px at 100% 0%, rgba(255, 190, 216, 0.55), transparent 58%),
    var(--bg);
  color: var(--ink);
  font: 400 1.02rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}
.skip:focus { top: 0.5rem; z-index: 20; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 2.4rem)); }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 245, 247, 0.84);
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 3px 0 var(--accent);
  backdrop-filter: blur(16px);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--bubble);
  font-style: normal;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  height: 1.35em;
  width: auto;
  display: block;
  flex: none;
}
.hero-logo {
  height: 5.6rem;
  width: auto;
  margin: 0.15rem 0 0.85rem;
}
.hero-logo .logo-mark {
  width: auto;
  height: 100%;
}
.top nav { display: flex; gap: 1.15rem; align-items: center; }
.top nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.top nav a:hover { color: var(--accent); }
.cart-count {
  display: inline-grid;
  place-items: center;
  margin-left: 0.35rem;
  background: var(--accent);
  color: #fff;
  min-width: 1.25rem;
  height: 1.25rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 0.35rem;
  border-radius: 999px;
  vertical-align: 1px;
}

.hero { padding: 4.4rem 0 0.2rem; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 1.5rem 2.4rem;
  align-items: center;
}
.hero-split h1 { font-size: clamp(3.2rem, 6vw, 5rem); }
.hero-shot {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(18, 18, 20, 0.12);
}
.hero-caption {
  display: inline-block;
  margin-top: 0.75rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-family: var(--bubble);
  font-weight: 700;
  font-size: 0.95rem;
}
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  margin: 0.2rem 0 0.55rem;
}
.brand,
.hero h1 {
  font-family: var(--bubble);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(3.8rem, 9vw, 6.4rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  max-width: none;
  width: fit-content;
  margin-bottom: 0.35rem;
  color: var(--ink);
  background-image: none;
}
.name-fill {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.name-fill::after {
  content: attr(data-name);
  position: absolute;
  left: 0;
  top: 0;
  color: #f22d78;
  pointer-events: none;
  clip-path: inset(38% 0 42% 0);
}
.page-head { padding-top: 2.6rem; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.page-head h1.brand { font-size: clamp(3rem, 7vw, 4.6rem); }
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lede { max-width: 34rem; color: var(--muted); font-size: 1.15rem; margin-top: 0; }
.beats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.4rem 0 0.2rem;
  padding: 0;
}
.beats li {
  margin: 0;
  padding: 0.95rem 0 0;
  border-top: 2px solid var(--accent);
}
.beats span {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.beats strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.beats p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.98rem; }
.about { max-width: 38rem; color: var(--muted); margin: 2.2rem 0 3rem; }
.proof-note { color: var(--muted); max-width: 40rem; }
.credit {
  margin: 0.15rem 0 0.45rem;
  font-weight: 700;
}
.empty { color: var(--muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 2.4rem 0 0.9rem;
}
.section-head a { color: var(--muted); font-weight: 500; text-decoration: none; }
.section-head a:hover { color: var(--accent); }
.section-head h2,
.buy h2,
.summary h2,
.pay-box h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.cards, .gallery, .admin-grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-bottom: 2rem; }
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(18, 18, 20, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #ffb3d1;
  box-shadow: 0 16px 36px rgba(242, 45, 120, 0.14);
}
.card-photo { background: #ececef; min-height: 12rem; }
.card img, .shot img, .proof img, .cart-line img {
  display: block;
  width: 100%;
  pointer-events: none;
  user-select: none;
}
.card img, .shot img { aspect-ratio: 3 / 2; object-fit: cover; }
.card-empty {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.card-copy { padding: 0.9rem 1rem 1.05rem; }
.card-meta, .card-copy p { margin: 0; color: var(--muted); }
.card-meta {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}
.card h2 {
  margin: 0.28rem 0 0.15rem;
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  font: 500 0.9rem/1 var(--sans);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.chip.on, .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.gallery { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 3rem; }
.shot {
  position: relative;
  background: #ececef;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.16s ease;
}
.shot:hover { transform: translateY(-2px); outline: 2px solid var(--accent); outline-offset: 3px; }
.shot[hidden], .admin-tile[hidden] { display: none !important; }
.jersey {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 0.32rem 0.45rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  max-width: calc(100% - 16px);
  white-space: normal;
  line-height: 1.25;
}

.photo-layout, .checkout-grid, .split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding-bottom: 3rem;
}
.buy, .summary, .panel {
  position: sticky;
  top: 5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-top: 3px solid var(--accent);
  padding: 1.1rem 1.15rem 1.2rem;
}
.proof { background: transparent; }
.proof img { border-radius: 18px; }
.pager, .pager-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.pager a, .pager-bottom a { text-decoration: none; font-weight: 500; }
.pager a:hover, .pager-bottom a:hover { color: var(--accent); }
.choice {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 0;
  margin-top: 0.4rem;
}
.choice p { margin: 0.2rem 0 0; color: var(--muted); }

label, .check { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 500; }
.check { flex-direction: row; align-items: center; gap: 0.55rem; font-weight: 500; }
.hint { color: var(--muted); font-weight: 400; }
input, textarea, select {
  width: 100%;
  font: 500 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.68rem 0.75rem;
  border-radius: 12px;
}
input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  padding: 0;
  accent-color: var(--accent);
}
textarea { resize: vertical; }
fieldset {
  border: 1px solid var(--line);
  margin: 0;
  padding: 0.9rem;
  border-radius: 14px;
}
legend { padding: 0 0.3rem; }
.city-row { display: grid; grid-template-columns: 1.4fr 0.5fr 0.7fr; gap: 0.6rem; }
.stack { display: flex; flex-direction: column; gap: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font: 600 0.95rem/1 var(--sans);
  letter-spacing: -0.01em;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(242, 45, 120, 0.28);
}
.btn.primary:hover { background: #d61f68; border-color: #d61f68; }
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 45, 120, 0.16);
  outline: none;
}
.btn.ghost { background: transparent; }
.btn.danger { color: var(--signal); border-color: #f0c2c4; background: #fff; }
button.text-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font: 500 0.95rem/1 var(--sans);
  cursor: pointer;
  padding: 0;
}
button.text-btn:hover { color: var(--accent); }

.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-line {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.cart-line img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.cart-line h2 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.cart-line p { margin: 0.2rem 0; color: var(--muted); }
.price { color: var(--accent) !important; font-weight: 600; }
.qty { display: flex; gap: 0.4rem; align-items: end; }
.qty select { width: 4.5rem; }
.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
}
.summary ul { list-style: none; padding: 0; }
.summary li, .pay-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
}
.pay-box { display: block; margin: 1rem 0; }
.locked { color: var(--signal) !important; font-weight: 600; }
.tracking { font-weight: 600; }
.steps { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
.steps li {
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.88rem;
}
.steps li.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps li.done { color: var(--ink); }

.flash {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  margin: 0.35rem 0;
}
.flashes { padding-top: 0.8rem; }
.site-foot { margin-top: 2rem; }
.foot-name {
  display: flex;
  align-items: center;
  gap: 0.42em;
  margin: 1.6rem 0 0.15rem;
  font-family: var(--bubble);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.foot-name .logo-mark {
  width: auto;
  height: 0.72em;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  padding: 0.2rem 0 2.2rem;
  font-size: 0.92rem;
}
.foot-meta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 0; }
.foot-meta a { color: var(--accent); font-weight: 600; }

.install-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  width: min(var(--max), calc(100% - 1.4rem));
  margin: 0.7rem auto 0;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
}
.install-bar[hidden] { display: none !important; }
.install-bar p { margin: 0; flex: 1 1 12rem; }
.install-bar .btn { width: auto; min-height: 40px; }
.install-bar .text-btn { min-height: 40px; padding: 0.35rem 0.2rem; }

@media (max-width: 800px) {
  .wrap, .narrow { width: min(var(--max), calc(100% - 1.4rem)); }
  .photo-layout, .checkout-grid, .split, .city-row { grid-template-columns: 1fr; }
  .city-row:has(input[name="ship_state"]) {
    grid-template-columns: minmax(0, 1fr) 4.5rem minmax(5.2rem, 0.75fr);
  }
  .buy, .summary, .panel { position: static; }
  .hero { padding-top: 1.7rem; }
  .hero-split { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-logo { height: 4.2rem; margin-bottom: 0.55rem; }
  .hero h1, .hero-split h1, .page-head h1.brand { font-size: clamp(2.15rem, 12vw, 4.2rem); }
  .mark { font-size: clamp(1.15rem, 5vw, 1.45rem); min-width: 0; }
  .beats { grid-template-columns: 1fr; gap: 0.9rem; margin-top: 1.6rem; }
  .page-head { padding-top: 1.5rem; }
  .page-head h1, .buy h1, .card h2 { overflow-wrap: break-word; }
  .page-head h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .lede { font-size: 1.05rem; }
  .top {
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0.1rem;
    padding: 0.7rem 0.75rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
  .top nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.15rem;
  }
  .foot-name { font-size: clamp(1.85rem, 10.5vw, 3.2rem); }
  .foot-row { display: block; }
  .site-foot { padding-bottom: env(safe-area-inset-bottom); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cards { gap: 12px; }
  .card h2 { font-size: 1.45rem; }
  .choice .btn,
  .stack > .btn,
  .narrow > .btn.primary,
  .pay-box .btn { width: 100%; max-width: none; }
  .cart-line {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .cart-line img { width: 96px; flex: none; }
  .cart-line > div { flex: 1 1 160px; min-width: 0; }
  .cart-line > .price { margin: 0 0 0 auto; }
  .cart-line > form,
  .cart-line .qty { flex: 1 1 100%; }
  .cart-line .btn { width: 100%; }
  .qty { align-items: end; }
  input, textarea, select { font-size: 16px; }
  .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .pager a, .pager-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .section-head { align-items: flex-end; flex-wrap: wrap; }
  .hero-caption { max-width: 100%; }
}

@media (max-width: 640px) {
  .top nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.15rem 1.1rem;
  }
}

@media (hover: none) {
  .card:hover, .shot:hover { transform: none; }
}
