/* Foundations: the one-pager's world. Deep teal header bands, gold accents, Merriweather display, Source Sans body.
   Layout: dark hero with video, light reading bands, a dark registration band that pairs price with the form. */
:root {
  --ink: #10242d;        /* hero and header ground */
  --teal-d: #1b4555;     /* investment band, headings on light */
  --teal: #1a7f78;       /* labels, ticks */
  --gold: #e8a33c;       /* buttons, accents */
  --cream: #f7dca5;      /* text on dark */
  --rust: #b0452f;       /* session numbers */
  --paper: #ffffff;
  --tint: #eef3f3;       /* alternate bands, session cards */
  --body: #2c3c44;
  --muted: #5e7680;
  --line: #d6dfe0;
  --display: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 1.0625rem/1.6 var(--sans); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--teal-d); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* skip link and screen-reader-only text */
.skip-link { position: absolute; left: 12px; top: -200px; z-index: 100; background: var(--gold); color: var(--ink); font: 700 1rem/1.2 var(--sans); padding: .75rem 1.1rem; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
main[tabindex="-1"]:focus { outline: none; }
body.page-404 { background: var(--ink); }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 700 1.0625rem/1 var(--sans); text-decoration: none; border: 0; border-radius: 999px; padding: 1rem 1.6rem; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(232, 163, 60, .28); }
.btn-gold:hover { background: #f0b04f; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-sm { padding: .7rem 1.1rem; font-size: .95rem; box-shadow: none; }
.btn-block { width: 100%; max-width: 100%; white-space: normal; text-align: center; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* header */
.top { background: var(--ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, .08); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font: 700 1.05rem var(--sans); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(26, 127, 120, .35), transparent 60%), var(--ink); color: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.eyebrow { font: 700 .82rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
/* the min() cap keeps the one-word title inside the viewport when iOS Safari text zoom or a larger root font pushes 3rem past the screen; it never binds on desktop */
.hero h1 { color: #fff; font-weight: 900; font-size: clamp(3rem, 7.5vw, 5.4rem); font-size: min(clamp(3rem, 7.5vw, 5.4rem), calc((100vw - 40px) / 6.6)); letter-spacing: -.01em; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--cream); margin-top: 1rem; max-width: 30ch; }
.facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; }
.facts li { position: relative; padding-left: 1.3rem; color: #e2ecec; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.facts strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-top: 2rem; }
.note { font-size: .95rem; color: #b8cbcc; }
.hero-video { margin: 0; }
.hero-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: #0b1a20; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.hero-video figcaption { font-size: .9rem; color: #9fb6b8; margin-top: .7rem; }

/* bands */
.band { padding-block: clamp(3rem, 7vw, 5rem); }
.band-tint { background: var(--tint); }
.label { font: 700 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
.label-gold { color: var(--gold); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.body-lg { font-size: 1.2rem; line-height: 1.65; max-width: 60ch; }
.small { font-size: .95rem; color: var(--muted); margin-top: 1.2rem; }

.sessions { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sessions li { background: var(--paper); border-radius: var(--r); padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .35rem; border: 1px solid var(--line); }
.s-num { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.s-date { font: 600 .92rem var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.s-title { font: 700 1.2rem/1.3 var(--display); color: var(--teal-d); margin-top: .25rem; }

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: .6rem; }
.outcomes > div { border-top: 3px solid var(--gold); padding-top: 1.1rem; }
.outcomes h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.terms { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.terms span { font: 700 .9rem var(--sans); color: var(--teal-d); background: var(--tint); border-radius: 999px; padding: .35rem .8rem; }

.instructor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center; }
.instructor picture { display: block; line-height: 0; }
.instructor img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--paper); box-shadow: 0 10px 30px rgba(16, 36, 45, .18); }
.instructor .name { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.creds { font: 700 1rem var(--sans); color: var(--teal); letter-spacing: .04em; margin: .35rem 0 .2rem; }
.affil { color: var(--muted); margin-bottom: .7rem; }

/* register */
.register { background: var(--teal-d); color: var(--cream); padding-block: clamp(3rem, 7vw, 5rem); scroll-margin-top: 64px; }
.reg-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.price { font: 900 clamp(3.4rem, 8vw, 4.6rem)/1 var(--display); color: #fff; margin: .2rem 0 1.4rem; }
.price small { font: 600 1.1rem var(--sans); color: var(--cream); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .7rem; align-items: baseline; color: #e9f1f1; }
.ticks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2310242d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; transform: translateY(3px); }
.on-dark { color: #b8cbcc; }

.form-card { min-width: 0; background: var(--paper); color: var(--body); border-radius: 18px; padding: clamp(1.4rem, 3.5vw, 2.2rem); box-shadow: 0 24px 60px rgba(4, 18, 24, .35); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.form-intro { margin: .6rem 0 1.4rem; color: var(--muted); overflow-wrap: break-word; }
/* one shrinkable column: an implicit auto column grows to the widest child's min-content (the nowrap button, long words), which pushed the form past the card */
form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
label { font: 700 .95rem var(--sans); color: var(--teal-d); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; font: 400 1rem var(--sans); color: var(--body); background: #fbfcfc; border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .9rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); background: #fff; }
.form-error { background: #fbeae6; color: #8a2f1d; border-radius: 10px; padding: .75rem .9rem; font-weight: 600; }
.fine { font-size: .9rem; color: var(--muted); text-align: center; }
.email { font-weight: 700; color: var(--teal-d); user-select: all; overflow-wrap: anywhere; }
.handoff { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq summary { font: 700 1.15rem var(--display); color: var(--teal-d); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: .6rem; max-width: 65ch; }

.foot { background: var(--ink); color: #9fb6b8; font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: 1.4rem; }

/* thank-you page */
.ty { background: var(--ink); color: var(--cream); min-height: 70vh; padding-block: clamp(3rem, 8vw, 6rem); }
.ty h1 { color: #fff; font-weight: 900; font-size: clamp(2.6rem, 7vw, 4.4rem); }
.ty .lede { max-width: 40ch; }
.ty-card { background: var(--paper); color: var(--body); border-radius: 18px; padding: clamp(1.4rem, 3.5vw, 2.2rem); margin-top: 2rem; max-width: 640px; display: grid; gap: 1rem; }
.ty-card h2 { font-size: 1.5rem; }
.ty-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-variant-numeric: tabular-nums; }
.ty-list li { display: flex; gap: .8rem; }
.ty-list b { color: var(--rust); min-width: 6.5rem; font-weight: 700; }

@media (max-width: 860px) {
  .hero-grid, .two-col, .reg-grid { grid-template-columns: minmax(0, 1fr); }
  .sessions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outcomes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .sessions, .field-row { grid-template-columns: minmax(0, 1fr); }
  .instructor { grid-template-columns: minmax(0, 1fr); }
  .instructor img { width: 110px; height: 110px; }
  .top .btn-sm { padding: .6rem .9rem; font-size: .9rem; }
  .brand span { font-size: .98rem; }
  .btn-block { line-height: 1.2; }
  .hero-cta .btn { white-space: normal; text-align: center; line-height: 1.2; max-width: 100%; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
  .top .btn-sm { white-space: normal; text-align: center; line-height: 1.15; min-width: 0; }
}
