/* /start/: the "tell me about your ad" form.
   Loaded after /styles.css and only by this page, so the shared stylesheet stays as it is.
   Same board, same markers: fields and choices are drawn with the black marker outline the
   ad cards use, the one blue marker fills what you pick, and a red marker points at what to fix. */

.start {
  --red: #B42318;      /* the red marker: only for things to fix */
  --paper: #FFFFFF;    /* inside a field */
  padding-top: clamp(28px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

[hidden] { display: none !important; }

/* ---------- Intro and the three ads ---------- */

.start h1 {
  font-weight: 800;
  font-stretch: 106%;
  font-size: clamp(2.125rem, 8.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.022em;
  max-width: 11em;
  text-wrap: balance;
}

.start .lede {
  margin-top: 16px;
  max-width: 30ch;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  text-wrap: balance;
}

.start-hello {
  margin-top: clamp(22px, 4vw, 32px);
  color: var(--marker);
  font-family: var(--hand);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.2;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

/* Three small phones in a row. The one that is playing grows; the other two stack beside it. */
.proof {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  max-width: 440px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.proof .screen {
  border-width: 2.5px;
  border-radius: 18px;
  padding: 4px;
}
.proof .screen video,
.proof .play,
.proof .play:focus-visible { border-radius: 11px; }
.proof .play { inset: 4px; }
.proof .play-mark {
  left: 7px;
  bottom: 7px;
  width: 34px;
  height: 34px;
  padding: 0 0 0 2px;
  justify-content: center;
  border-width: 2px;
}
.proof .play-mark svg { width: 15px; height: 15px; }
.proof-name {
  margin-top: 8px;
  font-weight: 700;
  font-stretch: 104%;
  font-size: 0.875rem;
  line-height: 1.25;
}
.proof-name span {
  display: block;
  margin-top: 1px;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 0.8125rem;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.proof.has-big { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.proof .is-big { grid-column: 1; grid-row: 1 / span 2; }

/* ---------- The form ---------- */

.start-main { margin-top: clamp(36px, 7vw, 48px); }

.start-form {
  display: grid;
  gap: 26px;
  max-width: 560px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend {
  padding: 0;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.3;
}
.field > legend { margin-bottom: 10px; }
.opt {
  margin-left: 4px;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--graphite);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0;
  padding: 13px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea {
  min-height: 128px;
  resize: vertical;
}
.field ::placeholder { color: #8A8C92; opacity: 1; }
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--marker);
  outline: 3px solid var(--marker);
  outline-offset: 2px;
  border-radius: 14px;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--red); }

.field-hint {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--graphite);
}
.field-error {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--red);
}

/* Choices: pills you tap. The whole pill is the target (48px tall or more). */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  display: inline-flex;
  -webkit-tap-highlight-color: transparent;
}
.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chip:hover span { border-color: var(--marker); }
.chip input:checked + span {
  background: var(--marker);
  border-color: var(--marker);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
}

/* The spam trap: a field people never see or reach. */
.start-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 13px 15px;
  border: 2.5px solid var(--red);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
}
.form-status[data-kind="invalid"] { color: var(--red); }
.form-status a {
  text-decoration-color: var(--marker);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.form-status a:hover { color: var(--marker); }
.form-status:focus-visible { outline-offset: 2px; border-radius: 14px; }

.start-form .btn,
.start-sent .btn {
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.start-form .btn { width: 100%; }
.start-form .btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- No form yet (email instead) and the thank-you ---------- */

.start-off .mail-big {
  margin-top: 30px;
  font-size: clamp(1.375rem, 5.6vw, 2.125rem);
}

.start-sent { padding-top: clamp(8px, 4vw, 40px); }
.start-sent:focus { outline: none; }
.start-sent .start-hello { margin-top: 0; }
.start-sent h1 { margin-top: 10px; }
.start-sent .btn { margin-top: 30px; }

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .start-form .btn { width: auto; min-width: 220px; justify-self: start; }
}

@media (min-width: 1000px) {
  /* The site's four columns: intro and ads on the left half, the form on the right half. */
  .start {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
    padding-top: 72px;
  }
  .start-side {
    grid-column: 1 / 3;
    position: sticky;
    top: 96px;
  }
  .start-main,
  .start-off {
    grid-column: 3 / -1;
    margin-top: 6px;
  }
  .start-off .mail-big { margin-top: 0; }
  .start-sent { grid-column: 1 / -1; }
  .proof { margin-top: 14px; max-width: 500px; gap: 16px; }
}
