:root {
  --bg: #fbfcfc;
  --bg-soft: #f0f5f6;
  --surface: #ffffff;
  --ink: #1a2a2e;
  --ink-muted: #4d6167;
  --accent: #1f4f5c;
  --accent-soft: #7eb8c4;
  --accent-wash: #e4f0f2;
  --line: #d5e2e5;
  --success: #2f6b4f;
  --error: #9b3a3a;
  --shadow: 0 18px 40px rgba(31, 79, 92, 0.08);
  --radius: 12px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::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(126, 184, 196, 0.22), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(31, 79, 92, 0.08), transparent 55%),
    linear-gradient(180deg, #f7fafb 0%, var(--bg) 35%, #f4f8f9 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: #163b45;
}

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

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

.container {
  width: min(100% - 2.5rem, 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;
  color: #fff;
}

.inline-error {
  background: #f8e8e8;
  color: var(--error);
  padding: 0.75rem 1rem;
  margin: 0;
  border-bottom: 1px solid #e7c4c4;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(251, 252, 252, 0.86);
  border-bottom: 1px solid rgba(213, 226, 229, 0.85);
}

.header-inner {
  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);
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

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

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

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

.nav-cta:hover {
  background: #163b45;
  color: #fff !important;
}

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

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

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

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

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: rise 0.35s ease both;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta {
    margin-top: 0.35rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  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: #163b45;
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

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

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

.hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 32, 38, 0.25) 0%, rgba(14, 32, 38, 0.72) 70%, rgba(14, 32, 38, 0.88) 100%),
    var(--hero-image) center/cover no-repeat;
  transform: scale(1.02);
  animation: ken 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-bleed .container {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: min(100% - 2.5rem, 760px);
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 0 0.35em;
  color: #fff;
}

.hero-bleed h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  max-width: 18ch;
}

.hero-bleed .lede {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  max-width: 38ch;
}

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

.page-hero {
  padding: 3.5rem 0 2rem;
}

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

.page-hero .lede {
  max-width: 52ch;
  font-size: 1.08rem;
}

.media-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}

.media-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 32, 38, 0.2), rgba(14, 32, 38, 0.78)),
    var(--hero-image) center/cover no-repeat;
  z-index: 0;
}

.media-hero .container {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 2.5rem;
}

.media-hero h1,
.media-hero .lede {
  color: #fff;
}

.media-hero .lede {
  color: rgba(255, 255, 255, 0.88);
}

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

.section-soft {
  background: linear-gradient(180deg, transparent, var(--bg-soft) 20%, var(--bg-soft) 80%, transparent);
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

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

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

.split img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

.quote-strip {
  border-left: 3px solid var(--accent-soft);
  padding-left: 1.25rem;
  margin: 0;
}

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

.quote-strip cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

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

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
}

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

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

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

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

.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(3, 1fr);
  align-items: stretch;
}

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

.course-item,
.blog-item,
.tier,
.review-item,
.module,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-item a,
.blog-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

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

.course-item .body,
.blog-item .body,
.tier,
.review-item,
.module,
.faq-item {
  padding: 1.25rem 1.35rem 1.45rem;
}

.course-item h3,
.blog-item h3,
.tier h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

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

.tier {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff, var(--accent-wash));
}

.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--ink);
  margin: 0;
}

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

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

.tier .btn {
  width: 100%;
}

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

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

.stars {
  color: #b8892d;
  letter-spacing: 0.08em;
}

.case-study {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.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 {
  color: var(--ink-muted);
  padding-left: 1.2rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  background: var(--bg-soft);
  color: var(--ink);
}

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

.field {
  margin-bottom: 1rem;
}

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

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

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

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

.field-error {
  color: var(--error);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
}

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

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

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

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

.contact-panel address {
  font-style: normal;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(31, 79, 92, 0.94), rgba(31, 79, 92, 0.82)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
}

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

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

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: #17343c;
  color: rgba(255, 255, 255, 0.78);
}

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

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

.footer-tag,
.footer-address {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.footer-label {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

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

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

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: rise 0.45s ease both;
}

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

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

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

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

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

.center-box h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

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

@keyframes ken {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.reveal {
  animation: rise 0.8s ease both;
}

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

  .hero-bleed {
    min-height: 78vh;
  }
}
