/* ============================================
   aCloud — Master Stylesheet
   Academic Management SaaS for School Trusts
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,800;0,9..144,900;1,9..144,400;1,9..144,800&family=Manrope:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --navy: #0A1F44;
  --navy-deep: #050F22;
  --navy-soft: #1B3160;
  --red: #E63946;
  --red-dark: #C8102E;
  --red-soft: #F8D7DA;
  --paper: #FFFFFF;
  --paper-warm: #F5F7FB;
  --ink: #0A0A0A;
  --grey-900: #1F1F1F;
  --grey-700: #4A4A4A;
  --grey-500: #8A8A8A;
  --grey-300: #D6D6D2;
  --grey-100: #EEEDE8;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --container: 1280px;
  --container-narrow: 920px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 68, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.15; }
h4 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
h5 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }

.italic-accent { font-style: italic; font-weight: 400; }
.underline-red { display: inline; background-image: linear-gradient(var(--red), var(--red)); background-position: 0 92%; background-repeat: no-repeat; background-size: 100% 6px; padding: 0 0.05em; }
.underline-yellow { display: inline; background-image: linear-gradient(var(--red), var(--red)); background-position: 0 92%; background-repeat: no-repeat; background-size: 100% 6px; padding: 0 0.05em; }
.text-red { color: var(--red); }
.text-navy { color: var(--navy); }
.text-yellow { color: var(--red); }  /* legacy alias — yellow removed */
.text-paper { color: var(--paper); }
.text-muted { color: var(--grey-700); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
}

.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--grey-700);
  font-weight: 400;
  max-width: 60ch;
}

.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container, .container-narrow { padding: 0 20px; } }

section { padding: clamp(60px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

/* ---------- Top bar (announcement) ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  padding: 8px 0;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.topbar strong { color: var(--red); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--grey-300);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo-dot { color: var(--red); }
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-500);
  margin-left: 8px;
  font-weight: 400;
  align-self: center;
  display: inline-block;
}

.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.nav-links a { color: var(--ink); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--red); }
.nav-dropdown { position: relative; }
.nav-dropdown > button { font-size: inherit; font-weight: inherit; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > button::after { content: "↓"; font-size: 0.7em; transition: transform 0.2s; }
.nav-dropdown:hover > button::after { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-top: 3px solid var(--red);
  min-width: 580px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-top: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  padding: 8px 10px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sm);
}
.nav-dropdown-menu a:hover { background: var(--paper-warm); color: var(--navy); }
.nav-dropdown-menu a span { font-size: 0.72rem; color: var(--grey-500); font-weight: 400; margin-top: 2px; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.mobile-toggle span { display: block; height: 2px; background: var(--ink); transition: 0.2s; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 24px 32px 40px;
    border-bottom: 1px solid var(--grey-300);
    align-items: flex-start;
    gap: 18px;
  }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: none; padding: 8px 0 0 16px; margin: 0; }
  .nav-dropdown { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--navy); color: var(--paper); }
.btn-secondary:hover { background: var(--navy-deep); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); padding: 14px 0; }
.btn-ghost::after { content: "→"; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-yellow { background: var(--red); color: var(--paper); }
.btn-yellow:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-lg { padding: 18px 32px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 140px) 0 clamp(60px, 8vw, 120px);
  overflow: hidden;
  background: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(230, 57, 70, 0.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--red); }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.hero-meta-stat .number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.hero-meta-stat .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--grey-700);
  margin-top: 6px;
}

/* ---------- Strip / Marquee ---------- */
.strip {
  background: var(--navy);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.strip-track {
  display: flex;
  gap: 60px;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.strip-track span { display: inline-flex; align-items: center; gap: 60px; }
.strip-track .dot { width: 10px; height: 10px; background: var(--red); border-radius: 50%; display: inline-block; }
.strip-track em { font-style: italic; color: var(--red); font-weight: 400; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards (modules) ---------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.module-card {
  background: var(--paper);
  padding: 32px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}
.module-card:hover { background: var(--navy); color: var(--paper); }
.module-card:hover .module-num { color: var(--red); }
.module-card:hover .module-arrow { transform: translateX(6px); color: var(--red); }
.module-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.module-card h3 { font-size: 1.6rem; }
.module-card p { font-size: 0.92rem; color: var(--grey-700); flex-grow: 1; }
.module-card:hover p { color: var(--grey-300); }
.module-arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  align-self: flex-start;
  transition: transform 0.2s;
}

/* ---------- Pillars / Features ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.pillar { display: flex; flex-direction: column; gap: 16px; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.pillar h3 { font-size: 1.5rem; }
.pillar p { color: var(--grey-700); font-size: 0.95rem; }

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
}
.split-2-3 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Dark sections ---------- */
.dark-section {
  background: var(--navy);
  color: var(--paper);
}
.dark-section .text-muted { color: var(--grey-300); }
.dark-section .eyebrow { color: var(--red); }
.dark-section .eyebrow::before { background: var(--red); }
.dark-section .lead { color: var(--grey-300); }
.dark-section a { color: var(--red); }

/* ---------- Feature list ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  margin-top: 40px;
}
.feature-item {
  padding: 28px 0 28px 28px;
  border-left: 2px solid var(--red);
  margin-left: 0;
  margin-bottom: -1px;
}
.feature-item h4 { margin-bottom: 8px; font-size: 1.05rem; color: var(--navy); }
.feature-item p { font-size: 0.9rem; color: var(--grey-700); }

.dark-section .feature-item { border-left-color: var(--red); }
.dark-section .feature-item h4 { color: var(--paper); }
.dark-section .feature-item p { color: var(--grey-300); }

/* Dense feature list */
.feature-dense {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  border-top: 1px solid var(--grey-300);
  margin-top: 40px;
}
.feature-dense > div {
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--grey-300);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-dense .num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding-top: 4px;
  min-width: 32px;
}
.feature-dense h5 { color: var(--navy); margin-bottom: 4px; }
.feature-dense p { font-size: 0.85rem; color: var(--grey-700); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--ink); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  gap: 24px;
}
.faq-q::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--red);
  font-family: var(--font-sans);
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner {
  padding: 0 0 32px;
  font-size: 1.05rem;
  color: var(--grey-700);
  max-width: 75ch;
  line-height: 1.65;
}
.faq-a-inner p + p { margin-top: 12px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--ink);
  margin-top: 60px;
}
.tier {
  padding: 40px 32px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper);
}
.tier:last-child { border-right: none; }
.tier.featured { background: var(--navy); color: var(--paper); }
.tier.featured h3 { color: var(--paper); }
.tier.featured .tier-price { color: var(--red); }
.tier.featured .tier-features li { color: var(--grey-300); }
.tier.featured .tier-features li::before { color: var(--red); }
.tier-name { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--red); }
.tier h3 { font-size: 1.6rem; color: var(--navy); }
.tier-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.tier-price small { font-size: 0.7rem; font-family: var(--font-mono); color: var(--grey-500); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 400; display: block; margin-top: 4px; }
.tier-features { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tier-features li { font-size: 0.9rem; color: var(--grey-700); padding-left: 22px; position: relative; }
.tier-features li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.tier .btn { margin-top: auto; justify-content: center; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } .tier { border-right: none; border-bottom: 1px solid var(--ink); } .tier:last-child { border-bottom: none; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: var(--paper); position: relative; }
.cta-banner h2 em { color: var(--red); font-style: italic; font-weight: 400; }
.cta-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { color: var(--paper); }
.footer-brand p { color: var(--grey-300); font-size: 0.9rem; margin-top: 16px; max-width: 36ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--grey-300); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-500);
  letter-spacing: 0.05em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--red); }
.breadcrumb a:hover { color: var(--red-dark); }
.breadcrumb span { color: var(--grey-300); }

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--grey-300);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  border-radius: 999px;
}
.chip-red { background: var(--red); color: var(--paper); border-color: var(--red); }
.chip-yellow { background: transparent; color: var(--red); border-color: var(--red); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Quote / callout ---------- */
.callout {
  background: var(--paper-warm);
  border-left: 4px solid var(--red);
  padding: 32px 36px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.callout em { font-style: italic; font-weight: 400; }

/* ---------- AEO answer block ---------- */
.answer-block {
  background: var(--navy);
  color: var(--paper);
  padding: 40px;
  margin: 40px 0;
  border-left: 6px solid var(--red);
}
.answer-block .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.answer-block p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--grey-300);
  border-bottom: 1px solid var(--grey-300);
}
.stat-cell {
  padding: 40px 24px;
  border-right: 1px solid var(--grey-300);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-cell .number em { color: var(--red); font-style: normal; }
.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-700);
  margin-top: 10px;
}

/* ---------- Section header (centered) ---------- */
.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.section-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.section-head .eyebrow::before { display: none; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { margin: 0 auto; }

/* ---------- Mini grid (sub-modules) ---------- */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.mini-card {
  padding: 24px;
  background: var(--paper-warm);
  border-top: 3px solid var(--red);
}
.mini-card h5 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.mini-card p { font-size: 0.85rem; color: var(--grey-700); }

/* ---------- Related modules nav ---------- */
.related {
  background: var(--paper-warm);
  padding: 60px 0;
  border-top: 1px solid var(--grey-300);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.related-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--grey-300);
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card h5 { color: var(--navy); margin-bottom: 8px; }
.related-card p { font-size: 0.85rem; color: var(--grey-700); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 60px; }
.flex { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.divider {
  height: 1px;
  background: var(--ink);
  margin: 32px 0;
}
.divider-yellow { background: var(--red); height: 3px; width: 60px; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero .lead, .hero .btn { animation: fadeUp 0.7s ease-out both; }
.hero .lead { animation-delay: 0.1s; }
.hero .btn-row { animation: fadeUp 0.7s ease-out 0.2s both; }
.hero-meta { animation: fadeUp 0.7s ease-out 0.3s both; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strip-track { animation: none; }
}

/* ============================================================
   SUPPLEMENT — Homepage, Pricing, Contact, Services Index, About
   ============================================================ */

/* ---------- Hero (extended) ---------- */
.hero-text { max-width: 760px; }
.hero-aside { display: flex; flex-direction: column; gap: 24px; }
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-item strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.hero-meta-item span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-700);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { order: -1; }
}

/* ---------- Pillars (extended for h4 + .num child) ---------- */
.pillar h4 { font-size: 1.35rem; color: var(--navy); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.dark-section .pillar h4 { color: var(--paper); }
.pillar .num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dark-section .pillar .num { color: var(--red); }

/* ---------- Navy strip / marquee ---------- */
.navy-strip {
  background: var(--navy);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid var(--navy-deep);
  border-bottom: 1px solid var(--navy-deep);
}
.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  animation: marquee 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.marquee-track span:nth-child(even) { color: var(--red); font-weight: 700; }
.marquee-track span:nth-child(odd) { color: var(--paper); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Category block (homepage modules + services index) ---------- */
.cat-block { margin-top: 80px; }
.cat-block:first-child { margin-top: 40px; }
.cat-head { margin-bottom: 28px; }

/* ---------- Big editorial statement ---------- */
.big-statement {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: clamp(80px, 12vw, 160px) 0;
}
.big-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  line-height: 1.18;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.big-statement em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  display: block;
  margin-top: 16px;
}

/* ---------- Split-equal ---------- */
.split-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .split-equal { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Paper-warm section background ---------- */
section.paper-warm { background: var(--paper-warm); }

/* ---------- Stats row (new structure) ---------- */
.stats-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 56px 0;
}
.stat { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-700);
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Feature-dense extended row layout ---------- */
.feature-dense-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 20px 24px 20px 0;
  border-bottom: 1px solid var(--grey-300);
  align-items: start;
}
.feature-dense-row > .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  padding-top: 4px;
}
.feature-dense-row h5 {
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
}
.feature-dense-row p { font-size: 0.88rem; color: var(--grey-700); line-height: 1.55; }

/* ---------- Pricing (new card-based layout) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1.5px solid var(--ink);
}
.price-card {
  padding: 40px 32px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  position: relative;
}
.price-card:last-child { border-right: none; }
.price-tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 16px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.price-cur { font-size: 0.6em; vertical-align: top; margin-right: 4px; font-weight: 500; }
.price-suf {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
  margin-top: 8px;
  line-height: 1.3;
}
.price-blurb {
  font-size: 0.95rem;
  color: var(--grey-700);
  margin: 16px 0 24px 0;
  font-style: italic;
  line-height: 1.5;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}
.price-features li {
  font-size: 0.88rem;
  color: var(--grey-700);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.price-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.price-featured { background: var(--navy); color: var(--paper); }
.price-featured .price-tier { color: var(--red); }
.price-featured .price-amount { color: var(--paper); }
.price-featured .price-cur { color: var(--red); }
.price-featured .price-suf { color: var(--grey-300); }
.price-featured .price-blurb { color: var(--grey-300); }
.price-featured .price-features li { color: var(--grey-300); }
.price-featured .price-features li::before { color: var(--red); }
.price-badge {
  position: absolute;
  top: -1.5px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 8px 14px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .price-card { border-right: none; border-bottom: 1px solid var(--ink); }
  .price-card:nth-child(odd) { border-right: 1px solid var(--ink); }
}
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { border-right: none !important; border-bottom: 1px solid var(--ink); }
  .price-card:last-child { border-bottom: none; }
}

/* ---------- Contact form ---------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
  padding: 32px;
  border: 1.5px solid var(--ink);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
}
.form-row input, .form-row select, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s;
  border-radius: 0;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}
.form-row textarea { resize: vertical; font-family: var(--font-body); min-height: 100px; }

/* ---------- Directory grid (services index) ---------- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.dir-card {
  padding: 32px 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.dir-card:hover { background: var(--navy); color: var(--paper); }
.dir-card:hover h3,
.dir-card:hover .dir-tagline,
.dir-card:hover .dir-preview { color: var(--paper); }
.dir-card:hover .dir-eyebrow { color: var(--red); }
.dir-card:hover .dir-cta { color: var(--red); transform: translateX(4px); }
.dir-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--red);
}
.dir-card h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.dir-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.5;
}
.dir-preview {
  font-size: 0.82rem;
  color: var(--grey-700);
  font-family: var(--font-mono);
  line-height: 1.5;
  margin-top: 6px;
}
.dir-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-top: 12px;
  transition: transform 0.2s, color 0.2s;
  display: inline-block;
}
