:root {
  --ink: #0f2c3a;
  --ink-soft: #3a5563;
  --muted: #6b7f8a;
  --line: #d6e0e5;
  --paper: #ffffff;
  --wash: #f4f8fa;
  --accent: #3d8b9c;
  --accent-deep: #2a6a78;
  --accent-soft: #e6f2f4;
  --danger: #9b3b3b;
  --success: #2d6a4f;
  --radius: 2px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 40px rgba(15, 44, 58, 0.06);
  --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);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.55em; }
h3 { font-size: 1.35rem; margin: 0 0 0.45em; }

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

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

.wide {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand:hover { color: var(--accent-deep); }

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

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

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

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

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

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

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  background: var(--wash);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.footer-tag {
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) 1.4fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.footer-brand { grid-column: 1; }

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

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

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

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

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

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

.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-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero variants */
.hero-panel {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-panel__media {
  position: absolute;
  inset: 0;
}

.hero-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.04);
  animation: slow-zoom 18s var(--ease) infinite alternate;
}

.hero-panel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 44, 58, 0.35) 0%, rgba(15, 44, 58, 0.82) 70%, rgba(15, 44, 58, 0.94) 100%);
}

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

.hero-panel .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0 0 0.35em;
  color: #fff;
  letter-spacing: -0.04em;
}

.hero-panel h1 {
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 450;
  max-width: 22ch;
  margin-bottom: 0.5em;
}

.hero-panel p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 42ch;
  margin-bottom: 0;
}

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

.hero-panel .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(61, 139, 156, 0.12), transparent 55%),
    var(--wash);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede {
  max-width: 48ch;
  font-size: 1.15rem;
}

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

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

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

.section-wash {
  background: var(--wash);
}

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

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

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proof-band {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 500;
}

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

.feature-list {
  display: grid;
  gap: 1.75rem;
}

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

.feature-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

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

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

.course-tile,
.blog-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s var(--ease);
}

.course-tile:hover,
.blog-tile:hover {
  opacity: 0.88;
}

.course-tile img,
.blog-tile img,
.cover-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
  background: var(--wash);
}

.course-tile h3,
.blog-tile h3 {
  color: var(--ink);
  text-decoration: none;
}

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

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

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

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

.review-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.stars {
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 4rem 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 42ch; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

/* Pricing */
.tier {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ink);
  margin: 0.4rem 0 0.8rem;
}

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

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

.tier li { margin-bottom: 0.4rem; }

.tier.featured {
  background: var(--accent-soft);
  padding: 2rem 1.5rem;
  border-top: 2px solid var(--accent);
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

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

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

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

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

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

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

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

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.contact-aside {
  background: var(--wash);
  padding: 1.75rem;
  border: 1px solid var(--line);
}

.contact-aside h2 {
  font-size: 1.3rem;
}

.contact-aside p {
  font-size: 0.95rem;
}

/* Article / legal */
.prose {
  max-width: 42rem;
}

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

.prose h3 {
  margin-top: 1.6rem;
}

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

.prose li { margin-bottom: 0.4rem; }

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

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

th {
  background: var(--wash);
  font-weight: 650;
  color: var(--ink);
}

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

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

.module-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

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

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

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

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

.faq details p {
  margin: 0.75rem 0 0.25rem;
}

.case-study {
  background: var(--wash);
  padding: 2rem;
  border: 1px solid var(--line);
  margin-top: 2rem;
}

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

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.35rem;
  display: none;
  animation: rise 0.45s var(--ease) both;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.inline-error {
  background: #f8eaea;
  color: var(--danger);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

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

@keyframes slow-zoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .proof-grid,
  .course-grid,
  .blog-grid,
  .tier-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

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

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

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