:root {
  --bg: #f6f4ef;
  --bg-elevated: #fffcf7;
  --ink: #1f2421;
  --ink-soft: #4d5550;
  --muted: #7a817b;
  --line: #ddd7cc;
  --accent: #3f5d52;
  --accent-deep: #2c4038;
  --accent-soft: #d7e2db;
  --highlight: #c4a574;
  --danger: #8b3a3a;
  --ok: #2f6b4f;
  --shadow: 0 18px 40px rgba(31, 36, 33, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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%, rgba(168, 181, 160, 0.28), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(196, 165, 116, 0.18), transparent 50%),
    linear-gradient(180deg, #f8f6f1 0%, var(--bg) 40%, #f3f0ea 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

.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% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(246, 244, 239, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(31, 36, 33, 0.04);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 6px;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 70%),
    #2c4038;
  box-shadow: inset 0 -10px 0 rgba(255, 252, 247, 0.12);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.32rem;
  height: 0.45rem;
  background: linear-gradient(90deg, #e8e4dc 20%, transparent 20%, transparent 40%, #e8e4dc 40%, #e8e4dc 55%, transparent 55%, transparent 70%, #a8b5a0 70%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}

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

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg-elevated) !important;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  padding: 0.65rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

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

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

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

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

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

.btn-text {
  background: transparent;
  color: var(--accent-deep);
  padding-inline: 0.2rem;
  border-radius: 0;
}

.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f4ee;
}

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 28, 25, 0.82) 8%, rgba(20, 28, 25, 0.45) 52%, rgba(20, 28, 25, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 28, 25, 0.55), transparent 45%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4.5rem;
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.72);
  margin-bottom: 1rem;
}

.hero-home h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 0.35em;
  color: #fff;
}

.hero-home p {
  font-size: 1.08rem;
  color: rgba(247, 244, 238, 0.88);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

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

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

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

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

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

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

.lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.65);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

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

.course-preview {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.course-preview-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 320px;
  position: relative;
}

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

.course-preview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  background: var(--bg-elevated);
}

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

.benefit-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s var(--ease) forwards;
}

.benefit-list li:nth-child(2) { animation-delay: 0.08s; }
.benefit-list li:nth-child(3) { animation-delay: 0.16s; }
.benefit-list li:nth-child(4) { animation-delay: 0.24s; }

.benefit-index {
  font-family: var(--font-display);
  color: var(--highlight);
  font-size: 1.2rem;
  min-width: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: rgba(255, 252, 247, 0.8);
  border-left: 3px solid var(--accent);
}

.quote p {
  margin-bottom: 0.8rem;
  font-size: 1.02rem;
}

.quote footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  margin: 1rem 0 5rem;
  border-radius: calc(var(--radius) + 6px);
  padding: 2.6rem;
  background:
    linear-gradient(135deg, rgba(63, 93, 82, 0.95), rgba(44, 64, 56, 0.98)),
    var(--accent-deep);
  color: #f4f1ea;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  margin: 0;
  color: rgba(244, 241, 234, 0.85);
  max-width: 34rem;
}

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

.page-hero {
  padding: 3.8rem 0 2.2rem;
}

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

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

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

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

.media-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  height: 100%;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.media-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.media-card h3 a {
  text-decoration: none;
  color: inherit;
}

.media-card h3 a:hover {
  color: var(--accent);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.price-tier:hover {
  transform: translateY(-4px);
  border-color: #c9c2b4;
}

.price-tier.featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(215, 226, 219, 0.45), rgba(255, 252, 247, 0.95));
}

.price-tier h3 {
  margin-bottom: 0.2rem;
  font-size: 1.45rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
}

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

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

.price-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

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

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(63, 93, 82, 0.35);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.86rem;
  min-height: 1.1em;
}

.form-status {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  background: rgba(47, 107, 79, 0.12);
  color: var(--ok);
}

.form-status[data-state="error"] {
  background: rgba(139, 58, 58, 0.1);
  color: var(--danger);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

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

.contact-aside dt {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.contact-aside dd {
  margin: 0.35rem 0 0;
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

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

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

.legal th {
  background: rgba(255, 252, 247, 0.9);
}

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

.faq summary {
  cursor: pointer;
  font-weight: 560;
  list-style: none;
}

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

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

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

.module {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.module strong {
  font-family: var(--font-display);
  color: var(--highlight);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  align-items: center;
}

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

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-tag,
.footer-address {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  text-decoration: none;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  width: min(100%, 720px);
  margin-left: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

.blog-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.prose {
  max-width: 42rem;
}

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

.prose img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: rgba(139, 58, 58, 0.08);
  color: var(--danger);
  border-radius: var(--radius-sm);
}

.case-study {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.case-study h3 {
  font-size: 1.4rem;
}

.rating {
  letter-spacing: 0.08em;
  color: var(--highlight);
  font-size: 0.9rem;
}

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

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 960px) {
  .proof-grid,
  .grid-3,
  .price-grid,
  .footer-grid,
  .course-preview,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

  .site-nav a {
    padding: 0.55rem 0.35rem;
  }

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

  .instructor {
    grid-template-columns: 1fr;
  }
}

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