/* =========================================================
   Gatekick Labs — Components
   Shared classes used by every page.
   Do not edit in page-specific CSS files.
   ========================================================= */

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
  position: relative;
  z-index: 1;
}
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }
.container--sm { max-width: var(--container-sm); }

/* ---------- Section ---------- */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section + .section { border-top: var(--hairline); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.section--flush-top { padding-top: 0; }

/* Section header: numbered + label, hairline rule underneath */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: baseline;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-6);
  border-bottom: none;
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
}
.section-head__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.section-head__title {
  grid-column: 2;
  margin-top: var(--space-3);
  max-width: 28ch;
}
.section-head__lede {
  grid-column: 2;
  margin-top: var(--space-5);
  max-width: 60ch;
  font-size: var(--text-md);
  color: var(--fg-muted);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #FFFFFF;
  --btn-border: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.9375rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition:
    transform var(--dur-2) var(--ease-out),
    background var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out);
}
.btn:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--rule-strong);
}
.btn--ghost:hover {
  --btn-bg: transparent;
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.btn--link {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--fg);
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn--link:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-raised);
  border: var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.card:hover { border-color: var(--rule-strong); }
.card__kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}
.card__body {
  color: var(--fg-muted);
  font-size: var(--text-base);
  line-height: var(--leading-prose);
}

/* ---------- Prose (long-form content) ---------- */
.prose {
  max-width: 68ch;
  font-size: var(--text-md);
  line-height: var(--leading-prose);
  color: var(--fg-muted);
}
.prose > * + * { margin-top: var(--space-5); }
.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}
.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}
.prose a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
}
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose { min-width: 0; overflow-wrap: break-word; }
.prose pre { max-width: 100%; }
.prose code { word-break: break-all; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--space-11) + 2rem);
  padding-bottom: var(--space-10);
  border-bottom: var(--hairline);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -20%;
  top: 10%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(closest-side, rgba(72, 164, 149, 0.08), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

/* Hero — interior/sub-page variant (smaller, denser) */
.hero--page {
  padding-top: calc(var(--space-9) + 2rem);
  padding-bottom: var(--space-8);
}
.hero--page::after { display: none; }
.hero--page h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 22ch;
}
.hero--page h1 em {
  color: var(--accent);
  font-style: normal;
}
.hero--page .hero__subtitle {
  max-width: 56ch;
  margin-top: var(--space-5);
  font-size: var(--text-md);
  color: var(--fg-muted);
}

.hero__meta {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.hero__meta span + span::before {
  content: "/";
  margin-right: var(--space-5);
  color: var(--rule-strong);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  padding-block: var(--space-10) var(--space-9);
  border-top: none;
  border-bottom: none;
  position: relative;
  background: var(--fg);
  color: var(--bg);
}
.cta-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
}
.cta-strip__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: inherit;
}
.cta-strip__body {
  color: inherit;
  opacity: 0.7;
  max-width: 48ch;
}
.cta-strip__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.cta-strip .btn {
  --btn-bg: var(--accent);
  --btn-fg: #FFFFFF;
  --btn-border: var(--accent);
}
.cta-strip .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-border: currentColor;
  opacity: 0.8;
}
.cta-strip .btn--ghost:hover { opacity: 1; }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--text-md); }

/* ---------- Timeline (how-we-work) ---------- */
.timeline {
  display: grid;
  gap: 0;
  border-top: var(--hairline);
}
.timeline__step {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-bottom: var(--hairline);
}
.timeline__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--accent);
  text-transform: uppercase;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
.timeline__body {
  color: var(--fg-muted);
  margin-top: var(--space-3);
  max-width: 60ch;
}

/* ---------- Tech block ---------- */
.tech-block {
  padding: var(--space-7);
  border: var(--hairline);
  background: var(--bg-raised);
}
.tech-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.tech-block__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.tech-block__tag {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  border: var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--fg-muted);
}

/* ---------- Article card (insights) ---------- */
.article-card {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: var(--hairline);
  transition: background var(--dur-2) var(--ease-out);
}
.article-card:hover { background: var(--bg-raised); }
.article-card__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}
.article-card__excerpt { color: var(--fg-muted); max-width: 66ch; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 252, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(250, 250, 252, 0.95);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-snug);
  color: var(--fg);
}
.nav__brand:hover { color: var(--fg); }
.nav__brand-mark {
  display: inline-block;
  width: 22px; height: 22px;
  border: 1.5px solid var(--accent);
  position: relative;
  transform: rotate(45deg);
}
.nav__brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--accent);
}
.nav__brand-name strong { font-weight: 500; }
.nav__brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-top: -2px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  border-radius: var(--radius-xs);
  transition: color var(--dur-2) var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav__link[aria-expanded="true"] .nav__caret {
  transform: rotate(-135deg) translateY(-2px);
}

/* --- Unified mega menu dropdown (IOG pattern) --- */
/* All nav items with dropdowns use static positioning */
.nav__item[data-nav-item] { position: static; }

/* Unified dropdown panel */
.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(720px, 88vw);
  background: #FFFFFF;
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-7);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility var(--dur-3);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.12);
  z-index: 60;
}
.nav__item.is-open > .nav__menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Left description column */
.nav__menu-desc { display: flex; flex-direction: column; gap: var(--space-4); }
.nav__menu-desc h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--fg); }
.nav__menu-desc p { font-size: var(--text-sm); color: var(--fg-muted); line-height: var(--leading-prose); max-width: 32ch; }

/* Right links column */
.nav__menu-links { display: flex; flex-direction: column; }
.nav__menu-links a {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-size: var(--text-sm); font-weight: 500; color: var(--fg-muted);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease-out);
}
.nav__menu-links a:last-child { border-bottom: none; }
.nav__menu-links a::after { display: none; }
.nav__menu-links a:hover { color: var(--accent); }
.nav__menu-links a[aria-current="page"] { color: var(--accent); }

/* Wider panel for menus with many items (Capabilities, Industries) */
.nav__menu--wide { width: min(860px, 90vw); }
.nav__menu--wide .nav__menu-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6);
}
/* Remove bottom border from both items in the last row of the 2-col grid */
.nav__menu--wide .nav__menu-links a:nth-last-child(-n+2) { border-bottom: none; }

/* CTA at bottom spanning full width */
.nav__menu-cta {
  grid-column: 1 / -1;
  display: flex; justify-content: flex-end;
  padding-top: var(--space-4); margin-top: var(--space-3);
  border-top: 1px solid var(--rule);
}
.nav__menu-cta a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--fg); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 500; color: var(--fg);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.nav__menu-cta a:hover { background: var(--fg); color: var(--bg); }
.nav__menu-cta a::after { display: none; }

.nav__cta { margin-left: var(--space-3); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: var(--hairline);
  border-radius: var(--radius-xs);
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg);
  position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--fg);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }

@media (max-width: 1080px) {
  .nav__list, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.is-mobile-open .nav__list {
    display: grid;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #FFFFFF;
    border-top: var(--hairline);
    border-bottom: var(--hairline);
    padding: var(--space-5) var(--container-gutter);
    gap: 0;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-mobile-open .nav__cta {
    display: flex;
    position: static;
    margin: var(--space-4) var(--container-gutter);
    justify-content: center;
  }
  .nav__item { width: 100%; border-bottom: var(--hairline); }
  .nav__link { width: 100%; justify-content: space-between; padding: var(--space-4) 0; }
  .nav__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 var(--space-4) var(--space-5);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-3) var(--ease-out);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nav__menu--wide { width: 100%; }
  .nav__menu--wide .nav__menu-links { display: flex; flex-direction: column; }
  /* Override the desktop open-state rule which has the same specificity */
  .nav__item.is-open > .nav__menu {
    position: static;
    max-height: 800px;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
  }
  .nav__menu-desc { display: none; }
  .nav__menu-cta { display: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: none;
  padding-block: var(--space-9) var(--space-6);
  margin-top: var(--space-10);
  background: #111118;
  color: #ECEEEC;
  --fg: #ECEEEC;
  --fg-muted: #A6AEAC;
  --fg-subtle: #7C8785;
  --rule: #333333;
  --rule-strong: #4A4A4A;
  --bg-raised: #222222;
  --hairline: 1px solid #333333;
  --accent: #5CBCA9;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: var(--hairline);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__brand { max-width: 34ch; }
.footer__brand p {
  margin-top: var(--space-4);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--space-4);
}
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a {
  font-size: var(--text-sm);
  color: #A6AEAC;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.footer__col ul { gap: 0; }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--fg-subtle);
}
@media (max-width: 560px) {
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* ---------- Utility ---------- */
.u-mono { font-family: var(--font-mono); letter-spacing: var(--tracking-mono); text-transform: uppercase; font-size: var(--text-xs); }
.u-muted { color: var(--fg-muted); }
.u-center { text-align: center; }

/* Entrance animations (used sparingly) */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: rise var(--dur-4) var(--ease-out) forwards; }
.reveal[data-delay="1"] { animation-delay: 80ms; }
.reveal[data-delay="2"] { animation-delay: 160ms; }
.reveal[data-delay="3"] { animation-delay: 240ms; }
.reveal[data-delay="4"] { animation-delay: 320ms; }
.reveal[data-delay="5"] { animation-delay: 400ms; }

/* ---------- Stacking-context fix (site-wide) ----------
   base.css defines `body::before` as position:fixed z-index:0 for an
   ambient texture. Because positioned elements paint above non-positioned
   ones, that pseudo-element covers every non-positioned section below the
   hero, making the page look blank after the first scroll. Lift the main
   content and footer above the fixed texture layer. */
main, .footer { position: relative; z-index: 1; }

/* ---------- Brand logo override (nav + footer) ----------
   Replaces the diamond mark + "Gatekick / Labs / solutions" text lockup
   with the Gatekick Labs wordmark image. The original spans remain in
   the DOM for accessibility (screen-readers still read "Gatekick Labs")
   but are visually hidden. */
.nav__brand {
  gap: 0 !important;
  width: 180px;
  height: 44px;
  background-image: url("../brand/gatekick-labs-dark.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  color: transparent !important;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.nav__brand .nav__brand-mark,
.nav__brand .nav__brand-name { display: none !important; }
.footer__brand .nav__brand {
  width: 200px; height: 48px;
  background-image: url("../brand/gatekick-labs.png");
}
/* Footer logo uses the original white-text version since footer is dark. */

/* ---------- Section-head layout fix ----------
   The original grid reserved column 1 for the ordinal number marker
   (`— 01`). With numbering hidden site-wide, label/title/lede need to
   flow in a single column again. */
.section-head {
  grid-template-columns: 1fr !important;
  gap: var(--space-3) !important;
}
.section-head__title,
.section-head__lede { grid-column: 1 !important; }
.section-head__title { margin-top: var(--space-3); }
.section-head__lede  { margin-top: var(--space-4); }

/* ---------- Numbering removal (site-wide) ---------- */
/* User directive: no ordinal numbering on any section, card, or list. */
.section-head__num,
.cap-item__num,
.cap-card__num,
.cap-bento__num,
.timeline__num,
.phase__num,
.hww-phase__num,
.manifesto__num,
.industry-item__num,
.article-card__num,
.why__num,
.card__kicker,
.principle__marker > strong { display: none !important; }

/* ---------- Equal-weight cap bento (home) ---------- */
/* User directive: no flagships; all eight capabilities carry equal weight. */
.cap-card--feature,
.cap-card--wide { grid-column: span 2 !important; grid-row: auto !important; }
.cap-card--feature .cap-card__glyph { width: 64px !important; height: 64px !important; }
.cap-card--feature .cap-card__title,
.cap-card--wide .cap-card__title {
  font-size: var(--text-xl) !important;
  max-width: none !important;
}
.cap-card--feature .cap-card__desc,
.cap-card--wide .cap-card__desc {
  font-size: var(--text-base) !important;
  max-width: 56ch !important;
}
@media (max-width: 767px) {
  .cap-card--feature,
  .cap-card--wide { grid-column: span 1 !important; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .cap-bento { grid-template-columns: repeat(2, 1fr) !important; }
  .cap-card, .cap-card--feature, .cap-card--wide { grid-column: span 1 !important; }
}
@media (min-width: 1100px) {
  .cap-bento { grid-template-columns: repeat(4, 1fr) !important; }
  .cap-card, .cap-card--feature, .cap-card--wide { grid-column: span 1 !important; }
}

/* ---------- FAQ List ---------- */
.faq-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.faq-item {
  padding: var(--space-5) 0;
  border-bottom: var(--hairline);
}
.faq-item:first-child { border-top: var(--hairline-strong); }
.faq-item__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--fg);
  margin-bottom: var(--space-3);
}
.faq-item__a {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-prose);
  color: var(--fg-muted);
  max-width: 66ch;
}

/* =========================================================
   MOBILE RESPONSIVE FIXES
   ========================================================= */

/* Touch feedback for interactive elements */
.btn:active {
  transform: translateY(-1px);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--ghost:active {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  /* Hero gradient: constrain GPU layer size */
  .hero::after {
    width: 80vw;
    height: 80vw;
    right: -30%;
    filter: blur(6px);
  }
}

@media (max-width: 640px) {
  /* Hero spacing */
  .hero {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }
  .hero--page {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  /* CTA strip */
  .cta-strip {
    padding-block: var(--space-7) var(--space-6);
  }
  .cta-strip__actions {
    width: 100%;
    justify-content: center;
  }
  .cta-strip__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Cards */
  .card {
    padding: var(--space-4);
  }

  /* Tech block */
  .tech-block {
    padding: var(--space-5);
  }

  /* Timeline: collapse to single column */
  .timeline__step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  /* Footer margin */
  .footer {
    margin-top: var(--space-7);
  }
}

@media (max-width: 480px) {
  /* Scenario stats: single column */
  .scenario-stats { grid-template-columns: 1fr; }
  .scenario-stats div { border-right: 0; padding-inline: 0; }
  .scenario-stats div + div {
    border-top: var(--hairline);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }
}
