:root {
  --navy: #1f2a44;
  --ink: #1f2a44;
  --ink-soft: #4a5570;
  --bg: #f7fafa;
  --card: #ffffff;
  --teal: #2bae9e;
  --teal-dark: #187b71;
  --teal-soft: #e4f5f2;
  --blue: #2368a8;
  --blue-dark: #174d7e;
  --blue-soft: #e9f2fa;
  --orange: #e54f1b;
  --orange-dark: #bd3d12;
  --orange-soft: #fdeadf;
  --mint: #8fe0c6;
  --line: #d7e1e5;
  --shadow: 0 12px 34px rgba(31, 42, 68, 0.09);
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
svg { display: block; }
button, input, select, textarea { font: inherit; }
a { color: var(--blue-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.35rem, 6vw, 4.7rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
:focus-visible { outline: 4px solid var(--orange); outline-offset: 4px; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-white { background: #fff; }
.section-soft { background: var(--teal-soft); }
.section-blue { background: var(--blue-soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d8dfeb; }
.eyebrow {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-heading { max-width: 1000px; margin-bottom: 38px; }
.section-heading h2 { max-width: 760px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center h2 { margin-inline: auto; }
.section-heading p { color: var(--ink-soft); font-size: 1.08rem; }
.lede { color: var(--ink-soft); font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
.small { font-size: 0.88rem; }
.muted { color: var(--ink-soft); }
.accent-script {
  color: var(--teal-dark);
  font-family: "Caveat", cursive;
  font-size: 1.55em;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}
.nav-inner {
  min-height: 78px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  padding: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 1.34rem;
  font-weight: 700;
  text-decoration: none;
}
.brand svg { width: 42px; height: 42px; }
.brand span span { color: var(--teal); }
.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; margin: auto; }
.nav-links { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.nav-primary-links { position: absolute; left: 50%; display: flex; align-items: center; gap: 22px; transform: translateX(-50%); }
.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-dark); }
.nav-links .nav-cta { padding: 10px 18px; background: var(--orange); color: #fff; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--orange-dark); color: #fff; }
.site-header nav { position: static; border: 0; background: transparent; backdrop-filter: none; }

.hero { padding: 84px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr); gap: 60px; align-items: center; }
.hero-copy { max-width: 740px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 32px; }
.home-hero { padding-top: 56px; padding-bottom: 32px; }
.home-hero + .section { padding-top: 48px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 540px); gap: 60px; align-items: start; }
.home-hero .hero-copy { max-width: 620px; padding-top: 0; }
.home-hero .hero-copy h1 { margin-bottom: 22px; font-size: clamp(2.8rem, 5.2vw, 4.6rem); line-height: 1.03; }
.home-hero .hero-copy .accent-script { line-height: 0.9; }
.home-hero .hero-visual-block { width: 100%; max-width: 540px; justify-self: end; }
.hero-visual-block .hero-actions { margin-top: 24px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 22px; color: var(--ink-soft); font-size: 0.9rem; }
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -8% -8% 10%;
  z-index: -1;
  border-radius: 50%;
  background: var(--teal-soft);
}
.hero-visual picture { display: block; }
.hero-visual img { display: block; width: 100%; height: auto !important; object-fit: contain; border-radius: 28px; box-shadow: var(--shadow); }

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--orange-dark); color: #fff; }
.btn-secondary { border-color: var(--blue); background: #fff; color: var(--blue-dark); }
.btn-secondary:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-teal { background: var(--teal-dark); }
.btn-teal:hover { background: #11665e; }
.text-link { font-weight: 700; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 3px 14px rgba(31, 42, 68, 0.05);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); }
.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 1.35rem;
  font-weight: 700;
}
.card-link { color: inherit; text-decoration: none; transition: transform 0.18s, box-shadow 0.18s; }
.card-link:hover { transform: translateY(-3px); color: inherit; box-shadow: var(--shadow); }
.card-link .text-link { color: var(--blue-dark); text-decoration: underline; }

.event-list { display: grid; gap: 22px; }
.event-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 7px solid var(--teal);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(31, 42, 68, 0.05);
}
.event-date { color: var(--teal-dark); font-weight: 700; }
.event-date .day { display: block; font-size: 1.6rem; line-height: 1.2; }
.event-card h3 { margin-bottom: 8px; }
.event-card p { color: var(--ink-soft); }
.event-meta { margin-bottom: 10px; color: var(--ink); font-weight: 600; }

.callout {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.callout h2, .callout h3 { color: #fff; }
.callout p { color: #d8dfeb; }
.callout-light { background: var(--teal-soft); color: var(--ink); }
.callout-light h2, .callout-light h3 { color: var(--navy); }
.callout-light p { color: var(--ink-soft); }
.notice {
  padding: 22px 24px;
  border-left: 6px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
}
.notice strong { color: var(--navy); }

.page-hero { padding: 72px 0 54px; background: linear-gradient(135deg, #fff 0%, var(--teal-soft) 100%); }
.page-hero .narrow, .page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 900px; margin-bottom: 20px; font-size: clamp(2.3rem, 5vw, 4rem); }
.page-hero .lede { max-width: 820px; }
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; }
.breadcrumb a { color: var(--blue-dark); }

.lesson-card .lesson-number { color: var(--teal-dark); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.lesson-grid > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; width: calc((100% - 26px) / 2); justify-self: center; }
.lesson-card h3 { margin-top: 8px; }
.lesson-card .lesson-meta { margin-top: 16px; font-size: 0.86rem; }
.lesson-shell { padding: 64px 0 90px; }
.lesson-body { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.lesson-body h2 { margin-top: 54px; font-size: 1.8rem; }
.lesson-body h3 { margin-top: 34px; }
.lesson-body p, .lesson-body li { color: #303a53; }
.lesson-body li { margin-bottom: 10px; }
.lesson-body img { margin: 32px auto 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.figure-caption { color: var(--ink-soft); font-size: 0.84rem; text-align: center; }
.try-box {
  margin-top: 48px;
  padding: 30px;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal-soft);
}
.try-box h2 { margin-top: 0; font-size: 1.45rem; }
.lesson-footer { margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-soft); }

.agent-intro {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 30px;
  align-items: center;
}
.agent-intro img { width: 170px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.agent-card { padding: 24px; text-align: center; }
.agent-card img { width: 150px; aspect-ratio: 1; object-fit: cover; margin: 0 auto 18px; border-radius: 50%; }
.onepager-trigger {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: zoom-in;
}
.onepager-trigger img { width: 100%; }
.status {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status.beta { background: var(--orange-soft); color: var(--orange-dark); }

.form-shell { max-width: 850px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { margin-bottom: 22px; }
.field.full { grid-column: 1 / -1; }
label, legend { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid #b8c7ce;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid rgba(35, 104, 168, 0.2); }
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-card label {
  min-height: 100%;
  margin: 0;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.radio-card input:checked + label { border-color: var(--teal-dark); background: var(--teal-soft); }
.radio-card input:focus-visible + label { outline: 4px solid var(--orange); outline-offset: 3px; }
.conditional-fields { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: #eef4f6; }
.conditional-fields[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 28px; margin-top: 18px; font-weight: 700; }
.form-status.success { color: #11665e; }
.form-status.error { color: #a52f0b; }

.accordion { display: grid; gap: 14px; }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
summary { padding: 20px 24px; color: var(--navy); font-weight: 700; cursor: pointer; }
details > div { padding: 0 24px 22px; color: var(--ink-soft); }

.site-footer { padding: 52px 0 30px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font-size: 1rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--ink-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.8rem; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-header .nav-links {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 12px 24px rgba(31, 42, 68, 0.1);
  }
  .site-header .nav-primary-links { position: static; display: grid; grid-template-columns: 1fr; gap: 4px; transform: none; }
  .site-header .nav-links.open { display: grid; }
  .nav-links a { width: 100%; padding: 8px 4px; }
  .nav-links .nav-cta { justify-content: center; margin-top: 4px; }
  .hero-grid { grid-template-columns: 1fr; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .home-hero .hero-copy { padding-top: 0; }
  .home-hero .hero-visual-block { max-width: 540px; justify-self: start; }
  .hero-visual { max-width: 680px; }
  .grid-4, .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap, .narrow, .lesson-body { width: min(100% - 30px, var(--wrap)); }
  .section { padding: 64px 0; }
  .hero { padding: 58px 0; }
  .hero-grid { gap: 38px; }
  .hero-actions .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4, .agent-grid, .lesson-grid, .form-grid, .radio-grid { grid-template-columns: 1fr; }
  .lesson-grid > :last-child:nth-child(odd):not(:first-child) { grid-column: auto; width: 100%; }
  .event-card { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .event-date .day { display: inline; font-size: inherit; }
  .agent-intro { grid-template-columns: 1fr; text-align: center; }
  .agent-intro img { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .button-row, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .section, .lesson-shell { padding: 20px 0; }
  a { color: #000; }
}
