/* ==========================================================================
   FinnishTutor101 — Design System & Site Styles
   Palette:  Nordic navy + amber + aurora gradient thread
   Type:     Fraunces (display) / Inter (body) / IBM Plex Mono (data / eyebrows)
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #16283D;
  --ink-soft: #45607A;
  --navy: #1B4965;
  --navy-dark: #0E2C40;
  --amber: #C98A3E;
  --amber-dark: #A76F2C;
  --amber-soft: #F3D9B1;
  --teal: #3FA796;
  --violet: #6C63A6;
  --bg: #FFFFFF;
  --bg-alt: #F3F6F8;
  --bg-navy: #0E2C40;
  --line: #DCE3E8;
  --line-on-navy: rgba(255,255,255,0.16);
  --white: #FFFFFF;

  /* Aurora gradient thread — signature motif */
  --aurora: linear-gradient(90deg, var(--teal) 0%, var(--amber) 50%, var(--violet) 100%);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(14, 44, 64, 0.08);
  --shadow-lg: 0 20px 60px rgba(14, 44, 64, 0.14);
  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-2); color: var(--navy-dark); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-2); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }

/* ---------- Eyebrow / mono labels — reflects CEFR level codes as real data ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--aurora);
  border-radius: 2px;
}
.eyebrow.on-dark { color: var(--amber-soft); }

/* ---------- Aurora thread divider — signature element ---------- */
.aurora-thread {
  height: 3px;
  width: 100%;
  background: var(--aurora);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: aurora-shift 8s ease-in-out infinite;
}
@keyframes aurora-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(201, 138, 62, 0.32);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 138, 62, 0.4); }
.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-dark);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-alt); transform: translateY(-2px); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(27, 73, 101, 0.28);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.88rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy-dark);
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: var(--ink-soft); font-weight: 500; text-transform: uppercase; }

.nav-desktop { display: none; }
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
  .nav-cta { display: inline-flex; }
}
.nav-list { display: flex; align-items: center; gap: var(--space-3); }
.nav-link {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  padding: 0.5rem 0.1rem;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--aurora);
  transition: right 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--navy-dark); font-weight: 600; }

.nav-item-dropdown { position: relative; }
.nav-item-dropdown > button.nav-link {
  background: none; border: none; display: flex; align-items: center; gap: 0.35em;
}
.nav-item-dropdown svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-item-dropdown:hover svg, .nav-item-dropdown.open svg { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown.open .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-panel a {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
}
.dropdown-panel a:hover { background: var(--bg-alt); }
.dropdown-panel a strong { font-family: var(--font-display); font-weight: 600; color: var(--navy-dark); font-size: 0.98rem; }
.dropdown-panel a span { color: var(--ink-soft); font-size: 0.82rem; margin-top: 0.15rem; }

/* mobile nav toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--navy-dark); border-radius: 2px; position: relative; transition: all 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: var(--space-2) 0 var(--space-4);
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a, .mobile-nav button.mnav-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: none; border: none;
  padding: 0.85rem 0.2rem; font-size: 1rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mnav-sub { display: none; padding-left: 1rem; }
.mnav-sub.is-open { display: block; }
.mnav-sub a { border-bottom: none; padding: 0.65rem 0.2rem; color: var(--ink-soft); font-size: 0.94rem; }
.mobile-nav .btn { margin-top: var(--space-2); }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--navy) 100%);
  color: var(--white);
  padding: var(--space-7) 0 var(--space-6);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(63,167,150,0.35), transparent 45%),
                     radial-gradient(circle at 15% 80%, rgba(108,99,166,0.3), transparent 45%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: var(--space-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--space-4); }
.hero-stats { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--white); }
.hero-stat span { font-size: 0.84rem; color: rgba(255,255,255,0.68); }
.hero-art { position: relative; }

/* Page hero (interior pages, shorter) */
.page-hero {
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--navy) 100%);
  color: var(--white);
  padding: var(--space-6) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(201,138,62,0.28), transparent 40%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.7rem); max-width: 24ch; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 58ch; font-size: 1.06rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); margin-bottom: var(--space-2); text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: linear-gradient(180deg, var(--navy-dark), var(--navy)); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }

.course-card { position: relative; padding-top: calc(var(--space-4) + 4px); overflow: hidden; }
.course-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--aurora);
}
.course-card .level-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--amber-dark); background: var(--amber-soft); padding: 0.25em 0.7em;
  border-radius: 999px; display: inline-block; margin-bottom: var(--space-2); font-weight: 600;
}
.course-card h3 { font-size: 1.28rem; margin-bottom: 0.5rem; }
.course-card .who { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
.course-card .who strong { color: var(--navy-dark); }
.benefit-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.8rem 0 1.2rem; }
.benefit-list li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; color: var(--ink); }
.benefit-list svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--teal); }

.icon-feature { text-align: left; }
.icon-feature .icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2); color: var(--navy);
}
.icon-feature svg { width: 24px; height: 24px; }
.icon-feature h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.icon-feature p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* Steps (How it works) — a real sequence, so numbering is meaningful */
.steps { position: relative; }
.steps-track { display: grid; grid-template-columns: 1fr; gap: var(--space-4); position: relative; }
@media (min-width: 900px) { .steps-track { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--space-2); }
.step-num {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--white); background: var(--navy);
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-2); font-weight: 600;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; height: 100%; }
.testimonial .stars { color: var(--amber); font-size: 0.95rem; margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.testimonial p.quote { font-size: 0.98rem; color: var(--ink); flex: 1; }
.testimonial .person { display: flex; align-items: center; gap: 0.7rem; margin-top: var(--space-2); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; flex-shrink: 0;
}
.person strong { display: block; font-size: 0.92rem; color: var(--navy-dark); }
.person span { font-size: 0.8rem; color: var(--ink-soft); }

/* Pricing */
.price-card { text-align: left; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--amber); box-shadow: 0 16px 40px rgba(201,138,62,0.22); position: relative; }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -13px; right: 1.6rem;
  background: var(--amber); color: var(--white); font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35em 0.9em; border-radius: 999px;
}
.price-value { font-family: var(--font-display); font-size: 2.5rem; color: var(--navy-dark); margin: 0.4rem 0 0.1rem; }
.price-value span { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.price-card ul { margin: var(--space-3) 0; display: flex; flex-direction: column; gap: 0.6rem; }
.price-card ul li { display: flex; gap: 0.55rem; font-size: 0.92rem; align-items: flex-start; }
.price-card ul li svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.price-card .btn { margin-top: auto; }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.3rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy-dark);
}
.faq-q .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease;
}
.faq-q .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { height: 100%; width: 2px; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a-inner { padding-bottom: 1.3rem; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }
.faq-item.is-open .faq-a { max-height: 400px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #164a63);
  color: var(--white);
  border-radius: 24px;
  padding: var(--space-6) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--aurora);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 56ch; margin: 0 auto var(--space-4); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 700px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--navy-dark); }
.field input, .field select, .field textarea {
  padding: 0.75em 0.95em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27,73,101,0.12); outline: none;
}
.field-full { grid-column: 1 / -1; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); }
.form-success {
  display: none; background: #EAF6F2; border: 1px solid var(--teal); color: #1F5C50;
  padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.92rem; margin-top: var(--space-2);
}
.form-success.is-visible { display: block; }

/* Contact info cards */
.contact-info-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-alt); display:flex; align-items:center; justify-content:center; color: var(--navy); flex-shrink: 0; }
.contact-info-card svg { width: 22px; height: 22px; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-info-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }
.contact-info-card a { color: var(--navy); font-weight: 600; }
.contact-info-card a:hover { text-decoration: underline; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--space-4); text-align: center; }
@media (min-width: 700px) { .stat-strip { grid-template-columns: repeat(4,1fr); } }
.stat-strip .stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--navy-dark); }
.stat-strip .stat span { font-size: 0.84rem; color: var(--ink-soft); }

/* Path / progression (used on beginners & courses pages) */
.path { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.path::before {
  content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--amber), var(--violet));
}
@media (min-width: 900px) {
  .path { flex-direction: row; }
  .path::before { left: 0; right: 0; top: 17px; bottom: auto; height: 2px; width: auto; background: linear-gradient(90deg, var(--teal), var(--amber), var(--violet)); }
}
.path-item { position: relative; padding-left: 2.6rem; flex: 1; }
@media (min-width: 900px) { .path-item { padding-left: 0; padding-top: 2.6rem; } }
.path-dot {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--navy); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--navy-dark); z-index: 1;
}
@media (min-width: 900px) { .path-dot { left: 0; top: 0; } }
.path-item h4 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.path-item p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0; }

/* Two column content block (About / method pages) */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.badge-list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-3); }
.badge-list span {
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--bg-alt); border: 1px solid var(--line); padding: 0.4em 0.85em; border-radius: 999px; color: var(--navy);
}

/* Illustration placeholders */
.art-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: var(--space-4);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: rgba(255,255,255,0.78); padding: var(--space-6) 0 var(--space-3); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-bottom: var(--space-5); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: var(--space-2); }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.site-footer p { font-size: 0.9rem; color: rgba(255,255,255,0.62); }
.site-footer h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-2); font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.72); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--amber-soft); }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--space-3); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; color: var(--white); transition: background 0.18s ease, border-color 0.18s ease;
}
.footer-social a:hover { background: rgba(255,255,255,0.1); border-color: var(--amber); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: var(--space-3);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-bottom-links { display: flex; gap: 1.2rem; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white);
  padding: 0.8rem 1.2rem; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
