/* /live segue o tema do site (#14633): as superfícies que eram `white` fixo leem estes dois
   tokens da página, que o tema claro devolve ao branco. */
.launch {
  --launch-surface: var(--bg-2);
  --launch-field-bg: var(--bg);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
:root[data-theme='light'] .launch { --launch-surface: white; --launch-field-bg: white; }

.launch [hidden] { display: none !important; }
/* Só o conteúdo da página: o cabeçalho e o rodapé são os do site, com as cores deles. */
.launch-main a { color: var(--gold); text-decoration: underline; text-underline-offset: .19em; }
.launch :focus-visible,
.launch [tabindex="-1"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* A coluna da página é a do .wrap do site (--maxw menos os dois --gutter), para o conteúdo
   começar na mesma coluna da marca do cabeçalho (#14633). */
.launch-wrap { width: min(100% - 2 * var(--gutter), var(--maxw) - 2 * var(--gutter)); margin-inline: auto; }

.launch-skip {
  position: absolute;
  /* Above the sticky site header (z-index 30), or the focused link is painted under it. */
  z-index: 40;
  inset: .75rem auto auto .75rem;
  padding: .75rem;
  background: var(--bg);
  transform: translateY(-150%);
}

.launch-skip:focus { transform: none; }

.launch-main { padding-block: clamp(2rem, 6vw, 5rem); }
.launch-grid {
  display: grid;
  grid-template:
    "hero card" auto
    "program card" 1fr
    / minmax(0, 1fr) minmax(0, .86fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.launch-hero { grid-area: hero; }
.launch-card { grid-area: card; }
.launch-program { grid-area: program; }

.launch-kicker {
  margin: 0 0 .9rem;
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.launch h1,
.launch h2,
.launch-success h3 {
  font-family: 'Lora', 'Lora Fallback', Georgia, serif;
  font-weight: 600;
  letter-spacing: -.045em;
}

.launch h1 {
  margin: 0;
  font-size: clamp(2.7rem, 2rem + 4vw, 5.75rem);
  line-height: .98;
}

.launch h1 em { color: var(--gold); }
.launch h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.15; }
.launch-intro {
  max-width: 44ch;
  margin: 1.35rem 0 1.6rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, .9rem + .45vw, 1.2rem);
}

.launch-event {
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 .65rem .65rem 0;
  background: var(--bg-2);
}

.launch-event-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .75rem;
  font-weight: 750;
}

.launch-event-date span,
.launch-event p { color: var(--text-secondary); font-size: .9rem; }
.launch-event p { margin: .3rem 0 0; }
.launch-event p:empty { margin: 0; }
.launch-event .launch-countdown { color: var(--gold); font-weight: 750; font-variant-numeric: tabular-nums; }
.launch-event-links { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.launch-event-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .4rem;
  font-size: .9rem;
  font-weight: 650;
}

.launch-program-list {
  list-style: none;
  margin: .7rem 0 0;
  padding: 0;
  counter-reset: program;
}

.launch-program-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .65rem;
  padding: .65rem 0;
  border-top: 1px solid var(--hair);
  counter-increment: program;
}

.launch-program-list li::before {
  content: counter(program, decimal-leading-zero);
  padding-top: .11rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
}

.launch-program-list h3 { margin: 0; font-size: .97rem; line-height: 1.4; }
.launch-program-list p { margin: .15rem 0 0; color: var(--text-secondary); font-size: .9rem; }

.launch-card {
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--launch-surface);
  border: 1px solid var(--hair);
  border-top: 4px solid var(--gold);
  border-radius: 1rem;
  box-shadow: 0 18px 42px -24px var(--field-border);
}

.launch-card form { margin-top: 1.15rem; }
.launch-field { margin-bottom: .9rem; }
.launch-field label, .launch-preferences legend {
  display: block;
  margin-bottom: .3rem;
  font-size: .9rem;
  font-weight: 700;
}

.launch-field input {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid var(--field-border);
  border-radius: .55rem;
  background: var(--launch-field-bg);
  color: var(--ink);
  font: inherit;
}

.launch-field input[aria-invalid="true"] { border-color: var(--err); }

.launch-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .55rem;
  min-height: 1.5rem;
  margin: .6rem 0 0;
  font-size: .9rem;
}

.launch-check input {
  width: 1.25rem;
  height: 1.25rem;
  margin: .08rem 0 0;
  padding: 0;
  accent-color: var(--gold);
}

.launch-check input[aria-invalid="true"] { outline: 1px solid var(--err); outline-offset: 2px; }
.launch-check label, label.launch-check { cursor: pointer; }
.launch-check label { margin: 0; font: inherit; }
.launch-check input:disabled + label { cursor: default; }
.launch-field#phone-field { margin: .85rem 0 0; }
.launch-preferences {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.launch-preferences legend { padding: 0; }
.launch-preferences .launch-check { margin-top: .25rem; }
.launch-help, .launch-check-note, .launch-status {
  margin: .3rem 0 0;
  color: var(--text-secondary);
  font-size: .86rem;
}

.launch-check-note { font-size: .81rem; }
.launch-card > .launch-status { margin-top: .8rem; }
.launch-status:empty { margin: 0; }
.launch-field-error { margin: .25rem 0 0; color: var(--err); font-size: .86rem; }
.launch-error {
  margin: .85rem 0 0;
  padding: .65rem .75rem;
  border-left: 3px solid var(--err);
  background: var(--bg);
  color: var(--err);
  font-size: .9rem;
}

.launch .launch-button {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  margin: 1rem 0 0;
  padding: .65rem .85rem;
  border: 1px solid var(--ink);
  border-radius: .55rem;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.launch .launch-button:hover { background: var(--ink-soft); }
.launch .launch-button:disabled { background: var(--ink-soft); cursor: wait; }
.launch .launch-secondary { background: transparent; color: var(--ink); }
.launch .launch-secondary:hover { background: var(--bg-2); }
.launch-success { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--hair); }
.launch-success h3 { margin: 0; color: var(--ok); font-size: 1.55rem; }
.launch-success p { margin: .5rem 0 0; }

/* The cookie notice sits in the page flow above the header, as on phones (styles.css, max-width
   880px), and not as the fixed corner card of the other pages: that card covered the right half of
   the consent labels of the form and could not be scrolled away from them. In the flow it takes
   its own row, so the labels and the submit button are never under it; it leaves with the answer.
   `relative` keeps the close button anchored inside the notice, and `inset: auto` drops the
   right/bottom offsets of the fixed card, which would otherwise shift it out of the page.
   `z-index: auto` drops the card's 200 so the focused skip link (.launch-skip, z-index 40, a
   sibling before the notice) paints above it. */
@media (min-width: 881px) {
  .launch .cookie-banner {
    position: relative;
    z-index: auto;
    inset: auto;
    width: auto;
    max-width: none;
    max-height: none;
    overflow: visible;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }
  .launch .cookie-banner-inner {
    width: min(100% - 3rem, 72rem);
    margin-inline: auto;
    padding: 12px 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 2rem;
  }
  .launch .cookie-banner-text { flex: 1 1 24rem; }
  .launch .cookie-banner-primary { flex: 0 0 15rem; }
  .launch .cookie-banner-details { flex: 1 1 100%; }
}

@media (max-width: 51rem) {
  .launch-wrap { width: min(100% - 2 * var(--gutter), 36rem); }
  .launch-grid {
    grid-template:
      "hero"
      "card"
      "program"
      / minmax(0, 1fr);
    gap: 1.65rem;
  }
}

/* Held event (campaign-registration.js sets data-campaign-held): the card is hidden, so one column
   at a readable measure, left-aligned like the rest of the page. Declared after the media query so
   it also drops the card row there. */
.launch-grid[data-campaign-held] {
  grid-template:
    "hero" auto
    "program" auto
    / minmax(0, 1fr);
  max-inline-size: 52rem;
}

/* Phone body copy (#15092 P6): running text is never below 16px on a phone. Appended last, same selectors. */
@media (max-width: 699px) {
  .launch-event p, .launch-help, .launch-status { font-size: 1rem; }
}
