:root {
  --ink: #1a2b2b;
  --ink-soft: #3d5252;
  --muted: #6a7d7d;
  --paper: #f7f6f2;
  --paper-deep: #ebe8e0;
  --line: #d4d0c6;
  --accent: #1a5c56;
  --accent-hover: #134743;
  --accent-soft: #dcecea;
  --highlight: #c4a35a;
  --danger: #8b3a3a;
  --ok: #1f6b4a;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 68rem;
  --header-h: 4.25rem;
  --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:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 92, 86, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 163, 90, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, #f3f1eb 100%);
  min-height: 100vh;
}

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

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

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

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

h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 0 0 0.55em;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.4em;
}

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

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

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

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

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

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

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

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(26, 58, 58, 0.04));
  padding: 3.5rem 0 2rem;
}

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

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.92rem;
  color: var(--muted);
}

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

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

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

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

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

.btn--primary {
  background: var(--accent);
  color: #f7f6f2;
}

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

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

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

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
  color: var(--ink-soft);
}

/* Hero home — editorial split, brand-forward */
.hero-home {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h));
  align-items: stretch;
}

.hero-home__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent);
}

.hero-home__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  animation: rise 0.9s var(--ease) both;
}

.hero-home__brand em {
  font-style: italic;
  color: var(--accent);
  font-weight: 450;
}

.hero-home__line {
  width: 3.5rem;
  height: 2px;
  background: var(--highlight);
  margin-bottom: 1.5rem;
  animation: rise 0.9s 0.1s var(--ease) both;
}

.hero-home__text {
  font-size: 1.12rem;
  max-width: 28rem;
  animation: rise 0.9s 0.18s var(--ease) both;
}

.hero-home__cta {
  animation: rise 0.9s 0.28s var(--ease) both;
}

.hero-home__visual {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.hero-home__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 18s ease-in-out infinite alternate;
}

.hero-home__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, transparent 18%);
  pointer-events: none;
}

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

@keyframes ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}

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

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

.trust-strip span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Feature list — not cards by default */
.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.feature-rail article {
  padding-top: 1.25rem;
  border-top: 2px solid var(--accent);
}

.feature-rail h3 {
  margin-top: 0.5rem;
}

/* Course / blog preview rows */
.preview-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.preview-item {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s var(--ease);
}

.preview-item:hover {
  background: rgba(255, 255, 255, 0.45);
}

.preview-item img {
  width: 12rem;
  height: 7.5rem;
  object-fit: cover;
}

.preview-item h3 {
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.preview-item p {
  margin: 0;
  font-size: 0.95rem;
}

.preview-item .meta {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Quote / testimonials */
.quote-block {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

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

.testimonial-stack {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-stack article {
  padding: 0 0 2rem;
  border-bottom: 1px solid var(--line);
}

.testimonial-stack article:last-child {
  border-bottom: none;
}

.testimonial-stack .attribution {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.stars {
  color: var(--highlight);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Page hero (inner) */
.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
}

.page-hero--media {
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
  color: #f7f6f2;
  overflow: hidden;
}

.page-hero--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.page-hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 43, 43, 0.2), rgba(26, 43, 43, 0.78));
}

.page-hero--media h1,
.page-hero--media p {
  color: #f7f6f2;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.price-tier {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.price-tier--focus {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.price-tier .amount small {
  font-size: 1rem;
  color: var(--muted);
}

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

.price-tier li {
  margin-bottom: 0.45rem;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

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

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

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
}

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

.is-invalid {
  border-color: var(--danger);
}

.field-error {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status--ok {
  color: var(--ok);
}

.form-status--err {
  color: var(--danger);
}

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

.contact-aside {
  padding-top: 0.5rem;
}

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

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

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

.faq summary::-webkit-details-marker {
  display: none;
}

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

/* Modules / curriculum */
.module-list {
  counter-reset: mod;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.module-list li {
  counter-increment: mod;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

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

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

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

.legal-table th {
  background: rgba(26, 92, 86, 0.08);
  font-weight: 650;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

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

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

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

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

.cta-band {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, #0f3d39 100%);
  color: #f7f6f2;
}

.cta-band h2 {
  color: #f7f6f2;
}

.cta-band p {
  color: rgba(247, 246, 242, 0.85);
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn--primary {
  background: #f7f6f2;
  color: var(--accent);
}

.cta-band .btn--ghost {
  border-color: rgba(247, 246, 242, 0.45);
  color: #f7f6f2;
}

.case-study {
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 2px solid var(--accent);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 43, 43, 0.96);
  color: #e8f0ef;
  padding: 1.25rem;
  animation: fade-in 0.4s var(--ease);
}

.cookie-banner__inner {
  width: min(100% - 1rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 18rem;
  color: #d5e0df;
  font-size: 0.92rem;
}

.cookie-banner a {
  color: #9fd4cd;
}

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

.cookie-banner .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f7f6f2;
}

.cookie-banner .btn--primary {
  background: #7eb8b0;
  color: #102826;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 6rem 1.5rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 1;
  color: var(--accent-soft);
  margin: 0;
}

/* Blog article meta */
.article-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cover {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  margin: 0 0 2rem;
}

@media (max-width: 900px) {
  .hero-home {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-home__visual {
    min-height: 16rem;
    order: -1;
  }

  .hero-home__visual::after {
    background: linear-gradient(180deg, transparent 60%, var(--paper));
  }

  .feature-rail,
  .pricing-grid,
  .trust-strip__grid,
  .footer-grid,
  .contact-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .preview-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .preview-item img {
    width: 100%;
    height: 11rem;
  }

  .preview-item .meta {
    white-space: normal;
  }

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

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

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

  .site-header {
    position: relative;
  }

  .site-header__inner {
    position: relative;
  }
}

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