/* =========================================================
   QUAD — Brand Website Stylesheet
   Direction: Milestone — bold red, clean cards, corporate B2B
   Positioning: Moodle-first mobile companion
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --red:           #E63027;
  --red-deep:      #C42820;
  --red-darker:    #9C1F1A;
  --red-tint:      #FBE9E8;
  --red-tint-strong: #F4CDCB;

  /* Neutrals */
  --ink:           #1A1A1A;
  --charcoal:      #2A2A2A;
  --slate:         #4A4A4A;
  --slate-light:   #6B6B6B;
  --muted:         #8A8A8A;
  --line:          #E5E5E5;
  --line-strong:   #D1D1D1;
  --bg:            #FFFFFF;
  --bg-alt:        #F8F8F8;
  --bg-dark:       #1A1A1A;

  /* Type */
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Spacing */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px;
  --s-4: 32px; --s-5: 48px; --s-6: 64px;
  --s-7: 96px; --s-8: 128px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 760px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Base ---------- */
html { font-family: var(--font-body); color: var(--ink); background: var(--bg); }
body { font-size: 16px; line-height: 1.65; font-weight: 400; overflow-x: hidden; }
::selection { background: var(--red); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 5.5vw, 64px); line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
h4 { font-size: 19px; line-height: 1.25; }

p { margin: 0; }
p + p { margin-top: var(--s-2); }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
}

.dim {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--slate-light);
}

a.text-link {
  color: var(--red);
  font-weight: 600;
  border-bottom: 1.5px solid transparent;
  transition: border-color 150ms var(--ease);
}
a.text-link:hover { border-bottom-color: var(--red); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.container--narrow { max-width: var(--container-narrow); }

@media (min-width: 768px) {
  .container { padding: 0 var(--s-4); }
}

.section { padding: var(--s-7) 0; }
.section--lg { padding: var(--s-8) 0; }
.section--sm { padding: var(--s-5) 0; }

@media (max-width: 767px) {
  .section { padding: var(--s-6) 0; }
  .section--lg { padding: var(--s-7) 0; }
}

.section-head { margin-bottom: var(--s-5); max-width: 780px; }
.section-head .eyebrow { margin-bottom: var(--s-2); }
.section-head h2 { margin-bottom: var(--s-2); }

/* ---------- Backgrounds ---------- */
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark .lede { color: rgba(255, 255, 255, 0.78); }
.bg-dark .eyebrow { color: #FF6B62; }
.bg-dark .dim { color: rgba(255, 255, 255, 0.55); }

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--ink);
  color: #fff;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.utility-bar__left { color: rgba(255, 255, 255, 0.75); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.utility-bar__right { display: flex; gap: var(--s-3); font-size: 13px; }
.utility-bar__right a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 6px; transition: color 150ms; }
.utility-bar__right a:hover { color: var(--red); color: #FF6B62; }
.utility-bar svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .utility-bar__left { font-size: 11px; }
  .utility-bar__right a span { display: none; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
}
.nav__brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--slate-light);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
  line-height: 1;
}
.nav__links {
  display: none;
  gap: var(--s-4);
  align-items: center;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 8px 0;
  transition: color 150ms var(--ease);
}
.nav__links a:hover { color: var(--red); }
.nav__links a[aria-current="page"] {
  color: var(--red);
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--red);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: var(--s-3);
  transform: translateX(100%);
  transition: transform 300ms var(--ease-out);
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  margin-bottom: var(--s-3);
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu__links a {
  display: block;
  padding: var(--s-2) 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu__cta { margin-top: auto; padding: var(--s-3) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  border-radius: var(--radius-s);
  transition: all 180ms var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(230, 48, 39, 0.4);
}
.btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: var(--charcoal);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--red);
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
}
.btn--ghost:hover { color: var(--red-deep); border-bottom-color: var(--red-deep); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn__arrow { transition: transform 180ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: var(--s-7) 0 var(--s-6); position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 960px) {
  .hero { padding: var(--s-8) 0 var(--s-7); }
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: var(--s-6); }
}
.hero__eyebrow { margin-bottom: var(--s-2); }
.hero__title { margin-bottom: var(--s-3); max-width: 16ch; }
.hero__title em {
  font-style: normal;
  color: var(--red);
}
.hero__lede { margin-bottom: var(--s-4); }
.hero__ctas {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.hero__trust {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  margin-top: var(--s-4);
}
.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
}
.hero__trust-item::before {
  content: "✓";
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
}

/* Hero illustration — phone */
.hero__visual { position: relative; }
.phone-hero {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}
.phone-hero__frame {
  background: var(--ink);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25), 0 8px 24px -8px rgba(0,0,0,0.15);
  position: relative;
}
.phone-hero__frame::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: var(--ink);
  border-radius: 12px;
  z-index: 2;
}
.phone-hero__screen {
  background: #fff;
  border-radius: 24px;
  padding: 60px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 580px;
}
.phone-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.phone-hero__greet {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--slate);
}
.phone-hero__greet strong { color: var(--ink); display: block; font-size: 17px; font-weight: 800; margin-top: 2px; }
.phone-hero__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
}

.phone-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 14px;
}
.phone-card--accent {
  background: var(--red);
  color: #fff;
}
.phone-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.phone-card--accent .phone-card__label { color: rgba(255, 255, 255, 0.85); }
.phone-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.phone-card--accent .phone-card__title { color: #fff; }
.phone-card__meta {
  font-size: 12px;
  color: var(--slate-light);
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.phone-card--accent .phone-card__meta { color: rgba(255, 255, 255, 0.85); }
.phone-card__progress {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.phone-card__progress-bar {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}
.phone-card--accent .phone-card__progress { background: rgba(255, 255, 255, 0.25); }
.phone-card--accent .phone-card__progress-bar { background: #fff; }

.phone-tabs {
  display: flex;
  gap: 12px;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.phone-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 0;
}
.phone-tab--active { color: var(--red); }
.phone-tab svg { width: 18px; height: 18px; }

/* "Powered by Moodle" badge floating beside phone */
.moodle-badge {
  position: absolute;
  top: 60px;
  right: -10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 10px 14px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.moodle-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ECC71;
  flex-shrink: 0;
}
.moodle-badge__text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.moodle-badge__text strong { color: var(--ink); font-weight: 700; }

.moodle-badge--secondary {
  position: absolute;
  bottom: 80px;
  left: -20px;
  top: auto;
  right: auto;
}
@media (max-width: 600px) {
  .moodle-badge, .moodle-badge--secondary { display: none; }
}

/* ---------- Inline stat bar ---------- */
.stat-bar {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 768px) { .stat-bar__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: left;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--red);
  margin-bottom: 6px;
}
.stat__label {
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Feature tile grid ---------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: var(--s-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: all 200ms var(--ease);
  position: relative;
}
.feature:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(230, 48, 39, 0.25);
}
.feature__icon {
  width: 44px;
  height: 44px;
  background: var(--red-tint);
  color: var(--red);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.feature p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
}
.feature__link {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* On dark sections */
.bg-dark .feature {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.bg-dark .feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--red);
}
.bg-dark .feature h3 { color: #fff; }
.bg-dark .feature p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Two-card "what we deliver" ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }

.duo-card {
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  position: relative;
  overflow: hidden;
}
.duo-card__badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: var(--s-2);
}
.duo-card--secondary .duo-card__badge {
  background: var(--ink);
}
.duo-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: var(--s-2);
}
.duo-card p {
  color: var(--slate);
  margin-bottom: var(--s-3);
}
.duo-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-3) 0;
}
.duo-card__list li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.duo-card__list li:last-child { border-bottom: 0; }
.duo-card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--red);
  font-weight: 700;
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process { grid-template-columns: repeat(4, 1fr); } }

.step {
  padding: var(--s-3);
  position: relative;
}
.step__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-2);
  opacity: 0.9;
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.55;
}

/* ---------- Why Quad 3-column ---------- */
.why {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 800px) { .why { grid-template-columns: repeat(3, 1fr); } }
.why-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.why-item p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item:hover summary { color: var(--red); }
.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  color: var(--red);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-item__icon::before { top: 50%; left: 4px; right: 4px; height: 2px; transform: translateY(-50%); }
.faq-item__icon::after { left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); transition: transform 200ms var(--ease); }
.faq-item[open] .faq-item__icon::after { transform: translateX(-50%) scaleY(0); }
.faq-item__body {
  padding-bottom: var(--s-3);
  color: var(--slate);
  max-width: 75ch;
  line-height: 1.65;
}

/* ---------- Modules preview cards ---------- */
.modules-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 800px) { .modules-preview { grid-template-columns: repeat(3, 1fr); } }
.module-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: all 200ms var(--ease);
  display: flex;
  flex-direction: column;
}
.module-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -16px rgba(230, 48, 39, 0.2);
}
.module-card__top {
  padding: var(--s-3);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.module-card__core {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.module-card__addon {
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.module-card__body {
  padding: var(--s-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.module-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.module-card p {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: var(--s-3);
  flex: 1;
}
.module-card__link {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Final CTA ---------- */
.cta-block {
  background: var(--red);
  color: #fff;
  padding: var(--s-7) 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: var(--red-darker);
  border-radius: 50%;
  opacity: 0.4;
}
.cta-block .container { position: relative; }
.cta-block h2 {
  color: #fff;
  margin-bottom: var(--s-2);
  max-width: 22ch;
}
.cta-block .lede {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--s-4);
}
.cta-block .btn--primary {
  background: #fff;
  color: var(--red);
}
.cta-block .btn--primary:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--s-7) 0 var(--s-3);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-1);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 38ch;
  line-height: 1.6;
}
.footer-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}
.footer-contact strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-contact a:hover { color: #FF6B62; }

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6B62;
  margin-bottom: var(--s-2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: color 150ms var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.65); margin-right: var(--s-2); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--red);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-s);
  z-index: 1000;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* =========================================================
   Extensions for module/article/blog pages
   ========================================================= */

/* ---------- Page hero (lighter than home hero, single-col) ---------- */
.page-hero {
  padding: var(--s-7) 0 var(--s-5);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero__crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  margin-bottom: var(--s-2);
  text-transform: uppercase;
}
.page-hero__crumbs a { color: var(--slate); }
.page-hero__crumbs a:hover { color: var(--red); }
.page-hero__crumbs span { margin: 0 8px; opacity: 0.5; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 22ch;
  margin-bottom: var(--s-3);
}
.page-hero h1 em { font-style: normal; color: var(--red); }
.page-hero .lede { max-width: 56ch; }

/* ---------- Spec table (module pages) ---------- */
.spec-table {
  border-top: 1px solid var(--line);
  margin-top: var(--s-4);
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .spec-row { grid-template-columns: 220px 1fr; gap: var(--s-3); align-items: baseline; }
}
.spec-row__key {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.spec-row__val {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.65;
}
.bg-dark .spec-table { border-top-color: rgba(255, 255, 255, 0.15); }
.bg-dark .spec-row { border-bottom-color: rgba(255, 255, 255, 0.1); }
.bg-dark .spec-row__key { color: #FF6B62; }
.bg-dark .spec-row__val { color: rgba(255, 255, 255, 0.85); }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s-3); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2);
}
@media (min-width: 600px) { .field--row { grid-template-columns: 1fr 1fr; gap: var(--s-3); } }

/* ---------- Two-col with sticky aside ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 5fr 4fr; gap: var(--s-6); align-items: start; }
  .two-col--reverse > *:first-child { order: 2; }
}
.sticky-aside { position: sticky; top: 100px; }

/* ---------- Placeholder/legal banner ---------- */
.banner-warn {
  background: #FFF7E6;
  border: 1px solid #F0B14A;
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin-bottom: var(--s-4);
}
.banner-warn__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B5A0F;
  margin-bottom: 6px;
  font-weight: 700;
}
.banner-warn p {
  font-size: 14px;
  color: var(--charcoal);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Blog index cards ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  padding: var(--s-4);
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .blog-featured { grid-template-columns: 5fr 4fr; gap: var(--s-5); padding: var(--s-5); align-items: center; }
}
.blog-featured__visual {
  background: var(--red);
  border-radius: var(--radius-m);
  padding: var(--s-5) var(--s-4);
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.blog-featured__visual::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--red-darker);
  border-radius: 50%;
  opacity: 0.5;
}
.blog-featured__visual-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  position: relative;
}
.blog-featured__body { padding: 0; }
.blog-featured__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.blog-featured__body h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  margin-bottom: var(--s-2);
}
.blog-featured__meta {
  font-size: 13px;
  color: var(--slate-light);
  margin-top: var(--s-2);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr 1fr; } }

.blog-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: all 200ms var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(230, 48, 39, 0.18);
}
.blog-card__visual {
  background: var(--ink);
  padding: var(--s-3);
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}
.blog-card__visual--red { background: var(--red); }
.blog-card__visual--charcoal { background: var(--charcoal); }
.blog-card__visual--slate { background: var(--slate); }
.blog-card__visual-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.blog-card__visual::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
.blog-card__body {
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.blog-card p {
  font-size: 14px;
  color: var(--slate);
  flex: 1;
  margin-bottom: var(--s-2);
}
.blog-card__meta {
  font-size: 12px;
  color: var(--slate-light);
}

/* ---------- Article (blog post body) ---------- */
.article {
  max-width: 720px;
  margin: 0 auto;
}
.article-meta {
  font-size: 13px;
  color: var(--slate-light);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-2);
}
.article-meta span + span::before { content: " · "; margin: 0 4px; color: var(--line-strong); }
.article h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: var(--s-3);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.article .lede {
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: var(--s-5);
  line-height: 1.5;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.article-prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
}
.article-prose > * + * { margin-top: 1.25em; }
.article-prose h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 2em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.article-prose h3 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 1.6em;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.article-prose p { color: var(--charcoal); }
.article-prose ul, .article-prose ol {
  padding-left: 1.5em;
  list-style: revert;
}
.article-prose li { margin-top: 0.4em; }
.article-prose blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 0 8px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--charcoal);
  font-size: 19px;
  line-height: 1.5;
}
.article-prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--red);
}
.article-prose pre {
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  overflow-x: auto;
  font-size: 14px;
}
.article-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.article-prose a {
  color: var(--red);
  border-bottom: 1px solid var(--red);
}
.article-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.article-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.article-back {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
}

/* ---------- 404 ---------- */
.error-block {
  text-align: center;
  padding: var(--s-8) 0;
}
.error-block__num {
  font-family: var(--font-display);
  font-size: clamp(96px, 16vw, 200px);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--s-3);
}
.error-block h1 {
  margin-bottom: var(--s-3);
}
.error-block .lede {
  margin: 0 auto var(--s-4);
}
.error-block__ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
