:root {
  --navy: #10253a;
  --ink: #18232f;
  --blue: #1769aa;
  --gold: #f1b941;
  --green: #1d7d48;
  --teal: #1c8076;
  --paper: #ffffff;
  --mist: #f4f7f9;
  --line: #d7e0e8;
  --muted: #5d6b78;
  --danger: #9f1d2e;
  --focus: #ffbf47;
}

html.text-large {
  font-size: 112.5%;
}

html.readable-font body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

html.high-contrast {
  --navy: #000000;
  --ink: #000000;
  --blue: #004f9e;
  --gold: #ffd84d;
  --green: #006b35;
  --teal: #005f58;
  --paper: #ffffff;
  --mist: #ffffff;
  --line: #000000;
  --muted: #202020;
  --danger: #8b0000;
  --focus: #ffcc00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--navy);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 6%;
  background: rgba(16, 37, 58, 0.98);
  color: var(--paper);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.16);
}

.logo {
  color: var(--paper);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 900;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
}

.site-nav .nav-button {
  color: var(--navy);
  background: var(--gold);
  border-radius: 0.5rem;
  padding: 0.55rem 0.9rem;
}

.hero {
  color: var(--paper);
  background:
    linear-gradient(120deg, rgba(16, 37, 58, 0.96), rgba(23, 105, 170, 0.78)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero--short {
  background:
    linear-gradient(120deg, rgba(16, 37, 58, 0.96), rgba(28, 128, 118, 0.82)),
    url("https://images.unsplash.com/photo-1497440001374-f26997328c1b?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero__overlay {
  width: min(1180px, 88vw);
  min-height: min(680px, calc(100vh - 3.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.72fr);
  gap: 2rem;
  align-items: start;
}

.hero__content {
  max-width: 770px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--blue);
  background: #e9f4fb;
}

h1,
h2,
h3 {
  color: inherit;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.hero__lead,
.section-lead {
  max-width: 760px;
  font-size: 1.12rem;
}

.hero__lead {
  color: #edf6ff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button--primary {
  color: var(--navy);
  background: var(--gold);
}

.button--secondary,
.button--secondary-dark {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.16);
}

.button--secondary-dark {
  color: var(--navy);
  border-color: var(--line);
  background: var(--paper);
}

.button--outline {
  color: var(--navy);
  border-color: var(--blue);
  background: var(--paper);
}

.price-panel,
.purchase-panel,
.notice,
.choice-panel,
.card,
.feature-list {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(16, 37, 58, 0.08);
}

.checkout-method-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
}

.price-panel,
.purchase-panel,
.notice,
.choice-panel,
.card,
.feature-list {
  padding: 1.5rem;
}

.price-panel {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.panel-label,
.small,
.fine-print,
.section-lead,
.form-note {
  color: var(--muted);
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 1.25rem;
}

.new-price {
  color: var(--green);
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.section {
  padding: 4.5rem 6%;
}

.section--muted {
  background: var(--mist);
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.two-column,
.instructor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.cards,
.module-grid,
.testimonial-grid {
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid article {
  border-left: 5px solid var(--teal);
  background: var(--paper);
  border-radius: 0.5rem;
  padding: 1.2rem;
}

.module-grid span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--blue);
  font-weight: 900;
}

.testimonial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

blockquote {
  margin: 0;
  padding: 1.35rem;
  border-left: 5px solid var(--blue);
  border-radius: 0.5rem;
  background: var(--paper);
}

blockquote p {
  margin-top: 0;
}

blockquote cite {
  color: var(--navy);
  font-style: normal;
  font-weight: 900;
}

.instructor-photo {
  margin: 0;
  justify-self: center;
  width: min(100%, 340px);
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(16, 37, 58, 0.14);
}

.instructor-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.35rem;
  background: var(--mist);
}

.check-list,
.feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li,
.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.8rem;
  border-bottom: 1px solid var(--line);
}

.check-list li::before,
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.choice-panel .button[aria-pressed="true"] {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.choice-status {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

form {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(16, 37, 58, 0.08);
}

fieldset {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
}

legend {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 900;
}

label {
  display: block;
  margin: 0.95rem 0 0.35rem;
  color: var(--navy);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aebdca;
  border-radius: 0.45rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: var(--paper);
}

textarea {
  min-height: 125px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 1rem 0;
  color: var(--ink);
  font-weight: 500;
}

.checkbox-field input,
.toggle-row input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.2rem;
}

.form-error {
  display: none;
  padding: 0.8rem 0.9rem;
  border: 1px solid #f0a7b3;
  border-radius: 0.5rem;
  color: var(--danger);
  background: #fff1f3;
  font-weight: 900;
}

.form-error.is-visible {
  display: block;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--paper);
}

summary {
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  padding: 2rem 6%;
  color: var(--paper);
  background: var(--navy);
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.5rem;
}

.site-footer a,
.footer-link-button {
  color: var(--paper);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.footer-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  cursor: pointer;
}

.copyright {
  width: min(1180px, 100%);
  margin: 1.25rem auto 0;
}

.legal-page {
  padding: 4rem 6%;
}

.legal-page .container {
  max-width: 920px;
}

.legal-page h1 {
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.legal-page h2 {
  color: var(--navy);
  margin-top: 2rem;
  font-size: 1.5rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(700px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.cookie-banner h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 37, 58, 0.72);
}

.modal__panel {
  position: relative;
  width: min(650px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--paper);
}

.accessibility-fab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
  min-height: 44px;
  border: 2px solid var(--navy);
  border-radius: 0.5rem;
  padding: 0.65rem 0.8rem;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.accessibility-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.accessibility-option {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.accessibility-option input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: 0.2rem;
}

.accessibility-option small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.toggle-row {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.toggle-row small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero__overlay,
  .two-column,
  .instructor-grid,
  .footer-grid,
  .cards,
  .cards--five,
  .module-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero__overlay {
    min-height: auto;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 660px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero__overlay {
    width: min(100% - 2rem, 1180px);
    padding: 2rem 0 3rem;
  }

  .section {
    padding: 3.25rem 1rem;
  }

  .form-row,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .new-price {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .accessibility-fab {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --navy: #000000;
    --ink: #000000;
    --blue: #004f9e;
    --gold: #ffd84d;
    --paper: #ffffff;
    --mist: #ffffff;
    --line: #000000;
    --muted: #202020;
  }
}

@media (forced-colors: active) {
  .button,
  .nav-button,
  .accessibility-fab,
  input,
  select,
  textarea,
  .card,
  .price-panel,
  .purchase-panel,
  .notice,
  .choice-panel,
  .feature-list,
  details {
    border: 1px solid ButtonText;
  }
}
