:root {
  --bg: #f3f4f6;
  --bg-deep: #e8eaee;
  --surface: #ffffff;
  --text: #1c2128;
  --muted: #5a6572;
  --accent: #2a6f6f;
  --accent-soft: #d7ebe8;
  --accent-hover: #1f5555;
  --border: #d9dee6;
  --error: #9b2c2c;
  --success: #1f6a4a;
  --shadow: 0 18px 40px rgba(28, 33, 40, 0.08);
  --radius: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "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);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(42, 111, 111, 0.12), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(28, 33, 40, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  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);
  line-height: 1.2;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.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(--text);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 6px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(243, 244, 246, 0.88);
  border-bottom: 1px solid rgba(217, 222, 230, 0.9);
}

.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.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

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

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

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

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

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  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(--text);
  margin: 0 auto;
  position: relative;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  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: var(--accent-hover);
  color: #fff;
}

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

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

.btn-store {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.btn-store:hover {
  background: #000;
  color: #fff;
}

.btn-store-sm {
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

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

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 28, 0.25) 0%, rgba(16, 24, 28, 0.72) 58%, rgba(16, 24, 28, 0.88) 100%);
}

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

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-home h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  margin-bottom: 0.35rem;
  color: #fff;
}

.hero-home .hero-lead {
  font-size: 1.15rem;
  color: rgba(247, 248, 250, 0.9);
  max-width: 30rem;
}

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

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

.page-hero .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40rem;
}

.section {
  padding: 3.5rem 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-intro {
  color: var(--muted);
  max-width: 40rem;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split-2 {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .split-reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split-reverse > :first-child {
    order: 2;
  }
}

.proof-band {
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid var(--border);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 1.75rem 0;
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
}

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

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

.feature-list li {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--accent);
}

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

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

.course-grid,
.blog-grid,
.price-grid,
.review-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .course-grid,
  .blog-grid,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 980px) {
  .course-grid.cols-3,
  .blog-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.item-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

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

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

.item-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

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

.item-body p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.quote-block {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

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

.quote-block .rating {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.price-tier.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.price-tier ul {
  color: var(--muted);
  flex: 1;
}

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

.form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(42, 111, 111, 0.35);
  border-color: var(--accent);
}

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

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

.form-status.is-success {
  display: block;
  background: #e7f6ef;
  color: var(--success);
  border: 1px solid #b7dfc9;
}

.form-status.is-error {
  display: block;
  background: #fdecec;
  color: var(--error);
  border: 1px solid #f0c2c2;
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #fdecec;
  color: var(--error);
  border: 1px solid #f0c2c2;
  border-radius: 8px;
}

.prose {
  max-width: 42rem;
}

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

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.7);
}

.prose th {
  background: var(--accent-soft);
}

.module-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.module-list li {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.module-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

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

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(42, 111, 111, 0.12), rgba(255, 255, 255, 0.9)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-band h2 {
  margin-bottom: 0.4rem;
}

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

.avatar-row img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-soft);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #1c2128;
  color: #d5dae1;
  padding: 3rem 0 1.5rem;
}

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

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

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  }
}

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

.footer-tagline {
  color: #aeb6c2;
  margin-bottom: 1rem;
}

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

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

.footer-address {
  font-style: normal;
  color: #aeb6c2;
  margin-bottom: 0.75rem;
}

.footer-contact {
  margin: 0 0 0.35rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: #93a0b0;
  font-size: 0.92rem;
}

.footer-disclaimer a {
  color: #c8e6e0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.85rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* 404 */
.error-page {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

/* Motion */
@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

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

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

.reveal-delay {
  animation-delay: 0.15s;
}

.reveal-delay-2 {
  animation-delay: 0.3s;
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(243, 244, 246, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-home-media img,
  .reveal,
  .reveal-delay,
  .reveal-delay-2,
  .btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
