/* FEA Academy: shared stylesheet */
:root {
  --ink: #172b45;
  --steel: #30507a;
  --steel-light: #5b859b;
  --paper: #f5f7f9;
  --white: #ffffff;
  --rule: #d6dde5;
  --text: #1c2633;
  --muted: #56657a;
  --amber: #e3a018;
  --amber-dark: #b97f0c;
  --radius: 4px;
  --wrap: 1180px;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-stretch: 88%; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-stretch: 90%; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.prose { max-width: 70ch; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8em 1.4em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f0b132; color: var(--ink); }
.btn-outline { border-color: var(--steel); color: var(--steel); background: transparent; }
.btn-outline:hover { background: var(--steel); color: var(--white); }
.btn-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }

/* Header and navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 64px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 12px; font: 600 0.95rem var(--font-head); color: var(--ink); cursor: pointer;
}
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .sub-toggle {
  display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 0.97rem; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav .sub-toggle:hover { color: var(--steel); }
.main-nav a[aria-current="page"] { color: var(--steel); box-shadow: inset 0 -2px 0 var(--amber); }
.main-nav .in-section > .sub-toggle { color: var(--steel); box-shadow: inset 0 -2px 0 var(--amber); }
.submenu a[aria-current="page"] { color: var(--steel); font-weight: 600; box-shadow: none; }
.main-nav .sub-toggle::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }

.submenu {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; left: 0; top: 100%; min-width: 260px;
  background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--steel);
  display: none;
}
.submenu .submenu { position: static; border: 0; padding: 0 0 4px 14px; display: block; min-width: 0; }
.submenu a { padding: 7px 18px; font-weight: 400; }
.submenu .group-label { font-weight: 600; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }
.nav-cta { margin-left: 8px; }
.main-nav .nav-cta a { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 9px 16px; }
.main-nav .nav-cta a:hover { background: var(--steel); color: var(--white); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 24px 20px; }
  .submenu { position: static; border: 0; border-left: 2px solid var(--rule); margin-left: 12px; padding: 0; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open > .submenu { display: block; }
  .nav-cta { margin: 10px 0 0; }
}

/* Hero */
.hero {
  color: #dbe3ec;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(23,43,69,0.94) 0%, rgba(23,43,69,0.82) 45%, rgba(23,43,69,0.35) 100%),
    url("https://www.fea-academy.com/images/background_mesh.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner { padding: 104px 24px 96px; }
.hero-inner > div { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.2rem; max-width: 36em; margin-bottom: 1.8em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .hero { background-image: linear-gradient(rgba(23,43,69,0.86), rgba(23,43,69,0.86)), url("https://www.fea-academy.com/images/background_mesh.jpg"); }
  .hero-inner { padding: 64px 24px; }
}

/* Page header (inner pages) */
.page-head {
  color: #dbe3ec; padding: 56px 0 48px; position: relative; overflow: hidden;
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(23,43,69,0.95) 0%, rgba(23,43,69,0.8) 60%, rgba(23,43,69,0.55) 100%), url("https://www.fea-academy.com/images/background_mesh.jpg");
  background-size: cover; background-position: center;
}
.page-head h1 { color: var(--white); max-width: 22em; }
.page-head p { max-width: 44em; font-size: 1.15rem; margin: 0; }
.page-head::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px;
  display: none;
}
.crumbs { font-size: 0.9rem; margin-bottom: 14px; }
.crumbs a { color: #aebccc; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 46em; margin-bottom: 36px; }

/* Figures strip */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.figures div { padding: 26px 22px; border-left: 1px solid var(--rule); }
.figures div:first-child { border-left: 0; }
.figures .icon { display: block; width: 36px; height: 36px; color: var(--steel); margin-bottom: 14px; }
.figures strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-stretch: 88%; color: var(--ink); line-height: 1.1; }
.figures span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div:nth-child(3) { border-left: 0; }
  .figures strong { font-size: 1.45rem; }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split video, .split img { width: 100%; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 18px; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a:hover { color: var(--steel); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.link-row-center { justify-content: center; }

/* Diagnostic band */
.band { background: var(--steel); color: var(--white); padding: 56px 0; }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band h2 { color: var(--white); margin-bottom: 0.3em; }
.band p { margin: 0; color: #e2e9f0; }
.band small { display: block; margin-top: 10px; color: #c9d5e1; }

/* Courses (training page) */
.picker { margin: 8px 0 56px; }
.picker h2 { font-size: 1.35rem; }
.picker ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.picker li { border-left: 1px solid var(--rule); }
.picker li:first-child { border-left: 0; }
.picker a { display: block; padding: 16px 18px 18px; text-decoration: none; color: var(--text); height: 100%; }
.picker a:hover { background: var(--paper); }
.picker strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.picker span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .picker ul { grid-template-columns: 1fr 1fr; }
  .picker li:nth-child(3) { border-left: 0; }
  .picker li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .picker ul { grid-template-columns: 1fr; }
  .picker li { border-left: 0; border-top: 1px solid var(--rule); }
}

.course { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--rule); scroll-margin-top: 100px; }
.course-card img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(23,43,69,0.16); }
.course h2 { font-size: 1.75rem; margin-bottom: 0.3em; }
.course h2 a { color: var(--ink); text-decoration: none; }
.course h2 a:hover { color: var(--steel); }
.course .tagline { font-size: 1.15rem; color: var(--steel); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 20px 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.facts div { padding: 10px 16px; border-left: 1px solid var(--rule); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 0.82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.course-price { margin: 0 0 4px; }
.course-price strong { font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); }
.course-price span { font-size: 0.92rem; color: var(--muted); }
.course .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 960px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) { .course { grid-template-columns: 1fr; gap: 24px; } }

.feature-note { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; }
@media (max-width: 700px) { .feature-note { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter-embed { display: flex; justify-content: center; }
.newsletter-embed iframe { width: 480px; max-width: 100%; height: 320px; border: 1px solid #eee; background: #fff; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #aebccc; padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #d3dce6; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-base { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #d3dce6; cursor: pointer; }
.link-button:hover { color: var(--amber); }
/* Cookie banner styles live in assets/js/consent.js */

/* Coaching page */
.coach-intro { align-items: center; }
.coach-photo { margin: 0; }
.coach-photo img { width: 100%; max-width: 440px; margin: 0 auto; border-radius: var(--radius); }
.coach-photo figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.plan {
  background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--steel);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
}
.plan-label { margin: 0 0 6px; font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-light); }
.plan h3 { font-size: 1.6rem; margin-bottom: 0.4em; }
.plan h3 a { color: var(--ink); text-decoration: none; }
.plan h3 a:hover { color: var(--steel); }
.plan-lead { font-size: 1.1rem; color: var(--steel); font-weight: 600; }
.plan-for { color: var(--muted); font-size: 0.97rem; }
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px solid var(--rule); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 11px; height: 6px;
  border-left: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg);
}
.plan-facts { margin: 0 0 18px; background: var(--paper); padding: 12px 16px; border-radius: var(--radius); }
.plan-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.plan-facts dt { color: var(--muted); }
.plan-facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.plan-price { margin-top: auto; padding-top: 14px; border-top: 2px solid var(--ink); }
.plan-price strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); }
.plan-price p { margin: 4px 0 0; font-size: 0.92rem; color: var(--muted); }
.plan .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan { padding: 24px; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: none; }
.steps li { border-top: 1px solid var(--rule); padding-top: 22px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Consulting page */
.rounded { width: 100%; border-radius: var(--radius); }
.split-top { align-items: start; }
@media (min-width: 861px) { .split-reverse > :first-child { order: 0; } }
.tool-tags { list-style: none; margin: 4px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tags li { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }
.analysis-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.analysis-list li { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.analysis-list strong { font-family: var(--font-head); color: var(--ink); }
.analysis-list span { color: var(--muted); }
@media (max-width: 560px) { .analysis-list li { grid-template-columns: 1fr; gap: 2px; } }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why-item { border-top: 3px solid var(--steel); padding-top: 18px; }
.why-item h3 { font-size: 1.15rem; }
.why-item p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.note-box { margin: 36px 0 0; padding: 16px 20px; background: var(--paper); border-left: 3px solid var(--amber); }

.brand-logo { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.brand-line { font-size: 1.1rem; color: var(--steel); border-left: 3px solid var(--amber); padding-left: 14px; }
.offer { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.offer-head h2 { margin-bottom: 0.4em; }
.offer-head .btn { margin-top: 8px; }
.offer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.offer-cols h3 { font-size: 1.1rem; margin-bottom: 0.5em; }
@media (max-width: 960px) { .offer { grid-template-columns: 1fr; padding: 26px; } }
@media (max-width: 600px) { .offer-cols { grid-template-columns: 1fr; } }
.offer-price { margin: 4px 0 16px; padding-top: 14px; border-top: 2px solid var(--ink); color: var(--muted); }
.offer-price strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }

/* Books */
.book-cards { display: grid; gap: 48px; }
.book-card { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding-top: 40px; border-top: 1px solid var(--rule); }
.book-card:first-child { border-top: 0; padding-top: 0; }
.book-card h2 a { color: var(--ink); text-decoration: none; }
.book-card h2 a:hover { color: var(--steel); }
.book-cover img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 14px 24px rgba(23,43,69,0.22)); }
.book-from { color: var(--muted); }
.book-from strong { color: var(--ink); font-family: var(--font-head); font-size: 1.2rem; }
.book-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.book-hero .actions-row { margin-top: 24px; }
.book-facts { margin-top: 56px; }
.book-facts strong { font-size: 1.6rem; }
@media (max-width: 860px) {
  .book-card, .book-hero { grid-template-columns: 1fr; gap: 28px; }
  .book-cover img { max-width: 260px; }
}
.signature { font-family: var(--font-head); font-weight: 600; color: var(--steel); }
.review-note { background: var(--paper); border-left: 3px solid var(--amber); padding: 26px 28px; }
.review-note h3 { font-size: 1.25rem; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.videos figure { margin: 0; }
.videos video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.videos figcaption { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.format { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--steel); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.format h3 { font-size: 1.5rem; margin-bottom: 0.2em; }
.format-price strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--ink); }
.format-price { margin-bottom: 14px; }
.format .isbn { color: var(--muted); font-size: 0.9rem; margin-top: auto; }
.format .btn { align-self: flex-start; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.guides li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--rule); }
.guides h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.guides p { margin: 0; color: var(--muted); max-width: 72ch; }
.foreword { max-width: 760px; margin: 0 auto; text-align: center; }
section[id], [id].offer { scroll-margin-top: 96px; }

/* Reviews */
.reviews { columns: 3 320px; column-gap: 24px; }
.reviews-2 { columns: 2 360px; }
.review { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 24px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 24px 20px; }
.review[hidden] { display: none; }
.section-alt .review { border-color: transparent; }
.review blockquote { margin: 0 0 18px; padding: 0; position: relative; }
.review blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 3rem; line-height: 0.6; color: var(--amber); margin-bottom: 10px; }
.review blockquote p { margin: 0 0 0.8em; font-size: 0.98rem; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding-top: 14px; }
.review figcaption strong { display: block; color: var(--ink); font-family: var(--font-head); }
.review-role { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper); }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--steel); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; color: var(--steel); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { font: 600 0.95rem var(--font-head); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer; }
.filter-btn:hover { border-color: var(--steel); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature { border: 1px solid var(--rule); border-left: 4px solid var(--steel); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; }
.feature h2 { font-size: 1.3rem; }
.feature .actions-row { margin-top: auto; padding-top: 6px; }
.feature-outlet { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--steel); margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.feature-outlet span { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hub-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--rule); border-top: 4px solid var(--steel); border-radius: var(--radius); padding: 28px; transition: border-color 0.15s, box-shadow 0.15s; }
.hub-card:hover { border-top-color: var(--amber); box-shadow: 0 8px 24px rgba(23,43,69,0.1); color: var(--text); }
.hub-card h2 { font-size: 1.5rem; }
.hub-card p { color: var(--muted); }
.hub-more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--steel); }
.hub-more::after { content: " \2192"; }
@media (max-width: 860px) { .hub { grid-template-columns: 1fr; } }

/* Review carousel (horizontal) */
.carousel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.carousel-arrows { display: flex; gap: 8px; }
.pager-status { color: var(--muted); font-size: 0.93rem; margin: 0; min-height: 1.4em; }
.pager-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: 600 1.2rem var(--font-head); cursor: pointer; }
.pager-btn:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.review-carousel .reviews {
  --per: 5; --gap: 20px;
  columns: auto; display: flex; gap: var(--gap); align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 12px; scrollbar-width: thin;
}
.review-carousel .review {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column;
}
.review-carousel .review[hidden] { display: none; }
.review-carousel .review blockquote { max-height: 13em; overflow: hidden; position: relative; margin-bottom: 8px; }
.review-carousel .review.is-clipped blockquote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255,255,255,0), var(--white)); pointer-events: none; }
.review-carousel .review.is-open blockquote { max-height: none; }
.review-carousel .review.is-open blockquote::after { display: none; }
.read-more { align-self: flex-start; background: none; border: 0; padding: 0; margin: 0 0 14px; font: 600 0.92rem var(--font-head); color: var(--steel); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.read-more[hidden] { display: none; }
.review-carousel .review figcaption { margin-top: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
.review-carousel .review blockquote p { font-size: 0.95rem; }
.review-carousel .review-role { font-size: 0.82rem; }
@media (max-width: 1180px) { .review-carousel .reviews { --per: 3; } }
@media (max-width: 860px) { .review-carousel .reviews { --per: 2; } }
@media (max-width: 600px) { .review-carousel .reviews { --per: 1; } }

/* Free resources */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.jump a { font: 600 0.93rem var(--font-head); color: var(--ink); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; }
.jump a:hover { border-color: var(--steel); color: var(--steel); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.res-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); border: 1px solid var(--rule); border-top: 4px solid var(--steel); border-radius: var(--radius); padding: 22px; min-height: 190px; transition: border-color 0.15s, box-shadow 0.15s; }
.res-card:hover { border-top-color: var(--amber); box-shadow: 0 8px 24px rgba(23,43,69,0.1); color: var(--text); }
.res-card h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.res-type { font: 700 0.75rem var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-light); }
.res-format { color: var(--muted); font-size: 0.9rem; }
.res-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font: 600 0.95rem var(--font-head); color: var(--steel); }
.bb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.bb-list a { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 600; }
.bb-list a:hover { border-color: var(--steel); color: var(--steel); }
.bb-list a svg { margin-left: auto; color: var(--steel); flex-shrink: 0; }
.bb-num { font-family: var(--font-head); color: var(--steel-light); min-width: 2.2em; }
.license { margin: 0; }
.license h3 { font-size: 1.15rem; }
.license details { margin-top: 12px; }
.license summary { cursor: pointer; font-weight: 600; color: var(--steel); }
.license details p { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.dl-title { margin-top: 48px; font-size: 1.4rem; }
.dl-note { color: var(--muted); font-size: 0.93rem; }
.dl-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.dl-row strong { display: block; font-family: var(--font-head); color: var(--ink); }
.dl-row span { color: var(--muted); font-size: 0.9rem; }
.btn-dl { display: inline-flex; align-items: center; gap: 8px; padding: 0.6em 1.1em; white-space: nowrap; }
@media (max-width: 600px) { .dl-row { flex-direction: column; align-items: flex-start; } }

/* Contact */
.call-offer { grid-template-columns: 0.9fr 1.1fr; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.lang-note { color: var(--muted); font-size: 0.95rem; }
.lang { display: inline-block; font: 700 0.72rem var(--font-head); color: var(--white); background: var(--steel); border-radius: 3px; padding: 2px 6px; margin-right: 6px; vertical-align: 1px; }
.contact-card { margin-top: 24px; border-left: 3px solid var(--amber); background: var(--paper); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.contact-card strong { font-family: var(--font-head); color: var(--ink); font-size: 1.1rem; }
.contact-card span { color: var(--muted); font-size: 0.93rem; }
.contact-card a { margin-top: 4px; font-weight: 600; }
.contact-form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--steel); border-radius: var(--radius); padding: 28px; }
.contact-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
.contact-form label { display: grid; gap: 6px; font: 600 0.93rem var(--font-head); color: var(--ink); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  font: 400 1rem var(--font-body); color: var(--text); padding: 11px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; font: 400 0.93rem var(--font-body); color: var(--text); }
.contact-form .check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #b3261e; }
.form-off { background: var(--paper); border-left: 3px solid var(--amber); padding: 16px 20px; }
.newsletter-page { align-items: start; }

/* Newsletter subscribe card (replaces the Substack embed) */
.subscribe-card { background: var(--ink); color: #dbe3ec; border-radius: var(--radius); padding: 32px; border-top: 4px solid var(--amber); }
.subscribe-card .plan-label { color: var(--amber); }
.subscribe-name { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--white); margin: 0 0 10px; line-height: 1.1; }
.subscribe-card p { margin-bottom: 1.2em; }
.subscribe-card .subscribe-name { margin-bottom: 10px; } .subscribe-card .plan-label { margin-bottom: 6px; }
.field-error { color: #b3261e; font: 400 0.88rem var(--font-body); min-height: 0; }
.field-error:empty { display: none; }
.contact-form [aria-invalid="true"] { border-color: #b3261e; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 104px; border-left: 3px solid var(--steel); padding: 4px 0 4px 18px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc li { margin-bottom: 6px; font-size: 0.93rem; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--steel); text-decoration: underline; }
.legal-body { max-width: 72ch; }
.legal-intro { font-size: 1.1rem; color: var(--steel); }
.legal-section { padding-top: 8px; margin-bottom: 28px; }
.legal-section h2 { font-size: 1.45rem; padding-top: 18px; border-top: 1px solid var(--rule); }
.legal-section h3 { font-size: 1.1rem; margin-top: 1.2em; }
.legal-section ul { padding-left: 1.3em; }
.legal-section li { margin-bottom: 6px; }
.legal-table { overflow-x: auto; margin: 0 0 1em; }
.legal-table table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.legal-table th { font-family: var(--font-head); color: var(--ink); border-bottom: 2px solid var(--ink); }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal-toc { position: static; } }

/* Services overview */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-top: 4px solid var(--steel); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.svc-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.svc-body h2 { font-size: 1.45rem; margin-bottom: 0.4em; }
.svc-body h2 a { color: var(--ink); text-decoration: none; }
.svc-body h2 a:hover { color: var(--steel); }
.svc-body > p:not(.plan-label) { color: var(--muted); }
.svc-links { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--rule); }
.svc-links li { border-bottom: 1px solid var(--rule); }
.svc-links a { display: block; padding: 9px 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.svc-links a::after { content: " \2192"; color: var(--steel); }
.svc-links a:hover { color: var(--steel); }
.svc-body .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* Justified text on larger screens only (tablets and desktops). Applied to long, left-aligned
   reading text in wide columns; never to headings, centered text, lists, buttons, or narrow cards. */
@media (min-width: 768px) {
  .prose p, .section-head p, .legal-body p, .legal-section li,
  .course p:not(.tagline), .plan-for, .feature p, .review-note p, .guides p,
  .offer .prose p, .spec .price p, .license p, .newsletter .prose p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Footer locations line */
.footer-copy { display: flex; flex-direction: column; gap: 4px; }
.footer-places { color: #8fa3b8; font-size: 0.9rem; letter-spacing: 0.02em; display: inline-flex; align-items: center; flex-wrap: wrap; }
.footer-places i { font-style: normal; margin: 0 6px; color: var(--amber); }
.footer-places b { display: inline-block; width: 1px; height: 0.9em; background: rgba(255,255,255,0.3); margin: 0 12px; }
.footer-base { align-items: flex-start; }
.footer-tm { color: #8fa3b8; font-size: 0.85rem; }
.new-flag { display: inline-block; margin-left: 8px; vertical-align: 2px; font: 800 .68rem/1 var(--font-head); font-style: normal;
  letter-spacing: .06em; text-transform: uppercase; color: #172b45; background: #e3a018; padding: 4px 7px; border-radius: 999px; }
