:root {
  --bg: #f3efe6;
  --bg-deep: #e8e1d4;
  --surface: #fffaf3;
  --ink: #2a2925;
  --muted: #5e5a52;
  --line: #d8d0c2;
  --moss: #4a6b52;
  --moss-deep: #355540;
  --moss-soft: #dce8df;
  --ochre: #b8923f;
  --ochre-soft: #f3e6c8;
  --clay: #9a6b4f;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 18px 40px rgba(42, 41, 37, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
  --max: 72rem;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(74, 107, 82, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 146, 63, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1.05rem;
}

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

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

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.inline-error {
  background: #f7d9d3;
  color: #6b2e24;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 239, 230, 0.88);
  border-bottom: 1px solid rgba(216, 208, 194, 0.7);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(145deg, var(--moss) 0%, var(--moss-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 250, 243, 0.25);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 2px solid var(--ochre-soft);
  border-radius: 0.35rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--moss-deep);
}

.site-nav .nav-cta {
  background: var(--moss);
  color: #fffaf3 !important;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
}

.site-nav .nav-cta:hover {
  background: var(--moss-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--moss);
  color: #fffaf3;
  box-shadow: 0 10px 24px rgba(74, 107, 82, 0.25);
}

.btn-primary:hover {
  background: var(--moss-deep);
  color: #fffaf3;
}

.btn-secondary {
  background: var(--ochre-soft);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Hero variants */
.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: softZoom 18s ease-in-out infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 41, 37, 0.15) 0%, rgba(42, 41, 37, 0.72) 70%, rgba(42, 41, 37, 0.88) 100%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  color: #fffaf3;
  max-width: 38rem;
  animation: riseIn 0.9s ease both;
}

.hero-home-content .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 650;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fffaf3;
}

.hero-home-content .lede {
  font-size: 1.2rem;
  color: rgba(255, 250, 243, 0.9);
  margin-bottom: 1.75rem;
  max-width: 30rem;
}

.hero-home-content .btn-primary {
  background: var(--ochre);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-home-content .btn-primary:hover {
  background: #c9a451;
  color: var(--ink);
}

.page-hero {
  padding: 3.5rem 0 2rem;
  animation: riseIn 0.7s ease both;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 18ch;
}

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

.page-hero-visual {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 16rem;
  box-shadow: var(--shadow);
}

.page-hero-visual img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.band {
  background: var(--surface);
  border-radius: calc(var(--radius) + 0.5rem);
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow);
}

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

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

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

.feature-flow {
  display: grid;
  gap: 1.25rem;
}

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

.feature-step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
  animation: riseIn 0.8s ease both;
}

.feature-step:nth-child(2) {
  animation-delay: 0.12s;
}

.feature-step:nth-child(3) {
  animation-delay: 0.24s;
}

.feature-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--moss-soft);
  color: var(--moss-deep);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.feature-step h3 {
  font-size: 1.2rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.course-card,
.blog-card,
.price-card,
.review-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.course-card img,
.blog-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 1.25rem;
}

.card-body .meta {
  font-size: 0.9rem;
  color: var(--ochre);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.soft-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.soft-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.soft-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--moss);
}

.quote-panel {
  background: linear-gradient(145deg, var(--moss-soft), var(--surface));
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
}

.quote-panel blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1.4;
}

.quote-panel cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--moss-deep);
  line-height: 1.1;
}

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

.price-card {
  padding: 1.75rem;
}

.price-card.featured {
  border-color: var(--moss);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--surface), var(--moss-soft));
}

.price-card .tier {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.price-card .amount {
  font-size: 2.1rem;
  font-family: var(--font-display);
  color: var(--moss-deep);
  margin-bottom: 0.75rem;
}

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

.price-note {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.review-card {
  padding: 1.5rem;
}

.review-card .stars {
  color: var(--ochre);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.review-card .attrib {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--moss-deep);
  font-weight: 700;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

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

.faq details p {
  margin: 0.75rem 0 0;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.55rem;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

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

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

.module-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}

.module-item .badge {
  font-weight: 800;
  color: var(--moss);
  font-size: 0.85rem;
}

.form-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

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

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

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

.form-group textarea {
  min-height: 9rem;
  resize: vertical;
}

.is-invalid {
  border-color: #b4543c !important;
}

.field-error {
  color: #8a3a2a;
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status {
  margin-top: 1rem;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--moss-deep);
}

.form-status.is-error {
  color: #8a3a2a;
}

.contact-aside {
  background: var(--moss-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contact-aside h2 {
  font-size: 1.35rem;
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    linear-gradient(135deg, rgba(74, 107, 82, 0.12), rgba(184, 146, 63, 0.15)),
    var(--surface);
  border-radius: calc(var(--radius) + 0.35rem);
  border: 1px solid var(--line);
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: #2f3d34;
  color: rgba(255, 250, 243, 0.82);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: rgba(255, 250, 243, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f3e6c8;
}

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

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fffaf3;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-address {
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.95rem;
}

.footer-heading {
  font-weight: 800;
  color: #fffaf3;
  margin-bottom: 0.75rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 250, 243, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  animation: riseIn 0.5s ease both;
}

.cookie-banner-inner {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

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

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

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--moss);
  margin-bottom: 0.25rem;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

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

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 0.35rem);
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

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

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

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}
