/* ==========================================================================
   Deathmatch - plasticine primaries on bruise
   One bold element: the fight playing inside a rope-wrapped phone frame.
   Everything else stays quiet.
   ========================================================================== */

@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/luckiest-guy.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bruise: #2a1b3d;       /* base */
  --bruise-2: #3a2754;     /* raised surfaces */
  --bruise-3: #4d3670;     /* borders on dark */
  --chalk: #f3efe6;        /* text on dark, light panels */
  --chalk-dim: #cfc5dc;    /* secondary text on dark */
  --plasticine: #f2b705;   /* primary action */
  --rope: #d7263d;         /* ring rope red */
  --ring: #3e7cb1;         /* ring canvas blue */
  --ink: #1d1229;          /* text on yellow / chalk */
  --ok: #3aa76d;
  --warn: #f28c28;

  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: clamp(2rem, 4.5vw, 2.9rem);
  --step-4: clamp(2.7rem, 7.5vw, 5.2rem);

  --gap: clamp(1rem, 3vw, 2rem);
  --measure: 62ch;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 30px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--bruise);
  color: var(--chalk);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 96%;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--plasticine); text-underline-offset: 0.18em; }
a:hover { color: #ffd54a; }

:focus-visible {
  outline: 3px solid var(--plasticine);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--plasticine); color: var(--ink); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(1120px, 100% - 2 * var(--gap)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gap)); margin-inline: auto; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 750; margin: 0 0 0.3em; line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--chalk); }
.muted { color: var(--chalk-dim); }
.small { font-size: var(--step--1); }

/* ---- header / footer -------------------------------------------------------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
}
.brand {
  font-family: var(--display); font-size: 1.7rem; color: var(--chalk); text-decoration: none;
  line-height: 1; transform: rotate(-2deg); display: inline-block;
  text-shadow: 3px 3px 0 var(--rope);
}
.brand:hover { color: var(--chalk); }
.site-nav { display: flex; gap: 1.2rem; align-items: center; }
.site-nav a { color: var(--chalk); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--plasticine); }

.site-foot {
  margin-top: 5rem; padding-block: 2.5rem 3rem;
  border-top: 2px solid var(--bruise-3); color: var(--chalk-dim);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-bottom: 1rem; }
.site-foot a { color: var(--chalk-dim); }

/* ---- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 750 var(--step-0)/1 var(--body);
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 0;
  background: var(--plasticine);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 #a87e00;                 /* squashy clay edge */
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: var(--ink); background: #ffc61a; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a87e00; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 #a87e00; }
.btn.secondary {
  background: transparent; color: var(--chalk);
  box-shadow: inset 0 0 0 2px var(--chalk-dim);
}
.btn.secondary:hover { color: var(--plasticine); box-shadow: inset 0 0 0 2px var(--plasticine); }
.btn.big { font-size: var(--step-1); padding: 1.1rem 1.8rem; }

/* ---- hero: the one bold element ---------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2rem, 6vw, 5rem);
}
.hero h1 { transform: rotate(-1.5deg); transform-origin: left; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.ring {
  position: relative;
  justify-self: center;
  width: min(360px, 78vw);
  padding: 26px 0;
}
/* three ring ropes run behind the frame */
.ring::before {
  content: "";
  position: absolute; inset: 22% -18%;
  background:
    linear-gradient(var(--rope), var(--rope)) 0 0 / 100% 12px no-repeat,
    linear-gradient(var(--chalk), var(--chalk)) 0 50% / 100% 12px no-repeat,
    linear-gradient(var(--ring), var(--ring)) 0 100% / 100% 12px no-repeat;
  border-radius: 6px;
  transform: rotate(-4deg);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  border: 12px solid var(--plasticine);
  background: #120b1b;
  overflow: hidden;
  box-shadow: 10px 12px 0 var(--ink);
}
.phone video, .phone img, .phone .placeholder { width: 100%; height: 100%; object-fit: cover; }
.phone .placeholder {
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--chalk);
  background:
    radial-gradient(circle at 50% 38%, #5a3f7e 0 22%, transparent 23%),
    linear-gradient(180deg, #33224a, #1b1128);
}
.ring .second {
  position: absolute; z-index: 0; width: 62%; right: -34%; bottom: 4%;
  transform: rotate(7deg); border-width: 9px; box-shadow: 7px 9px 0 var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .phone.first { animation: drop 0.7s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes drop {
    0% { transform: translateY(-40px) scale(1, 0.92); opacity: 0; }
    70% { transform: translateY(0) scale(1.03, 0.97); opacity: 1; }
    100% { transform: none; }
  }
}

/* ---- sections ----------------------------------------------------------------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section > .wrap > h2, .section > .narrow > h2 { margin-bottom: 0.6em; }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display); font-size: 3.4rem; line-height: 1;
  color: var(--plasticine); margin-bottom: 0.3rem;
  text-shadow: 3px 3px 0 var(--rope);
}
.steps p { color: var(--chalk-dim); }

/* fight card pricing: billing rows, not cards */
.card-bill { border-top: 3px solid var(--chalk); margin-top: 1rem; }
.bill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 2px dashed var(--bruise-3);
}
.bill-row .name { font-family: var(--display); font-size: var(--step-2); line-height: 1; }
.bill-row .price { font-family: var(--display); font-size: var(--step-2); color: var(--plasticine); line-height: 1; }
.bill-row .desc { grid-column: 1 / -1; color: var(--chalk-dim); margin: 0; }
.bill-row.addon .name, .bill-row.addon .price { font-size: var(--step-1); font-family: var(--body); font-weight: 750; }

.currency { display: inline-flex; gap: 0.4rem; margin: 0.5rem 0 0; }
.currency button {
  font: 700 var(--step--1)/1 var(--body);
  padding: 0.5rem 0.8rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--chalk); border: 2px solid var(--bruise-3);
}
.currency button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px);
  gap: var(--gap); overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery video { aspect-ratio: 9/16; width: 100%; border-radius: var(--radius); border: 6px solid var(--chalk); background: #120b1b; object-fit: cover; }
.gallery figcaption { margin-top: 0.4rem; color: var(--chalk-dim); font-size: var(--step--1); }

.faq details {
  border-bottom: 2px solid var(--bruise-3);
  padding: 1rem 0;
}
.faq summary { cursor: pointer; font-weight: 750; font-size: var(--step-1); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--plasticine); font-family: var(--display); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0.7rem 0 0; color: var(--chalk-dim); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* ---- order form ---------------------------------------------------------------- */
.panel {
  background: var(--chalk); color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1.4rem;
}
.panel h2 { font-size: var(--step-2); color: var(--ink); }
.panel .muted { color: #5b4a6e; }
.panel a { color: #7a2130; }

fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
legend { font-weight: 750; font-size: var(--step-1); margin-bottom: 0.4rem; padding: 0; }

label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.hint { font-size: var(--step--1); color: #5b4a6e; margin: 0.2rem 0 0.6rem; max-width: var(--measure); }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font: 500 var(--step-0)/1.4 var(--body);
  padding: 0.75rem 0.9rem;
  border: 2px solid #b9aec8; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--plasticine); }
.count { font-size: var(--step--1); color: #5b4a6e; text-align: right; margin-top: 0.2rem; }

.choice { display: flex; align-items: flex-start; gap: 0.65rem; margin: 0.55rem 0; font-weight: 500; }
.choice input { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; flex: none; accent-color: var(--ink); }
.choice.strong { font-weight: 700; }

.product-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.product-pick label {
  display: block; margin: 0; cursor: pointer;
  border: 3px solid #b9aec8; border-radius: var(--radius); padding: 1rem;
  background: #fff;
}
.product-pick input { position: absolute; opacity: 0; }
.product-pick .pname { font-family: var(--display); font-size: var(--step-2); line-height: 1; display: block; }
.product-pick .pprice { font-weight: 800; display: block; margin-top: 0.3rem; }
.product-pick .pdesc { font-weight: 500; font-size: var(--step--1); color: #5b4a6e; display: block; margin-top: 0.3rem; }
.product-pick input:checked + span { outline: none; }
.product-pick label:has(input:checked) { border-color: var(--ink); box-shadow: 5px 5px 0 var(--plasticine); }
.product-pick label:has(input:focus-visible) { outline: 3px solid var(--rope); outline-offset: 2px; }

.drops { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.drop {
  position: relative;
  border: 3px dashed #9c8fb0; border-radius: var(--radius);
  min-height: 210px; display: grid; place-items: center; text-align: center;
  background: #fff; overflow: hidden; padding: 1rem;
}
.drop.has { border-style: solid; border-color: var(--ink); padding: 0; }
.drop.over { border-color: var(--rope); background: #fff4f4; }
.drop img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.drop .who { font-family: var(--display); font-size: var(--step-1); display: block; }
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .remove {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  background: var(--ink); color: var(--chalk); border: 0; border-radius: 999px;
  padding: 0.35rem 0.7rem; font-weight: 700; cursor: pointer;
}

.voice { background: #fff; border: 2px solid #b9aec8; border-radius: var(--radius); padding: 1rem; }
.voice .row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.voice audio { width: 100%; margin-top: 0.7rem; }
.rec {
  font: 700 var(--step--1)/1 var(--body); padding: 0.65rem 1rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
}
.rec.on { background: var(--rope); border-color: var(--rope); color: #fff; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.msg { border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin: 0.6rem 0; font-weight: 600; }
.msg.error { background: #fde3e6; color: #8a1224; }
.msg.warn { background: #fff0d6; color: #7a4a00; }
.msg.info { background: #e6effa; color: #1e4a75; }
.msg.ok { background: #e3f5ea; color: #1f6b43; }
[hidden] { display: none !important; }

.summary-bar {
  position: sticky; bottom: 0; z-index: 5;
  background: var(--bruise-2); border-top: 3px solid var(--plasticine);
  padding: 0.9rem 0;
}
.summary-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.summary-bar .total { font-family: var(--display); font-size: var(--step-2); line-height: 1; }

.review dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.2rem; margin: 0 0 1rem; }
.review dt { font-weight: 700; }
.review dd { margin: 0; overflow-wrap: anywhere; }
#payment-element { margin: 1rem 0; }
.progress { height: 12px; background: #ddd4e8; border-radius: 999px; overflow: hidden; margin: 0.8rem 0; }
.progress > span { display: block; height: 100%; width: 0; background: var(--plasticine); transition: width 0.2s; }

/* ---- status page ---------------------------------------------------------------- */
.state-badge {
  display: inline-block; font-weight: 800; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: var(--plasticine); color: var(--ink); margin-bottom: 0.8rem;
}
.state-badge.bad { background: var(--rope); color: #fff; }
.state-badge.done { background: var(--ok); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 1rem 0 0; }
.timeline li { padding: 0.35rem 0 0.35rem 1.8rem; position: relative; color: #5b4a6e; }
.timeline li::before {
  content: ""; position: absolute; left: 0.3rem; top: 0.75rem; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; border: 3px solid #b9aec8; background: #fff;
}
.timeline li.done { color: var(--ink); font-weight: 650; }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.player { max-width: 360px; margin: 1rem auto; }
.player video { width: 100%; aspect-ratio: 9/16; border-radius: var(--radius); border: 8px solid var(--ink); background: #000; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1rem 0; }
.share-hint { display: flex; gap: 0.9rem; align-items: center; color: #5b4a6e; font-weight: 600; margin: 0.3rem 0 0; }
.share-hint svg { width: 26px; height: 26px; }
.qr { display: flex; gap: 1rem; align-items: center; }
.qr canvas, .qr img { width: 132px; height: 132px; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 8px; }

/* ---- legal pages ------------------------------------------------------------------ */
.legal h1 { font-size: var(--step-3); }
.legal h2 { font-family: var(--body); font-weight: 800; font-size: var(--step-1); margin-top: 2rem; line-height: 1.3; }
.legal li { margin-bottom: 0.4rem; max-width: var(--measure); }
.draft-note { background: var(--rope); color: #fff; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-weight: 650; }

/* ---- responsive ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .ring { order: -1; }
  .ring .second { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .steps, .two-col, .drops, .product-pick { grid-template-columns: 1fr; }
  .site-nav .hide-sm { display: none; }
  .review dl { grid-template-columns: 1fr; }
  .review dd { margin-bottom: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
