/* Autodatalink — minimalist premium theme */
:root {
  --ink: #14221f;
  --ink-soft: #3d4f4a;
  --muted: #6b7c76;
  --line: #d7e0dc;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --accent: #0f3d36;
  --accent-mid: #1a5c50;
  --accent-soft: #e3efeb;
  --highlight: #c4a35a;
  --danger: #8b2e2e;
  --ok: #1f6b4a;
  --shadow: 0 18px 40px rgba(20, 34, 31, 0.08);
  --radius: 2px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --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);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #e8f1ee 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #f0ebe0 0%, transparent 45%),
    var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
  min-height: 100vh;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 247, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  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;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 4px;
  background:
    linear-gradient(145deg, var(--accent) 0%, var(--accent-mid) 60%, #7cb8a8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 550;
}

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

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

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

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

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--accent-mid);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

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

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

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

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

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

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

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

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

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

.btn-primary:hover {
  background: var(--accent-mid);
  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;
}

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

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

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

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 28, 24, 0.25) 0%, rgba(10, 28, 24, 0.72) 55%, rgba(10, 28, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 28, 24, 0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 4.5rem;
  animation: riseIn 0.9s var(--ease) both;
}

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

.hero h1 {
  color: #e8f2ef;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 450;
  max-width: 22ch;
  margin-bottom: 0.7em;
}

.hero p {
  max-width: 34rem;
  color: rgba(232, 242, 239, 0.88);
  font-size: 1.05rem;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

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

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

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

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

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

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--accent);
}

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

/* Feature / course blocks — not card-heavy */
.feature-list {
  display: grid;
  gap: 2rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--highlight);
}

.course-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.course-preview-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.course-preview-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.course-preview-body h2 {
  font-size: 1.85rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.75rem 0 1.25rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote-block {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.quote-block:last-child {
  border-bottom: 1px solid var(--line);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 450;
}

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

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

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

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.price-tier:hover {
  border-color: var(--accent-mid);
  transform: translateY(-3px);
}

.price-tier.is-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
}

.price-tier h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  margin: 0.4rem 0 1rem;
}

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

.price-tier ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

/* Course listing */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.course-tile {
  display: grid;
  gap: 1rem;
}

.course-tile a {
  text-decoration: none;
  color: inherit;
}

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}

.course-tile:hover img {
  filter: saturate(1.05);
  transform: scale(1.015);
}

.course-tile h3 {
  font-size: 1.35rem;
  margin: 0.2em 0;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

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

.blog-item h2 {
  font-size: 1.55rem;
}

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

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.article-hero {
  margin: 0 0 2rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

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

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

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

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

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

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

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}

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

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

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

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

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

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

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

.contact-details dt {
  font-weight: 600;
  margin-top: 1rem;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

/* FAQ */
.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;
  color: var(--ink-soft);
}

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

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

.cookie-table th {
  background: var(--accent-soft);
  font-weight: 600;
}

/* Legal */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.legal h1 {
  font-size: 2.4rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal p, .legal li {
  color: var(--ink-soft);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(227, 239, 235, 0.55) 0%, transparent 100%);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 0.75rem;
}

.full-bleed-band {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  margin: 2rem 0 0;
}

.full-bleed-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(15, 61, 54, 0.85) 100%);
}

.full-bleed-band .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

/* Modules */
.module-list {
  display: grid;
  gap: 1rem;
}

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

.module-index {
  font-family: var(--font-display);
  color: var(--highlight);
  font-size: 1.25rem;
}

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

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

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

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  animation: riseIn 0.45s var(--ease);
}

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

.cookie-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.cookie-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

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

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #e8f2ef;
  padding: 3.5rem 0;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 18ch;
}

.cta-band p {
  color: rgba(232, 242, 239, 0.85);
  max-width: 34rem;
}

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

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

/* Footer */
.site-footer {
  background: #101a18;
  color: #c5d4cf;
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

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

.footer-tag {
  color: #9eb0aa;
  font-size: 0.92rem;
  max-width: 26ch;
}

.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-col a {
  color: #c5d4cf;
  text-decoration: none;
  font-size: 0.92rem;
}

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

.footer-contact p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9eb0aa;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: #7f918b;
}

.footer-base p {
  margin: 0;
}

/* Case study */
.case-study {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 1.5rem;
  margin: 2rem 0;
}

.case-study h3 {
  font-size: 1.35rem;
}

/* Utilities */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 900px) {
  .split,
  .course-preview,
  .contact-panel,
  .blog-item,
  .price-grid,
  .footer-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
  }

  .hero {
    min-height: 78vh;
  }

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

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}
