@font-face { font-family: "Nunito"; src: url("fonts/Nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("fonts/GochiHand.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* Matches the pitch video: warm paper desk, lawn-sign teal, sticky-note yellow, marker orange. */
:root {
  --paper: #f5eee2;
  --desk: #e9dcc4;
  --card: #fffaf1;
  --ink: #26231f;
  --muted: #655d52;
  --line: #d9ccb4;
  --teal: #1d5a55;
  --teal-deep: #164642;
  --sticky: #f7da63;
  --sticky-2: #f6c66c;
  --marker: #e6892b;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--teal-deep);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #226a64; transform: translateY(-1px); box-shadow: 0 4px 0 var(--teal-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
.btn-small { font-size: 15px; padding: 9px 18px; white-space: nowrap; }
.btn-light { background: var(--sticky); color: var(--ink); box-shadow: 0 3px 0 #b99a2a; }
.btn-light:hover { background: #fbe27a; box-shadow: 0 4px 0 #b99a2a; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-row.center { justify-content: center; margin-top: 36px; }
.cta-note { color: var(--muted); font-size: 16px; }

/* ---------- Header ---------- */
.bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 8px; font-family: var(--hand); font-size: 26px; }
.brand img { width: 50px; height: auto; margin-bottom: -6px; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 24px 56px; padding-top: 48px; padding-bottom: 72px; }
.hero-media {
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  grid-template-areas: "copy video" "pitch video";
  align-items: start;
}
.hero-media .hero-copy { grid-area: copy; align-self: end; }
.hero-media .hero-video { grid-area: video; align-self: center; }
.hero-media .hero-pitch { grid-area: pitch; }
.hero-solo { max-width: 760px; }
@media (min-width: 901px) {
  .hero-media { min-height: calc(100svh - 65px); align-content: center; padding-top: 32px; padding-bottom: 48px; }
}

.kicker { font-family: var(--hand); font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em;
  background: var(--marker); border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  transform: rotate(-1.2deg); z-index: -1; opacity: .85;
}
.hero-copy h1 { position: relative; z-index: 0; }
.lede { font-size: 20px; color: #3b3630; margin-bottom: 26px; max-width: 34em; }

.hero-video { margin: 0; }
.screen {
  background: #1d1c1a; padding: 10px; border-radius: 16px;
  box-shadow: 0 1px 0 #0003, 0 22px 50px -18px #3b2c1480;
}
.screen video, .screen img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; object-fit: cover; }
/* The hero thumbnail is a button: clicking opens the video large. */
.thumb {
  display: block; width: 100%; border: 0; cursor: pointer; position: relative; font: inherit; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.thumb:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 1px 0 #0003, 0 30px 60px -20px #3b2c1490; }
.thumb:focus-visible { outline: 3px solid var(--marker); outline-offset: 4px; }
.thumb video { pointer-events: none; }
.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fffaf1e6; box-shadow: 0 6px 20px #0005;
}
.play::after {
  content: ""; position: absolute; left: 31px; top: 23px;
  border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--marker);
}

.player {
  border: 0; padding: 0; background: transparent; overflow: visible;
  width: min(94vw, calc((100dvh - 110px) * 16 / 9), 1600px); max-width: none; max-height: none;
}
.player::backdrop { background: #16130fe6; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; box-shadow: 0 30px 80px #0008; }
.player-frame { position: relative; }
.endcard {
  position: absolute; inset: 0; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; color: #fff;
  background: #16130fcc; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: endcard-in .35s ease-out;
}
.endcard[hidden] { display: none; }
.endcard-title { font-family: var(--hand); font-size: clamp(28px, 4.5vw, 52px); line-height: 1.05; }
.endcard-sub { max-width: 30em; color: #e9e2d5; font-size: clamp(15px, 1.6vw, 19px); }
.endcard .btn { margin-top: 6px; }
.endcard-replay {
  background: none; border: 0; color: #e9e2d5; font: 700 15px var(--body); cursor: pointer; padding: 6px 10px;
  text-decoration: underline; text-underline-offset: 3px;
}
.endcard-replay:hover { color: #fff; }
@keyframes endcard-in { from { opacity: 0; } to { opacity: 1; } }

.player-close {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fffaf1; color: var(--ink); font-size: 28px; line-height: 1;
}
.player-close:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
html.locked { overflow: hidden; }

/* ---------- Bands ---------- */
.band { padding: 72px 0; }

/* ---------- Sections ---------- */
.section { padding-top: 80px; padding-bottom: 8px; }
.section > h2 { margin-bottom: 30px; }

.fine { margin-top: 18px; color: var(--muted); font-size: 16px; text-align: center; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 2px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%;
  background: var(--sticky); font-family: var(--hand); font-size: 28px;
}
.steps b { font-size: 21px; font-weight: 800; line-height: 1.2; }
.steps span { color: var(--muted); font-size: 16.5px; }

.band-teal { background: var(--teal); color: #fff; margin-top: 88px; }
.countdown { text-align: center; }
.countdown .big { font-family: var(--hand); font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.countdown p:not(.big) { margin: 12px auto 28px; max-width: 34em; color: #d9e7e3; font-size: 19px; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 700; font-size: 18.5px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

.final { text-align: center; padding-bottom: 80px; }
.final-cta { display: inline-flex; align-items: center; gap: 4px; margin-left: -110px; }
.mascot-point { width: 110px; height: auto; transform: rotate(8deg); margin-top: -40px; }
.final h2 { margin-bottom: 26px; }
.final .cta-note { margin-top: 18px; }
.signer { font-family: var(--hand); font-size: 26px; margin-top: 10px; }

.foot { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }

/* ---------- Order page (/start) ---------- */
.brand { color: var(--ink); text-decoration: none; }
.order { max-width: 760px; padding-top: 36px; padding-bottom: 80px; }
.order-title { font-size: clamp(32px, 5vw, 46px); margin: 4px 0 8px; }
.step { margin-top: 44px; }
.step h2 { font-size: 24px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.num {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sticky); font-family: var(--hand); font-size: 22px; font-weight: 400;
}
.label { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 22px 0 10px; }
.label:first-of-type { margin-top: 0; }

.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.option { cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: border-color .12s, background .12s;
}
.option b { font-size: 17px; }
.option small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.option em { font-style: normal; font-weight: 800; color: var(--teal); margin-top: 6px; font-size: 15px; }
.option:hover span { border-color: #c4b494; }
.option input:checked + span { border-color: var(--teal); background: #eaf2ef; box-shadow: inset 0 0 0 1px var(--teal); }
.option input:focus-visible + span { outline: 3px solid var(--marker); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.stepper button { width: 48px; height: 48px; border: 0; background: none; font-size: 26px; color: var(--teal); cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: #efe6d6; }
.stepper output { min-width: 40px; text-align: center; font-weight: 800; font-size: 20px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields label, .step > textarea { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 16px; }
.fields .wide { grid-column: 1 / -1; }
.fields small { font-weight: 400; color: var(--muted); font-size: 14px; }
.order input:not([type=radio]):not([type=file]), .order textarea {
  font: 400 17px/1.45 var(--body); color: var(--ink); width: 100%;
  padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
.order textarea { resize: vertical; }
.order input:focus, .order textarea:focus { outline: none; border-color: var(--teal); }
.order .invalid { border-color: #c0492b !important; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 30px 20px; border: 2px dashed #c4b494; border-radius: var(--radius); background: var(--card);
  transition: background .12s, border-color .12s;
}
.drop b { font-size: 18px; color: var(--teal); }
.drop span { color: var(--muted); font-size: 15px; }
.drop:hover, .drop.over { background: #eaf2ef; border-color: var(--teal); }
.uploads { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.uploads li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px; gap: 12px; align-items: center; font-size: 15px; }
.uploads .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uploads progress { width: 100%; accent-color: var(--teal); }
.uploads .state { color: var(--muted); text-align: right; }
.uploads li.ok .state { color: var(--teal); font-weight: 700; }
.uploads li.bad .state { color: #c0492b; }

.summary { margin-top: 44px; padding: 22px; border-radius: var(--radius); background: var(--desk); }
.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.summary-line b { font-size: 26px; }
.pay { width: 100%; text-align: center; border: 0; cursor: pointer; font-family: var(--body); }
.pay:disabled { opacity: .6; cursor: wait; }
.summary .fine { margin-top: 12px; }
.error { color: #c0492b; font-weight: 700; margin-bottom: 12px; }

.progress { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0 0 28px; }
.progress li { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.progress li.ok::before, .progress li.on::before { background: var(--teal); }
.progress li.on { color: var(--teal); }

.option { position: relative; }
.option.popular span { padding-top: 22px; }
.badge {
  position: absolute; top: -11px; left: 14px; font-style: normal; font-size: 12px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; background: var(--marker); color: #fff; padding: 3px 10px; border-radius: 999px;
}
.total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.total small { color: var(--muted); font-size: 13px; }
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: 14.5px; color: var(--muted); font-weight: 700; }

.next { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.next-title { font-weight: 800; margin-bottom: 12px; }
.next ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: nx; }
.next li { counter-increment: nx; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.next li::before {
  content: counter(nx); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--sticky); font-family: var(--hand); font-size: 18px;
}
.next b { font-size: 16.5px; }
.next span { color: var(--muted); font-size: 15px; }

.pay-guarantee { margin-top: 10px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--teal); }
.guarantee {
  display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 16px 20px;
  border: 2px solid #cfe0da; border-radius: var(--radius); background: #eaf2ef;
}
.guarantee .shield { font-size: 30px; line-height: 1; }
.guarantee p { color: #2f4a45; font-size: 15.5px; }
.guarantee b { display: block; font-size: 17px; color: var(--teal); }
.final .cta-note + .cta-note { margin-top: 6px; }

.lede-small { color: var(--muted); font-size: 17px; }
.back { background: none; border: 0; padding: 0; margin: 0 0 14px; font: 700 15px var(--body); color: var(--teal); cursor: pointer; }
.back:hover { color: var(--teal-deep); text-decoration: underline; }
.hint { color: var(--muted); font-size: 15.5px; margin: -8px 0 14px; }
.hint.tips { margin: 12px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin-bottom: 14px; }
.field small { font-weight: 400; color: var(--muted); font-size: 14px; }
#videos .field textarea { min-height: 64px; }
.error.center { text-align: center; margin-top: 40px; }

.done { text-align: center; }
.done > img { width: 110px; height: auto; margin: 0 auto; }
.done .lede { margin: 10px auto 0; }
.done .step { text-align: left; }
.done > .hint { margin: 18px 0 0; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero-media { grid-template-columns: 1fr; grid-template-areas: "copy" "video" "pitch"; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 28px; padding-bottom: 56px; }
  .lede { font-size: 18px; }
  .btn { width: 100%; text-align: center; }
  .btn-small { width: auto; font-size: 14px; padding: 8px 14px; }
  .brand { font-size: 21px; gap: 6px; }
  .brand img { width: 38px; }
  .final-cta { margin-left: 0; width: 100%; }
  .mascot-point { width: 72px; margin-top: -24px; flex: none; }
  .final-cta .btn { width: auto; flex: 1; }
  .cta-row { gap: 12px; }
  .cta-note { width: 100%; text-align: center; }
  .band { padding: 56px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
  .steps li::before { width: 44px; height: 44px; margin: 0; grid-row: span 2; font-size: 24px; }
  .steps b { font-size: 18.5px; }
  .steps span { font-size: 15.5px; }
  .endcard[hidden] { display: none; }
.endcard-title { font-family: var(--hand); font-size: clamp(28px, 4.5vw, 52px); line-height: 1.05; }
.endcard-sub { max-width: 30em; color: #e9e2d5; font-size: clamp(15px, 1.6vw, 19px); }
.endcard .btn { margin-top: 6px; }
.endcard-replay {
  background: none; border: 0; color: #e9e2d5; font: 700 15px var(--body); cursor: pointer; padding: 6px 10px;
  text-decoration: underline; text-underline-offset: 3px;
}
.endcard-replay:hover { color: #fff; }
@keyframes endcard-in { from { opacity: 0; } to { opacity: 1; } }

.player-close { right: 12px; }
  .section { padding-top: 60px; }
  .order { padding-top: 22px; padding-bottom: 60px; }
  /* Phones: total and button pinned to the bottom of the screen */
  .paybar { position: sticky; bottom: 0; z-index: 5; margin: 28px -16px 0; border-radius: 16px 16px 0 0; padding: 14px 16px 16px; box-shadow: 0 -6px 20px #3b2c1422; }
  .paybar .summary-line { margin-bottom: 10px; }
  .paybar .summary-line b { font-size: 22px; }
  .trust { flex-direction: column; align-items: center; }
  .pay-guarantee { margin-top: 8px; font-size: 13.5px; }
  .next { padding: 18px 16px; }
  .options { grid-template-columns: 1fr; gap: 8px; }
  .option span { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; padding: 12px 14px; }
  .option small { flex: 1 1 60%; }
  .option em { margin: 0 0 0 auto; }
  .fields { grid-template-columns: 1fr; }
  .uploads li { grid-template-columns: minmax(0, 1fr) 70px; }
  .uploads progress { display: none; }
}

/* ---------- Sample ads (config.toml [[sample_ads]]) ---------- */
/* A wide (16:9) and a tall (9:16) card, the same height: with the 10 px screen frame that is a 3 : 1 split. */
.samples-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sample { margin: 0; }
.sample-tall .screen img { aspect-ratio: 9 / 16; }
/* the player, for tall (9:16) videos */
.player.tall { width: min(94vw, calc((100dvh - 110px) * 9 / 16), 560px); }
.player.tall video { aspect-ratio: 9 / 16; }
@media (max-width: 760px) {
  .samples-row { grid-template-columns: 1fr; gap: 36px; }
  .sample-tall { width: min(100%, 250px); justify-self: center; }
}

/* the order page: "See an example" under a Shape option */
.option .example {
  align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--teal); font: 700 14px var(--body); text-decoration: underline; text-underline-offset: 3px;
}
.option .example:hover { color: var(--teal-deep); }
