:root {
  --ink: #14201f;
  --ink-soft: #3d4a48;
  --muted: #6b7876;
  --line: #d7e0de;
  --paper: #f5f8f7;
  --paper-deep: #e8efed;
  --surface: #ffffff;
  --accent: #1b4d4a;
  --accent-hover: #143936;
  --accent-soft: #d9ebe8;
  --focus: #2a7a74;
  --danger: #8b3a3a;
  --ok: #1f6b4a;
  --shadow: 0 18px 50px rgba(20, 32, 31, 0.08);
  --radius: 14px;
  --header-h: 72px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --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%, rgba(27, 77, 74, 0.08), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(42, 122, 116, 0.06), transparent 55%),
    linear-gradient(180deg, #f7faf9 0%, var(--paper) 40%, #eef3f2 100%);
  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(--accent-hover);
}

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

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

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

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

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

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

.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);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 5px;
  background: linear-gradient(145deg, var(--accent), #2a7a74);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

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

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

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

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

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
}

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

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

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

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

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

.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-soft {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Hero compositions */
.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-stage {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.hero-brand-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -0.04em;
  margin: 0;
  line-height: 0.95;
  max-width: 12ch;
  animation: rise 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: rise 0.7s ease 0.05s both;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38rem;
  animation: rise 0.8s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  animation: rise 0.8s ease 0.18s both;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fade-in 1s ease 0.2s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.hero-fullbleed {
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  padding: 0;
  margin-bottom: 2rem;
}

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

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

.hero-fullbleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 31, 0.15) 0%, rgba(20, 32, 31, 0.72) 100%);
  z-index: 1;
}

.hero-fullbleed .shell {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
  color: #f4f7f6;
}

.hero-fullbleed .hero-brand-line,
.hero-fullbleed h1,
.hero-fullbleed .hero-lead {
  color: #f4f7f6;
}

.hero-fullbleed .hero-kicker {
  color: #b8ddd8;
}

.page-hero {
  padding: 3.2rem 0 1.5rem;
}

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

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

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

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

.section-label {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .split-2 {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

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

  .hero-stage {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

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

.stat-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat {
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.65);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

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

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

.feature-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-list h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
}

/* Cards used only for interactive listings */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

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

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

.course-card .body,
.blog-card .body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.course-card h3,
.blog-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.price-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.price-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff 0%, #f2f8f7 100%);
}

.price-tier h3 {
  margin: 0;
  font-size: 1.5rem;
}

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

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

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

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

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.quote {
  background: rgba(255, 255, 255, 0.7);
  border-top: 2px solid var(--accent);
  padding: 1.4rem 0 0.4rem;
}

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

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

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

.case-study:last-child {
  border-bottom: 0;
}

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

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

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

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

.module-list li {
  counter-increment: module;
  padding: 1.1rem 0 1.1rem 3rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.module-list li::before {
  content: counter(module, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
}

.instructor {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

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

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

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

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

.form label {
  font-size: 0.92rem;
  font-weight: 600;
}

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

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

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

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

.form-status {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e5f4ec;
  color: var(--ok);
}

.form-status.is-error {
  display: block;
  background: #f8eaea;
  color: var(--danger);
}

.contact-block {
  display: grid;
  gap: 1.5rem;
}

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

.address-box {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal {
  max-width: 760px;
}

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

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

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

.legal th {
  background: var(--paper-deep);
}

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

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

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.4rem;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(27, 77, 74, 0.92), rgba(20, 57, 54, 0.95)),
    var(--accent);
  color: #f4f7f6;
  display: grid;
  gap: 1rem;
}

.cta-band h2 {
  color: #f4f7f6;
  margin: 0;
}

.cta-band p {
  margin: 0;
  max-width: 36rem;
  color: rgba(244, 247, 246, 0.88);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28ch;
}

.footer-label {
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

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

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

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

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

.footer-address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(20, 32, 31, 0.08);
  padding: 1rem 0;
}

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

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  max-width: 48rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f8eaea;
  color: var(--danger);
}

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

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

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 250, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

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

  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }
}

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