:root {
  --ink: #142428;
  --ink-soft: #3d4f54;
  --muted: #6a7c81;
  --line: #d7e2e0;
  --paper: #fbfcfb;
  --paper-deep: #eef5f3;
  --teal: #0b3d4a;
  --teal-mid: #1a6b6a;
  --accent: #5eb8a8;
  --accent-deep: #2f8f82;
  --danger: #9b3b3b;
  --success: #1f6b4a;
  --shadow: 0 18px 50px rgba(11, 61, 74, 0.08);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --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 600px at 90% -10%, rgba(94, 184, 168, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(11, 61, 74, 0.06), transparent 50%),
    linear-gradient(180deg, #f7faf9 0%, var(--paper) 40%, #f4f8f7 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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;
  color: var(--ink-soft);
}

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

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

.inline-error {
  background: #f8e8e8;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 252, 251, 0.86);
  border-bottom: 1px solid rgba(215, 226, 224, 0.8);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--teal) 70%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  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;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--teal);
}

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

.nav-cta:hover {
  background: var(--teal);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 0.28rem 0;
}

main {
  overflow-x: clip;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  color: #f4faf8;
  background:
    linear-gradient(105deg, rgba(8, 32, 38, 0.82) 18%, rgba(8, 32, 38, 0.35) 58%, rgba(8, 32, 38, 0.2) 100%),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  animation: heroFade 1.1s var(--ease) both;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6.5rem 1.25rem 4.5rem;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  line-height: 0.95;
}

.hero-line {
  max-width: 28rem;
  font-size: 1.12rem;
  color: rgba(244, 250, 248, 0.9);
  margin-bottom: 1.6rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1.2rem;
  font: inherit;
  font-weight: 600;
  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: #083038;
}

.btn-primary:hover {
  background: #79c9bb;
  color: #083038;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

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

.section {
  padding: 4.5rem 0;
}

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

.section-alt {
  background: rgba(238, 245, 243, 0.55);
  border-block: 1px solid var(--line);
}

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

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

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

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

.proof-item {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  letter-spacing: -0.03em;
}

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

.benefit-list {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.benefit-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: b;
}

.benefit-list li {
  counter-increment: b;
  padding: 1.2rem 0 1.2rem 3.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

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

.benefit-visual {
  min-height: 360px;
  background:
    linear-gradient(160deg, rgba(11, 61, 74, 0.25), rgba(11, 61, 74, 0.55)),
    url("https://images.unsplash.com/photo-1563986768609-322da13575f3?auto=format&fit=crop&w=1200&q=80")
      center / cover no-repeat;
  border-radius: 2px;
  animation: riseIn 0.9s var(--ease) both;
}

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

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

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

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

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

.course-tile,
.blog-tile,
.tier,
.review-block,
.case-block,
.module,
.faq-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.course-tile,
.blog-tile {
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.course-tile img,
.blog-tile img,
.page-hero-media img,
.instructor img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.course-tile-body,
.blog-tile-body,
.tier,
.review-block,
.case-block,
.module,
.faq-item {
  padding: 1.25rem 1.3rem 1.45rem;
}

.course-tile h3,
.blog-tile h3,
.tier h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
}

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

.tier.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

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

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

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

.tier li + li {
  margin-top: 0.45rem;
}

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

.quote-soft {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

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

.page-hero {
  padding: 4.2rem 0 2.5rem;
}

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

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

.page-hero-media {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 2px;
}

.page-hero-media img {
  aspect-ratio: 21 / 8;
  width: 100%;
  object-fit: cover;
  animation: riseIn 1s var(--ease) both;
}

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

.content-prose {
  max-width: 44rem;
}

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

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

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

.content-prose li + li {
  margin-top: 0.4rem;
}

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

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

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

th {
  background: var(--paper-deep);
  color: var(--teal);
  font-weight: 700;
}

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

.field {
  margin-bottom: 1rem;
}

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

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

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(94, 184, 168, 0.45);
  border-color: var(--accent-deep);
}

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

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

.form-status.is-success {
  background: #e7f5ee;
  color: var(--success);
}

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

.contact-panel {
  background: var(--teal);
  color: #e8f4f2;
  padding: 1.8rem;
  border-radius: 2px;
}

.contact-panel h2 {
  color: #fff;
}

.contact-panel p,
.contact-panel address {
  color: rgba(232, 244, 242, 0.9);
  font-style: normal;
}

.contact-panel a {
  color: #fff;
}

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

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

.faq-item details {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  padding: 1.1rem 1.25rem;
  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: 1rem 1.25rem 1.25rem;
  margin: 0;
}

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

.instructor img {
  aspect-ratio: 1;
  border-radius: 2px;
  object-fit: cover;
}

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.5rem;
  background:
    linear-gradient(120deg, rgba(11, 61, 74, 0.94), rgba(26, 107, 106, 0.9)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80")
      center / cover;
  color: #eef7f5;
  border-radius: 2px;
  animation: riseIn 0.8s var(--ease) both;
}

.cta-band h2 {
  color: #fff;
  max-width: 16ch;
}

.cta-band p {
  color: rgba(238, 247, 245, 0.88);
  max-width: 34rem;
}

.site-footer {
  background: #0a2c34;
  color: rgba(232, 244, 242, 0.82);
  padding: 3.5rem 1.25rem 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 1.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.6rem;
}

.footer-tag,
.footer-address {
  color: rgba(232, 244, 242, 0.78);
  font-style: normal;
  font-size: 0.95rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fd4c8;
  margin: 0 0 0.9rem;
}

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

.footer-links a,
.footer-bottom a,
.site-footer a {
  color: rgba(232, 244, 242, 0.88);
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover,
.site-footer a:hover {
  color: #fff;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  animation: riseIn 0.5s var(--ease) both;
}

.cookie-banner-inner {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.9rem;
}

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

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

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

.rating {
  color: var(--accent-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes heroFade {
  from {
    opacity: 0.4;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

  .tier.featured {
    transform: none;
  }

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

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

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

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

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

  .page-hero-media img {
    aspect-ratio: 16 / 9;
  }
}

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