:root {
  --ink: #1a2428;
  --ink-soft: #3d4f56;
  --muted: #5c6f76;
  --paper: #f3f6f4;
  --paper-deep: #e4ebe7;
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(26, 36, 40, 0.12);
  --teal: #0f6e6a;
  --teal-deep: #0a4f4c;
  --copper: #b86a3d;
  --copper-soft: #d4926a;
  --success: #1f6b45;
  --error: #9b2c2c;
  --shadow: 0 18px 40px rgba(26, 36, 40, 0.08);
  --radius: 6px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 110, 106, 0.14), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(184, 106, 61, 0.12), transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 40%, #eef3f0 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(26, 36, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 36, 40, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

.container {
  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(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

#header-slot,
#footer-slot,
[data-include-header],
[data-include-footer] {
  position: relative;
  z-index: 2;
}

#main {
  position: relative;
  z-index: 1;
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 244, 0.86);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid var(--teal);
  border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--paper), 4px 4px 0 var(--copper-soft);
}

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

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 2.6rem;
  height: 2.6rem;
  cursor: pointer;
}

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius);
  padding: 0.75rem 1.15rem;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
}

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

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

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

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

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

.btn-ms {
  background: #0b5cab;
  color: #fff;
  border-color: #0b5cab;
  white-space: nowrap;
}

.btn-ms:hover {
  background: #094a8a;
  color: #fff;
}

.btn-ms-footer {
  margin-top: 0.75rem;
}

.btn-on-dark {
  border-color: #fff;
  color: #fff;
  background: transparent;
}

.btn-on-dark:hover {
  background: #fff;
  color: var(--ink);
}

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 28, 30, 0.82) 0%, rgba(10, 28, 30, 0.45) 48%, rgba(10, 28, 30, 0.72) 100%),
    linear-gradient(0deg, rgba(10, 28, 30, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  animation: riseIn 0.9s ease both;
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  max-width: 28ch;
  animation: riseIn 1s ease 0.12s both;
}

.hero-support {
  color: rgba(243, 246, 244, 0.88);
  margin-bottom: 1.4rem;
  max-width: 40ch;
  animation: riseIn 1s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 1s ease 0.32s both;
}

.hero-log {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(243, 246, 244, 0.75);
  border-left: 2px solid var(--copper-soft);
  padding-left: 0.85rem;
  animation: riseIn 1s ease 0.42s both;
}

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

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

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

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

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

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

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

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

.feature-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--teal);
}

.feature-list h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

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

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

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

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

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

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

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

.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.item:hover {
  border-color: rgba(15, 110, 106, 0.45);
  transform: translateY(-2px);
}

.item-body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.item-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

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

.item h3 a:hover {
  color: var(--teal);
}

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

.quote-block {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.quote-block blockquote {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  line-height: 1.35;
}

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

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

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

.prose {
  max-width: 68ch;
}

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

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

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

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

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

th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 110, 106, 0.06);
}

.tier {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.tier.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(15, 110, 106, 0.25);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
}

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

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

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

.module {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 4px;
}

.module h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

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

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

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

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

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

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: rgba(31, 107, 69, 0.12);
  color: var(--success);
}

.form-status.is-error {
  background: rgba(155, 44, 44, 0.1);
  color: var(--error);
}

.inline-error {
  background: rgba(155, 44, 44, 0.1);
  color: var(--error);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--error);
  margin: 1rem 0;
}

.site-footer {
  margin-top: 3rem;
  background: #152024;
  color: rgba(243, 246, 244, 0.88);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #d7ebe8;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer-heading {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-address {
  font-style: normal;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

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

.disclaimer-line {
  margin: 0;
}

.copy {
  margin: 0;
  color: rgba(243, 246, 244, 0.65);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(21, 32, 36, 0.96);
  color: #f3f6f4;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
}

.cookie-banner a {
  color: var(--copper-soft);
}

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

.cookie-banner-text {
  margin: 0;
  max-width: 62ch;
}

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

.cookie-banner .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cookie-banner .btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

.case-study {
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.avatar-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0;
}

.avatar-row img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(15, 110, 106, 0.12), rgba(184, 106, 61, 0.1)),
    rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.log-panel {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: #152024;
  color: #d7ebe8;
  padding: 1.1rem 1.2rem;
  border-radius: 4px;
  line-height: 1.7;
}

.log-panel .ok {
  color: #7dcea0;
}

.log-panel .warn {
  color: #e0b27a;
}

.error-page {
  text-align: center;
  padding: 5rem 0 4rem;
}

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

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 980px) {
  .course-grid,
  .blog-grid,
  .tier-grid,
  .proof-grid,
  .footer-grid,
  .split,
  .contact-layout,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(243, 246, 244, 0.97);
    border-bottom: 1px solid var(--line);
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .course-grid,
  .blog-grid,
  .tier-grid,
  .proof-grid,
  .footer-grid,
  .split,
  .contact-layout,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}
