/* One stylesheet, no framework. The product is four screens. */
:root {
  --ink: #16171a; --muted: #6b7076; --line: #e3e5e8; --bg: #fbfbfc;
  --card: #ffffff; --accent: #1a1c1f; --warn: #b23c17; --ok: #1c7c48;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
header {
  display: flex; align-items: center; gap: 24px; padding: 14px 28px;
  border-bottom: 1px solid var(--line); background: var(--card);
  position: sticky; top: 0; z-index: 5;
}
.brand { font-weight: 650; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
nav { display: flex; gap: 18px; align-items: center; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.credits {
  background: #f0f1f3; padding: 4px 11px; border-radius: 999px;
  font-variant-numeric: tabular-nums; font-size: 14px;
}
main { max-width: 940px; margin: 0 auto; padding: 34px 28px 80px; }
h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 10px; }
.lede { color: var(--muted); margin: 0 0 26px; max-width: 60ch; }
.muted { color: var(--muted); }
.tiny { font-size: 13px; }
.warn { color: var(--warn); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

label { display: block; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
/* Every text-like input, listed by exclusion rather than by enumeration: adding a
   type=email field should not require remembering to come back here. */
input:not([type=color]):not([type=radio]):not([type=checkbox]):not([type=submit]),
select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink);
  background: #fff;
}
input[type=color] { width: 60px; height: 34px; padding: 2px; margin-top: 5px; }
button, .button {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 11px 20px; border-radius: 8px; font: inherit; font-weight: 550;
  cursor: pointer; text-decoration: none;
}
button:hover { opacity: .9; }
.button.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.risky { background: var(--warn); }

fieldset.tiers { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-size: 14px; color: var(--muted); padding: 0 0 8px; }
.tier {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 10px;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  margin-bottom: 8px; cursor: pointer; color: var(--ink);
}
.tier:has(input:checked) { border-color: var(--accent); background: #fafafa; }
.tier-name { font-weight: 550; }
.tier-credits { font-variant-numeric: tabular-nums; color: var(--muted); }
.tier-blurb { grid-column: 2 / 4; color: var(--muted); font-size: 13px; }

dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; }
dt { color: var(--muted); font-size: 14px; }
dd { margin: 0; }
.swatch {
  display: inline-block; width: 13px; height: 13px; border-radius: 3px;
  border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; margin-right: 4px;
}
img.hero { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
video { width: 100%; border-radius: var(--radius); background: #000; }

.confirm .quote { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.price { font-size: 24px; font-weight: 620; letter-spacing: -0.02em; }
.refusal { border-color: #f0d3c8; background: #fdf7f4; }

.step { font-variant-numeric: tabular-nums; margin: 0 0 10px; }
.bar { height: 6px; background: #eceef0; border-radius: 999px; overflow: hidden; }
.bar div { height: 100%; width: 6%; background: var(--accent); transition: width .5s; }
pre {
  background: #f7f8f9; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.5;
  margin: 14px 0; white-space: pre-wrap;
}
.script { font-size: 18px; line-height: 1.5; margin: 0 0 10px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); }
td.num { font-variant-numeric: tabular-nums; }
tr.failed td { color: var(--muted); }
tr.ready td:last-child { color: var(--ok); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan .price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .big { font-size: 19px; font-weight: 550; margin: 4px 0; }
.plan ul { padding-left: 18px; color: var(--muted); font-size: 14px; }

footer {
  border-top: 1px solid var(--line); padding: 22px 28px; color: var(--muted);
  font-size: 13px; text-align: center; background: var(--card);
}

.narrow { max-width: 420px; margin: 0 auto; }
form.inline { display: inline; margin: 0; }
.linkish {
  background: none; border: 0; color: var(--muted); font: inherit; padding: 0;
  cursor: pointer;
}
.linkish:hover { color: var(--ink); }
.button.small { padding: 7px 14px; font-size: 14px; }
label .tiny { display: block; margin-top: 5px; color: var(--muted); }

/* ---------------------------------------------------------------- landing */
:root {
  --grad: linear-gradient(100deg, #4f7cff 0%, #a855f7 38%, #ff4d8d 68%, #ff8a3d 100%);
}

/* A floating pill nav, like the rest of this category uses, because it keeps the
   page feeling like a product rather than a document. */
body.marketing header {
  position: sticky; top: 14px; margin: 14px auto 0; max-width: 940px;
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 4px 24px rgba(16,17,20,.06); padding: 10px 12px 10px 22px;
}
body.marketing main { padding-top: 26px; }

.hero { text-align: center; padding: 40px 0 26px; }
.eyebrow {
  display: inline-block; font-size: 13px; padding: 5px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid transparent; color: var(--muted);
  background-image: linear-gradient(var(--card), var(--card)), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.06; letter-spacing: -0.035em;
  margin: 18px auto 16px; max-width: 15ch;
}
.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .lede.big { margin: 0 auto 24px; font-size: 17px; max-width: 54ch; }
.hero-cta { margin: 0 0 26px; }
.hero-cta .button { margin: 0 5px; }
.grad-btn { background: var(--grad); border: 0; }
.grad-btn:hover { filter: brightness(1.06); }
.trust {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; margin: 0;
}
.trust strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* The wall. Ten real ads moving is the argument; a static grid is a brochure. */
/* Full bleed. The wall is the argument, and a 940px column makes it look like a
   figure in a document rather than a shelf of finished work. */
.wall {
  margin: 34px 0 60px; width: 100vw; margin-left: calc(50% - 50vw);
}
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.track { display: flex; gap: 14px; width: max-content; animation: slide 78s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tile { margin: 0; width: 186px; flex: 0 0 auto; }
.tile video {
  width: 186px; aspect-ratio: 9/16; object-fit: cover; display: block;
  border-radius: 12px; background: #000;
  border: 1px solid var(--line); box-shadow: 0 2px 14px rgba(16,17,20,.07);
}
.tile figcaption {
  font-size: 12px; color: var(--muted); margin-top: 7px; text-align: center;
  border-top: 2px solid var(--accent); padding-top: 6px;
}
.wall-note {
  text-align: center; font-size: 14px; margin: 22px auto 0; max-width: 60ch;
  padding: 0 20px;
}
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }

/* The proof. One claim, shown rather than asserted. */
.proof { margin-bottom: 60px; }
.proof h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.028em; line-height: 1.15; }
/* A square product shot next to a 9:16 frame is two different shapes, and giving
   them equal columns leaves the small one floating in space. The source is the
   smaller claim; the frame is the payoff. */
.proof-grid {
  display: grid; grid-template-columns: 0.72fr auto 1fr; gap: 22px;
  align-items: center; margin: 26px 0 22px;
}
.proof-grid figure { margin: 0; }
.proof-grid img {
  width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: block;
}
.proof-grid .frame img { box-shadow: 0 8px 34px rgba(16,17,20,.13); }
.proof-grid figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.tag {
  display: inline-block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink); background: #f0f1f3;
  padding: 3px 8px; border-radius: 5px; margin-right: 7px;
}
.arrow { font-size: 26px; color: var(--muted); }
.proof-text { max-width: 68ch; color: var(--muted); }

.steps-section, .claims { margin-bottom: 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.steps > div {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.steps h3 { font-size: 16px; margin: 10px 0 6px; }
.steps p { font-size: 14px; color: var(--muted); margin: 0; }
.n {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px;
  font-weight: 600;
}
.claims ul { max-width: 72ch; padding-left: 20px; }
.claims li { margin-bottom: 10px; }
.cta {
  text-align: center; padding: 42px 24px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--card);
}
.cta .button { margin: 12px 4px 0; }

@media (max-width: 760px) {
  /* With src removed on small screens the poster still paints, so the wall reads as
     a shelf of stills rather than an empty row of black boxes. */
  .tile video { background: #f0f1f3; }
  .tile, .tile video { width: 132px; }
  body.marketing header { border-radius: 16px; margin: 10px; }
  .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); text-align: center; }
  .trust { gap: 14px; font-size: 13px; }
}

/* Shop picker: shown when someone pastes their storefront instead of a product. */
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.pick { margin: 0; }
.pick button {
  display: block; width: 100%; text-align: left; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
  color: var(--ink); font: inherit; cursor: pointer;
}
.pick button:hover { border-color: var(--accent); opacity: 1; }
.pick img, .pick .noimg {
  width: 100%; aspect-ratio: 1; object-fit: contain; display: block;
  background: #f7f8f9; border-radius: 7px; margin-bottom: 8px;
}
.pick-title {
  display: block; font-size: 13px; line-height: 1.35; font-weight: 500;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pick-price { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) { .picker { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- builder */
/* Section label plus a grey hint, the pattern the whole category uses because it
   works: the label says what, the hint says why you would touch it. */
.sec { padding: 22px 0; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; padding-top: 8px; }
.sec h2 { font-size: 15px; margin: 0 0 12px; }
.sec .hint { font-weight: 400; color: var(--muted); margin-left: 7px; font-size: 13px; }
.sec .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 14px 0 0; font-size: 14px; color: var(--ink);
}
.sec .row select, .sec .row input[type=range] { width: 240px; margin: 0; }

.build-cols { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.build-side { position: sticky; top: 92px; }
@media (max-width: 900px) {
  .build-cols { grid-template-columns: 1fr; }
  .build-side { position: static; }
}

/* Angle chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  margin: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; background: var(--card); font-size: 13px; color: var(--ink);
}
.chip input { display: none; }
.chip span { font-weight: 500; }
.chip em { font-style: normal; color: var(--muted); margin-left: 7px; font-size: 12px; }
.chip.on { border-color: var(--accent); background: #fafafa; }

/* Presenter row: the face you pick is the face you get, same seed as the renderer */
.faces { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px; }
.face { position: relative; margin: 0; flex: 0 0 auto; cursor: pointer; }
.face input { display: none; }
.face img {
  width: 76px; height: 95px; object-fit: cover; border-radius: 9px; display: block;
  border: 2px solid transparent; background: #eee;
}
.face.on img { border-color: var(--accent); }
.face .badge {
  position: absolute; top: 5px; left: 5px; font-size: 9px; letter-spacing: .06em;
  background: var(--accent); color: #fff; padding: 2px 5px; border-radius: 4px;
}
.who { font-size: 13px; margin: 4px 0 0; }

/* Product shots, numbered with their role, as AdBreezy does */
.shots { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 8px; }
.shot { position: relative; margin: 0; flex: 0 0 auto; cursor: pointer; }
.shot input { display: none; }
.shot img {
  width: 84px; height: 84px; object-fit: contain; background: #f7f8f9;
  border-radius: 9px; border: 2px solid transparent; display: block;
}
.shot.on img { border-color: var(--accent); }
.shot .n {
  position: absolute; top: 4px; left: 4px; font-size: 10px; background: rgba(0,0,0,.6);
  color: #fff; width: 15px; height: 15px; border-radius: 4px; display: grid;
  place-items: center;
}
.shot .role {
  position: absolute; bottom: 4px; right: 4px; font-size: 9px; background: rgba(0,0,0,.6);
  color: #fff; padding: 1px 5px; border-radius: 4px;
}

/* Voices, each with its own sample */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vox {
  display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13px;
  background: var(--card);
}
.vox input { display: none; }
.vox.on { border-color: var(--accent); background: #fafafa; }
.vname { font-weight: 550; color: var(--ink); text-transform: capitalize; }
.vblurb { color: var(--muted); font-size: 12px; margin-left: auto; text-align: right; }
.play {
  background: #f0f1f3; color: var(--ink); border: 0; width: 24px; height: 24px;
  border-radius: 50%; font-size: 9px; padding: 0; display: grid; place-items: center;
  flex: 0 0 auto;
}
.play:hover { background: var(--accent); color: #fff; }
@media (max-width: 620px) { .voices { grid-template-columns: 1fr; } }

/* Colour swatches. The first is the merchant's own colour, which is the default. */
.swatches { display: flex; gap: 8px; margin-bottom: 14px; }
.sw { margin: 0; cursor: pointer; }
.sw input { display: none; }
.sw span {
  display: block; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line) inset;
}
.sw.on span { border-color: var(--accent); box-shadow: 0 0 0 2px #fff inset; }

/* Positions as pictures of the position, not words in a dropdown */
.posrow { display: flex; gap: 10px; flex-wrap: wrap; }
.pos {
  margin: 0; cursor: pointer; font-size: 12px; color: var(--muted); text-align: center;
}
.pos input { display: none; }
.posbox {
  display: block; width: 40px; height: 58px; border: 1px solid var(--line);
  border-radius: 6px; margin: 0 auto 4px; background: #fff; position: relative;
}
.posbox::after {
  content: ""; position: absolute; background: var(--muted); border-radius: 2px;
}
.pos.on { color: var(--ink); }
.pos.on .posbox { border-color: var(--accent); }
.pos.on .posbox::after { background: var(--accent); }
.cap-top::after     { left: 6px; right: 6px; top: 7px; height: 5px; }
.cap-middle::after  { left: 6px; right: 6px; top: 27px; height: 5px; }
.cap-bottom::after  { left: 6px; right: 6px; bottom: 7px; height: 5px; }
.card-top-left::after     { left: 5px; top: 5px; width: 15px; height: 15px; }
.card-top-right::after    { right: 5px; top: 5px; width: 15px; height: 15px; }
.card-center::after       { left: 12px; top: 21px; width: 15px; height: 15px; }
.card-bottom-left::after  { left: 5px; bottom: 14px; width: 15px; height: 15px; }
.card-bottom-right::after { right: 5px; bottom: 14px; width: 15px; height: 15px; }

/* The live frame. Percentages come from the real render geometry, so this is a
   scale drawing rather than an impression. */
.frame-wrap { margin-bottom: 16px; }
.frame {
  position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 12px;
  overflow: hidden; background: #111; border: 1px solid var(--line);
  box-shadow: 0 6px 26px rgba(16,17,20,.12);
}
.fr-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fr-head {
  position: absolute; left: 8%; right: 8%; top: 7.3%; text-align: center;
  font-weight: 650; font-size: clamp(9px, 3.2cqw, 15px); line-height: 1.2;
  background: rgba(0,0,0,.85); padding: 5px 7px; border-radius: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fr-card {
  position: absolute; background: #fff; border-radius: 3px; padding: 5%;
  box-shadow: 0 3px 12px rgba(0,0,0,.3); aspect-ratio: 1;
}
.fr-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fr-caps {
  position: absolute; left: 8%; right: 8%; text-align: center; color: #fff;
  font-weight: 700; font-size: clamp(10px, 3.6cqw, 16px); line-height: 1.25;
  text-shadow: 0 0 4px #000, 0 0 4px #000, 0 1px 2px #000;
}
.fr-caps.cap-bottom { bottom: 11.5%; }
.fr-caps.cap-middle { top: 40.6%; }
.fr-caps.cap-top    { top: 12%; }
.centre { text-align: center; }
