/*
 * Primeiro Reels — the class's waiting-list page.
 *
 * One stylesheet, no build. The page looks like the class's own videos: cream paper, thick ink
 * outlines, flat colour panels with hard offset shadows, speech bubbles and a rubber stamp.
 * Scenes are inline SVG drawn in the same hand, so the page carries one photo and one video.
 */

:root {
  --paper: #f4ecdd;
  --paper-light: #fffdf7;
  --ink: #17140f;
  --ink-soft: #3d372d;
  --ink-dim: #5f574a;

  --accent: #ff9a3c;
  --sky: #8fb3d6;
  --mint: #d5e8db;
  --stamp: #d23d24;
  --whatsapp: #25d366;

  --stroke: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: Caveat, "Comic Sans MS", cursive;

  --section: clamp(64px, 10vw, 120px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  /* A faint dot grid, like the paper under a storyboard. */
  background-image: radial-gradient(rgba(23, 20, 15, 0.13) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

.wrap {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.narrow {
  width: min(720px, 100% - 40px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.visually-hidden,
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── type ───────────────────────────────────────────────────────────────────────── */

.display,
.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.display {
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 0.98;
}

.title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.05;
}

.title-xl {
  font-size: clamp(34px, 5.2vw, 58px);
}

.lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 20px);
}

/* A highlighter swipe behind a word, a little crooked like a real one. */
.marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.18em -0.12em 0.04em;
  background: var(--accent);
  border-radius: 0.2em 0.5em 0.3em 0.6em;
  transform: rotate(-1.5deg);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0;
  padding: 6px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.label-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
}

.label-light {
  border-color: var(--paper-light);
  background: transparent;
  color: var(--paper-light);
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── bar ────────────────────────────────────────────────────────────────────────── */

.bar {
  padding: 18px 0;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chip,
.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: var(--stroke);
  border-radius: 999px;
  background: var(--paper-light);
  box-shadow: var(--shadow-small);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.chip:hover,
.pill-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* ── hero ───────────────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding: clamp(24px, 5vw, 64px) 0 var(--section);
}

.hero-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-art {
  flex: 1 1 320px;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 40px 0 20px;
}

.phone {
  position: relative;
  width: min(300px, 78%);
  padding: 10px;
  border: 4px solid var(--ink);
  border-radius: 36px;
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--accent), 10px 10px 0 4px var(--ink);
  transform: rotate(2deg);
}

.phone video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 26px;
  background: var(--sky);
}

.sound {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--stroke);
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  cursor: pointer;
}

.sound .sound-on,
.sound[aria-pressed="true"] .sound-off {
  display: none;
}

.sound[aria-pressed="true"] .sound-on {
  display: block;
}

/* A comic speech bubble with its tail pointing at the phone. */
.bubble {
  position: absolute;
  z-index: 2;
  top: 0;
  left: max(0px, 50% - 230px);
  margin: 0;
  padding: 14px 18px;
  border: var(--stroke);
  border-radius: 24px;
  background: var(--paper-light);
  box-shadow: var(--shadow-small);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  transform: rotate(-4deg);
}

.bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 22px;
  height: 22px;
  border-right: var(--stroke);
  border-bottom: var(--stroke);
  background: var(--paper-light);
  transform: skewX(30deg) rotate(30deg);
}

.note {
  position: absolute;
  right: max(0px, 50% - 250px);
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  font-family: var(--hand);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-6deg);
}

.note svg {
  order: -1;
  transform: scaleX(-1);
}

/* ── form ───────────────────────────────────────────────────────────────────────── */

.signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.field-label {
  font-weight: 600;
}

.field {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: var(--stroke);
  border-radius: 16px;
  background: var(--paper-light);
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.field::placeholder {
  color: #8a8172;
}

.field:focus {
  outline: none;
  box-shadow: 4px 4px 0 var(--accent);
}

.field[aria-invalid="true"] {
  box-shadow: 4px 4px 0 var(--stamp);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 28px;
  border: var(--stroke);
  border-radius: 16px;
  background: var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Pressed, the button sinks into its shadow. */
.cta:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.cta[disabled] {
  opacity: 0.75;
  cursor: progress;
}

.hint {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
}

.signup .hint.is-error {
  color: var(--stamp);
  font-weight: 600;
}

.confirmed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
  padding: 24px;
  border: var(--stroke);
  border-radius: 20px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.confirmed[hidden] {
  display: none;
}

.confirmed p {
  margin: 0;
}

.confirmed a {
  font-weight: 600;
}

/* A rubber stamp, slightly crooked. */
.stamp {
  align-self: center;
  margin: 0;
  padding: 6px 16px;
  border: 4px solid var(--stamp);
  border-radius: 10px;
  color: var(--stamp);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.stamp-small {
  align-self: flex-start;
  font-size: 18px;
}

/* ── bands ──────────────────────────────────────────────────────────────────────── */

.band {
  padding: var(--section) 0;
}

.band-sky {
  border-block: var(--stroke);
  background-color: var(--sky);
  background-image: radial-gradient(rgba(23, 20, 15, 0.16) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
}

.band-sky .intro {
  align-self: flex-start;
  padding: 20px 24px;
  border: var(--stroke);
  border-radius: 20px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.band-ink {
  background: var(--ink);
  color: var(--paper-light);
}

.band-ink .lead {
  color: #e6ddcc;
}

/* ── storyboard ─────────────────────────────────────────────────────────────────── */

.storyboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 20px;
  border: var(--stroke);
  border-radius: 18px;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.panel:nth-child(odd) {
  transform: rotate(-1deg);
}

.panel:nth-child(even) {
  transform: rotate(1deg);
}

.panel svg {
  width: 100%;
  height: auto;
  border: var(--stroke);
  border-radius: 10px;
}

.panel-no {
  position: absolute;
  top: -16px;
  left: 18px;
  padding: 2px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel h3 {
  margin: 8px 8px 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 0 8px;
  color: var(--ink-soft);
}

/* ── for whom ───────────────────────────────────────────────────────────────────── */

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.split .intro {
  flex: 1 1 380px;
}

/* Sticky notes, taped on. */
.notes {
  flex: 1 1 420px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes li {
  position: relative;
  min-height: 120px;
  padding: 28px 20px 20px;
  border: var(--stroke);
  border-radius: 6px;
  background: #ffe9a8;
  box-shadow: var(--shadow-small);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transform: rotate(-1.5deg);
}

.notes li:nth-child(2) {
  background: var(--mint);
  transform: rotate(1.5deg);
}

.notes li:nth-child(3) {
  background: #f2d6e0;
  transform: rotate(-1deg);
}

.notes li:nth-child(4) {
  background: #ffe3c4;
  transform: rotate(1deg);
}

.notes li::before {
  content: "";
  position: absolute;
  top: -12px;
  left: calc(50% - 34px);
  width: 68px;
  height: 22px;
  border: 2px solid rgba(23, 20, 15, 0.35);
  background: rgba(255, 253, 247, 0.7);
  transform: rotate(-3deg);
}

/* ── host ───────────────────────────────────────────────────────────────────────── */

.host {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

/* A polaroid on the dark band, with the orange shadow the page's buttons cast. */
.host-photo {
  flex: 0 1 420px;
  position: relative;
  margin: 0 auto;
  padding: 14px 14px 18px;
  border-radius: 8px;
  background: var(--paper-light);
  box-shadow: 10px 10px 0 var(--accent);
  transform: rotate(-2deg);
}

.host-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--stroke);
}

.host-photo figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.host-photo .stamp {
  position: absolute;
  right: -18px;
  bottom: 72px;
  background: var(--paper-light);
  transform: rotate(8deg);
}

.host-copy {
  flex: 1 1 440px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.host-copy .marker {
  color: var(--ink);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 0;
}

.facts div {
  flex: 1 1 180px;
  padding: 16px 20px;
  border: 3px solid var(--paper-light);
  border-radius: 16px;
}

.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.facts dt {
  color: #e6ddcc;
  font-size: 15px;
}

/* ── faq ────────────────────────────────────────────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq details {
  border: var(--stroke);
  border-radius: 16px;
  background: var(--paper-light);
  box-shadow: var(--shadow-small);
}

.faq summary {
  position: relative;
  padding: 20px 60px 20px 22px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
}

/* ── closing ────────────────────────────────────────────────────────────────────── */

.band-closing {
  padding-top: 0;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border: 4px solid var(--ink);
  border-radius: 28px;
  background-color: var(--accent);
  background-image: radial-gradient(rgba(23, 20, 15, 0.18) 1.6px, transparent 1.8px);
  background-size: 16px 16px;
  box-shadow: 10px 10px 0 var(--ink);
  text-align: center;
}

.closing .lead {
  color: var(--ink);
}

.cta-dark {
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--paper-light), 6px 6px 0 3px var(--ink);
  color: var(--paper-light);
}

.cta-dark:hover {
  box-shadow: 8px 8px 0 var(--paper-light), 8px 8px 0 3px var(--ink);
}

/* ── footer ─────────────────────────────────────────────────────────────────────── */

.foot {
  padding: 32px 0 48px;
  border-top: var(--stroke);
  font-size: 15px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* ── after the signup ───────────────────────────────────────────────────────────── */

.welcome {
  width: min(460px, calc(100% - 32px));
  padding: 48px 28px 28px;
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: var(--paper-light);
  box-shadow: 10px 10px 0 var(--ink);
  color: var(--ink);
  text-align: center;
}

.welcome[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.welcome::backdrop {
  background: rgba(23, 20, 15, 0.6);
}

.welcome h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 6.4vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.welcome p {
  margin: 0;
  color: var(--ink-soft);
}

.welcome .stamp {
  color: var(--stamp);
}

.cta-whatsapp {
  width: 100%;
  min-height: 70px;
  margin: 14px 0 6px;
  background: var(--whatsapp);
  font-size: 19px;
}

.welcome-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  color: var(--ink);
  cursor: pointer;
}

/* ── small screens ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero-art {
    padding-top: 72px;
  }

  .bubble {
    left: 4px;
    font-size: 17px;
  }

  .note {
    right: 0;
    font-size: 22px;
  }

  .host-photo .stamp {
    right: -6px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .chip,
  .pill-link {
    transition: none;
  }
}
