:root {
  --bg: #f7f6f2;
  --bg-elevated: #ffffff;
  --ink: #1c2422;
  --ink-soft: #4a5652;
  --line: #d9ddd8;
  --accent: #1a3a3a;
  --accent-hover: #0f2626;
  --accent-soft: #e8f0ee;
  --highlight: #c45c26;
  --ok: #2f6b4f;
  --err: #9b2e2e;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 36, 34, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
}

*,
*::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 500px at 10% -10%, #eef4f1 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #f3ebe3 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  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(--highlight);
}

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

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 246, 242, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 242, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

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

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

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

  .site-nav {
    position: absolute;
    inset: 4.25rem 1.25rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

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

  .nav-cta {
    text-align: center;
  }
}

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

.hero-media {
  position: absolute;
  inset: 0;
}

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

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

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0 0 0.4rem;
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  max-width: 22ch;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

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

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

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

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

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

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

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.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 {
  display: grid;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
}

.benefit-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.course-grid,
.blog-grid,
.pricing-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

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

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

@media (max-width: 900px) {
  .course-grid,
  .blog-grid,
  .pricing-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .course-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.course-item,
.blog-item,
.price-tier,
.review-item,
.case-study,
.faq-item,
.module,
.stat-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-item,
.blog-item {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.course-body,
.blog-body,
.price-tier,
.review-item,
.case-study,
.module,
.stat-block,
.faq-item {
  padding: 1.25rem 1.3rem 1.4rem;
}

.course-body h3,
.blog-body h3,
.price-tier h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.price-tier {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0;
}

.price span {
  font-size: 1rem;
  color: var(--ink-soft);
}

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

.proof-band {
  background: var(--accent);
  color: #fff;
}

.proof-band p,
.proof-band .section-head p {
  color: rgba(255, 255, 255, 0.82);
}

.proof-band h2 {
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.stat-block {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  text-align: left;
}

.stat-block strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.stat-block span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.quote-attr {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.rating {
  color: var(--highlight);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 42ch;
  font-size: 1.08rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

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

.form-row {
  margin-bottom: 1rem;
}

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

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(26, 58, 58, 0.25);
  border-color: var(--accent);
}

.field-error {
  color: var(--err);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

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

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

.form-status.is-success {
  display: block;
  background: #e8f4ec;
  color: var(--ok);
  border: 1px solid #c5dfcf;
}

.form-status.is-error {
  display: block;
  background: #f8eaea;
  color: var(--err);
  border: 1px solid #e2c2c2;
}

.contact-card {
  background: var(--accent);
  color: #fff;
  padding: 1.6rem;
}

.contact-card h2,
.contact-card p,
.contact-card a {
  color: #fff;
}

.contact-card a:hover {
  color: #e8f2f0;
}

.modules {
  display: grid;
  gap: 1rem;
}

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

.faq-item details {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-item details p {
  padding: 0 1.2rem 1.1rem;
}

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

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

@media (max-width: 600px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(26, 58, 58, 0.94), rgba(26, 58, 58, 0.82)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: #fff;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  background: #f1f0eb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

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

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a,
.footer-contact,
.footer-tag {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: rise 0.35s ease both;
}

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.inline-error {
  margin: 1rem auto;
  width: min(100% - 2.5rem, var(--max));
  padding: 0.85rem 1rem;
  background: #f8eaea;
  color: var(--err);
  border: 1px solid #e2c2c2;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  border-left: 2px solid var(--line);
  padding-left: 1.25rem;
}

.timeline-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

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

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