:root {
  --ink: #102226;
  --ink-soft: #3a5258;
  --brand: #0b6b63;
  --brand-deep: #084943;
  --accent: #c56a2d;
  --accent-soft: #f3e0d0;
  --surface: #f4f8f7;
  --surface-2: #e7f0ee;
  --white: #ffffff;
  --line: rgba(16, 34, 38, 0.12);
  --shadow: 0 18px 40px rgba(8, 45, 42, 0.1);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
}

*,
*::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(11, 107, 99, 0.16), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(197, 106, 45, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fbfa 0%, var(--surface) 40%, #eef5f3 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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

p {
  margin: 0 0 1em;
}

.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% - 2rem, var(--max));
  margin-inline: auto;
}

.inline-error {
  background: #fde8e4;
  color: #8a2a1a;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #efc2b8;
  font-size: 0.95rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--brand) 0%, #14988c 55%, var(--accent) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  transform: rotate(18deg);
}

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

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

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

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

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px;
  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;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 107, 99, 0.25);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: var(--white);
}

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

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

.btn-ms {
  background: #111;
  color: #fff;
  border-color: #111;
  gap: 0.55rem;
}

.btn-ms::before {
  content: "";
  width: 16px;
  height: 16px;
  background:
    linear-gradient(90deg, #f35325 50%, #81bc06 50%),
    linear-gradient(90deg, #05a6f0 50%, #ffba08 50%);
  background-size: 100% 50%;
  background-position: top, bottom;
  background-repeat: no-repeat;
}

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

.btn-ms-compact {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

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

/* Hero variants */
.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-home {
  padding-top: 3.2rem;
}

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

.hero-brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
  background: linear-gradient(120deg, var(--ink) 20%, var(--brand) 70%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-in 0.8s ease both;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.8rem;
  animation: rise-in 0.7s ease 0.05s both;
}

.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 16ch;
  animation: rise-in 0.8s ease 0.1s both;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38ch;
  animation: rise-in 0.8s ease 0.18s both;
}

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  animation: fade-scale 1s ease 0.15s both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8, 73, 67, 0.15), rgba(197, 106, 45, 0.2));
  pointer-events: none;
}

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

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

.page-hero p {
  max-width: 52ch;
  color: var(--ink-soft);
}

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

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

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

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

.muted {
  color: var(--ink-soft);
}

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

.proof-item {
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.2rem;
}

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

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

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.panel h3 {
  font-size: 1.2rem;
}

.media-panel {
  overflow: hidden;
  padding: 0;
}

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

.media-panel .panel-body {
  padding: 1.25rem;
}

.feature-course {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.feature-course img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.feature-course .panel-body {
  padding: 1.5rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.quote {
  font-size: 1.15rem;
  font-family: var(--font-display);
  line-height: 1.35;
}

.quote-attr {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stack > * + * {
  margin-top: 1rem;
}

.list-clean {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

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

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

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-step {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0.4rem 0 0.8rem;
}

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

.featured-tier {
  border-color: rgba(11, 107, 99, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
}

.blog-list article,
.review-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-list article img,
.review-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-list .panel-body,
.review-list .panel-body {
  padding: 1.25rem;
}

.prose {
  max-width: 70ch;
}

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

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

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

.prose th {
  background: var(--surface-2);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  font-weight: 600;
}

/* Forms */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

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

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

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

.field-error {
  color: #a33a28;
  font-size: 0.9rem;
  min-height: 1.2em;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 0.8rem;
  font-weight: 600;
}

.form-status.is-success {
  color: var(--brand-deep);
}

.form-status.is-error {
  color: #a33a28;
}

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

.address-block {
  white-space: pre-wrap;
}

/* Footer + cookies */
.site-footer {
  margin-top: 3rem;
  background: #0d2422;
  color: #d7e8e5;
  padding: 3rem 0 1.5rem;
}

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

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

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

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

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

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

.footer-tagline,
.footer-address {
  color: #b7cdc9;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  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.92rem;
  color: #a9c2be;
}

.disclaimer-line {
  font-weight: 600;
  color: #f0c39a;
}

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

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

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

.cookie-inner p {
  margin: 0;
  max-width: 62ch;
}

.cookie-inner a {
  color: #f0c39a;
}

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

.rating-row {
  display: flex;
  gap: 0.25rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cta-band {
  background:
    linear-gradient(120deg, rgba(11, 107, 99, 0.95), rgba(8, 73, 67, 0.92)),
    url("https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1400&q=80") center/cover;
  color: #fff;
  border-radius: 28px;
  padding: 2.4rem;
  box-shadow: var(--shadow);
}

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

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

.cta-band .btn-secondary {
  border-color: transparent;
}

.module-list {
  counter-reset: module;
}

.module-list li {
  list-style: none;
  margin-left: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.8rem;
}

.module-list li::before {
  counter-increment: module;
  content: counter(module, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}

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

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

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

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@media (max-width: 960px) {
  .hero-split,
  .contact-layout,
  .footer-grid,
  .pricing-grid,
  .grid-3,
  .feature-course {
    grid-template-columns: 1fr;
  }

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

  .featured-tier {
    transform: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(247, 251, 250, 0.98);
    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;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .proof-strip,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 240px;
  }

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