:root { color-scheme: light; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: faixa de abertura azul-marinho com a data como elemento principal; abaixo, informações do evento e, em duas colunas, conteúdo da manhã e formulário (empilha no celular). */
:root {
  --font-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bg: #F3F7FA;
  --surface: #FFFFFF;
  --surface-2: #E8F0F6;
  --ink: #13202D;
  --muted: #4F6172;
  --line: #D3DFE8;
  --primary: #0B67A3;
  --primary-ink: #FFFFFF;
  --green: #79B832;
  --green-ink: #0F2540;
  --danger: #B3261E;
  --hero-a: #0F2540;
  --hero-b: #0B4A7D;
  --hero-ink: #FFFFFF;
  --hero-muted: #BCD0E2;
  --plate: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1522; --surface: #12263A; --surface-2: #183049; --ink: #E9F0F6; --muted: #A3B5C5;
    --line: #27425B; --primary: #5DB7EC; --primary-ink: #06223A; --danger: #FF9188;
    --hero-a: #091A2E; --hero-b: #0A3A63;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1522; --surface: #12263A; --surface-2: #183049; --ink: #E9F0F6; --muted: #A3B5C5;
  --line: #27425B; --primary: #5DB7EC; --primary-ink: #06223A; --danger: #FF9188;
  --hero-a: #091A2E; --hero-b: #0A3A63;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--primary); }
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Abertura */
.hero {
  background:
    radial-gradient(60% 110% at 100% 0%, rgba(121, 184, 50, 0.22), transparent 62%),
    linear-gradient(135deg, var(--hero-a), var(--hero-b));
  color: var(--hero-ink);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 40px 56px;
  align-items: end;
  padding-block: 40px 48px;
}
.plate {
  display: inline-block;
  background: var(--plate);
  border-radius: 14px;
  padding: 14px 20px;
  line-height: 0;
}
.plate img { width: 232px; height: auto; display: block; }
.eyebrow {
  margin-top: 36px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.hero h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead { margin-top: 14px; max-width: 34em; color: var(--hero-muted); font-size: 1.06rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { filter: brightness(1.06); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.hero .btn { margin-top: 26px; }

.date { display: flex; flex-direction: column; gap: 4px; }
.date-dow { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hero-muted); }
.date-day {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.05em;
  font-size: clamp(5.5rem, 17vw, 9.5rem); line-height: 0.85;
}
.date-rule { width: 56px; height: 4px; border-radius: 2px; background: var(--green); margin: 14px 0 12px; }
.date-mon { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; }
.date-time { color: var(--hero-muted); font-variant-numeric: tabular-nums; }

/* Informações */
.info { padding-block: 8px 0; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}
.info-item { min-width: 0; }
.label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.info-item .label { margin-bottom: 6px; }
.info-item p { font-weight: 500; }
.info-item .sub { font-weight: 400; color: var(--muted); font-size: 0.92rem; }

/* Duas colunas */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 48px;
  padding-block: 44px 64px;
  align-items: start;
}
.section-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.section-lead { margin-top: 8px; color: var(--muted); max-width: 36em; }
.talks { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.talk { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: center; }
.portrait { width: 72px; height: 72px; flex: none; display: block; position: relative; overflow: hidden; border-radius: 50%; background: var(--surface-2); }
.portrait img { position: absolute; inset: -13%; width: 126%; height: 126%; max-width: none; object-fit: cover; display: block; transition: transform 320ms cubic-bezier(.2,.7,.25,1); }
.portrait-orlando img { top: -16%; }
.talk:hover .portrait img { transform: scale(1.06); }
.talk h3 { font-size: 1.14rem; font-weight: 600; }
.talk .who { margin-top: 6px; color: var(--muted); font-size: 0.92rem; }
.talk .who strong { color: var(--ink); font-weight: 600; }
.after { margin-top: 18px; color: var(--muted); }
.after strong { color: var(--ink); font-weight: 600; }
.contact-button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 2px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--green) 56%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--green) 16%, var(--surface)); color: var(--ink); text-decoration: none; transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease; }
.contact-button > span:first-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-action { color: var(--muted); font-size: .78rem; }
.contact-button:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--green) 26%, var(--surface)); box-shadow: 0 7px 18px rgba(15, 37, 64, .12); }
.contact-button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Formulário */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.card h2 { font-size: 1.5rem; font-weight: 700; }
.card .note { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.group { margin-top: 26px; display: grid; gap: 16px; }
.group-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.95rem; padding: 0; }
.hint { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.in {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.in::placeholder { color: var(--muted); opacity: 0.8; }
.in:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.opts { display: grid; gap: 8px; margin-top: 4px; }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer;
}
.opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--primary); }
.opt:has(input:checked) { border-color: var(--primary); background: var(--surface-2); }
.opt:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.err { min-height: 0; color: var(--danger); font-size: 0.86rem; font-weight: 500; }
.err:empty { display: none; }
.field.invalid .in, .field.invalid .opt { border-color: var(--danger); }
.actions { margin-top: 28px; display: grid; gap: 12px; }
.privacy { margin-top: 14px; color: var(--muted); font-size: 0.85rem; }

/* Revisão */
.msg {
  width: 100%; margin-top: 18px; padding: 14px 16px; resize: none;
  font: 0.92rem/1.6 var(--font-body); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 0.92rem; }
.status strong { font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row .btn { flex: 1 1 200px; }
.copied { min-height: 1.4em; margin-top: 10px; color: var(--muted); font-size: 0.88rem; }

.confirmed { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3.4vw, 1.75rem); line-height: 1.2; }
.confirmed svg { flex: none; width: 1.45em; height: 1.45em; }
.confirmed .c { fill: var(--green); }
.confirmed .t { stroke: var(--green-ink); }
.field > label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--primary); }
.field.off > :not(.check) { opacity: 0.5; }
.foot { border-top: 1px solid var(--line); padding-block: 26px 36px; color: var(--muted); font-size: 0.9rem; }
.foot strong { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 28px 36px; }
  .date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
  .date-dow { flex-basis: 100%; }
  .date-rule { display: none; }
  .date-day { font-size: 4.6rem; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 36px 48px; }
}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px 18px; }
  .plate img { width: 196px; }
  .eyebrow { margin-top: 28px; }
  .talk { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .portrait { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
/* Interações discretas e transições respeitosas. */
.btn, .in, .opt {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status-error { color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.status-success { border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.success-heading { margin-top: 0; }
.success-heading h2 { font-size: 1.5rem; font-weight: 700; }
#successTitle { outline-offset: 5px; }
#formView:not([hidden]), #reviewView:not([hidden]), #successView:not([hidden]) { animation: view-in 520ms cubic-bezier(.2,.75,.25,1) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.view-enter { animation: view-in 520ms cubic-bezier(.2,.75,.25,1) both; }
.hero .wrap > div:first-child { animation: hero-arrive 760ms cubic-bezier(.18,.68,.25,1) both; }
.hero .date { animation: hero-arrive 850ms cubic-bezier(.18,.68,.25,1) 120ms both; }
@keyframes hero-arrive { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
html.motion-ready .motion-reveal { opacity: 0; transform: translateY(24px); transition: opacity 680ms cubic-bezier(.2,.72,.25,1), transform 680ms cubic-bezier(.2,.72,.25,1); transition-delay: var(--reveal-delay, 0ms); }
html.motion-ready .motion-reveal.motion-visible { opacity: 1; transform: translateY(0); }
.info-item:nth-child(2), .talk:nth-child(2) { --reveal-delay: 90ms; }
.info-item:nth-child(3), .talk:nth-child(3) { --reveal-delay: 180ms; }
.info-item:nth-child(4) { --reveal-delay: 270ms; }
.optional-note { margin-bottom: -8px; }
@media (prefers-reduced-motion: reduce) {
  html.motion-ready .motion-reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
