:root {
  --bg: #f7f8f6;
  --bg-elevated: #ffffff;
  --ink: #132228;
  --muted: #5a6a70;
  --line: #d7dedb;
  --accent: #0b3d4a;
  --accent-soft: #dce9e6;
  --accent-hover: #072c35;
  --highlight: #c4a574;
  --ok: #1f6b4a;
  --err: #9b2c2c;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(19, 34, 40, 0.06);
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --pad: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e8f0ee 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f1ebe2 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.container {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e8e8;
  color: var(--err);
  border-left: 3px solid var(--err);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(247, 248, 246, 0.88);
  border-bottom: 1px solid rgba(215, 222, 219, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--highlight);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    top: calc(100% + 0.35rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #f7f8f6;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hero variants */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: #f4f7f6;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 28, 34, 0.25) 0%, rgba(7, 28, 34, 0.72) 70%, rgba(7, 28, 34, 0.88) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--pad), var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
  animation: rise 0.9s ease both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero__lede {
  max-width: 34rem;
  color: rgba(244, 247, 246, 0.88);
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.hero--compact {
  min-height: 48vh;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(220, 233, 230, 0.45), transparent);
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero p {
  max-width: 40rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--tight {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split--reverse > :first-child {
    order: 2;
  }
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.media-frame:hover img {
  transform: scale(1.03);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.benefit-list li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.benefit-list h3 {
  margin-bottom: 0.4rem;
}

.proof-strip {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}

@media (min-width: 720px) {
  .proof-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  font-weight: 500;
}

.proof-strip span {
  color: var(--muted);
  font-size: 0.95rem;
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .course-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 980px) {
  .course-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-tile,
.blog-tile,
.tier,
.review-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-tile:hover,
.blog-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.course-tile img,
.blog-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-tile__body,
.blog-tile__body,
.tier,
.review-block {
  padding: 1.35rem 1.4rem 1.5rem;
}

.course-tile h3,
.blog-tile h3,
.tier h3 {
  margin-bottom: 0.5rem;
}

.course-tile a,
.blog-tile a {
  color: inherit;
  text-decoration: none;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tier {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tier__price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
}

.tier__price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
}

.tier ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.tier--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #eef5f3, #fff);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 1rem;
}

.quote-attr {
  font-size: 0.92rem;
  color: var(--muted);
}

.stars {
  letter-spacing: 0.12em;
  color: var(--highlight);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq p {
  margin-top: 0.75rem;
}

.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mod;
}

.modules li {
  counter-increment: mod;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.modules li::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.2rem;
}

.instructor {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .instructor {
    grid-template-columns: 140px 1fr;
  }
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.prose {
  max-width: 42rem;
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  color: var(--ink);
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font: inherit;
  color: var(--ink);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.3rem;
  color: var(--err);
  font-size: 0.88rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.form-status--ok {
  background: #e7f4ec;
  color: var(--ok);
}

.form-status--err {
  background: #f8e8e8;
  color: var(--err);
}

.address-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.address-block h2 {
  font-size: 1.4rem;
}

.cta-band {
  background: var(--accent);
  color: #f4f7f6;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.cta-band h2 {
  color: inherit;
  max-width: 16ch;
}

.cta-band p {
  color: rgba(244, 247, 246, 0.82);
  max-width: 34rem;
}

.cta-band .btn--primary {
  background: #f4f7f6;
  color: var(--accent);
}

.cta-band .btn--ghost {
  border-color: rgba(244, 247, 246, 0.45);
  color: #f4f7f6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: #eef2f0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  z-index: 60;
  animation: rise 0.45s ease both;
}

.cookie-banner__inner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
}

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

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--pad);
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  margin-bottom: 0.25rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
