:root {
  --bg: #E6DECF;
  --ink: #161613;
  --muted: #5B584F;
  --line: #CDC3B1;
  --green: #415344;
  --green-dark: #34443A;
  --green-field: #4C5F4F;
  --green-line: #6E806F;
  --on-green: #F5F1E8;
  --on-green-muted: #CBD3C8;
  --yellow: #FFC74F;
  --yellow-deep: #F3B633;
  --error-on-green: #FFD0C4;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* Header */
.topbar { padding: 22px 0 6px; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; text-decoration: none; }

/* Layout */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hero" "intro" "signup" "rest";
  row-gap: 40px;
  padding-bottom: 72px;
}
.hero { grid-area: hero; padding-top: 28px; }
.intro { grid-area: intro; }
.signup { grid-area: signup; }
.rest { grid-area: rest; }

/* Type */
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h1 {
  font-size: clamp(2.4rem, 8.4vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 13ch;
  overflow-wrap: break-word;
}
.swash {
  white-space: nowrap;
  padding-bottom: 0.12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10.5C70 2.5 180 1.5 297 5.5' fill='none' stroke='%23FFC74F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.2em no-repeat;
}
.subtitle { margin: 22px 0 0; font-size: 1.2rem; font-weight: 500; color: var(--muted); }

/* Facts */
.facts { margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 600px; }
.facts div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--muted); font-size: 0.95rem; padding-top: 1px; }
.facts dd { margin: 0; font-weight: 600; }

.hero-cta { margin-top: 28px; }

/* Intro */
.intro p { margin: 0 0 1em; max-width: 62ch; }
.intro p:last-child { margin-bottom: 0; }
.intro .lead { font-size: 1.28rem; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1.02rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-yellow:disabled { opacity: .8; cursor: progress; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: var(--on-green); }
.btn-outline-light { border-color: var(--on-green-muted); color: var(--on-green); background: transparent; }
.btn-outline-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-block { width: 100%; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.signup-card :focus-visible { outline-color: var(--yellow); }

/* Signup card */
.signup-card {
  background: var(--green);
  color: var(--on-green);
  border-radius: 24px;
  overflow: hidden;
}
.signup-photo { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.signup-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }

.signup-body { padding: 26px 26px 30px; }
.signup-body h2 { font-size: 1.6rem; color: var(--on-green); }
.signup-when { margin: 10px 0 22px; color: var(--on-green-muted); line-height: 1.5; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.95rem; font-weight: 600; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--green-line);
  border-radius: 12px;
  background: var(--green-field);
  color: var(--on-green);
  font: inherit;
  font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 199, 79, .4); }
.field input[aria-invalid="true"] { border-color: var(--error-on-green); }
.field-error { margin: 6px 0 0; color: var(--error-on-green); font-size: 0.9rem; line-height: 1.4; }

.form .btn-block { margin-top: 8px; }
.form-status { margin: 12px 0 0; font-size: 0.92rem; color: var(--error-on-green); }
.form-status:empty { display: none; }
.consent { margin: 14px 0 0; color: var(--on-green-muted); font-size: 0.82rem; line-height: 1.5; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.success:focus { outline: none; }
.success-main { margin: 14px 0 10px; }
.success-main strong { color: var(--yellow); font-weight: 600; overflow-wrap: anywhere; }
.success-hint { margin: 0 0 24px; color: var(--on-green-muted); font-size: 0.95rem; }

/* Rest */
.rest > section { padding-top: 56px; }
.rest > section + section { margin-top: 56px; border-top: 1px solid var(--line); }
.rest h2 { font-size: clamp(1.75rem, 3.4vw, 2.3rem); margin-bottom: 28px; }
.rest p { max-width: 62ch; }

.topics { list-style: none; margin: 0; padding: 0; }
.topics li { padding: 22px 0; border-top: 1px solid var(--line); }
.topics li:last-child { border-bottom: 1px solid var(--line); }
.topics h3 { margin-bottom: 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.topics p { margin: 0; }

.takeaway {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--yellow);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.takeaway p { margin: 0; }

.questions p { margin: 0 0 24px; }
.questions .note { margin: 24px 0 0; color: var(--muted); font-size: 0.95rem; }

.speaker h2 { margin-bottom: 18px; }
.speaker p { margin: 0; }

.closing-line { margin: 0 0 20px; font-size: 1.35rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (min-width: 700px) {
  .topics li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 28px; }
  .topics h3 { margin: 0; padding-top: 2px; }
}

@media (min-width: 960px) {
  .wrap { padding: 0 40px; }
  .topbar { padding-top: 32px; }
  .page {
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "hero signup" "intro signup" "rest signup";
    column-gap: 72px;
    row-gap: 48px;
    padding-bottom: 96px;
  }
  .signup { align-self: start; margin-top: 28px; }
  .signup-photo { aspect-ratio: 16 / 11; }
  .hero-cta, .closing { display: none; }
}

@media (min-width: 960px) and (min-height: 820px) {
  .signup { position: sticky; top: 24px; }
}

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