@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');

/* =========================================================================
   L3RA prototype — shared layout & components
   Built on colors_and_type.css. Black / white / zinc. Restrained enterprise.
   ========================================================================= */

/* =========================================================================
   Design tokens — all --l3-* custom properties
   (Inlined here; colors_and_type.css is not required as a separate file)
   ========================================================================= */
:root {
  /* Surface */
  --l3-paper:           #fafafa;
  --l3-paper-soft:      #f7f7f8;   /* zinc-50 soft */

  /* Ink scale */
  --l3-ink:             #18181b;   /* zinc-900 */
  --l3-ink-2:           #3f3f46;   /* zinc-700 */
  --l3-ink-3:           #71717a;   /* zinc-500 */
  --l3-ink-4:           #a1a1aa;   /* zinc-400 */
  --l3-ink-5:           #d4d4d8;   /* zinc-300 */

  /* Line/border */
  --l3-line:            #e4e4e7;   /* zinc-200 */
  --l3-border:          var(--l3-line);
  --l3-line-strong:     #d4d4d8;   /* zinc-300 */

  /* Night (dark sections) */
  --l3-night:           #111111;
  --l3-night-2:         #1c1c1e;
  --l3-night-3:         #27272a;   /* zinc-800 */
  --l3-night-ink:       #f4f4f5;   /* zinc-100 */
  --l3-night-ink-2:     #a1a1aa;   /* zinc-400 */
  --l3-night-ink-3:     #71717a;   /* zinc-500 */
  --l3-night-line:      #3f3f46;   /* zinc-700 */

  /* Action (CTA) */
  --l3-action:          #09090b;
  --l3-action-fg:       #ffffff;
  --l3-action-hi:       #18181b;
  --l3-action-dark:     #ffffff;
  --l3-action-dark-fg:  #18181b;
  --l3-action-dark-hi:  #f4f4f5;

  /* Typography */
  --l3-font-sans:   'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --l3-font-mono:   "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;
  --l3-tr-mono:     0.04em;

  /* Motion */
  --l3-dur-2:       0.15s;
  --l3-ease:        cubic-bezier(0.4, 0, 0.2, 1);

  /* Focus */
  --l3-focus-ring:  0 0 0 2px #ffffff, 0 0 0 4px #18181b;

  /* Status */
  --l3-status-ok:   #22c55e;
  --l3-status-warn: #f59e0b;
  --status-attention: #F59E0B;
  --status-active: var(--l3-ink);
  --status-pending: var(--l3-ink-5);
  --status-resolved: var(--l3-ink-4);

  /* Named zinc aliases */
  --l3-zinc-300:    #d4d4d8;
  --l3-zinc-400:    #a1a1aa;
  --l3-zinc-700:    #3f3f46;
  --l3-zinc-900:    #18181b;
}

* { box-sizing: border-box; }
html {
  height: 100%;
}
body {
  margin: 0; padding: 0;
  background: var(--l3-paper); color: var(--l3-ink);
  font-family: var(--l3-font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1 0 auto;
  width: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---------- Spacing utilities ---------- */
.u-mt-16 { margin-top: 16px; }
.u-mt-48 { margin-top: 48px; }
.u-mt-56 { margin-top: 56px; }
.u-mt-80 { margin-top: 80px; }

/* ---------- Preloader ---------- */
#preloader {
 position: fixed;
 inset: 0;
 background: #FAFAFA;
 display: flex;
 align-items: center;
 justify-content: center;
 z-index: 9999;
 transition: opacity 0.3s ease;
}
#preloader span {
 font-size: 15px;
 font-weight: 600;
 color: #09090B;
 letter-spacing: 0.04em;
}
#preloader.hidden {
 opacity: 0;
 pointer-events: none;
}

/* Skip navigation — hidden by default, visible on keyboard :focus only.
   translate:-100% is own-height-relative; reliable in flex-body context. */
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  translate: 0 -100%;
  transition: translate 0.1s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  translate: 0 0;
}

/* ---------- Topbar ---------- */
.topbar {
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper);
  position: sticky; top: 0; z-index: 20;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.topbar__nav { display: flex; gap: 36px; }
.topbar__nav a {
  font-size: 15px; font-weight: 500; color: var(--l3-ink-3);
  transition:
    color var(--l3-dur-2) var(--l3-ease),
    background var(--l3-dur-2) var(--l3-ease);
}
.topbar__nav a:hover { color: var(--l3-ink); }
.topbar__nav a.is-active { color: var(--l3-ink); }
.topbar__nav a.nav__cta {
  background: var(--c-900, var(--l3-action));
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-inner, 6px);
}
.topbar__nav a.nav__cta:hover,
.topbar__nav a.nav__cta.is-active {
  background: var(--l3-action-hi);
  color: #fff;
}
.topbar__cta {
  font-family: var(--l3-font-sans); font-size: 13px;
  color: var(--l3-ink-4);
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar__cta::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  background: var(--l3-status-ok); border-radius: 999px;
}

/* ---------- Page header (per-page hero) ---------- */
.pagehead {
  padding: 104px 0 56px;
}
.pagehead__eyebrow {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--l3-ink-3);
  margin-bottom: 24px;
  display: inline-block;
}
.pagehead__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 88px;
  align-items: center;
}
.pagehead__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.2;
  letter-spacing: -0.026em;
  color: var(--l3-ink);
  max-width: 18ch;
}
.pagehead__sub {
  margin: 32px 0 0;
  font-size: 17px; line-height: 1.65; letter-spacing: -0.005em;
  color: var(--l3-ink-2);
  max-width: 36ch;
}

/* ---------- Section ---------- */
.sec {
  padding: 96px 0;
  border-top: 1px solid var(--l3-line);
}
.sec:first-of-type { border-top: 0; }
.sec--soft {
  background: var(--l3-paper-soft);
  border-top: 1px solid var(--l3-line);
}
.sec--dark {
  background: var(--l3-paper);
  color: var(--l3-ink);
  border-top: 1px solid var(--l3-line);
}
.sec--dark .sec__title { color: var(--l3-ink); }
.sec--dark .sec__body { color: var(--l3-ink-3); }
.sec--dark .sec__eyebrow { color: var(--l3-ink-3); }
.sec--compact { padding: 72px 0; }
.sec--cta {
  padding: 72px 0 96px;
  background: var(--l3-paper);
}

.sec__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 56px;
  max-width: 640px;
}
.sec__eyebrow {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--l3-ink-3);
  margin-bottom: 24px;
  display: inline-block;
}
.sec__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--l3-ink);
  max-width: 26ch;
}
.sec__body {
  margin: 28px 0 0;
  font-size: 17px; line-height: 1.65; letter-spacing: -0.005em;
  color: var(--l3-ink-3);
  max-width: 60ch;
}

.sec-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}
.sec-split--reversed {
  grid-template-columns: 7fr 5fr;
}
.sec-split__text {
  display: grid;
  gap: 0;
  align-content: start;
}
.sec-split__media {
  background: var(--l3-paper-soft);
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  overflow: hidden;
  min-height: 480px;
  position: relative;
}

body[data-page="product"] section[data-screen-label="04 Product / What the company controls"] .sec-split__media {
  background: rgb(228, 228, 231);
}

@media (max-width: 1024px) {
  .sec-split,
  .sec-split--reversed {
    grid-template-columns: 1fr;
  }
  .sec-split__media {
    min-height: 320px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--l3-font-sans); font-weight: 500;
  font-size: 16px; line-height: 1.4; padding: 15px 24px;
  border-radius: 8px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: background var(--l3-dur-2) var(--l3-ease),
              border-color var(--l3-dur-2) var(--l3-ease),
              color var(--l3-dur-2) var(--l3-ease);
}
.btn--primary {
  background: var(--l3-action); color: var(--l3-action-fg);
}
.btn--primary:hover  { background: var(--l3-action-hi); }
.btn--secondary {
  background: var(--l3-paper); color: var(--l3-ink);
  border-color: var(--l3-line);
}
.btn--secondary:hover { border-color: var(--l3-ink); }
.btn--ghost { border-radius: 999px; }
.btn--ondark.btn--primary {
  background: var(--l3-action-dark); color: var(--l3-action-dark-fg);
  border-color: var(--l3-action-dark);
}
.btn--ondark.btn--primary:hover {
  background: var(--l3-action-dark-hi);
  border-color: var(--l3-action-dark-hi);
}
.btn--ondark.btn--secondary {
  background: transparent; color: var(--l3-night-ink);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ondark.btn--secondary:hover {
  color: #ffffff;
  border-color: var(--l3-night-ink);
}
.btn .arrow { transition: transform var(--l3-dur-2) var(--l3-ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- Inline arrow link ---------- */
.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--l3-ink);
  border-bottom: 1px solid var(--l3-ink);
  padding-bottom: 4px;
  width: max-content;
  transition: gap var(--l3-dur-2) var(--l3-ease);
}
.arrowlink:hover { gap: 14px; }
.arrowlink--ondark {
  color: var(--l3-night-ink);
  border-bottom-color: var(--l3-night-ink);
}

/* ---------- Footer ---------- */
.footer {
 background: var(--l3-night);
 padding: 80px 0 64px;
 color: var(--l3-night-ink);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
  margin-bottom: 80px;
}
.footer__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--l3-ink);
  max-width: 16ch;
}
.footer__actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding-top: 8px;
}
.footer__cols {
 display: grid;
 grid-template-columns: 1.35fr 1fr 1fr 1fr;
 gap: clamp(28px, 4vw, 64px);
 border-top: 0;
 padding-top: 0;
}
.footer__logo {
 display: inline-flex;
 width: max-content;
 margin-bottom: 20px;
 color: #ffffff;
 font-size: 22px;
 font-weight: 650;
 letter-spacing: 0;
 text-decoration: none;
}
.footer__logo:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.footer__col p {
 max-width: 30ch;
 margin: 0;
 color: var(--l3-night-ink-2);
 font-size: 15px;
 line-height: 1.6;
}
.footer__col__label {
 margin-bottom: 20px;
 color: var(--l3-night-ink-2);
 font-size: 15px;
 font-weight: 500;
 line-height: 1.3;
}
.footer__col ul {
 display: grid;
 gap: 13px;
 margin: 0;
 padding: 0;
 list-style: none;
}
.footer__col a {
 color: var(--l3-night-ink);
 font-size: 15px;
 line-height: 1.6;
 text-decoration: none;
}
.footer__col a:hover {
 color: #ffffff;
 text-decoration: underline;
 text-underline-offset: 5px;
}
.footer__plain { color: var(--l3-night-ink-3); }
.footer__base {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 24px;
 margin-top: 56px;
 border-top: 1px solid rgba(255, 255, 255, 0.08);
 padding-top: 28px;
 color: var(--l3-night-ink-2);
 font-size: 13px;
}
/* =========================================================================
   Re-usable display elements
   ========================================================================= */

/* ---------- Numbered card grid ---------- */
.cardgrid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.cardgrid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cardgrid-3 .card__visual,
.cardgrid-3 .card__content {
  min-width: 0;
  max-width: 100%;
}
.cardgrid-3 .card__visual-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 56px;
}
.feature-item {
  display: grid;
  gap: 16px;
  align-content: start;
  border: none;
  background: transparent;
  border-radius: 0;
}
.feature-item__icon {
  font-size: 28px;
  color: var(--l3-ink-3);
}
.feature-item__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--l3-ink);
}
.feature-item__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--l3-ink-3);
}

.cell-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--l3-line);
}
.cell-item {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--l3-line);
}
.cell-item:last-child { border-right: none; }
.cardgrid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--l3-paper);
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  padding: 40px;
  display: grid; gap: 20px;
  align-content: start;
}
.card__num {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.002em;
  color: var(--l3-ink-4);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  color: #4A4A54;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: color var(--l3-dur-2) var(--l3-ease);
}

/* ---------- Biography layout + activity timeline ---------- */
.biography-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.biography-panel,
.timeline {
  background: var(--l3-paper);
  border: 1px solid var(--l3-line);
  border-radius: 8px;
}
.biography-panel { overflow: hidden; }
.biography-row {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.biography-row + .biography-row { border-top: 1px solid var(--l3-line); }
.biography-row__title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--l3-ink);
}
.biography-row__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--l3-ink-3);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 48px;
}
.timeline__event {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 28px;
}
.timeline__event:last-child { padding-bottom: 0; }
.timeline__event:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--l3-line);
}
.timeline__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--l3-line);
  border-radius: 999px;
  background: var(--l3-paper-soft);
  color: var(--l3-ink-2);
  font-size: 15px;
}
.timeline__icon--dark {
  background: var(--l3-ink);
  border-color: var(--l3-ink);
  color: var(--l3-paper);
}
.timeline__label {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--l3-ink);
}
.timeline__meta {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--l3-ink-3);
}

.card__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid var(--l3-line);
  border-radius: 999px;
  background: var(--l3-paper-soft);
  font-family: var(--l3-font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--l3-tr-mono);
  color: var(--l3-ink-3);
}
.card__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 20px; font-weight: 500; letter-spacing: -0.013em;
  line-height: 1.3;
  color: var(--l3-ink);
}

.card__body {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: var(--l3-ink-2);
  max-width: 40ch;
}
.card--dark {
  background: var(--l3-paper-soft);
  color: var(--l3-ink);
  border-color: var(--l3-line);
}
.card--dark .card__num { color: var(--l3-ink-3); }
.card--dark .card__title { color: var(--l3-ink); }
.card--dark .card__body { color: var(--l3-ink-soft, var(--l3-ink-2)); }

/* ---------- Horizontal steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--l3-line);
}
.step {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--l3-line);
  display: grid; gap: 16px;
  align-content: start;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step + .step { padding-left: 32px; }
.step__num {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-3);
}
.step__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 18px; font-weight: 500; letter-spacing: -0.012em;
  line-height: 1.32;
  color: var(--l3-ink);
  max-width: 18ch;
}
.step__body {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: var(--l3-ink-2);
  max-width: 32ch;
}
.sec--dark .step { border-right-color: var(--l3-night-line); }
.sec--dark .steps { border-top-color: var(--l3-night-line); }
.sec--dark .step__num { color: var(--l3-night-ink-3); }
.sec--dark .step__title { color: var(--l3-night-ink); }
.sec--dark .step__body { color: var(--l3-night-ink-2); }

/* ---------- Vertical step list (numbered rows) ---------- */
.steplist {
  display: grid;
  border-top: 1px solid var(--l3-line);
}
.steplist__row {
  display: grid;
  grid-template-columns: 80px minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--l3-line);
  align-items: start;
}
.steplist__num {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--l3-ink-3);
  padding-top: 6px;
}
.steplist__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 20px; font-weight: 500; letter-spacing: -0.013em;
  line-height: 1.3;
  color: var(--l3-ink);
  max-width: 22ch;
}
.steplist__body {
  margin: 0;
  font-size: 15px; line-height: 1.6;
  color: var(--l3-ink-soft, var(--l3-ink-2));
  max-width: 56ch;
}
.sec--dark .steplist { border-top-color: var(--l3-line); }
.sec--dark .steplist__row { border-bottom-color: var(--l3-line); }
.sec--dark .steplist__num { color: var(--l3-ink-3); }
.sec--dark .steplist__title { color: var(--l3-ink); }
.sec--dark .steplist__body { color: var(--l3-ink-soft, var(--l3-ink-2)); }

/* ---------- Canonical flow ribbon (Form → Record → Workflow …) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
  border: 1px solid var(--l3-line-strong);
  border-radius: 8px;
  background: var(--l3-paper);
  overflow: hidden;
}
.flow__node {
  padding: 24px;
  border-right: 1px solid var(--l3-line);
  display: grid; gap: 8px;
  align-content: start;
  position: relative;
  background: var(--l3-paper);
}
.flow__node:last-child { border-right: 0; }
.flow__node:nth-child(even) { background: transparent; }
.flow__node__index {
  font-family: var(--l3-font-sans);
  font-size: 12px; font-weight: 500;
  color: var(--l3-ink-3);
}
.flow__node__name {
  font-family: var(--l3-font-sans);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--l3-ink);
}
.flow__node__meta {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; color: var(--l3-ink-3);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--l3-line);
  line-height: 1.45;
}
.flow__node--optional {
  opacity: 0.5;
  background: transparent !important;
  border-left: 1px dashed var(--l3-line-strong);
  border-right-style: dashed;
}
.flow__node--optional .flow__node__name { color: var(--l3-ink-3); }
.sec--dark .flow {
  background: var(--l3-night-2);
  border-color: var(--l3-night-line);
}
.sec--dark .flow__node { background: var(--l3-night-2); border-right-color: var(--l3-night-line); }
.sec--dark .flow__node:nth-child(even) { background: var(--l3-night-3); }
.sec--dark .flow__node__name { color: var(--l3-night-ink); }
.sec--dark .flow__node__index { color: var(--l3-night-ink-3); }
.sec--dark .flow__node__meta {
  color: var(--l3-night-ink-3);
  border-top-color: var(--l3-night-line);
}

/* ---------- Layered architecture diagram ---------- */
.layers {
  display: grid;
  gap: 12px;
}

body[data-page="product"] .layers {
  gap: 16px;
}
.layer {
  display: grid;
  grid-template-columns: 80px minmax(0, 4fr) minmax(0, 6fr);
  gap: 24px;
  padding: 32px;
  background: var(--l3-paper);
  border: 1px solid var(--l3-line-strong);
  border-radius: 8px;
  align-items: start;
}
.layer__index {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--l3-ink-3);
  padding-top: 4px;
}
.layer__name {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 20px; font-weight: 500; letter-spacing: -0.012em;
  line-height: 1.3;
  color: var(--l3-ink);
}
.layer__body {
  margin: 8px 0 0;
  font-size: 15px; line-height: 1.6; color: var(--l3-ink-2);
  max-width: 36ch;
}
.layer__examples {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-self: start;
}
.layer__chip {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-2);
  border: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

body[data-page="product"] .sec--dark .layer {
  background: var(--l3-paper-soft) !important;
  border-color: var(--l3-line) !important;
}
body[data-page="product"] .sec--dark .layer__index {
  color: var(--l3-ink-3) !important;
}
body[data-page="product"] .sec--dark .layer__name {
  color: var(--l3-ink) !important;
}
body[data-page="product"] .sec--dark .layer__body {
  color: var(--l3-ink-2) !important;
}

body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__examples .tag {
  color: rgb(80, 80, 90);
  background: transparent;
  border-color: rgb(180, 180, 188);
}


/* ---------- Stack consolidation diagram ---------- */
.stackshift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr);
  gap: 24px;
  align-items: center;
  margin: 56px 0 48px;
}
.stackshift__source {
  display: grid;
  gap: 8px;
}
.stackshift__item,
.stackshift__target {
  border-radius: 8px;
}
.stackshift__item {
  padding: 12px 16px;
  border: 1px solid var(--l3-line);
  background: rgba(255, 255, 255, 0.48);
  font-family: var(--l3-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--l3-ink-3);
}
.stackshift__arrow {
  color: var(--l3-ink);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  padding: 0 8px;
}
.stackshift__target {
  display: grid;
  gap: 12px;
  padding: 24px;
  min-height: 212px;
  align-content: center;
  border: 1px solid var(--l3-ink);
  background: var(--l3-paper);
  box-shadow: none;
}
.stackshift__target-label {
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--l3-ink);
  font-family: var(--l3-font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--l3-tr-mono);
  color: var(--l3-paper);
}
.stackshift__target-row {
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--l3-paper-soft);
  font-family: var(--l3-font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--l3-ink);
}
@media (max-width: 720px) {
  .stackshift {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 40px 0 36px;
  }
  .stackshift__arrow {
    justify-self: start;
    transform: rotate(90deg);
    padding: 0;
  }
  .stackshift__target {
    min-height: 0;
  }
}


/* ---------- Section-level visual placeholders ---------- */
.sec .visual-placeholder,
body[data-page="product"] .stackshift,
body[data-page="data-access"] .accessmodel {
  aspect-ratio: 16 / 7;
  width: 100%;
  background:
   linear-gradient(120deg, transparent 20%, rgba(200, 200, 210, 0.1) 20%, rgba(200, 200, 210, 0.1) 22%, transparent 22%),
   linear-gradient(60deg, transparent 20%, rgba(200, 200, 210, 0.1) 20%, rgba(200, 200, 210, 0.1) 22%, transparent 22%),
   linear-gradient(180deg, transparent 25%, rgba(200, 200, 210, 0.07) 25%, rgba(200, 200, 210, 0.07) 26%, transparent 26%),
   linear-gradient(to bottom, #fafafa 0%, #f9f9fb 100%);
  background-size: 40px 40px, 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 20px 0, 0 0, 0 0;
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  box-shadow: none;
}

/* ---------- Access model block ---------- */
.accessmodel {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.accessmodel__defs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--l3-night-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--l3-night-2);
}
.accessmodel__def {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-right: 1px solid var(--l3-night-line);
  border-bottom: 1px solid var(--l3-night-line);
}
.accessmodel__def:nth-child(2n) { border-right: 0; }
.accessmodel__def:nth-last-child(-n + 2) { border-bottom: 0; }
.accessmodel__term {
  font-family: var(--l3-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--l3-night-ink);
}
.accessmodel__desc {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--l3-night-ink-2);
}
.accessmodel__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.accessmodel__card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--l3-night-line);
  border-radius: 8px;
  background: var(--l3-night-2);
}
.accessmodel__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--l3-night-ink-3);
}
.accessmodel__card-title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--l3-night-ink);
}
.accessmodel__card-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--l3-night-ink-2);
}
@media (max-width: 768px) {
  .accessmodel__defs,
  .accessmodel__cards {
    grid-template-columns: 1fr;
  }
  .accessmodel__def,
  .accessmodel__def:nth-child(2n),
  .accessmodel__def:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--l3-night-line);
  }
  .accessmodel__def:last-child { border-bottom: 0; }
}

/* ---------- Definition list / spec rows ---------- */
.deflist {
  display: grid;
  border-top: 1px solid var(--l3-line);
}
.deflist__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--l3-line);
  align-items: start;
}
.deflist__k {
  font-family: var(--l3-font-sans);
  font-size: 14px; font-weight: 500;
  color: var(--l3-ink);
  padding-top: 4px;
}
.deflist__v {
  margin: 0;
  font-size: 16px; line-height: 1.55; letter-spacing: -0.005em;
  color: var(--l3-ink-soft, var(--l3-ink-2));
  max-width: 56ch;
}
.deflist__v strong { font-weight: 600; }
.sec--dark .deflist { border-top-color: var(--l3-line); }
.sec--dark .deflist__row { border-bottom-color: var(--l3-line); }
.sec--dark .deflist__k { color: var(--l3-ink); }
.sec--dark .deflist__v { color: var(--l3-ink-soft, var(--l3-ink-2)); }

/* ---------- "Not what L3RA is" contrast block ---------- */
.contrast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--l3-line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--l3-paper);
}
.contrast__cell {
  padding: 32px;
  border-right: 1px solid var(--l3-line);
  display: grid; gap: 12px; align-content: start;
}
.contrast__cell:last-child { border-right: 0; }

.contrast__cell__k {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-3);
}
.contrast__cell__not {
  font-family: var(--l3-font-sans);
  font-size: 16px; color: var(--l3-ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--l3-zinc-300);
}
.contrast__cell__is {
  font-family: var(--l3-font-sans);
  font-size: 18px; font-weight: 600; letter-spacing: -0.012em;
  color: var(--l3-ink);
  line-height: 1.35;
}

/* ---------- Form ---------- */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.form__field {
  display: grid; gap: 8px;
}
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--l3-ink-2);
}
.form__input,
.form__select,
.form__textarea {
  font-family: var(--l3-font-sans);
  font-size: 15px; color: var(--l3-ink);
  background: var(--l3-paper);
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px;
  padding: 12px 14px;
  height: 40px;
  outline: none;
  width: 100%;
  transition: border-color var(--l3-dur-2) var(--l3-ease), box-shadow var(--l3-dur-2) var(--l3-ease);
}
.form__input,
.form__select {
  padding-top: 8px;
  padding-bottom: 8px;
}
.form__textarea { height: auto; min-height: 140px; resize: vertical; }
.form__input::placeholder,
.form__textarea::placeholder { color: var(--l3-ink-5); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--l3-ink); box-shadow: var(--l3-focus-ring);
}
.form__hint {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; color: var(--l3-ink-3);
}
.form__actions {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--l3-line);
  margin-top: 12px;
  padding-top: 24px;
  gap: 16px; flex-wrap: wrap;
}

/* ---------- Case card (anonymized) ---------- */
.case {
  background: var(--l3-paper);
  border: 1px solid var(--l3-line-strong);
  border-radius: 8px;
  padding: 32px;
  display: grid; gap: 14px;
  align-content: start;
}
.case__tag {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-3);
}
.case__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--l3-ink);
  line-height: 1.28;
}
.case__role {
  font-family: var(--l3-font-sans);
  font-size: 14px; color: var(--l3-ink-2);
  line-height: 1.55;
}
.case__outcome {
  font-family: var(--l3-font-sans);
  font-size: 15px; line-height: 1.6;
  color: var(--l3-ink-3);
  padding-top: 14px;
  border-top: 1px solid var(--l3-line);
  margin-top: 4px;
}

/* ---------- Tag pill ---------- */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-2);
  border: 1px solid var(--l3-line);
  background: var(--l3-paper);
  padding: 5px 12px;
  border-radius: 999px;
}
.sec--dark .tag {
  color: var(--l3-night-ink-2);
  background: var(--l3-night-3);
  border-color: var(--l3-night-line);
}

/* ---------- Inline meta strip ---------- */
.meta-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--l3-font-sans);
  font-size: 13px; color: var(--l3-ink-3);
}
.meta-strip .sep {
  width: 1px; height: 12px; background: var(--l3-line-strong);
}

/* ---------- Synthetic placeholder (wireframe-only) ---------- */
.synth {
  background: var(--l3-paper-soft);
  border: 1px solid var(--l3-line-strong);
  border-radius: 8px;
  padding: 28px;
}
.synth__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--l3-line);
  margin-bottom: 20px;
  font-family: var(--l3-font-sans);
  font-size: 12.5px; color: var(--l3-ink-3);
}
.synth__rows {
  display: grid; gap: 8px;
}
.synth__row {
  display: grid;
  grid-template-columns: 90px 1fr 100px 80px;
  gap: 16px;
  background: var(--l3-paper);
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  padding: 14px 16px;
  align-items: center;
  font-family: var(--l3-font-sans);
  font-size: 13.5px;
  color: var(--l3-ink-2);
}
.synth__row__id {
  font-family: var(--l3-font-mono);
  font-size: 12px; color: var(--l3-ink-4);
  letter-spacing: var(--l3-tr-mono);
}
.synth__row__label { color: var(--l3-ink); font-weight: 500; }
.synth__row__status {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--l3-ink-3);
}
.synth__row__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--l3-ink-3);
}
.synth__row__status--ok { color: var(--l3-status-ok); }
.synth__row__status--ok::before { background: var(--l3-status-ok); }
.synth__row__status--warn { color: var(--l3-status-warn); }
.synth__row__status--warn::before { background: var(--l3-status-warn); }
.synth__row__status--info { color: var(--l3-zinc-700); }
.synth__row__status--info::before { background: var(--l3-zinc-700); }
.synth__row__role {
  font-family: var(--l3-font-sans);
  font-size: 12.5px; color: var(--l3-ink-3);
}
.synth__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--l3-line);
  display: flex; justify-content: space-between;
  font-family: var(--l3-font-sans);
  font-size: 12.5px; color: var(--l3-ink-3);
}

/* ---------- Section close CTA strip ---------- */
.endstrip {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  background: var(--l3-paper);
}
.endstrip__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 40px; font-weight: 400; letter-spacing: -0.012em; line-height: 1.2;
  color: var(--l3-ink);
  max-width: 32ch;
}

/* =========================================================================
   Hero / pagehead upgrade — two-column layout with graphic placeholder
   ========================================================================= */

/* Upgrade pagehead to hero-scale vertical presence */
.pagehead {
  --pagehead-graphic-height: 340px;
  padding: 96px 0 112px;
}

/* Restructure layout: left = all content, right = graphic placeholder */
.pagehead__layout {
  min-height: var(--pagehead-graphic-height);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: stretch;
}

/* Content column — groups title, sub, actions, meta */
.pagehead__content {
  display: grid;
  gap: 0;
  align-content: start;
}

.pagehead__sub {
  margin: 28px 0 0;
}

.pagehead__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.pagehead__actions:has(.btn + .btn) .btn {
  min-width: 232px;
  justify-content: center;
  white-space: nowrap;
}

.pagehead__meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--l3-font-sans);
  font-size: 13px;
  color: var(--l3-ink-3);
}

.pagehead__meta .sep {
  width: 1px;
  height: 12px;
  background: var(--l3-line-strong);
}

/* Graphic column — reserved zone for future conceptual graphic */
.pagehead__graphic {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  overflow: hidden;
}

/* The placeholder itself */
.pagehead__graphic-placeholder {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Inner composition surfaces — quiet layered rectangles */
.gp-label {
  font-family: var(--l3-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--l3-ink-4);
  letter-spacing: -0.005em;
  position: absolute;
  bottom: 20px;
  left: 20px;
}

/* Shared inner placeholder surface */
.gp-surface {
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  background: var(--l3-paper);
}

.gp-surface--soft {
  background: var(--l3-paper-soft);
}

/* Fragmented-to-controlled composition (Home) */
.gp-home {
  padding: 28px;
  gap: 20px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: 100%;
}
.gp-home__cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}
.gp-home__cluster .gp-surface {
  min-height: 52px;
  opacity: 0.6;
}
.gp-home__cluster .gp-surface:nth-child(odd) {
  opacity: 0.45;
}
.gp-home__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  color: var(--l3-ink-4);
}
.gp-home__arrow svg {
  display: block;
}
.gp-home__layer {
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px;
  background: var(--l3-paper);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.gp-home__layer-node {
  border-right: 1px solid var(--l3-line);
  padding: 14px 12px;
  min-height: 56px;
}
.gp-home__layer-node:last-child {
  border-right: 0;
}

/* Canonical flow skeleton (Product) */
.gp-flow {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.gp-flow__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
}
.gp-flow__node {
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  background: var(--l3-paper);
  min-height: 64px;
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  gap: 6px;
}
.gp-flow__node:nth-child(even) {
  background: var(--l3-paper-soft);
}
.gp-flow__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--l3-line-strong);
}
.gp-flow__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--l3-line);
  width: 60%;
}
.gp-flow__bar--short { width: 40%; }
.gp-flow__connector {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 4px;
}
.gp-flow__connector-line {
  flex: 1;
  height: 1px;
  background: var(--l3-line-strong);
}
.gp-flow__connector-arrow {
  color: var(--l3-ink-4);
  font-size: 10px;
}

/* Workflow path with gate markers (Control) */
.gp-control {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}
.gp-control__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--l3-line);
  align-items: start;
}
.gp-control__step:last-child { border-bottom: 0; }
.gp-control__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gp-control__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--l3-line-strong);
  background: var(--l3-paper);
  flex-shrink: 0;
  margin-top: 2px;
}
.gp-control__dot--active {
  background: var(--l3-ink-3);
  border-color: var(--l3-ink-3);
}
.gp-control__vline {
  width: 1px;
  flex: 1;
  min-height: 16px;
  background: var(--l3-line);
}
.gp-control__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--l3-line);
  margin-top: 6px;
}
.gp-control__bar--short { width: 55%; }
.gp-control__bar--medium { width: 75%; }
.gp-control__bar--long { width: 90%; }
.gp-control__gate {
  display: inline-block;
  width: 36px;
  height: 16px;
  border: 1px solid var(--l3-line-strong);
  border-radius: 3px;
  background: var(--l3-paper-soft);
  margin-top: 8px;
}

/* Record block composition (Data & Access) */
.gp-data {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.gp-data__record {
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px;
  background: var(--l3-paper);
  overflow: hidden;
  flex: 1;
}
.gp-data__record-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
  display: flex;
  gap: 8px;
  align-items: center;
}
.gp-data__record-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--l3-line-strong);
}
.gp-data__record-bar {
  height: 4px; border-radius: 2px;
  background: var(--l3-line);
}
.gp-data__record-bar--wide { width: 80px; }
.gp-data__record-bar--short { width: 48px; }
.gp-data__fields {
  padding: 12px 16px;
  display: grid;
  gap: 8px;
}
.gp-data__field {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
}
.gp-data__field-k {
  height: 4px; border-radius: 2px;
  background: var(--l3-line);
}
.gp-data__field-v {
  height: 4px; border-radius: 2px;
  background: var(--l3-line-strong);
}
.gp-data__field-v--short { width: 60%; }
.gp-data__field-v--medium { width: 80%; }
.gp-data__views {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.gp-data__view {
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  background: var(--l3-paper);
  padding: 10px;
  display: grid;
  gap: 6px;
}
.gp-data__view-bar {
  height: 4px; border-radius: 2px;
  background: var(--l3-line);
}
.gp-data__view-bar--wide { width: 100%; }
.gp-data__view-bar--short { width: 60%; }

/* Scenario mini-flow (Use Cases) */
.gp-usecases {
  padding: 24px;
  display: grid;
  gap: 16px;
  height: 100%;
  align-content: start;
}
.gp-scenario {
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  background: var(--l3-paper);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.gp-scenario__nodes {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gp-scenario__node {
  width: 28px; height: 28px;
  border: 1px solid var(--l3-line);
  border-radius: 4px;
  background: var(--l3-paper-soft);
  flex-shrink: 0;
}
.gp-scenario__edge {
  flex: 1;
  height: 1px;
  background: var(--l3-line);
  min-width: 8px;
}
.gp-scenario__bars {
  display: grid;
  gap: 6px;
}
.gp-scenario__bar {
  height: 4px; border-radius: 2px;
  background: var(--l3-line);
}
.gp-scenario__bar--wide { width: 85%; }
.gp-scenario__bar--short { width: 55%; }

/* Demo: text-only journey (Demo) */
.gp-demo {
  padding: 28px;
  display: grid;
  gap: 0;
  height: 100%;
  align-content: start;
}
.gp-demo__row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--l3-line);
  align-items: start;
}
.gp-demo__row:last-child { border-bottom: 0; }
.gp-demo__num {
  width: 20px; height: 20px;
  border: 1px solid var(--l3-line-strong);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--l3-ink-3);
  flex-shrink: 0;
}
.gp-demo__bars {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}
.gp-demo__bar {
  height: 4px; border-radius: 2px;
  background: var(--l3-line);
}
.gp-demo__bar--wide { width: 80%; }
.gp-demo__bar--short { width: 50%; }

/* ---------- Responsive hero ---------- */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pagehead {
    --pagehead-graphic-height: 320px;
  }
  .pagehead__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .pagehead {
    --pagehead-graphic-height: 260px;
    padding: 72px 0 88px;
  }
  .pagehead__title {
    font-size: 40px;
  }
  .container {
    padding: 0 clamp(16px, 4vw, 40px);
  }
}

/* ============================================================
   GP-DATA: record + three view surfaces
   ============================================================ */
.gp-data {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gp-data__record {
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--l3-paper);
}
.gp-data__record-header {
  height: 10px;
  background: var(--l3-line);
  border-bottom: 1px solid var(--l3-line);
}
.gp-data__record-fields {
  padding: 16px 20px;
  display: grid;
  gap: 8px;
}
.gp-data__field {
  height: 7px;
  border-radius: 3px;
  background: var(--l3-line);
  opacity: 0.7;
}
.gp-data__field--wide  { width: 72%; }
.gp-data__field--mid   { width: 50%; }
.gp-data__field--narrow { width: 34%; }
.gp-data__views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gp-data__view {
  border: 1px solid var(--l3-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--l3-paper);
}
.gp-data__view-bar {
  height: 8px;
  background: var(--l3-line);
  border-bottom: 1px solid var(--l3-line);
}
.gp-data__view-rows {
  padding: 10px 12px;
  display: grid;
  gap: 7px;
}
.gp-data__view-row {
  height: 5px;
  border-radius: 2px;
  background: var(--l3-line);
}
.gp-data__view-row--dim { opacity: 0.4; }

/* ============================================================
   GP-USECASES: three scenario mini-flows
   ============================================================ */
.gp-usecases {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gp-uc__scenarios {
  display: grid;
  gap: 28px;
}
.gp-uc__scenario {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--l3-line);
}
.gp-uc__scenario:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.gp-uc__nodes {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gp-uc__node {
  width: 36px;
  height: 26px;
  border: 1px solid var(--l3-line);
  border-radius: 4px;
  background: var(--l3-paper);
  flex-shrink: 0;
}
.gp-uc__node--active {
  background: var(--l3-ink);
  border-color: var(--l3-ink);
}
.gp-uc__arrow {
  font-size: 11px;
  color: var(--l3-ink-4);
  flex-shrink: 0;
}
.gp-uc__label-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--l3-line);
  width: 60%;
}
.gp-uc__label-bar--short {
  width: 40%;
}

/* ============================================================
   DEMO: trust strip
   ============================================================ */
.demo-hero__content {
  display: flex;
  flex-direction: column;
  align-self: start;
}
.demo-hero__trust {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--l3-line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--l3-font-sans);
  font-size: 13px;
  color: var(--l3-ink-3);
}
.demo-hero__trust .sep {
  width: 1px;
  height: 11px;
  background: var(--l3-line-strong);
  flex-shrink: 0;
}

/* Demo eyebrow spacing (was inline style) */
.demo-hero__content .pagehead__eyebrow {
  margin-bottom: 24px;
}


/* =========================================================================
   L3RA Conceptual Graphic System — v2 Premium
   Product-explanatory editorial visuals for hero/pagehead zones.
   White / Black / Zinc only. No fake UI. No skeleton bars. No dashboards.
   ========================================================================= */

/* ---- Base container: fills placeholder zone ---- */
.l3-graphic {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
/* Grid containers need explicit row-span to fill */
.gp-home > .l3-graphic {
  grid-row: 1 / -1;
  align-self: stretch;
}

/* =========================================================================
   Shared premium graphic elements
   ========================================================================= */

/* Readable label: 12px bold, primary content label */
.l3-gfx__label {
  font-family: var(--l3-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--l3-ink);
  line-height: 1.25;
  white-space: nowrap;
  display: block;
}
/* Sub label: 10px medium, supporting context */
.l3-gfx__label--sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--l3-ink-3);
}
/* Meta label: 9px uppercase, category/eyebrow */
.l3-gfx__label--meta {
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Zone: bounded structural region */
.l3-gfx__zone {
  border: 1px solid var(--l3-line-strong);
  border-radius: 5px;
  background: var(--l3-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}
.l3-gfx__zone--strong {
  border-width: 1.5px;
  border-color: var(--l3-ink-2);
}
.l3-gfx__zone--soft {
  background: var(--l3-paper-soft);
  border-color: var(--l3-line);
}
.l3-gfx__zone--gate {
  border-color: var(--l3-ink-3);
  background: var(--l3-paper-soft);
}

/* Zone head: top strip with label */
.l3-gfx__zone-head {
  padding: 7px 12px;
  border-bottom: 1px solid var(--l3-line);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.l3-gfx__zone-body {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

/* Field row: key text + value line */
.l3-gfx__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--l3-line);
}
.l3-gfx__field:last-child { border-bottom: 0; }
.l3-gfx__field-key {
  font-family: var(--l3-font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--l3-ink-4);
  flex-shrink: 0;
  width: 52px;
}
.l3-gfx__field-val {
  flex: 1;
  height: 1px;
  background: var(--l3-line-strong);
}
.l3-gfx__field-val--short { max-width: 36%; }
.l3-gfx__field-val--med   { max-width: 58%; }
.l3-gfx__field-val--long  { max-width: 82%; }

/* Flow step node */
.l3-gfx__node {
  border: 1px solid var(--l3-line-strong);
  border-radius: 4px;
  background: var(--l3-paper);
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.l3-gfx__node--gate {
  border-color: var(--l3-ink-3);
  background: var(--l3-paper-soft);
}
.l3-gfx__node--strong {
  border-color: var(--l3-ink-2);
  border-width: 1.5px;
}

/* Flow connector line */
.l3-gfx__path {
  height: 1px;
  background: var(--l3-line-strong);
  align-self: center;
  flex-shrink: 0;
}
.l3-gfx__path--v {
  width: 1px;
  height: auto;
  flex: 1;
  min-height: 8px;
  align-self: center;
}
.l3-gfx__path--flex { flex: 1; min-width: 6px; }

/* Marker dot */
.l3-gfx__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--l3-ink-4);
  flex-shrink: 0;
}
.l3-gfx__dot--filled { background: var(--l3-ink-2); }
.l3-gfx__dot--open {
  background: var(--l3-paper);
  border: 1px solid var(--l3-line-strong);
}

/* Horizontal rule */
.l3-gfx__rule { width: 100%; height: 1px; background: var(--l3-line); flex-shrink: 0; }
.l3-gfx__rule--v { width: 1px; height: 100%; background: var(--l3-line); flex-shrink: 0; }
.l3-gfx__rule--strong { background: var(--l3-line-strong); }

/* =========================================================================
   HOME — "Fragments to layer" horizontal split composition
   ========================================================================= */
.l3-graphic--home {
  flex-direction: row;
  padding: 0;
}

/* Left: disconnected tool fragments */
.l3-gfx-home__before {
  width: 44%;
  padding: 28px 20px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
}
.l3-gfx-home__before-label {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 10px;
}
/* Each fragment: distinct height/indent, intentional arrangement */
.l3-gfx-home__frag {
  border: 1px solid var(--l3-line);
  border-radius: 4px;
  background: var(--l3-paper);
  flex-shrink: 0;
}
.l3-gfx-home__frag--a { height: 32px; opacity: 0.65; }
.l3-gfx-home__frag--b { height: 20px; opacity: 0.40; margin-left: 14px; }
.l3-gfx-home__frag--c { height: 40px; opacity: 0.55; }
.l3-gfx-home__frag--d { height: 24px; opacity: 0.30; margin-left: 20px; }
.l3-gfx-home__frag--e { height: 34px; opacity: 0.50; margin-left: 8px; margin-right: 10px; }

/* Center divider */
.l3-gfx-home__divide {
  width: 1px;
  background: var(--l3-line-strong);
  align-self: stretch;
  margin: 24px 0;
  flex-shrink: 0;
}

/* Right: controlled operational layer */
.l3-gfx-home__after {
  flex: 1;
  padding: 28px 28px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.l3-gfx-home__after-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.l3-gfx-home__after-title {
  font-family: var(--l3-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-home__after-sub {
  font-family: var(--l3-font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
}
/* The operational layer frame: dominant element */
.l3-gfx-home__layer {
  border: 1.5px solid var(--l3-ink-2);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
.l3-gfx-home__layer-col {
  flex: 1;
  padding: 13px 10px 14px;
  border-right: 1px solid var(--l3-line);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.l3-gfx-home__layer-col:last-child { border-right: 0; }
.l3-gfx-home__col-name {
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-home__col-role {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
}

/* =========================================================================
   PRODUCT — "System layers" architectural diagram
   ========================================================================= */
.l3-graphic--product {
  padding: 28px;
}
.l3-gfx-product__frame {
  flex: 1;
  border: 1.5px solid var(--l3-ink-2);
  border-radius: 6px;
  background: var(--l3-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.l3-gfx-product__frame-head {
  padding: 9px 16px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.l3-gfx-product__layers {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Each layer: horizontal band inside the frame */
.l3-gfx-product__layer {
  flex: 1;
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid var(--l3-line);
  min-height: 0;
}
.l3-gfx-product__layer:last-child { border-bottom: 0; }
.l3-gfx-product__layer--core {
  flex: 1.5;  /* core layer gets more vertical space */
  background: var(--l3-paper);
}
.l3-gfx-product__layer--soft {
  background: var(--l3-paper-soft);
}
/* Left label column */
.l3-gfx-product__layer-tag {
  width: 90px;
  flex-shrink: 0;
  border-right: 1px solid var(--l3-line);
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.l3-gfx-product__layer-name {
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-product__layer-desc {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
}
/* Right content column: nodes in a row */
.l3-gfx-product__layer-content {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.l3-gfx-product__layer-node {
  border: 1px solid var(--l3-line-strong);
  border-radius: 4px;
  background: var(--l3-paper);
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.l3-gfx-product__layer--core .l3-gfx-product__layer-node {
  border-color: var(--l3-ink-3);
}
.l3-gfx-product__node-name {
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-product__node-sub {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
}
.l3-gfx-product__node-path {
  height: 1px;
  background: var(--l3-line-strong);
  flex-shrink: 0;
  align-self: center;
}
.l3-gfx-product__node-path--flex { flex: 1; min-width: 8px; }

/* =========================================================================
   CONTROL — "Workflow checkpoint path" horizontal diagram
   ========================================================================= */
.l3-graphic--control {
  padding: 28px;
  justify-content: center;
}
.l3-gfx-control__diagram {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
/* Top: horizontal flow path */
.l3-gfx-control__flow {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.l3-gfx-control__step {
  flex: 1;
  border: 1px solid var(--l3-line-strong);
  border-radius: 5px;
  background: var(--l3-paper);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.l3-gfx-control__step--gate {
  border-color: var(--l3-ink-2);
  border-width: 1.5px;
  background: var(--l3-paper-soft);
}
.l3-gfx-control__step-num {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-5);
  display: block;
}
.l3-gfx-control__step-name {
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-control__step-role {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
  margin-top: 2px;
}
.l3-gfx-control__arrow {
  width: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}
.l3-gfx-control__arrow svg { display: block; }
/* Bottom: activity trace */
.l3-gfx-control__trace {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 4px;
}
.l3-gfx-control__trace-dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--l3-ink-5);
  flex-shrink: 0;
}
.l3-gfx-control__trace-dot--filled { background: var(--l3-ink-4); }
.l3-gfx-control__trace-line {
  flex: 1;
  height: 1px;
  background: var(--l3-line);
}
.l3-gfx-control__trace-label {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-5);
  margin-left: 8px;
  white-space: nowrap;
}

/* =========================================================================
   DATA & ACCESS — "Record object with context surfaces"
   ========================================================================= */
.l3-graphic--data {
  padding: 28px;
  flex-direction: row;
  gap: 14px;
}
/* Left: dominant structured record card */
.l3-gfx-data__record {
  flex: 0 0 54%;
  border: 1.5px solid var(--l3-ink-2);
  border-top-width: 3px;
  border-radius: 6px;
  background: var(--l3-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: flex-start;
}
.l3-gfx-data__record-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--l3-line);
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.l3-gfx-data__record-title {
  font-family: var(--l3-font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-data__record-type {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}
.l3-gfx-data__record-fields {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.l3-gfx-data__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--l3-line);
}
.l3-gfx-data__field:last-child { border-bottom: 0; }
.l3-gfx-data__field-key {
  font-family: var(--l3-font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--l3-ink-4);
  flex-shrink: 0;
  width: 52px;
}
.l3-gfx-data__field-val {
  height: 1px;
  background: var(--l3-line-strong);
}
.l3-gfx-data__field-val--s { width: 38%; }
.l3-gfx-data__field-val--m { width: 55%; }
.l3-gfx-data__field-val--l { width: 72%; }

/* Right: context surfaces stacked vertically */
.l3-gfx-data__surfaces {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  width: 100%;
}
.l3-gfx-data__surface {
  border: 1px solid var(--l3-line-strong);
  border-radius: 5px;
  background: var(--l3-paper);
  overflow: hidden;
}
.l3-gfx-data__surface-head {
  padding: 7px 11px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
}
.l3-gfx-data__surface-name {
  font-family: var(--l3-font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--l3-ink-2);
  display: block;
}
.l3-gfx-data__surface-body {
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.l3-gfx-data__surface-row {
  height: 1px;
  background: var(--l3-line);
}
.l3-gfx-data__surface-row--s { width: 45%; }
.l3-gfx-data__surface-row--m { width: 68%; }
.l3-gfx-data__surface-row--l { width: 88%; }

/* =========================================================================
   USE CASES — "Four scenario flows" 2×2 editorial grid
   ========================================================================= */
.l3-graphic--usecases {
  padding: 28px;
}
.l3-gfx-uc__grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 0;
}
.l3-gfx-uc__scenario {
  border: 1px solid var(--l3-line-strong);
  border-radius: 5px;
  background: var(--l3-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.l3-gfx-uc__scenario-head {
  padding: 9px 12px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.l3-gfx-uc__scenario-name {
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--l3-ink);
  display: block;
}
.l3-gfx-uc__scenario-tag {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
}
.l3-gfx-uc__scenario-body {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 0;
}
/* Horizontal mini-flow inside each scenario */
.l3-gfx-uc__flow {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.l3-gfx-uc__flow-step {
  border: 1px solid var(--l3-line-strong);
  border-radius: 3px;
  background: var(--l3-paper);
  padding: 5px 8px;
  flex-shrink: 0;
}
.l3-gfx-uc__flow-step--gate {
  border-color: var(--l3-ink-3);
  background: var(--l3-paper-soft);
}
.l3-gfx-uc__flow-step-name {
  font-family: var(--l3-font-sans);
  font-size: 10px;
  font-weight: 600;
  color: var(--l3-ink-2);
  display: block;
  white-space: nowrap;
}
.l3-gfx-uc__flow-arrow {
  flex: 1;
  height: 1px;
  background: var(--l3-line-strong);
  min-width: 6px;
}
.l3-gfx-uc__outcome {
  font-family: var(--l3-font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--l3-ink-4);
  display: block;
}

/* =========================================================================
   Responsive adjustments
   ========================================================================= */
@media (max-width: 1024px) {
  .l3-gfx-home__before { width: 42%; padding: 20px 14px 20px 20px; }
  .l3-gfx-home__after  { padding: 20px 20px 20px 14px; }
  .l3-graphic--product { padding: 20px; }
  .l3-graphic--control { padding: 20px; }
  .l3-graphic--data    { padding: 20px; }
  .l3-graphic--usecases { padding: 20px; }
  .l3-gfx-product__layer-tag { width: 78px; }
}
@media (max-width: 768px) {
  .l3-graphic--home { flex-direction: column; }
  .l3-gfx-home__before { width: 100%; flex-direction: row; padding: 16px 16px 8px; gap: 6px; }
  .l3-gfx-home__frag { height: 28px; flex: 1; margin: 0 !important; }
  .l3-gfx-home__before-label { display: none; }
  .l3-gfx-home__divide { width: 100%; height: 1px; margin: 0 16px; align-self: auto; }
  .l3-gfx-home__after  { padding: 12px 16px 16px; gap: 10px; }
  .l3-graphic--data { flex-direction: column; }
  .l3-gfx-data__record { flex: none; width: 100%; }
  .l3-gfx-data__surfaces { flex-direction: row; }
  .l3-gfx-control__step-role { display: none; }
}
@media (max-width: 640px) {
  .l3-gfx-uc__grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
  .l3-gfx__label { font-size: 11px; }
  .l3-gfx-control__flow { gap: 0; }
  .l3-gfx-control__arrow { width: 8px; }
}


/* ==========================================================================
   L3RA ADDITIONS — single clean block, no duplicates
   All classes here are new; no base class is redefined.
   ========================================================================== */


/* ── 1. Scroll-reveal ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .52s cubic-bezier(.22,.68,0,1.2),
                transform .52s cubic-bezier(.22,.68,0,1.2);
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }

  [data-stagger] > * {
    opacity: 0; transform: translateY(12px);
    transition: opacity .42s cubic-bezier(.22,.68,0,1.2),
                transform .42s cubic-bezier(.22,.68,0,1.2);
  }
  [data-stagger].is-visible > * { opacity: 1; transform: none; }
  [data-stagger].is-visible > *:nth-child(1) { transition-delay:   0ms; }
  [data-stagger].is-visible > *:nth-child(2) { transition-delay:  60ms; }
  [data-stagger].is-visible > *:nth-child(3) { transition-delay: 120ms; }
  [data-stagger].is-visible > *:nth-child(4) { transition-delay: 180ms; }
  [data-stagger].is-visible > *:nth-child(5) { transition-delay: 240ms; }
  [data-stagger].is-visible > *:nth-child(6) { transition-delay: 300ms; }
  [data-stagger].is-visible > *:nth-child(7) { transition-delay: 360ms; }

  .steplist[data-stagger] > .steplist__row { transform: translateY(8px); }
  .steplist[data-stagger].is-visible > .steplist__row { transform: none; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(1) { transition-delay:   0ms; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(2) { transition-delay:  50ms; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(3) { transition-delay: 100ms; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(4) { transition-delay: 150ms; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(5) { transition-delay: 200ms; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(6) { transition-delay: 250ms; }
  .steplist[data-stagger].is-visible > .steplist__row:nth-child(7) { transition-delay: 300ms; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1; transform: none; transition: none; }
}


/* ── 2. Topbar scroll shadow ──────────────────────────────────────────── */

.topbar { transition: box-shadow .2s ease; }
.topbar.is-scrolled {
  box-shadow: 0 1px 0 var(--l3-line), 0 2px 12px rgba(0,0,0,.06);
}


/* ── 3. Hover states (extend base classes, no redefinition) ───────────── */

.card {
  transition: border-color var(--l3-dur-2) var(--l3-ease),
              box-shadow   var(--l3-dur-2) var(--l3-ease);
}
.card:hover {
  border-color: var(--l3-line-strong);
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
}
.card--dark:hover {
  border-color: var(--l3-zinc-700);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.layer { transition: border-color var(--l3-dur-2) var(--l3-ease); }
.layer:hover { border-color: var(--l3-line-strong); }

.deflist__row { transition: background var(--l3-dur-2) var(--l3-ease); }
.deflist__row:hover { background: var(--l3-paper-soft); }

.synth__row {
  transition: background var(--l3-dur-2) var(--l3-ease),
              border-color var(--l3-dur-2) var(--l3-ease);
}
.synth__row:hover {
  background: var(--l3-paper-soft);
  border-color: var(--l3-line-strong);
}

.flow__node { transition: background var(--l3-dur-2) var(--l3-ease); }
.flow__node:hover { background: var(--l3-paper-soft) !important; }

.case {
  transition: border-color var(--l3-dur-2) var(--l3-ease),
              box-shadow   var(--l3-dur-2) var(--l3-ease);
}
.case:hover { border-color: var(--l3-line-strong); }


.capabilities__row { transition: background var(--l3-dur-2) var(--l3-ease); }
.capabilities__row:hover { background: var(--l3-paper); }

.btn--primary:active,
.btn--secondary:active { transform: translateY(1px); }

.arrowlink svg { transition: transform var(--l3-dur-2) var(--l3-ease); }
.arrowlink:hover svg { transform: translateX(4px); }

.l3-gfx-home__layer-col { transition: background .15s ease; }
.l3-gfx-home__layer-col:hover { background: var(--l3-paper-soft); }
.l3-gfx-control__step { transition: border-color .15s ease; }
.l3-gfx-control__step:hover { border-color: var(--l3-line-strong); }
.l3-gfx-uc__scenario { transition: border-color .15s ease; }
.l3-gfx-uc__scenario:hover { border-color: var(--l3-line-strong); }


/* ── 4. Route cards (base styles — not in site_new.css) ──────────────── */

.routecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.routecards .routecard:last-child { grid-column: 1 / -1; }



.routecard {
  display: flex;
  flex-direction: column;
  background: var(--l3-paper-soft);
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--l3-dur-2) var(--l3-ease),
              box-shadow   var(--l3-dur-2) var(--l3-ease);
  overflow: hidden;
}
.routecard:hover {
  border-color: var(--l3-line);
}
.routecard__title {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--l3-font-sans);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.014em; line-height: 1.3;
  color: var(--l3-ink);
}
.routecard__body {
  margin: 0 0 0;
  padding: 0;
  font-size: 15px; line-height: 1.6;
  color: var(--l3-ink-2); max-width: 46ch;
}

/* Content wrapper for padding */


.routecard__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--l3-ink-3);
  transition: color var(--l3-dur-2) var(--l3-ease);
}
.routecard:hover .routecard__cta { color: var(--l3-ink); }
.routecard__cta svg { transition: transform var(--l3-dur-2) var(--l3-ease); }
.routecard:hover .routecard__cta svg { transform: translateX(3px); }

@media (max-width: 800px) {
  .routecards { grid-template-columns: 1fr; }
  .routecards .routecard:last-child { grid-column: auto; }
}




/* ---------- Static system logic block ---------- */
.sec--scroll-moment {
  position: relative;
  padding: 120px 0;
}
.scroll-moment__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.scroll-moment__sticky,
.op-record {
  position: static;
}
.scroll-moment__copy .sec__title,
.scroll-moment__copy .sec__body {
  max-width: 520px;
}
.op-record {
  border: 1px solid var(--l3-line);
  border-radius: 14px;
  background: var(--l3-paper);
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.08);
  overflow: hidden;
}
.op-record__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
}
.op-record__eyebrow {
  font-family: var(--l3-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--l3-tr-mono);
  text-transform: uppercase;
  color: var(--l3-ink-3);
}
.op-record__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--l3-ink-2);
  border: 1px solid var(--l3-line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--l3-paper);
}
.op-record__state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--status-attention);
}
.op-record__state--attention::before {
  background: var(--status-attention);
}
.op-record__row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--l3-line);
  transition: opacity 0.35s var(--l3-ease), transform 0.35s var(--l3-ease), max-height 0.35s var(--l3-ease), padding 0.35s var(--l3-ease);
}
.op-record__row:last-child { border-bottom: 0; }
.op-record__key {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--l3-ink-3);
}
.op-record__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--l3-ink-2);
}
@media (max-width: 960px) {
  .sec--scroll-moment {
    min-height: auto;
    padding: 96px 0;
  }
  .scroll-moment__grid {
    grid-template-columns: 1fr;
  }
  .scroll-moment__sticky,
  .op-record {
    position: static;
  }
}
@media (max-width: 640px) {
  .op-record__head,
  .op-record__row {
    padding-left: 20px;
    padding-right: 20px;
  }
  .op-record__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* ── 5. Closestrip (dark CTA block — not in site_new.css) ────────────── */

.footer-cta {
  background: var(--l3-night);
  padding-bottom: 0;
  padding-top: 0;
  border-top: none;
}
.closestrip {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 48px;
  align-items: center;
}
.closestrip__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 40px; font-weight: 400;
  letter-spacing: -0.024em; line-height: 1.2;
  color: var(--l3-night-ink); max-width: 24ch;
}
.closestrip__actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.closestrip__actions:has(.btn + .btn) .btn {
  min-width: 232px;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .closestrip { padding: 36px 28px; grid-template-columns: 1fr; gap: 24px; }
  .closestrip__title { font-size: 26px; }
}
@media (max-width: 640px) {
  .closestrip { padding: 28px 20px; }
  .closestrip__title { font-size: 22px; }
}


/* ── 6. Demo-hero layout + form card (not in site_new.css) ───────────── */

.demo-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 80px;
  align-items: start;
  padding: 96px 0 112px;
}
.demo-hero__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-weight: 400; font-size: 52px;
  line-height: 1.2; letter-spacing: -0.026em;
  color: var(--l3-ink);
}
.demo-hero__sub {
  margin: 24px 0 0;
  font-size: 17px; line-height: 1.65;
  color: var(--l3-ink-2); max-width: 44ch;
}
.demo-hero__expect {
  margin-top: 40px;
  border-top: 1px solid var(--l3-line);
}
.demo-hero__expect__row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--l3-line);
  font-size: 15px; line-height: 1.6; color: var(--l3-ink-2);
}
.demo-hero__expect__row__k {
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-3); flex-shrink: 0;
  padding-top: 2px; min-width: 24px;
}

.demo-form {
  background: var(--l3-paper);
  border: 1px solid var(--l3-line);
  border-radius: 10px;
  padding: 40px 48px;
  position: sticky;
  top: 88px;
}
.demo-form__label {
  display: block;
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink-3); margin-bottom: 12px;
}
.demo-form__heading {
  margin: 0 0 28px;
  font-family: var(--l3-font-sans);
  font-size: 40px; font-weight: 400;
  letter-spacing: -0.013em; line-height: 1.2;
  color: var(--l3-ink);
}

@media (max-width: 960px) {
  .demo-hero__layout { grid-template-columns: 1fr; gap: 48px; padding: 72px 0 88px; }
  .demo-form { position: static; }
}
@media (max-width: 640px) {
  .demo-hero__title { font-size: 38px; }
}


/* ── 7. Mechanism cards 2×2 (not in site_new.css) ─────────────────────── */

.mech-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 24px);
  margin-top: clamp(56px, 6vw, 80px);
}
.mech-card {
  background: transparent;
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  border: var(--border-card, 1px solid var(--l3-line));
  transition: border-color var(--l3-dur-2) var(--l3-ease),
              box-shadow   var(--l3-dur-2) var(--l3-ease);
}
.mech-card:hover {
  border-color: var(--l3-line-strong);
  box-shadow: 0 2px 10px rgba(0,0,0,.055);
}
.mech-visual {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(120deg, transparent 20%, rgba(200, 200, 210, 0.15) 20%, rgba(200, 200, 210, 0.15) 22%, transparent 22%),
    linear-gradient(60deg, transparent 20%, rgba(200, 200, 210, 0.15) 20%, rgba(200, 200, 210, 0.15) 22%, transparent 22%),
    linear-gradient(180deg, transparent 25%, rgba(200, 200, 210, 0.1) 25%, rgba(200, 200, 210, 0.1) 26%, transparent 26%),
    linear-gradient(to bottom, #f9f9fb 0%, #f5f5f8 100%);
  background-size: 40px 40px, 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 20px 0, 0 0, 0 0;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--l3-line);
}
.mech-visual-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4%, 32px);
}
.mech-body {
  padding: clamp(20px, 3%, 28px);
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.mech-num {
  font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--l3-ink-3); margin-bottom: 2px;
}

/* Module color accents on mech-visual top edge */
.mech-card:nth-child(1) .mech-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: #00D084; opacity: 0.4;
  z-index: 1;
}
.mech-card:nth-child(2) .mech-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: #4B7BFF; opacity: 0.4;
  z-index: 1;
}
.mech-card:nth-child(3) .mech-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: #FF9D00; opacity: 0.4;
  z-index: 1;
}
.mech-card:nth-child(4) .mech-visual::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: #FFD600; opacity: 0.4;
  z-index: 1;
}
.mech-card h3 {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.012em; line-height: 1.24; color: var(--l3-ink);
}
.mech-card p {
  margin: 0;
  font-size: 14.5px; line-height: 1.6; color: var(--l3-ink-2);
}
.mech-skel     { background: var(--l3-line); border-radius: 4px; flex-shrink: 0; }
.mech-skel.sm  { height: 10px; opacity: .6; }
.mech-skel.md  { height: 18px; }
.mech-skel.row { width: 100%; }
.mech-skel.w80 { width: 80%; }
.mech-skel.w60 { width: 60%; }
.mech-skel.w40 { width: 40%; }
.mech-sk-col   { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.mech-sk-row   { display: flex; gap: 7px; width: 100%; }
.mech-skel-node {
  height: 32px; flex: 1;
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px; background: var(--l3-paper);
}
.mech-skel-node.soft { background: var(--l3-paper-soft); border-color: var(--l3-line); }
.mech-skel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--l3-line-strong); flex-shrink: 0;
}
.mech-note {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 20px 24px;
  background: var(--l3-paper-soft);
  border: 1px solid var(--l3-line); border-radius: 8px;
  font-size: 14px; color: var(--l3-ink-2); line-height: 1.65;
}
.mech-note strong { color: var(--l3-ink); font-weight: 600; }

@media (max-width: 840px) {
  .mech-grid-2x2 { grid-template-columns: 1fr; }
}



/* ── 8. Use case article (not in site_new.css) ────────────────────────── */

.usecase {
  border-top: 1px solid var(--l3-line);
  padding: 56px 0;
}
.usecase:last-of-type { border-bottom: 1px solid var(--l3-line); }

/* Head: index+title left, problem right */
.usecase__head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: 40px;
}
.usecase__index {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--l3-ink-3);
  margin-bottom: 12px;
}
.usecase__title {
  margin: 0;
  font-family: var(--l3-font-sans);
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 500;
  letter-spacing: -0.016em; line-height: 1.2;
  color: var(--l3-ink);
}
.usecase__problem {
  margin: 0;
  font-size: 16.5px; line-height: 1.65;
  color: var(--l3-ink-2);
  padding-top: 6px;
}

/* Body: rows of key → value */
.usecase__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--l3-line);
}
.usecase__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding: 24px 0;
  border-bottom: 1px solid var(--l3-line);
  align-items: start;
}
.usecase__row__k {
  font-family: var(--l3-font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--l3-ink-3);
  padding-top: 4px;
}
.usecase__row__v {
  margin: 0;
  font-size: 15.5px; line-height: 1.62;
  color: var(--l3-ink-2);
}

/* CTA row */
.usecase__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 0;
  flex-wrap: wrap;
}
.usecase__cta__lbl {
  font-family: var(--l3-font-sans);
  font-size: 13px; color: var(--l3-ink-3);
}
.usecase__explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-family: var(--l3-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--l3-ink-3);
  text-decoration: none;
  transition: color var(--l3-dur-2) var(--l3-ease), gap var(--l3-dur-2) var(--l3-ease);
}
.usecase__explore svg {
  flex: 0 0 auto;
  transition: transform var(--l3-dur-2) var(--l3-ease);
}
.usecase__explore:hover {
  gap: 11px;
  color: var(--l3-ink-2);
}
.usecase__explore:hover svg { transform: translateX(3px); }

@media (max-width: 840px) {
  .usecase__head { grid-template-columns: 1fr; gap: 16px; }
  .usecase__row  { grid-template-columns: 100px 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .usecase__row  { grid-template-columns: 1fr; gap: 8px; }
  .usecase__cta  { flex-direction: column; align-items: flex-start; }
}



/* ---------- Use case scenario article layout ---------- */
.usecase__story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--l3-line);
}
.usecase__story .usecase__index {
  display: inline-block;
  margin-bottom: 16px;
}
.usecase__story .usecase__problem {
  max-width: 680px;
  margin-top: 20px;
  padding-top: 0;
}
.scenario-visual {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--l3-ink-4);
}
.scenario-visual > i {
  font-size: 64px;
  line-height: 1;
  color: var(--l3-ink-4);
}
.usecase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: 40px;
}
.usecase__section-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--l3-font-sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--l3-ink-3);
}
.narrative-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--l3-ink-2);
}
.usecase__grid .taglist { align-content: start; }
.usecase__body .usecase__cta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--l3-line);
}
@media (max-width: 1024px) {
  .usecase__story,
  .usecase__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .usecase__story { padding: 40px 0 32px; }
  .scenario-visual { min-height: 120px; }
  .usecase__grid { padding-top: 32px; }
}


/* ── Footer list rhythm ── */
.footer__col ul li {
  font-size: 14px;
  color: var(--l3-night-ink-3);
  line-height: 1.5;
}


/* ── Synth rows — table feel instead of floating cards ── */
.synth__rows {
  gap: 0;
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px;
  overflow: hidden;
}
.synth__row {
  border: none;
  border-bottom: 1px solid var(--l3-line);
  border-radius: 0;
  padding: 13px 16px;
}
.synth__row:last-child { border-bottom: none; }


/* ── 9. Infotiles — control.html governance block ────────────────────── */

.infotiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}

.infotile {
  background: var(--l3-paper);
  border: 1px solid var(--l3-line-strong);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--l3-dur-2) var(--l3-ease);
}
.infotile:hover { border-color: var(--l3-line-strong); }
.infotile--soft { background: var(--l3-paper-soft); }

.infotile__label {
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--l3-ink-3);
}
.infotile__title {
  font-family: var(--l3-font-sans);
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.012em; line-height: 1.24;
  color: var(--l3-ink);
  margin-bottom: 4px;
}
.infotile__body {
  font-size: 14px; line-height: 1.62;
  color: var(--l3-ink-2);
}

/* Permission rows */
.infotile__perms { display: flex; flex-direction: column; gap: 8px; }
.infotile__perm-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
}
.infotile__perm-role {
  font-weight: 500; color: var(--l3-ink);
  min-width: 72px; flex-shrink: 0;
}
.infotile__perm-bar {
  flex: 1; height: 1px;
  background: var(--l3-line-strong);
}
.infotile__perm-tag {
  font-size: 12px; font-weight: 500;
  color: var(--l3-ink-3);
  background: var(--l3-paper-soft);
  border: 1px solid var(--l3-line);
  padding: 3px 9px; border-radius: 4px;
  white-space: nowrap;
}

/* Chain nodes */
.infotile__chain {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap;
}
.infotile__chain-node {
  font-size: 12.5px; font-weight: 500;
  color: var(--l3-ink);
  background: var(--l3-paper);
  border: 1px solid var(--l3-line-strong);
  padding: 5px 11px; border-radius: 5px;
  flex-shrink: 0;
}
.infotile__chain-arrow {
  flex: 1; height: 1px;
  background: var(--l3-line-strong);
  min-width: 12px; max-width: 28px;
}

/* State rows */
.infotile__states { display: flex; flex-direction: column; gap: 10px; }
.infotile__state-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--l3-ink-2);
}
.infotile__state-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-pending);
  border: 1.5px solid var(--status-pending);
  flex-shrink: 0;
}
.infotile__state-dot--active {
  background: var(--status-active);
  border-color: var(--status-active);
}
.infotile__state-dot--pending {
  background: var(--status-pending);
  border-color: var(--status-pending);
}
.infotile__state-dot--resolved {
  background: transparent;
  border-color: var(--status-resolved);
}
.infotile__state-owner {
  font-weight: 500; color: var(--l3-ink);
  margin-left: 4px;
}



/* ---------- Control anatomy cards normalization ---------- */
.infotiles {
  gap: 24px;
  align-items: stretch;
}
.infotile,
.infotile--soft {
  background: var(--l3-paper);
  padding: 28px;
  gap: 14px;
  min-height: 224px;
}
.infotile__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.075em;
  color: var(--l3-ink-3);
}

body[data-page="control"] .infotile__label {
  font-size: 13px;
  color: var(--l3-ink-4);
}
.infotile__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}
.infotile__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--l3-ink-3);
}
.infotile__perms,
.infotile__chain,
.infotile__states {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--l3-line);
}
.infotile__perms,
.infotile__states {
  gap: 8px;
}
.infotile__perm-row,
.infotile__state-row {
  min-height: 28px;
  font-size: 13px;
  line-height: 1.45;
}
.infotile__perm-role,
.infotile__state-owner {
  font-weight: 600;
  color: var(--l3-ink);
}
.infotile__perm-bar,
.infotile__chain-arrow {
  background: var(--l3-line);
}
.infotile__perm-tag,
.infotile__chain-node {
  border-color: var(--l3-line);
  background: var(--l3-paper-soft);
  color: var(--l3-ink-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.infotile__chain {
  display: grid;
  grid-template-columns: max-content minmax(10px, 1fr) max-content minmax(10px, 1fr) max-content minmax(10px, 1fr) max-content;
  align-items: center;
  gap: 0;
  width: 100%;
  overflow: hidden;
}
.infotile__chain-node {
  padding: 7px 10px;
  white-space: nowrap;
}
.infotile__chain-arrow {
  width: 100%;
  min-width: 10px;
  max-width: none;
}
.infotile__state-dot,
.infotile__state-dot--pending {
  background: var(--status-pending);
  border-color: var(--status-pending);
}
.infotile__state-dot--active {
  background: var(--status-active);
  border-color: var(--status-active);
}
.infotile__state-dot--resolved {
  background: transparent;
  border-color: var(--status-resolved);
}
@media (max-width: 580px) {
  .infotile,
  .infotile--soft {
    min-height: auto;
  }
  .infotile__chain {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .infotile__chain-arrow {
    display: none;
  }
}

/* demo-hero section wrapper — was missing */
.demo-hero {
  border-bottom: 1px solid var(--l3-line);
}

@media (max-width: 900px) {
  .infotiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .infotiles { grid-template-columns: 1fr; }
}







/* ── Use case cards — each scenario is a distinct contained block ── */

.usecase {
  border: 1px solid var(--l3-line-strong);
  border-radius: 10px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
}
.usecase:last-of-type { margin-bottom: 0; border-bottom: 1px solid var(--l3-line-strong); }

.usecase__head {
  padding: 40px 40px 36px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
  margin-bottom: 0;
}

.usecase__body {
  border-top: none;
}

.usecase__row {
  padding: 28px 40px;
  border-bottom: 1px solid var(--l3-line);
  border-top: none;
}
.usecase__row + .usecase__row { border-top: none; }
.usecase__row:last-of-type { border-bottom: none; }

.usecase__row__k {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--l3-ink-4); padding-top: 2px;
}

.usecase__cta {
  padding: 24px 40px;
  border-top: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
  margin-top: 0;
}



/* =========================================================================
   Design System Normalisation — targeted spec corrections
   Source: 16_L3RA_WEBSITE_MASTER_CONTEXT.md Section 6
   Spec: card gutters min 24px · card padding 28–32px · sections 120–160px
   ========================================================================= */

/* Section padding: 144px → 120px (lower bound of 120–160px spec) */
.sec          { padding: 80px 0; }
.sec--compact { padding: 64px 0; }

/* Card gutters: all grids to minimum 24px */
.routecards       { gap: 24px; }
.mech-grid-2x2    { gap: 24px; }
.infotiles        { gap: 24px; }
.usecase          { margin-bottom: 24px; }

/* Mechanism card body: consistent 32px padding */
.mech-body { padding: 32px; }

/* Infotile: symmetric padding */
.infotile { padding: 32px; }

/* Usecase row key column: wider for readability */
.usecase__row {
  grid-template-columns: 160px minmax(0, 1fr);
}

/* Sec head gap: tighten slightly for dense content pages */
.sec__head { margin-bottom: 48px; }

/* Eyebrow labels: normalise tracking — slight positive for readability */
.sec__eyebrow,
.pagehead__eyebrow {
  letter-spacing: 0.01em;
}



/* =========================================================================
   Visual refinements — section separators · background · routecards
   ========================================================================= */

/* 1. Quiet section separators — consistent top line between sections */
.sec        { border-top: 1px solid rgba(0,0,0,.05); }
.sec--soft  { border-top: 1px solid rgba(0,0,0,.05); }
.sec--dark  { border-top: none; }

/* 2. Lighter paper-soft — defined in root tokens. */

/* 3. Routecards — 3 columns, no full-width orphan on last card */
.routecards {
  grid-template-columns: repeat(3, 1fr);
}
.routecards .routecard:last-child {
  grid-column: auto;
}

/* 4. Routecard icon */
.icon-circle {
  border-radius: 8px;
}
/* ============================================================ UNIFIED ILLUSTRATION ICON ============================================================ */
/* Single reusable icon component across all contexts */

.illus-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  color: #4A4A54;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: color var(--l3-dur-2) var(--l3-ease);
}

.illus-icon svg,
.illus-icon i {
  display: block;
  width: 24px;
  height: 24px;
  font-size: 24px;
}

/* Hover state — subtle color lift */
.card:hover .illus-icon,
.routecard:hover .illus-icon,
.feature-item:hover .illus-icon,
.mech-card:hover .illus-icon {
  color: var(--l3-ink-2);
}

/* Dark background variant */
.illus-icon--dark {
  background: rgba(255, 255, 255, 0.05);
  color: #A1A1AA;
}

.illus-icon--dark:hover {
  color: #FAFAFA;
}

/* Accent color variants */
.illus-icon--accent-green {
  color: #00D084;
}

.illus-icon--accent-blue {
  color: #4B7BFF;
}

.illus-icon--accent-orange {
  color: #FF9D00;
}

.illus-icon--accent-purple {
  color: #9D4FFF;
}

.illus-icon--accent-yellow {
  color: #FFD600;
}

/* Legacy class support (backward compatibility) */
.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  color: #4A4A54;
  font-size: 24px;
  line-height: 1;
  transition: color var(--l3-dur-2) var(--l3-ease);
}

.card-icon svg,
.card-icon i {
  display: block;
  width: 24px;
  height: 24px;
  font-size: 28px;
}

/* Alias classes for migration */
.routecard__icon {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background:
    linear-gradient(120deg, transparent 20%, rgba(200, 200, 210, 0.15) 20%, rgba(200, 200, 210, 0.15) 22%, transparent 22%),
    linear-gradient(60deg, transparent 20%, rgba(200, 200, 210, 0.15) 20%, rgba(200, 200, 210, 0.15) 22%, transparent 22%),
    linear-gradient(180deg, transparent 25%, rgba(200, 200, 210, 0.1) 25%, rgba(200, 200, 210, 0.1) 26%, transparent 26%),
    linear-gradient(to bottom, #f9f9fb 0%, #f5f5f8 100%);
  background-size: 40px 40px, 40px 40px, 40px 40px, 100% 100%;
  background-position: 0 0, 20px 0, 0 0, 0 0;
  border-bottom: 1px solid var(--l3-line);
  color: #4A4A54;
  font-size: 32px;
  line-height: 1;
  transition: color var(--l3-dur-2) var(--l3-ease);
}

.routecard:hover .routecard__icon {
  color: var(--l3-ink-2);
}

.feature-item__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  color: #4A4A54;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: color var(--l3-dur-2) var(--l3-ease);
}



/* =========================================================================
   Refinement pass — routing, flow ribbon, visual anchors
   ========================================================================= */

/* ── Routecards 2×2 variant ─────────────────────────────────────────── */
.routecards--2x2 {
  grid-template-columns: 1fr 1fr;
}
.routecards--2x2 .routecard:last-child {
  grid-column: auto;
}

/* ── Route CTA strip — separate from navigation cards ──────────────── */
.routecta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
  padding: 28px 32px;
  background: var(--l3-paper-soft);
  border: 1px solid var(--l3-line);
  border-radius: 10px;
}
.routecta__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.routecta__label {
  font-family: var(--l3-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--l3-ink);
  margin: 0;
}
.routecta__body {
  font-size: 14px;
  color: var(--l3-ink-3);
  line-height: 1.55;
  margin: 0;
  max-width: 52ch;
}
@media (max-width: 720px) {
  .routecta { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ── Canonical flow ribbon ──────────────────────────────────────────── */
.flow-ribbon {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
}
.flow-ribbon__node {
  font-family: var(--l3-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--l3-ink-2);
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.flow-ribbon__arrow {
  font-size: 13px;
  color: var(--l3-ink-4);
  padding: 0 10px;
  flex-shrink: 0;
}

/* ── Layer card icon ────────────────────────────────────────────────── */
.layer__index i {
  opacity: 0.7;
}

body[data-page="product"] .layer__index i {
  font-size: 14px;
}



/* ── Logo text mark ── */
.topbar__logo {
  font-family: var(--l3-font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--l3-ink);
  text-decoration: none;
}


/* ── Former dark section deflist — keep readable on unified light sections ── */
.sec--dark .deflist__row:hover {
  background: var(--l3-paper-soft);
}
.sec--dark .deflist__row {
  border-bottom-color: var(--l3-line);
}

/* ── Infotiles section — reduce bottom padding when it's the last content block ── */
.sec:has(.infotiles) {
  padding-bottom: 88px;
}



/* ==========================================================================
   RESPONSIVE — full coverage
   Breakpoints: 1024px (tablet) · 768px (small tablet) · 640px (mobile)
   Rule: preserve desktop. Stack cleanly to 1-col on mobile.
   ========================================================================== */

/* ── 1024px — Tablet ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Container */
  .container { padding: 0 clamp(16px, 4vw, 40px); }

  /* Section rhythm */
  .sec         { padding: 96px 0; }
  .sec--compact{ padding: 72px 0; }

  /* Heading sizes */
  .pagehead__title { font-size: 48px; }
  .sec__title      { font-size: 34px; }

  /* Card grids */
  .cardgrid-4 { grid-template-columns: 1fr 1fr; }
  .cardgrid-3 { grid-template-columns: 1fr 1fr; }

  .biography-layout { grid-template-columns: 1fr; }

  /* Product layers: 3×2 → 2-col */
  .layers { gap: 12px; }

  /* Contrast block */
  .contrast { grid-template-columns: 1fr 1fr; }
  .contrast__cell:last-child { grid-column: 1 / -1; }

  /* Steps horizontal — allow wrap */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Deflist: loosen gap */
  .deflist__row { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }

  /* Routecards 2×2 stays 2-col down to 768px */

  /* Footer */
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  /* Usecase head */
  .usecase__head { gap: 32px; }
  .usecase__row  { grid-template-columns: 140px minmax(0,1fr); gap: 24px; }

}

/* ── 768px — Small tablet ───────────────────────────────────────────────── */
@media (max-width: 768px) {


  /* Container */
  .container { padding: 0 clamp(16px, 4vw, 40px); }

  /* Topbar — hide nav links and trust text, keep logo */
  .topbar__nav { display: none; }
  .topbar__cta { display: none; }
  .topbar__inner { height: 60px; }

  /* Section rhythm */
  .sec         { padding: 80px 0; }
  .sec--compact{ padding: 60px 0; }
  .sec__head   { margin-bottom: 40px; }

  /* Heading */
  .pagehead__title { font-size: 40px; }
  .sec__title      { font-size: 30px; }
  .sec__body       { font-size: 16px; }

  /* Card grids → 1-col */
  .cardgrid-4 { grid-template-columns: 1fr; }
  .cardgrid-3 { grid-template-columns: 1fr; }

  .timeline { padding: 32px 24px; }
  .biography-row { padding: 24px; }
  .cardgrid-2 { grid-template-columns: 1fr; }

  /* Product layers → 1-col */
  .layers { gap: 10px; }

  /* Contrast → 1-col */
  .contrast { grid-template-columns: 1fr; }
  .contrast__cell:last-child { grid-column: auto; }
  .contrast__cell { border-right: none; border-bottom: 1px solid var(--l3-line); }
  .contrast__cell:last-child { border-bottom: none; }

  /* Steps → 2-col */
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2n) { border-right: none; }

  /* Deflist → stack */
  .deflist__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .deflist__k { font-size: 13px; padding-top: 0; }

  /* Steplist rows → simplify grid */
  .steplist__row {
    grid-template-columns: 56px minmax(0,1fr);
    gap: 16px;
  }
  .steplist__body { grid-column: 2; }

  /* Flow — horizontal scroll on small screens */
  .flow { overflow-x: auto; }

  /* Routecards 2×2 → 1-col */
  .routecards--2x2 { grid-template-columns: 1fr; }
  .routecards       { grid-template-columns: 1fr; }

  /* Mechanism cards → 1-col */
  .mech-grid-2x2 { grid-template-columns: 1fr; }

  /* Infotiles → 1-col */
  .infotiles { grid-template-columns: 1fr; }

  /* Usecase */
  .usecase__head { grid-template-columns: 1fr; gap: 16px; }
  .usecase__row  { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .usecase__row__k { font-size: 10px; }
  .usecase__head  { padding: 28px 24px 24px; }
  .usecase__row   { padding: 24px; }
  .usecase__cta   { padding: 20px 24px; }

  /* Demo layout */
  .demo-hero__layout { padding: 64px 0 72px; }

  /* Footer */
  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer { padding: 56px 0 48px; }

  /* Synth rows — hide last two columns */
  .synth__row {
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
  }
  .synth__row__role { display: none; }

  /* Closestrip → stack */
  .closestrip { padding: 40px 32px; }

  /* Routecta → stack */
  .routecta { flex-direction: column; gap: 16px; }

}

/* ── 640px — Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Container */
  .container { padding: 0 clamp(16px, 4vw, 40px); }

  /* Section rhythm */
  .sec         { padding: 64px 0; }
  .sec--compact{ padding: 48px 0; }
  .sec__head   { margin-bottom: 32px; }

  /* Hero */
  .pagehead { padding: 56px 0 72px; }
  .pagehead__title { font-size: 34px; letter-spacing: -0.02em; }
  .pagehead__sub   { font-size: 16px; }
  .pagehead__actions { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Section headings */
  .sec__title { font-size: 26px; }
  .sec__body  { font-size: 15px; }

  /* Typography */
  .pagehead__eyebrow { font-size: 11px; }
  .sec__eyebrow      { font-size: 11px; }

  /* Buttons full-width on mobile */
  .pagehead__actions .btn { width: 100%; justify-content: center; }

  /* Steps → 1-col */
  .steps { grid-template-columns: 1fr; }
  .step  { border-right: none; padding-right: 0; padding-left: 0; }
  .step + .step { padding-left: 0; border-top: 1px solid var(--l3-line); }

  /* Steplist → hide number col */
  .steplist__row { grid-template-columns: 1fr; gap: 8px; }
  .steplist__num { display: none; }
  .steplist__body { grid-column: auto; }
  .steplist__title { font-size: 18px; }
  .steplist__body  { font-size: 14px; }

  /* Synth rows → 2 cols only */
  .synth__row {
    grid-template-columns: 72px 1fr;
    gap: 8px;
  }
  .synth__row__status { display: none; }
  .synth__row__role   { display: none; }

  /* Flow ribbon → scroll */
  .flow-ribbon { padding: 0; gap: 0; }
  .flow-ribbon__node { font-size: 12px; padding: 0 8px; }
  .flow-ribbon__arrow { padding: 0 6px; font-size: 12px; }

  /* Usecase */
  .usecase { margin-bottom: 16px; }
  .usecase__title { font-size: 20px; }
  .usecase__problem { font-size: 15px; }

  /* Form → 1-col */
  .form { grid-template-columns: 1fr; }
  .form__field--full { grid-column: auto; }
  .form__actions { flex-direction: column; align-items: stretch; }
  .form__actions .btn { width: 100%; justify-content: center; }

  /* Demo hero */
  .demo-hero__layout { padding: 48px 0 56px; }
  .demo-hero__title  { font-size: 32px; }
  .demo-hero__sub    { font-size: 15px; }

  /* Demo form */
  .demo-form { padding: 24px 20px; position: static; }

  /* Footer → 1-col */
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .footer__base { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer { padding: 48px 0 40px; }

  /* Routecard */
  .routecard { padding: 24px; }
  .routecards--2x2 { gap: 12px; }

  /* Mech cards */
  .mech-body { padding: 16px 20px 24px; }

  /* Infotiles */
  .infotiles { gap: 12px; }
  .infotile  { padding: 24px; }

  /* Closestrip */
  .closestrip { padding: 28px 20px; }
  .closestrip__title { font-size: 20px; }

  /* Endstrip → stack */
  .endstrip { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }

  /* Layers grid */
  .layers { gap: 8px; }
  .layer  { padding: 20px; }
  .layer__name { font-size: 17px; }

  /* Deflist */
  .deflist__row { padding: 20px 0; }

  /* Card padding */
  .card { padding: 24px; }

  /* Topbar */
  .topbar__inner { height: 56px; }
  .topbar__logo  { font-size: 16px; }

}

/* =========================================================================
   MOTION & ANIMATION SYSTEM
   Scroll reveal, hover interactions, visual placeholder hints
   Enterprise-focused, calm, controlled
   ========================================================================= */

/* Global animation setup */
@media (prefers-reduced-motion: no-preference) {
  :root {
    --l3-dur-reveal: 0.6s;
    --l3-dur-stagger: 0.08s;
    --l3-dur-hover: 0.2s;
    --l3-dur-flow: 0.5s;
    --l3-ease-reveal: cubic-bezier(0.4, 0, 0.2, 1);
    --l3-ease-hover: cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Scroll reveal base state */
  [data-reveal],
  .sec__head,
  .card,
  .routecard,
  .usecase,
  .case,
  .layer,
  .mech-card,
  .flow,
  .steplist__row,
  .form,
  .demo-form,
  .endstrip,
  .closestrip {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--l3-dur-reveal) var(--l3-ease-reveal),
                transform var(--l3-dur-reveal) var(--l3-ease-reveal);
  }

  /* Reveal state when in viewport */
  [data-in-view="true"],
  [data-reveal][data-in-view="true"] {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered reveal */
  [data-stagger-index] {
    transition-delay: calc(var(--l3-stagger-delay, 80ms) * var(--l3-stagger-index, 0));
  }

  [data-stagger-index][data-in-view="true"] {
    opacity: 1;
    transform: translateY(0);
  }

  /* Flow diagrams - sequential node reveal */
  .flow__node {
    opacity: 0;
    transform: translateY(12px);
  }

  .flow__node[data-in-view="true"] {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--l3-dur-flow) * var(--l3-flow-index, 0) / 6);
  }

  /* Adjust flow transition timing */
  .flow__node {
    transition: opacity calc(var(--l3-dur-flow) / 1.5) var(--l3-ease-reveal),
                transform calc(var(--l3-dur-flow) / 1.5) var(--l3-ease-reveal);
  }

  /* Visual placeholder subtle animation hints */
  .pagehead__graphic-placeholder {
    position: relative;
  }

  .l3-gfx-home__frag {
    opacity: 0.85;
    transition: opacity 0.8s var(--l3-ease-reveal) 0.2s;
  }

  .pagehead__graphic-placeholder[data-in-view="true"] .l3-gfx-home__frag {
    opacity: 1;
  }

  /* Workflow path animation */
  .l3-gfx-control__step {
    opacity: 0.7;
    transition: opacity 0.6s var(--l3-ease-reveal);
  }

  .pagehead__graphic-placeholder[data-in-view="true"] .l3-gfx-control__step {
    opacity: 1;
  }

  .l3-gfx-control__step--gate {
    transition: opacity 0.6s var(--l3-ease-reveal);
  }

  /* Record field reveal */
  .l3-gfx-data__field {
    opacity: 0.6;
    transition: opacity 0.5s var(--l3-ease-reveal);
  }

  .pagehead__graphic-placeholder[data-in-view="true"] .l3-gfx-data__field {
    opacity: 1;
  }

  /* Activity timeline dots */
  .l3-gfx-control__trace-dot {
    opacity: 0.4;
    transition: opacity 0.5s var(--l3-ease-reveal);
  }

  .pagehead__graphic-placeholder[data-in-view="true"] .l3-gfx-control__trace-dot {
    opacity: 1;
  }

  /* Hover interactions - delicate, enterprise */
  .routecard:hover,
  .usecase:hover,
  .case:hover,
  .layer:hover,
  .mech-card:hover {
    transform: translateY(-2px);
    transition: all var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .card,
  .routecard,
  .usecase,
  .case,
  .layer,
  .mech-card {
    transition: transform var(--l3-dur-hover) var(--l3-ease-hover),
                background-color var(--l3-dur-hover) var(--l3-ease-hover),
                border-color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  /* Card border subtle change on hover */
  .card {
    border: 1px solid var(--l3-line);
  }

  .card:hover {
    transform: none;
    border-color: var(--l3-line-strong);
  }

  /* Button hover states */
  .btn {
    transition: background-color var(--l3-dur-hover) var(--l3-ease-hover),
                color var(--l3-dur-hover) var(--l3-ease-hover),
                border-color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  /* Routecard - arrow hint on hover */
  .routecard__cta {
    transition: transform var(--l3-dur-hover) var(--l3-ease-hover),
                opacity var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .routecard:hover .routecard__cta svg {
    transform: translateX(2px);
  }

  .routecard__cta svg {
    transition: transform var(--l3-dur-hover) var(--l3-ease-hover);
  }

  /* Footer link hover */
  .footer a {
    transition: color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .footer a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 5px;
  }

  /* Form input focus polish */
  .form__input,
  .form__textarea {
    transition: border-color var(--l3-dur-hover) var(--l3-ease-hover),
                background-color var(--l3-dur-hover) var(--l3-ease-hover),
                box-shadow var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .form__input:focus,
  .form__textarea:focus {
    outline: none;
    border-color: var(--l3-ink-2);
    background-color: var(--l3-paper);
  }

  /* Layer card hover - subtle background */
  .layer {
    transition: background-color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .layer:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }

  /* Mech card hover */
  .mech-card {
    transition: transform var(--l3-dur-hover) var(--l3-ease-hover),
                box-shadow var(--l3-dur-hover) var(--l3-ease-hover);
  }

  /* Case study hover */
  .case {
    transition: transform var(--l3-dur-hover) var(--l3-ease-hover),
                background-color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .case:hover {
    background-color: var(--l3-paper-soft);
  }

  /* Contrast cells - subtle interaction */
  .contrast__cell {
    transition: background-color var(--l3-dur-hover) var(--l3-ease-hover),
                transform var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .contrast__cell:hover {
    transform: translateY(-1px);
  }

  /* Arrow link hover */
  .arrowlink {
    transition: color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  .arrowlink:hover svg {
    transform: translateX(2px);
    transition: transform var(--l3-dur-hover) var(--l3-ease-hover);
  }

  /* Tag hover */
  .tag {
    transition: background-color var(--l3-dur-hover) var(--l3-ease-hover),
                border-color var(--l3-dur-hover) var(--l3-ease-hover);
  }

  /* Step list row reveal */
  .steplist__row {
    opacity: 0;
    transform: translateY(20px);
  }

  .steplist__row[data-in-view="true"] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--l3-dur-reveal) var(--l3-ease-reveal),
                transform var(--l3-dur-reveal) var(--l3-ease-reveal);
  }

  .steplist__row:nth-child(2) {
    transition-delay: 0.08s;
  }
  .steplist__row:nth-child(3) {
    transition-delay: 0.16s;
  }
  .steplist__row:nth-child(4) {
    transition-delay: 0.24s;
  }
  .steplist__row:nth-child(5) {
    transition-delay: 0.32s;
  }

  /* Use case mini-flow animation */
  .usecase__row {
    opacity: 0;
    transform: translateY(12px);
  }

  .usecase[data-in-view="true"] .usecase__row {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--l3-dur-reveal) var(--l3-ease-reveal),
                transform var(--l3-dur-reveal) var(--l3-ease-reveal);
  }

  .usecase__row:nth-child(2) {
    transition-delay: 0.12s;
  }
  .usecase__row:nth-child(3) {
    transition-delay: 0.24s;
  }
  .usecase__row:nth-child(4) {
    transition-delay: 0.36s;
  }

}

/* =========================================================================
   REDUCED MOTION SUPPORT
   Disable animations for users with prefers-reduced-motion
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .sec__head,
  .card,
  .routecard,
  .usecase,
  .case,
  .layer,
  .mech-card,
  .flow,
  .steplist__row,
  .form,
  .demo-form,
  .endstrip,
  .closestrip {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .routecard:hover,
  .usecase:hover,
  .case:hover,
  .layer:hover,
  .mech-card:hover {
    transform: none;
  }

  .routecard:hover .routecard__cta svg,
  .arrowlink:hover svg {
    transform: none;
  }

  /* Keep only color/opacity changes, no motion */
  .btn,
  .footer a,
  .form__input,
  .form__textarea,
  .layer,
  .case,
  .contrast__cell,
  .tag {
    transition: color var(--l3-dur-hover) var(--l3-ease-hover),
                background-color var(--l3-dur-hover) var(--l3-ease-hover),
                border-color var(--l3-dur-hover) var(--l3-ease-hover);
  }
}

/* ---------- Final cascade: use case scenario article layout ---------- */
.usecase__story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 40px;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper-soft);
}
.usecase__story .usecase__index {
  display: inline-block;
  margin-bottom: 16px;
}
.usecase__story .usecase__problem {
  max-width: 680px;
  margin-top: 20px;
  padding-top: 0;
}
.usecase__body {
  display: block;
  padding: 40px;
  border-top: none;
  background: var(--l3-paper);
}
.usecase__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-top: 0;
}
.usecase__body .usecase__cta {
  margin-top: 40px;
  padding: 24px 0 0;
  border-top: 1px solid var(--l3-line);
  background: transparent;
}
@media (max-width: 1024px) {
  .usecase__story,
  .usecase__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .usecase__story,
  .usecase__body {
    padding: 24px;
  }
}

/* ---------- Control page rhythm normalization ---------- */
body[data-page="control"] .sec {
  padding-top: 80px;
  padding-bottom: 80px;
}
body[data-page="control"] .sec--compact {
  padding-top: 64px;
  padding-bottom: 64px;
}
body[data-page="control"] .sec--dark {
  padding-top: 80px;
  padding-bottom: 80px;
}
body[data-page="control"] .sec--scroll-moment {
  padding-top: 80px;
  padding-bottom: 80px;
}
body[data-page="control"] .sec--cta {
  padding-top: 80px;
  padding-bottom: 80px;
}
body[data-page="control"] .sec__head {
  margin-bottom: 48px;
}
body[data-page="control"] .cardgrid-3 {
  gap: 24px;
}
body[data-page="control"] .cardgrid-3 .card,
body[data-page="control"] .governance-tiles {
  border-top: none;
  padding-top: 24px;
}

body[data-page="control"] .governance-tiles > .sec__eyebrow {
  margin-bottom: 16px;
}


body[data-page="control"] .infotile {
  padding: 32px;
}
body[data-page="control"] .cardgrid-3 .card__title,
body[data-page="control"] .infotile__title {
  line-height: 1.28;
}
body[data-page="control"] .cardgrid-3 .card__body,
body[data-page="control"] .infotile__body {
  font-size: 15px;
  line-height: 1.65;
}
body[data-page="control"] .infotile__perm-row,
body[data-page="control"] .infotile__state-row {
  font-size: 13.5px;
}
body[data-page="control"] .flow__node {
  padding: 28px 24px;
}
@media (max-width: 760px) {
  body[data-page="control"] .sec,
  body[data-page="control"] .sec--compact,
  body[data-page="control"] .sec--dark,
  body[data-page="control"] .sec--scroll-moment,
  body[data-page="control"] .sec--cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  body[data-page="control"] .cardgrid-3 .card,
  body[data-page="control"] .infotile {
    padding: 24px;
  }
}

/*

==================================================================
   STATIC SCROLL MOMENTS
   Keep scroll-moment / reveal-pattern sections visible on initial load.
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .sec__head,
  .pagehead__content,
  .pagehead__graphic,
  .pagehead__graphic-placeholder,
  .capabilities,
  .deflist,
  .contrast,
  .synth,
  .card,
  .routecard,
  .usecase,
  .usecase__row,
  .case,
  .layer,
  .mech-card,
  .flow,
  .flow__node,
  .steplist,
  .steplist__row,
  .form,
  .demo-form,
  .endstrip,
  .closestrip {
    opacity: 1;
    transform: none;
  }
}


/* ---------- Final footer CTA integration overrides ---------- */
/* .sec.footer-cta rules removed — section has no .sec class (dead code).
   padding-top hotfix for control removed — base .footer-cta now uses padding-top: 0. */
@media (max-width: 640px) {
  .closestrip__actions {
    width: 100%;
    flex-direction: column;
  }
  .closestrip__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Demo drawer overlay ─────────────────────────────────────────────── */
.demo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1200;
  width: 500px;
  max-width: 100%;
  height: 100vh;
  padding: 48px;
  overflow-y: auto;
  background: var(--l3-night);
  color: var(--l3-night-ink);
  box-shadow: none;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.35s var(--l3-ease),
    visibility 0s linear 0.35s,
    box-shadow var(--l3-dur-2) var(--l3-ease);
}
.demo-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.35s var(--l3-ease),
    visibility 0s linear 0s,
    box-shadow var(--l3-dur-2) var(--l3-ease);
}
.demo-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 18px;
  transition: background var(--l3-dur-2) var(--l3-ease), color var(--l3-dur-2) var(--l3-ease);
}
.demo-drawer__close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--l3-night-ink);
}
.demo-drawer__eyebrow {
  margin: 8px 0 24px;
  font-family: var(--l3-font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--l3-tr-mono);
  color: var(--l3-night-ink-3);
  text-transform: uppercase;
}
.demo-drawer__title {
  margin: 0 0 40px;
  max-width: 14ch;
  font-family: var(--l3-font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--l3-night-ink);
}
.demo-drawer .form-label {
  color: rgba(255, 255, 255, 0.5);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
}
.demo-drawer .form-input,
.demo-drawer .form-textarea,
.demo-drawer .form-select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--l3-night-ink);
}
.demo-drawer .form-select option {
  background: var(--l3-night);
  color: var(--l3-night-ink);
}
.demo-drawer .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.demo-drawer .form-input::placeholder,
.demo-drawer .form-textarea::placeholder { color: rgba(255, 255, 255, 0.25); }
.demo-drawer .form-input:focus,
.demo-drawer .form-textarea:focus,
.demo-drawer .form-select:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}
.demo-drawer .form-textarea { min-height: 120px; }
.demo-drawer .form-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.3);
}
.demo-drawer__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.demo-drawer__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.demo-drawer__sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.demo-drawer__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.3);
}
.demo-drawer__meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}
.demo-drawer__submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--l3-dur-2) var(--l3-ease);
}
.drawer-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
body.drawer-open { overflow: hidden; }

@media (max-width: 1024px) {
  .demo-drawer { width: 420px; }
}
@media (max-width: 640px) {
  .demo-drawer {
    width: 100%;
    padding: 40px 24px;
  }
  .demo-drawer__form-row { grid-template-columns: 1fr; }
}





/* =========================================================================
   UI Audit P1 batch 1 — section rhythm + buttons
   ========================================================================= */
@media (min-width: 769px) {
  .sec,
  .sec:has(.infotiles) {
    padding: 80px 0;
  }

  .sec.sec--compact {
    padding: 64px 0;
  }

  .sec.sec--cta,
  body[data-page="control"] .sec.sec--cta,
  body[data-page="product"] .sec.sec--cta,
  body[data-page="data-access"] .sec.sec--cta,
  body[data-page="use-cases"] .sec.sec--cta {
    padding: 64px 0 80px;
  }
}

.btn {
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 6px;
}

/* =========================================================================
   UI Audit P1 batch 2 — eyebrow + section head + pagehead rhythm
   ========================================================================= */
.sec__eyebrow,
.pagehead__eyebrow,
.demo-hero__content .pagehead__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--l3-ink-3);
  margin-bottom: 16px;
}

@media (min-width: 769px) {
  .sec__head,
  body[data-page="control"] .sec__head {
    margin-bottom: 48px;
  }

  .pagehead {
    padding: 100px 0 96px;
  }

  .pagehead__title {
    font-size: 56px;
  }
}

/* =========================================================================
   UI Audit P2 batch 1 — section title width + home feature/mechanism rhythm
   ========================================================================= */
.sec__title {
  max-width: none;
}

body[data-page="home"] .feature-grid {
  column-gap: 0;
  border-top: 1px solid var(--l3-line);
  padding-top: 48px;
}

body[data-page="home"] .feature-grid > .feature-item {
  padding: 0 40px;
  border-right: 1px solid var(--l3-line);
}

body[data-page="home"] .feature-grid > .feature-item:first-child {
  padding-left: 0;
}

body[data-page="home"] .feature-grid > .feature-item:last-child {
  padding-right: 0;
  border-right: 0;
}

body[data-page="home"] .mech-grid-2x2 {
  margin-top: 56px;
}

.mech-num {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  body[data-page="home"] .feature-grid > .feature-item {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--l3-line);
  }

  body[data-page="home"] .feature-grid > .feature-item:last-child {
    border-bottom: 0;
  }
}

/* =========================================================================
   UI Audit P2 batch 2 — use-case preview, topbar, pagehead meta
   ========================================================================= */
body[data-page="home"] .cardgrid-2 {
  gap: 0;
}

body[data-page="home"] .cardgrid-2 > .card {
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-page="home"] .cardgrid-2 > .card:nth-child(n + 3) {
  border-top: 1px solid var(--l3-line);
}

@media (min-width: 769px) {
  .topbar__inner {
    height: 64px;
  }

  .topbar__nav {
    gap: 28px;
  }
}

.pagehead__meta .sep {
  height: 10px;
}

@media (max-width: 768px) {
  body[data-page="home"] .cardgrid-2 > .card + .card {
    border-top: 1px solid var(--l3-line);
  }
}

/* =========================================================================
   UI Audit P2 batch 3 — footer logo consistency
   ========================================================================= */
.footer__logo {
  font-weight: 600;
}

/* =========================================================================
   UI Audit P3 batch 1 — body width + route/link rhythm
   ========================================================================= */
.sec__body {
  max-width: 52ch;
  margin-bottom: 48px;
}

.routecard__title {
  margin-bottom: 16px;
}

.arrowlink {
  font-size: 14px;
}

/* =========================================================================
   UI Audit P3 batch 2 — footer column proportions
   ========================================================================= */
.footer__cols {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

/* =========================================================================
   Typography correction — eyebrow + body, ref taito.ai p.leading-heading
   ========================================================================= */
.sec__eyebrow,
.pagehead__eyebrow {
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
}

.sec__body {
  font-size: 18px;
  line-height: 1.6;
}

/* =========================================================================
   Typography fix — body text and definition list sizes
   ========================================================================= */
.feature-item__body,
.card__body,
.mech-body p,
.deflist__v,
.routecard__body,
.usecase__problem {
  font-size: 18px;
  line-height: 28px;
}

.deflist__v {
  max-width: 62ch;
  margin: 0;
  color: var(--l3-ink-2);
}

body h3,
.deflist__k {
  font-size: 18px;
  line-height: 28px;
}

/* =========================================================================
   Acceptance corrections — cascade-final, must stay at EOF
   ========================================================================= */

/* 1. Eyebrow — 18px final (overrides 17px base + 12px audit pass) */
.sec__eyebrow,
.pagehead__eyebrow {
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
}

/* 2. Section head — 56px desktop spec */
.sec__head { margin-bottom: 56px; }
@media (min-width: 769px) {
  .sec__head { margin-bottom: 56px; }
}

/* 3. Footer cols — no internal separator */
.footer__cols {
  border-top: none;
  padding-top: 0;
}

/* 4. Dark deflist hover */
.sec--dark .deflist__row:hover { background: rgba(255,255,255,.04); }

/* 5. Dark deflist border */
.sec--dark .deflist        { border-top-color: var(--l3-night-line); }
.sec--dark .deflist__row   { border-bottom-color: var(--l3-night-line); }

/* =========================================================================
   FINAL_AUDIT_v2 — PART A CSS DIFFERENCES (A-01 → A-25)
   Source: FINAL_AUDIT_v2.md. CSS-only; Part B intentionally skipped.
   ========================================================================= */

/* A-01 — Container max-width */
.container {
 width: 100%;
 max-width: 1500px;
 margin: 0 auto;
 padding: 0 clamp(16px, 4vw, 40px);
 container-type: inline-size;
}

@media (max-width: 640px) {
  .container {
    padding: 0 clamp(16px, 4vw, 40px);
  }
}

/* A-02 — Root spacing tokens + A-03 — Font tokens */
:root {
 /* Spatial tokens — ui-kit parity */
 --grid-max-width: 1500px;
 --grid-gutter: clamp(16px, 4vw, 40px);
 --space-s: 16px;
 --space-m: 24px;
 --space-l: 32px;
 --space-xl: 60px;
 --space-2xl: 80px;
 --space-3xl: 120px;
 --geo-edge: var(--grid-gutter);
 --geo-col-gap: var(--grid-gutter);
 --geo-row-gap: var(--space-xl);
 --geo-header-row-gap: var(--space-s);
 --geo-section-y: clamp(64px, 8vw, 120px);
 --geo-hero-inner: min(calc(100dvh - 64px), 920px);
 --geo-hero-text-pad-top: 96px;
 --geo-hero-text-pad-bottom: 64px;
 --geo-hero-text-pad-right: 48px;
 --geo-card-gap: 40px;
 --geo-card-body-gap: 16px;
 --l3-font-heading: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
 --l3-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* A-04 — Body font family */
body { font-family: var(--l3-font-body); }

/* A-05 — Section padding: responsive geo-section-y */
.sec {
 padding-block: var(--geo-section-y);
}
.sec--compact {
 padding: 64px 0;
}
.sec--cta {
 padding: 64px 0 80px;
}

/* A-06 — Pagehead: full-height 12-column hero layout */
.pagehead {
 display: flex;
 min-height: var(--geo-hero-inner);
 padding: 0;
}
.pagehead > .container {
 display: flex;
 min-height: var(--geo-hero-inner);
}
.pagehead__layout {
 width: 100%;
 min-height: var(--geo-hero-inner);
 grid-template-columns: repeat(12, minmax(0, 1fr));
 column-gap: var(--geo-col-gap);
 align-items: stretch;
}
.pagehead__content {
 grid-column: 1 / span 5;
 justify-content: flex-end;
 height: var(--geo-hero-inner);
 gap: 32px;
 border-right: 1px solid var(--l3-line);
 padding: var(--geo-hero-text-pad-top) var(--geo-hero-text-pad-right) var(--geo-hero-text-pad-bottom) 0;
}
.pagehead__graphic {
 grid-column: 6 / -1;
 height: var(--geo-hero-inner);
 min-height: 0;
 aspect-ratio: auto;
 position: relative;
}

/* A-07 — Pagehead title and subtitle sizes */
.pagehead__title { font-size: 60px; line-height: 72px; }
.pagehead__sub { margin: 0; font-size: 20px; line-height: 30px; }
.pagehead__eyebrow { margin-bottom: 0; font-size: 20px; line-height: 30px; }
.pagehead__actions,
.pagehead__meta { margin-top: 0; }

/* A-08 — sec__head: 12-column grid layout */
.sec__head {
 display: grid;
 max-width: none;
 margin-bottom: var(--geo-row-gap);
 grid-template-columns: repeat(12, minmax(0, 1fr));
 column-gap: var(--geo-col-gap);
 row-gap: var(--geo-header-row-gap);
}
.sec__eyebrow { grid-column: 1 / -1; margin-bottom: 0; font-size: 20px; line-height: 30px; }
.sec__title { grid-column: 1 / span 5; font-size: 40px; line-height: 48px; }
.sec__body { grid-column: 1 / span 5; align-self: start; margin: 0; font-size: 16px; line-height: 24px; }

/* A-09 — feature-grid: full-bleed border-wrapped layout */
.feature-grid {
 gap: 0;
 margin-inline: calc(var(--geo-edge) * -1);
 border-top: 1px solid var(--l3-line);
 border-left: 1px solid var(--l3-line);
}
.feature-item {
 min-height: 204px;
 gap: var(--geo-card-gap);
 border-right: 1px solid var(--l3-line);
 border-bottom: 1px solid var(--l3-line);
 border-radius: 0;
 background: var(--l3-paper);
 padding: var(--geo-edge);
}
.feature-grid--no-icon .feature-item {
 gap: var(--geo-card-body-gap);
 min-height: 168px;
}

/* A-10 — feature-item__icon: boxed icon */
.feature-item__icon {
 display: inline-flex;
 width: 60px;
 height: 60px;
 align-items: center;
 justify-content: center;
 border: 1px solid var(--l3-line);
 border-radius: 8px;
 background: var(--l3-paper-soft);
 color: var(--l3-ink-3);
 font-size: 24px;
 line-height: 1;
}



/* A-13 — cardgrid-2: 3 columns */
.cardgrid-2 {
 grid-template-columns: repeat(3, minmax(0, 1fr));
 column-gap: var(--geo-col-gap);
 row-gap: var(--geo-row-gap);
}

/* A-14 — deflist__row: column template and padding */
.deflist__row {
 grid-template-columns: minmax(160px, 0.26fr) minmax(0, 1fr);
 gap: 32px;
 padding-block: 40px;
}

/* A-15 — deflist__k: font size */
.deflist__k { font-size: 18px; line-height: 28px; padding-top: 0; }

/* A-16 — deflist__v: font size and line-height */
.deflist__v { font-size: 18px; line-height: 28px; max-width: 62ch; }

/* A-17 — closestrip: padding and border */
.closestrip {
 border-radius: 0;
 border-bottom: 1px solid rgba(255, 255, 255, 0.12);
 background: transparent;
 padding: var(--geo-row-gap) 0;
}
.closestrip__title { font-size: 40px; line-height: 48px; }

/* A-18 — sep: circle shape */
.sep {
 display: inline-block;
 width: 4px;
 height: 4px;
 border-radius: 999px;
 background: var(--l3-ink-5);
}

/* A-19 — demo-drawer: light panel structure */
.demo-drawer {
 position: fixed;
 inset: 0;
 z-index: 100;
 display: none;
 transform: none;
 width: auto;
 height: auto;
 background: none;
 color: inherit;
 box-shadow: none;
 visibility: visible;
 pointer-events: auto;
 transition: none;
}
.demo-drawer.is-open { display: block; }
.demo-drawer__overlay {
 position: absolute;
 inset: 0;
 background: rgba(9, 9, 11, 0.42);
}
.demo-drawer__panel {
 position: absolute;
 top: 0;
 right: 0;
 display: flex;
 width: min(640px, 100%);
 height: 100%;
 flex-direction: column;
 border-left: 1px solid var(--l3-line);
 background: var(--l3-paper);
 padding: 40px;
 overflow-y: auto;
}
.demo-drawer__title {
 margin: 0;
 color: var(--l3-ink);
 font-size: 28px;
 font-weight: 500;
 line-height: 1.2;
 letter-spacing: 0;
}
.demo-drawer__close {
 display: inline-flex;
 width: 40px;
 height: 40px;
 flex: 0 0 auto;
 align-items: center;
 justify-content: center;
 border: 1px solid var(--l3-line);
 border-radius: 8px;
 background: var(--l3-paper);
 color: var(--l3-ink);
 cursor: pointer;
 font-size: 20px;
 top: auto;
 right: auto;
 position: static;
}

/* A-20 — footer padding */
.footer { padding: var(--geo-row-gap) 0 var(--geo-section-y); }

/* A-21 — footer__cols padding-top */
.footer__cols { border-top: 0; padding-top: var(--geo-card-gap); }

/* A-22 — sec__body margin-bottom */
.sec__body { margin-bottom: 48px; }

/* A-23 — feature-item__body and card__body font size */
.feature-item__body,
.card__body,
.mech-body p,
.routecard__body,
.usecase__problem {
 font-size: 18px;
 line-height: 28px;
}

/* A-24 — Responsive: tablet 1024px adjustments */
@media (max-width: 1024px) {
 .pagehead { min-height: 0; padding: 80px 0 92px; }
 .pagehead > .container { display: block; min-height: 0; }
 .pagehead__layout { grid-template-columns: 1fr; gap: 48px; min-height: 0; }
 .pagehead__content { grid-column: auto; height: auto; gap: 24px; border-right: 0; padding: 0; }
 .pagehead__title { font-size: 48px; line-height: 58px; }
 .pagehead__graphic { grid-column: auto; width: 100%; height: auto; min-height: 380px; aspect-ratio: 4 / 3; }
 .sec__head { grid-template-columns: 1fr; row-gap: 20px; }
 .sec__eyebrow, .sec__title, .sec__body { grid-column: 1; }
 .mech-grid-2x2, .routecards, .cardgrid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A-25 — Responsive: mobile 720px adjustments */
@media (max-width: 720px) {
 .pagehead { padding: 72px 0 84px; }
 .pagehead__title { max-width: 12ch; font-size: 40px; line-height: 48px; }
 .sec__head { margin-bottom: 52px; }
 .sec__title { font-size: 32px; }
 .sec__body, .pagehead__sub { font-size: 17px; }
 .feature-grid, .mech-grid-2x2, .routecards, .cardgrid-2 { grid-template-columns: 1fr; }
 .deflist__row { grid-template-columns: 1fr; }
 .routecard, .card { padding: 28px; }
 .closestrip { padding: 28px; }
 .footer__cols { grid-template-columns: 1fr; }
 .demo-drawer__panel { padding: 24px; }
}

/* =========================================================================
   FINAL_AUDIT_v2 — PART B HTML COMPONENT CSS (B-02, B-03, B-04, B-06)
   B-01 and B-05 intentionally skipped.
   ========================================================================= */

/* B-02: visual-grid + visual-panel */
.visual-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1px;
  background: var(--l3-line);
}
.visual-grid span {
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
}
.visual-panel {
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 52%;
  min-height: 42%;
  border: 1px solid rgba(24, 24, 27, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 20px;
}
.visual-panel__row {
  height: 12px;
  margin-bottom: 12px;
  background: var(--l3-line);
}
.visual-panel__row:nth-child(1) { width: 56%; background: var(--l3-ink); }
.visual-panel__row:nth-child(2) { width: 82%; }
.visual-panel__row:nth-child(3) { width: 68%; }
.visual-panel__row:nth-child(4) { width: 74%; margin-bottom: 0; }

/* B-03: usecase two-column + mock UI */
.usecase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--geo-col-gap);
  align-items: start;
  padding: var(--geo-row-gap) 0;
  border-top: 1px solid var(--l3-line);
}
.usecase:first-of-type { border-top: 0; }

.usecase__visual {
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--l3-paper-soft);
  min-height: 260px;
  display: flex;
  align-items: stretch;
}
.usecase__mock {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.usecase__mock-tabs {
  display: flex;
  border-bottom: 1px solid var(--l3-line);
  background: var(--l3-paper);
}
.usecase__mock-tab {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--l3-ink-3);
  border-right: 1px solid var(--l3-line);
}
.usecase__mock-tab.is-active {
  color: var(--l3-ink);
  background: var(--l3-paper-soft);
}
.usecase__mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.usecase__mock-title {
  height: 13px;
  width: 55%;
  background: var(--l3-line-strong);
  border-radius: 3px;
  margin-bottom: 6px;
}
.usecase__mock-line {
  height: 9px;
  background: var(--l3-line);
  border-radius: 3px;
}
.usecase__mock-line:nth-child(2) { width: 88%; }
.usecase__mock-line:nth-child(3) { width: 72%; }
.usecase__mock-line:nth-child(4) { width: 82%; }
.usecase__mock-line:nth-child(5) { width: 60%; }
.usecase__mock-footer {
  display: flex;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--l3-line);
  font-size: 12px;
  color: var(--l3-ink-4);
  background: var(--l3-paper);
}

/* B-04: usecase support rows */
.usecase__support {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--l3-line);
}
.usecase__support-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 24px;
  color: var(--l3-ink-2);
}
.usecase__support-row p { margin: 0; }
.usecase__check {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--l3-line);
  border-radius: 4px;
  color: var(--l3-action);
  font-size: 14px;
}

/* B-06: diagram-box wrapper */
.diagram-box {
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  background: var(--l3-paper-soft);
  padding: var(--geo-edge);
  overflow-x: auto;
  margin-top: var(--geo-card-gap);
}
.diagram-box__visual {
  min-width: 0;
  overflow-x: auto;
}

/* FIX-G04b — routecard grid, hover and visual zone */
.routecards {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 2.5rem;
}
.routecards .routecard:last-child {
 grid-column: auto;
}
.routecards--2x2 {
 grid-template-columns: repeat(2, 1fr);
}
.routecard:hover {
 border-color: var(--l3-ink-1);
 box-shadow: none;
 transform: none;
}
.routecard__body {
 margin-bottom: 1.5rem;
 flex: initial;
 flex-grow: 0;
}

/* FIX-R01 — dark closestrip */
.closestrip {
 background: var(--l3-night);
 border-radius: 16px;
}
.closestrip__title {
 color: var(--l3-night-ink);
}

/* FIX-R02b — footer brand-column cascade alignment */
.footer {
 background: var(--l3-night);
 padding: 72px 0 64px;
 color: var(--l3-night-ink);
 margin-top: auto;
}
.footer__cols {
 display: grid;
 grid-template-columns: 1.35fr 1fr 1fr 1fr;
 gap: clamp(28px, 4vw, 64px);
 border-top: 0;
 padding-top: 0;
}
.footer__logo {
 display: inline-flex;
 width: max-content;
 margin-bottom: 20px;
 color: #ffffff;
 font-size: 22px;
 font-weight: 650;
 letter-spacing: 0;
 text-decoration: none;
}
.footer__col p {
 max-width: 30ch;
 margin: 0;
 color: var(--l3-night-ink-2);
 font-size: 15px;
 line-height: 1.6;
}
.footer__col__label {
 margin-bottom: 20px;
 color: var(--l3-night-ink-2);
 font-size: 15px;
 font-weight: 500;
 line-height: 1.3;
}
.footer__col ul {
 display: grid;
 gap: 13px;
 margin: 0;
 padding: 0;
 list-style: none;
}
.footer__col a {
 color: var(--l3-night-ink);
 font-size: 15px;
 line-height: 1.6;
 text-decoration: none;
}
.footer__col a:hover {
 color: #ffffff;
 text-decoration: underline;
 text-underline-offset: 5px;
}
.footer__base {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 24px;
 margin-top: 56px;
 border-top: 1px solid rgba(255, 255, 255, 0.08);
 padding-top: 28px;
 color: var(--l3-night-ink-2);
 font-size: 13px;
}
.footer__plain { color: var(--l3-night-ink-3); }
@media (max-width: 1024px) {
 .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
 .footer__cols { grid-template-columns: 1fr; }
 .footer__base { flex-direction: column; align-items: flex-start; }
}

/* FIX-R03 — card hover without shadow or lift */
.case:hover { border-color: var(--l3-line-strong); }
.routecard:hover { border-color: var(--l3-line-strong); }

/* =========================================================================
 Navigation + hero foundation — pre-inventory UI freeze pass
 Keeps cascade-final typography normalisation as the final EOF block.
 ========================================================================= */

/* Navigation states: default / hover / active */
.topbar__nav a,
.mobile-nav a {
 color: var(--l3-ink-3);
 font-size: 15px;
 font-weight: 500;
 line-height: 20px;
 text-decoration: none;
 text-underline-offset: 6px;
 text-decoration-thickness: 1px;
 transition: color var(--l3-dur-2) var(--l3-ease),
             text-decoration-color var(--l3-dur-2) var(--l3-ease),
             background var(--l3-dur-2) var(--l3-ease),
             border-color var(--l3-dur-2) var(--l3-ease);
}
.topbar__nav a:hover,
.mobile-nav a:hover {
 color: var(--l3-ink);
 text-decoration: none;
}
.topbar__nav a.is-active,
.mobile-nav a.is-active {
 color: var(--l3-ink);
 text-decoration: underline;
 text-decoration-color: currentColor;
}

/* Product dropdown links stay text-only: no underline on hover or active. */
.topbar__product-menu a,
.topbar__product-menu a:hover,
.topbar__product-menu a:focus-visible,
.topbar__product-menu a.is-active,
.topbar__product-menu a.is-active:hover {
 text-decoration: none;
}
.topbar__nav a.nav__cta,
.topbar__nav a.topbar__nav-cta {
 min-height: 40px;
 align-items: center;
 justify-content: center;
 text-decoration: none;
}
.topbar__nav a.nav__cta:hover,
.topbar__nav a.nav__cta.is-active,
.topbar__nav a.topbar__nav-cta:hover,
.topbar__nav a.topbar__nav-cta.is-active {
 text-decoration: none;
}

/* CTA sizing: 48px height and 16px typography */
.btn {
 min-height: 48px;
 padding: 0 20px;
 align-items: center;
 justify-content: center;
 font-size: 16px;
 line-height: 24px;
}

/* Pagehead hero: bottom aligned content with 80px lower inset */
.pagehead {
 --l3-hero-bottom-inset: 80px;
 min-height: var(--geo-hero-inner);
 padding: 0;
}
.pagehead > .container {
 min-height: var(--geo-hero-inner);
}
.pagehead__layout {
 min-height: var(--geo-hero-inner);
 align-items: stretch;
}
.pagehead__content {
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 min-height: var(--geo-hero-inner);
 height: auto;
 gap: 24px;
 padding-bottom: var(--l3-hero-bottom-inset);
}
.pagehead__eyebrow,
.pagehead__title,
.pagehead__sub,
.pagehead__actions,
.pagehead__meta {
 margin-top: 0;
 margin-bottom: 0;
}
.pagehead__title {
 max-width: 12ch;
}
.pagehead__sub {
 max-width: 38ch;
}
.pagehead__actions {
 display: flex;
 align-items: center;
 gap: 12px;
}
.pagehead__meta {
 display: flex;
 align-items: center;
 flex-wrap: wrap;
 gap: 10px;
 color: var(--l3-ink-3);
 font-size: 14px;
 line-height: 20px;
}
.pagehead__graphic {
 min-height: var(--geo-hero-inner);
 height: auto;
}
.pagehead__graphic-placeholder {
 min-height: 100%;
}

/* Demo hero: align to the same hero rhythm */
.demo-hero {
 min-height: var(--geo-hero-inner);
 padding: 0;
}
.demo-hero__layout {
 min-height: var(--geo-hero-inner);
 align-items: stretch;
 padding: 0;
}
.demo-hero__content,
.demo-form {
 align-self: stretch;
}
.demo-hero__content {
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 gap: 24px;
 padding-bottom: 80px;
}
.demo-hero__title,
.demo-hero__sub {
 margin: 0;
}
.demo-hero__sub {
 max-width: 38ch;
}
.demo-form {
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 margin-bottom: 80px;
}
.demo-form .btn {
 min-height: 48px;
 font-size: 16px;
 line-height: 24px;
}

@media (max-width: 1024px) {
 .pagehead,
 .pagehead > .container,
 .pagehead__layout,
 .pagehead__content,
 .pagehead__graphic,
 .demo-hero,
 .demo-hero__layout {
  min-height: 0;
 }
 .pagehead { padding: 80px 0 92px; }
 .pagehead__content {
  padding-bottom: 0;
  gap: 24px;
 }
 .pagehead__graphic {
  min-height: 380px;
 }
 .demo-hero__layout {
  padding: 72px 0 88px;
 }
 .demo-hero__content {
  padding-bottom: 0;
 }
 .demo-form {
  margin-bottom: 0;
 }
}
@media (max-width: 720px) {
 .topbar__nav { display: none; }
 .pagehead { padding: 72px 0 84px; }
 .pagehead__content { gap: 20px; }
 .pagehead__actions { width: 100%; flex-direction: column; align-items: stretch; }
 .pagehead__actions .btn { width: 100%; }
 .demo-hero__layout { padding: 48px 0 56px; }
}

/* =========================================================================
 Header IA — two-level navigation
 Level 1: Home / Product. Level 2: Product area sections. Demo is CTA.
 ========================================================================= */
.topbar {
 background: rgba(255, 255, 255, 0.96);
 backdrop-filter: blur(12px);
}
.topbar__inner {
 display: grid;
 grid-template-columns: auto 1fr auto;
 column-gap: 32px;
 align-items: center;
 min-height: 72px;
 height: auto;
}
.topbar__demo-cta {
 display: inline-flex;
 min-height: 40px;
 align-items: center;
 justify-content: center;
 border: 1px solid var(--l3-action);
 border-radius: 999px;
 background: var(--l3-action);
 color: var(--l3-action-fg);
 padding: 0 16px;
 font-size: 15px;
 font-weight: 500;
 line-height: 20px;
 text-decoration: none;
 transition: background var(--l3-dur-2) var(--l3-ease),
             border-color var(--l3-dur-2) var(--l3-ease),
             color var(--l3-dur-2) var(--l3-ease);
}
.topbar__demo-cta:hover {
 background: var(--l3-action-hi);
 border-color: var(--l3-action-hi);
 color: var(--l3-action-fg);
 text-decoration: none;
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--l3-ink);
  cursor: pointer;
  padding: 0;
  font-size: 24px;
}
.nav-hamburger i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: var(--l3-paper);
  opacity: 0;
  padding: 24px 20px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
body.nav-overlay-open {
  overflow: hidden;
}
.nav-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-overlay__logo {
  color: var(--l3-ink);
  font-family: var(--l3-font-heading);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
}
.nav-overlay__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--l3-ink);
  cursor: pointer;
  padding: 8px;
}
.nav-overlay__close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.nav-overlay__links {
  display: grid;
  margin-top: 32px;
}
.nav-overlay__links a {
  display: block;
  border-bottom: 1px solid var(--l3-line);
  color: var(--l3-ink);
  font-size: 20px;
  line-height: 28px;
  padding: 16px 0;
  text-decoration: none;
}
.nav-overlay__cta {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  border: 1px solid var(--l3-action);
  border-radius: 999px;
  background: var(--l3-action);
  color: var(--l3-action-fg);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  padding: 0 20px;
  text-decoration: none;
}
.nav-overlay__cta:hover,
.nav-overlay__cta:focus-visible {
  background: var(--l3-action-hi);
  border-color: var(--l3-action-hi);
  color: var(--l3-action-fg);
  text-decoration: none;
}
@media (min-width: 768px) {
  .nav-overlay {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  .topbar__nav--primary,
  .topbar__nav {
    display: none;
  }
  .topbar__demo-cta {
    display: none;
  }
  .nav-hamburger {
    display: inline-flex;
    order: -1;
    flex-shrink: 0;
  }
  .topbar__logo {
    flex-grow: 1;
    text-align: center;
  }
}

@media (max-width: 720px) {
 .topbar__inner {
  justify-content: flex-start;
 }
 .topbar__demo-cta {
  display: inline-block;
  margin-left: auto;
  flex-shrink: 0;
 }
}

/* Product text dropdown nav — no subnav row, no pill navigation */
.topbar__nav--primary {
  justify-self: center;
  display: inline-flex;
  gap: 28px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.topbar__nav--primary > a,
.topbar__product-trigger {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--l3-ink-3);
  cursor: pointer;
  font-family: var(--l3-font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  padding: 0;
  text-decoration: none;
}


.topbar__product-trigger,
.nav-product-trigger {
  gap: 4px;
}

.topbar__product-chevron,
.nav-product-trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.topbar__product.is-open .topbar__product-chevron,
.topbar__product:hover .topbar__product-chevron,
.topbar__product-trigger[aria-expanded="true"] .topbar__product-chevron,
.nav-product-trigger.is-open svg,
.nav-product-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.topbar__nav--primary > a:hover,
.topbar__nav--primary > a.is-active,
.topbar__product-trigger:hover,
.topbar__product-trigger:focus-visible,
.topbar__product-trigger.is-active,
.topbar__product-trigger[aria-expanded="true"] {
  background: transparent;
  box-shadow: none;
  color: var(--l3-ink);
  text-decoration: none;
}

.topbar__nav--primary > a.is-active::after,
.topbar__product-trigger.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
}

.topbar__product {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.topbar__product-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 950;
  display: grid;
  gap: 2px;
  width: 540px;
  max-width: calc(100vw - 80px);
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  background: var(--l3-paper);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  text-align: left;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.topbar__product.is-open .topbar__product-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar__product-item {
  display: block;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--l3-ink);
  cursor: pointer;
  padding: 12px 16px;
  text-align: left;
  text-decoration: none;
  transition: background var(--l3-dur-2) var(--l3-ease);
}

.topbar__product-item:hover,
.topbar__product-item:focus-visible,
.topbar__product-item.is-active {
  background: var(--l3-paper-soft);
  box-shadow: none;
  color: var(--l3-ink);
  text-decoration: none;
}

.topbar__product-copy {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
}

.topbar__product-title {
  color: var(--l3-ink);
  font-family: var(--l3-font-heading);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.topbar__product-desc {
  color: var(--l3-ink-3);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
}

.topbar__product-item.is-active .topbar__product-title {
  font-weight: 500;
}

.topbar__product-item:hover .topbar__product-title,
.topbar__product-item:focus-visible .topbar__product-title {
  color: var(--l3-ink);
  text-decoration: none;
}

.topbar__product-item:hover .topbar__product-desc,
.topbar__product-item:focus-visible .topbar__product-desc,
.topbar__product-item.is-active .topbar__product-desc {
  color: var(--l3-ink-3);
  text-decoration: none;
}

@media (max-width: 720px) {
  .topbar__nav--primary {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
  }

  .topbar__nav--primary > a {
    flex: 0 0 auto;
  }

  .topbar__product {
    position: static;
  }

  .topbar__product-menu {
    right: 40px;
    left: 40px;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .topbar__product-menu {
    right: 20px;
    left: 20px;
  }
}

/* =========================================================================
 HERO HEADER ALIGNMENT — HA-03 / HA-04 / HA-05 / HA-06
 Hero-only correction for product-area preview freeze.
 ========================================================================= */

/* HA-03 — bottom-align hero content with 80px lower inset */
.pagehead {
 --l3-hero-bottom-inset: 80px;
 min-height: var(--geo-hero-inner);
 padding: 0;
}
.pagehead > .container {
 min-height: var(--geo-hero-inner);
}
.pagehead__layout {
 min-height: var(--geo-hero-inner);
 align-items: stretch;
}
.pagehead__content {
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 min-height: var(--geo-hero-inner);
 height: auto;
 gap: 0;
 padding: var(--geo-hero-text-pad-top) var(--geo-hero-text-pad-right) var(--l3-hero-bottom-inset) 0;
}
.pagehead__graphic {
 min-height: var(--geo-hero-inner);
 height: auto;
}
.pagehead__graphic-placeholder {
 min-height: 100%;
}

/* HA-05 — exact vertical rhythm: eyebrow→H1 20px, H1→body 30px, body→CTA 30px */
.pagehead__eyebrow {
 margin: 0 0 20px;
}
.pagehead__title {
 margin: 0;
}
.pagehead__sub {
 margin: 24px 0 0;
}
.pagehead__actions {
 display: flex;
 align-items: center;
 gap: 12px;
 margin-top: 28px;
}

/* HA-06 — hero CTA buttons: 48px height, 16px / 500 typography */
.pagehead__actions .btn,
.demo-hero .btn,
.demo-form .btn {
 min-height: 48px;
 padding-top: 0;
 padding-bottom: 0;
 align-items: center;
 justify-content: center;
 font-size: 16px;
 font-weight: 500;
 line-height: 24px;
}

/* HA-03 / HA-05 for Demo hero family */
.demo-hero {
 min-height: var(--geo-hero-inner);
 padding: 0;
}
.demo-hero__layout {
 min-height: var(--geo-hero-inner);
 align-items: stretch;
 padding: 0;
}
.demo-hero__content {
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 gap: 0;
 padding-bottom: 80px;
}
.demo-hero__content .pagehead__eyebrow {
 margin: 0 0 20px;
}
.demo-hero__title {
 margin: 0;
}
.demo-hero__sub {
 margin: 24px 0 0;
}
.demo-hero__expect {
 margin-top: 28px;
}
.demo-form {
 align-self: end;
 margin-bottom: 80px;
}

@media (max-width: 1024px) {
 .pagehead,
 .pagehead > .container,
 .pagehead__layout,
 .pagehead__content,
 .pagehead__graphic,
 .demo-hero,
 .demo-hero__layout {
  min-height: 0;
 }
 .pagehead { padding: 80px 0 92px; }
 .pagehead__content {
  padding: 0;
 }
 .pagehead__graphic {
  min-height: 380px;
 }
 .demo-hero__layout {
  padding: 72px 0 88px;
 }
 .demo-hero__content {
  padding-bottom: 0;
 }
 .demo-form {
  margin-bottom: 0;
 }
}
@media (max-width: 720px) {
 .pagehead { padding: 72px 0 84px; }
 .pagehead__actions {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
 }
 .pagehead__actions .btn {
  width: 100%;
 }
 .demo-hero__layout {
  padding: 48px 0 56px;
 }
}

/* =========================================================================
 Card-grid alignment model — section text line vs outer grid border
 Keep section headers on the container text line. Let grid borders start left
 by the card padding so card inner content aligns back to section text.
 ========================================================================= */

/* Section headers must not be shifted to match a card/grid border. */
.sec__head,
body[data-page="control"] .sec__head {
 margin-left: 0;
 margin-right: 0;
 padding-left: 0;
 padding-right: 0;
 transform: none;
}
.sec__eyebrow,
.sec__title,
.sec__body {
 margin-left: 0;
 padding-left: 0;
 transform: none;
}

/* Section grids stay inside the shared container width. */
.cardgrid-2,
.cardgrid-3,
.cardgrid-4,
.routecards,
.routecards--2x2,
.feature-grid,
.mech-grid-2x2,
.infotiles,
body[data-page="home"] .feature-grid {
 margin-left: 0;
 margin-right: 0;
 width: 100%;
 max-width: 100%;
}

body[data-page="home"] .feature-grid > .feature-item:first-child,
body[data-page="home"] .feature-grid > .feature-item:last-child {
 padding-left: 0;
 padding-right: 0;
}



/* Product hero screenshot — scoped replacement for placeholder visual */
body[data-page="product"] .product-hero-screenshot {
 position: relative;
 width: 100%;
 height: 100%;
 min-height: inherit;
 overflow: hidden;
 border-left: 1px solid var(--l3-line);
 background: #E4E4E7;
}
body[data-page="product"] .product-hero-screenshot img {
 position: absolute;
 top: clamp(24px, 4vh, 48px);
 left: clamp(24px, 4vw, 56px);
 display: block;
 width: min(900px, 112%);
 max-width: none;
 height: auto;
 object-fit: contain;
 object-position: left top;
}
@media (min-width: 1280px) {
 body[data-page="product"] .product-hero-screenshot img {
  top: 40px;
  left: 48px;
  width: min(940px, 114%);
 }
}
@media (max-width: 1024px) {
 body[data-page="product"] .product-hero-screenshot {
  min-height: 380px;
  border-left: 0;
  border: 1px solid var(--l3-line);
 }
 body[data-page="product"] .product-hero-screenshot img {
  top: 28px;
  left: 28px;
  width: min(760px, 108%);
 }
}
@media (max-width: 720px) {
 body[data-page="product"] .product-hero-screenshot {
  min-height: 320px;
 }
 body[data-page="product"] .product-hero-screenshot img {
  top: 24px;
  left: 20px;
  width: 118%;
 }
}


/* =========================================================================
 Cascade-final — typography and rhythm normalisations
 Must stay at EOF to win over all previous overrides.
 ========================================================================= */

/* Eyebrow — consistent 18px across page heads and section heads */
.sec__eyebrow,
.pagehead__eyebrow {
 font-size: 18px;
 line-height: 22px;
 font-weight: 500;
 color: var(--l3-ink-3);
}

/* Section head gap — 56px desktop */
.sec__head { margin-bottom: 56px; }
@media (min-width: 769px) {
 .sec__head { margin-bottom: 56px; }
}

/* Section separators — use design token, not hardcoded rgba */
.sec,
.sec--soft,
.sec--dark {
 border-top: 1px solid var(--l3-line);
}

/* Footer CTA / footer keep their own dark-section logic. */
.sec.footer-cta,
.sec--cta.footer-cta,
.footer-cta {
 border-top: 0;
}
.footer {
 border-top: 1px solid var(--l3-night-line);
}

/* Product-area closing CTA uses endstrip markup; inside footer-cta it becomes part of the dark block. */
.footer-cta .endstrip {
 background: transparent;
 border: 0;
 border-radius: 0;
 padding: 64px 0;
}
.footer-cta .endstrip__title {
 color: var(--l3-night-ink);
}
.footer-cta .btn--primary {
 background: var(--l3-action-dark);
 border-color: var(--l3-action-dark);
 color: var(--l3-action-dark-fg);
}
.footer-cta .btn--primary:hover {
 background: var(--l3-action-dark-hi);
 border-color: var(--l3-action-dark-hi);
 color: var(--l3-action-dark-fg);
}


/* Stable product-page hero frame — prevents hero height jumps between pages. */
@media (min-width: 641px) {
 .pagehead {
  min-height: min(calc(100dvh - 64px), 860px);
  padding: 0;
 }

 .pagehead > .container,
 .pagehead__layout {
  min-height: min(calc(100dvh - 64px), 860px);
 }

 .pagehead__layout {
  align-items: center;
 }

 .pagehead__content {
  justify-content: center;
  min-height: min(calc(100dvh - 64px), 860px);
  height: auto;
 }
}

@media (max-width: 640px) {
 .pagehead,
 .pagehead > .container,
 .pagehead__layout,
 .pagehead__content {
  min-height: auto;
 }
}


/* Use cases scenario stack — field cases layout. */
.scenario-stack {
 display: grid;
 gap: 24px;
}

.scenario-block {
 border: 1px solid var(--l3-line);
 border-radius: 8px;
 background: var(--l3-paper);
 padding: clamp(24px, 4vw, 40px);
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
 column-gap: clamp(28px, 5vw, 72px);
 row-gap: 24px;
 align-items: start;
}

.scenario-block__label {
 grid-column: 1 / -1;
 color: var(--l3-ink-3);
 font-size: 14px;
 line-height: 20px;
 font-weight: 500;
}

.scenario-block__title {
 margin: 0;
 max-width: 24ch;
 color: var(--l3-ink);
 font-size: clamp(28px, 3vw, 44px);
 line-height: 1.08;
 letter-spacing: -0.03em;
 font-weight: 400;
}

.scenario-block__context {
 margin: 0;
 max-width: 62ch;
 color: var(--l3-ink-2);
 font-size: 17px;
 line-height: 1.65;
}

.scenario-block__controls {
 display: grid;
 gap: 14px;
 align-self: stretch;
 border-left: 1px solid var(--l3-line);
 padding-left: clamp(20px, 3vw, 32px);
}

.scenario-block__controls-title {
 color: var(--l3-ink);
 font-size: 14px;
 line-height: 20px;
 font-weight: 500;
}

.scenario-block__list {
 margin: 0;
 padding-left: 16px;
 color: var(--l3-ink-2);
 font-size: 15px;
 line-height: 1.6;
}

.scenario-block__list li + li {
 margin-top: 8px;
}

.module-tags {
 grid-column: 1 / -1;
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 padding-top: 6px;
}

.module-tag {
 display: inline-flex;
 align-items: center;
 min-height: 32px;
 padding: 0 12px;
 border: 1px solid var(--l3-line);
 border-radius: 999px;
 color: var(--l3-ink-2);
 background: var(--l3-paper-soft);
 font-size: 13px;
 line-height: 18px;
 font-weight: 500;
 transition: color var(--l3-dur-2) var(--l3-ease), border-color var(--l3-dur-2) var(--l3-ease), background-color var(--l3-dur-2) var(--l3-ease);
}

.module-tag:hover {
 color: var(--l3-ink);
 border-color: var(--l3-line-strong);
 background: var(--l3-paper);
}

.usecases-common .sec__head {
 margin-bottom: 0;
}

@media (max-width: 860px) {
 .scenario-block {
  grid-template-columns: 1fr;
 }

 .scenario-block__controls {
  border-left: 0;
  border-top: 1px solid var(--l3-line);
  padding-left: 0;
  padding-top: 24px;
 }
}

/* Card border consistency — add bounds only where final cascade removed them. */
.mech-card,
.usecase,
body[data-page="home"] .cardgrid-2 > .card {
 border: 1px solid var(--l3-line);
}

body[data-page="home"] .cardgrid-2 > .card {
 border-radius: 8px;
}













/* CARD-FIX-02 — Home capabilities cards 4-up */
body[data-page="home"] section[data-screen-label="05 Home / Use case preview"] .cardgrid-2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* MARQUEE-01 — Product operational context strip */
.marquee-strip {
  margin-top: 120px;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--l3-line);
  border-bottom: 1px solid var(--l3-line);
  padding: 14px 0;
  background: var(--l3-paper-soft);
}
.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee-scroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--l3-font-heading);
  font-size: 15px;
  color: var(--l3-ink-3);
}
.marquee-dot {
  color: var(--l3-ink-5) !important;
}
.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ICON-01 — Home overview card icons */
body[data-page="home"] .routecards--2x2 .routecard__icon {
  width: 44px;
  height: 44px;
  font-size: 28px;
  border-radius: 8px;
  margin-bottom: 0;
  aspect-ratio: auto;
  background: #E4E4E7;
  border-bottom: none;
}

/* NAV-MOBILE-BUTTON — single-row mobile header */
@media (max-width: 767px) {
  .topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    min-height: 56px;
    padding: 0 16px;
  }
  .topbar__nav,
  .topbar__nav--primary {
    display: none;
  }
  .topbar__logo {
    flex: 0 0 auto;
  }
  .topbar__demo-cta {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* DEF-LIST-NORMALIZE — shared numbered definition rows */
.deflist,
.steplist {
  display: grid;
  border-top: 0;
}
.deflist__row,
.steplist__row {
  display: grid;
  grid-template-columns: 48px 1fr 2fr;
  gap: 0 32px;
  padding: 20px 0;
  border-top: 1px solid var(--l3-line);
  border-bottom: 0;
  align-items: start;
}
.deflist__num,
.steplist__num {
  width: 48px;
  font-family: var(--l3-font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--l3-ink-4);
  padding-top: 2px;
}
.deflist__k,
.steplist__title {
  margin: 0;
  max-width: none;
  font-family: var(--l3-font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--l3-ink);
  padding-top: 0;
}
.deflist__v,
.steplist__body {
  margin: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--l3-ink-3);
}
.sec--dark .deflist,
.sec--dark .steplist {
  border-top: 0;
}
.sec--dark .deflist__row,
.sec--dark .steplist__row {
  border-top-color: var(--l3-line);
  border-bottom: 0;
}
.sec--dark .deflist__num,
.sec--dark .steplist__num {
  color: var(--l3-ink-4);
}
.sec--dark .deflist__k,
.sec--dark .steplist__title {
  color: var(--l3-ink);
}
.sec--dark .deflist__v,
.sec--dark .steplist__body {
  color: var(--l3-ink-3);
}
@media (max-width: 640px) {
  .deflist__row,
  .steplist__row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 16px;
  }
  .deflist__v,
  .steplist__body {
    grid-column: 2;
  }
}

/* PRODUCT-LAYER-GRID-GAP — six separate cards, not a shared-border table. */
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .product-layer-grid {
  gap: 24px;
}

/* PRODUCT-LAYER-IMAGES — scoped layer illustration slots */
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 88px;
  height: 88px;
  justify-self: start;
}

body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__visual img {
  display: block;
  width: clamp(72px, 7vw, 88px);
  height: clamp(72px, 7vw, 88px);
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}

body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__index {
  justify-items: start;
}

/* PRODUCT-LAYER-CARD-STACK — six layers: vertical left-aligned stack (icon, eyebrow, title, body) at all breakpoints */
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer > * {
  min-width: 0;
}
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__index {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer > div:not(.layer__index):not(.layer__examples) {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__body {
  margin: 0;
  max-width: none;
  overflow-wrap: anywhere;
}
body[data-page="product"] section[data-screen-label="05 Product / What L3RA is made of (six layers)"] .layer__examples {
  align-self: stretch;
  gap: 6px;
  min-width: 0;
}

/* CARD-04 — Home use-cases arrow link */
body[data-page="home"] a.arrowlink[href="/use-cases"] {
  text-decoration: none;
  color: var(--l3-ink);
  font-size: 15px;
}
body[data-page="home"] a.arrowlink[href="/use-cases"]:hover,
body[data-page="home"] a.arrowlink[href="/use-cases"]:focus {
  text-decoration: none;
}

/* CONTROL-LIST-REBUILD — scope cards */
body[data-page="control"] .control-cardgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
body[data-page="control"] .control-card {
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  padding: 28px;
  background: var(--l3-paper);
}
body[data-page="control"] .control-card__num {
  margin-bottom: 14px;
  font-family: var(--l3-font-heading);
  font-size: 13px;
  line-height: 1;
  color: var(--l3-ink-4);
}

body[data-page="control"] .control-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--l3-ink);
}
body[data-page="control"] .control-card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--l3-ink-3);
}
@media (max-width: 600px) {
  body[data-page="control"] .control-cardgrid {
    grid-template-columns: 1fr;
  }
}

/* HOME-BOTTOMBAR — marquee strip for What L3RA does */
.home-marquee {
  width: 100%;
  margin-top: clamp(24px, 3vw, 36px);
  overflow: hidden;
  background: transparent;
  color: var(--l3-ink-2);
}
.home-marquee__track {
  display: flex;
  width: max-content;
  animation: home-marquee 50s linear infinite;
  will-change: transform;
}
.home-marquee:hover .home-marquee__track {
  animation-play-state: paused;
}
.home-marquee__track span {
  flex: 0 0 auto;
  padding: 16px 24px;
  font-size: 140px;
  line-height: 1.4;
  letter-spacing: -6%;
  white-space: nowrap;
}
@keyframes home-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .home-marquee__track {
    animation: none;
  }
}

/* HOME-GRID-FIX — What L3RA does cards 2×2 */
body[data-page="home"] .mech-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 720px) {
  body[data-page="home"] .mech-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* CARD-03-REVISED — empty Home mech visuals as intentional placeholders */
body[data-page="home"] .mech-visual--placeholder {
  min-height: 180px;
  background: transparent;
  border: 1.5px dashed var(--l3-line);
  border-radius: 8px;
}

/* CARD-01 — Product feature grid 2×2 */
body[data-page="product"] .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  body[data-page="product"] .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Enterprise card hover reset — no consumer lift, shadow, or background shifts. */
.card:hover,
.card--dark:hover,
.routecard:hover,
.usecase:hover,
.case:hover,
.layer:hover,
.mech-card:hover,
.infotile:hover,
body:not([data-page="use-cases"]) .cardgrid-3 > .card:hover {
 box-shadow: none;
 transform: none;
}

/* ============================================================ PROBLEM SECTION CARDS ============================================================ */

/* ============================================================ DECISION MODULE ============================================================ */

/* Decision module — first-class operational object */
.decision-module {
 width: 120px;
 height: 120px;
 display: flex;
 align-items: center;
 justify-content: center;
 background: none;
 border: none;
}

.decision-module img,
.decision-module svg {
 width: 100%;
 height: 100%;
 object-fit: contain;
 display: block;
}

/* Module states */
.decision-module--active {
 filter: drop-shadow(0 4px 6px rgba(0, 208, 132, 0.2));
}

.decision-module--inactive {
 opacity: 0.6;
}

.decision-module--connected {
 min-width: 200px;
}

/* Inline decision module in flow diagrams */
.operational-flow .decision-module {
 margin: 0 16px;
 flex-shrink: 0;
}

/* Decision module color accent for emphasis */
.decision-accent {
 border-top: 3px solid #00D084;
 padding-top: 8px;
}

/* Flow diagram container with Decision modules */
.decision-flow {
 display: flex;
 align-items: center;
 gap: 24px;
 padding: 32px;
 background: linear-gradient(to bottom, #f9f9fb 0%, #f5f5f8 100%);
 border: 1px solid var(--l3-line);
 border-radius: 8px;
}

.case:hover,
.layer:hover {
 background: var(--l3-paper);
 background-color: var(--l3-paper);
}

body[data-page="product"] .sec--dark .layer:hover {
 background: var(--l3-paper-soft) !important;
 background-color: var(--l3-paper-soft) !important;
}

.routecard:hover,
.usecase:hover,
.case:hover,
.layer:hover,
.mech-card:hover,
.infotile:hover,
.card:hover {
 cursor: default;
}

a.routecard:hover,
a.usecase:hover,
a.case:hover,
.card[href]:hover,
a.card:hover {
 cursor: pointer;
}

.routecard:hover .routecard__cta svg,
.usecase__explore:hover svg {
 transform: none;
}

/* =========================================================================
   Demo drawer — active slide-in contact form
   ========================================================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: block;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.demo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  z-index: 900;
  display: flex;
  width: 480px;
  max-width: none;
  height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--l3-line);
  background: #fafafa;
  color: var(--l3-ink);
  box-shadow: none;
  visibility: visible;
  padding: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

body.drawer-open .demo-drawer {
  pointer-events: auto;
  transform: translateX(0);
}

body.drawer-open { overflow: hidden; }

body > :where(main, section, footer) {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

body.drawer-open > :where(main, section, footer) {
  transform: translateX(-32px);
  transition-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  body > :where(main, section, footer) {
    transition: none;
  }
}

.demo-drawer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  background: #fafafa;
  color: var(--l3-ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.demo-drawer__close:hover { background: var(--l3-paper-soft); }

.demo-drawer__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  padding: 32px;
}

.demo-drawer__header {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 48px 0 0;
}

.demo-drawer__label {
  display: inline-block;
  color: var(--l3-ink-3);
  font-family: var(--l3-font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.demo-drawer__title {
  margin: 0;
  max-width: 22ch;
  margin-top: 16px;
  color: var(--l3-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.02em;
}

.demo-drawer__desc {
  margin: 0;
  max-width: 38ch;
  margin-top: 24px;
  color: var(--l3-ink-2);
  font-size: 16px;
  line-height: 24px;
}

.demo-drawer__form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 32px;
  margin: 0;
}

.demo-drawer__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.demo-drawer__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-drawer__field--full { width: 100%; }

.demo-drawer__row + .demo-drawer__field--full,
.demo-drawer__field--full + .demo-drawer__field--full {
  margin-top: 8px;
}

.demo-drawer__field-label {
  color: var(--l3-ink-2);
  font-size: 13px;
  font-weight: 600;
}

.demo-drawer__input,
.demo-drawer__select,
.demo-drawer__textarea {
  width: 100%;
  border: 1px solid var(--l3-line-strong);
  border-radius: 6px;
  background: var(--l3-paper);
  color: var(--l3-ink);
  font-family: var(--l3-font-sans);
  font-size: 15px;
  line-height: 22px;
  padding: 12px 12px;
}

.demo-drawer__input,
.demo-drawer__select {
  height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.demo-drawer__select {
  appearance: auto;
  padding-right: 40px;
}

.demo-drawer__textarea {
  min-height: 160px;
  resize: vertical;
}

.demo-drawer__input:focus,
.demo-drawer__select:focus,
.demo-drawer__textarea:focus {
  border-color: var(--l3-ink);
  box-shadow: var(--l3-focus-ring);
  outline: none;
}

.demo-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: auto;
  padding: 0;
}

.demo-drawer__trust {
  color: var(--l3-muted, var(--l3-ink-3));
  font-size: 12px;
  line-height: 18px;
}

.demo-drawer__submit {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--l3-action);
  color: var(--l3-action-fg);
  cursor: pointer;
  font-family: var(--l3-font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 14px 20px;
}

.demo-drawer__submit:hover {
  background: var(--l3-action-hi);
}

.demo-drawer__submit:disabled {
  cursor: progress;
  opacity: 0.7;
}


.demo-drawer__form[hidden],
.demo-drawer__success[hidden],
.demo-drawer__error[hidden] {
  display: none !important;
}

.demo-drawer__success {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--l3-line);
  border-radius: 0;
  background: var(--l3-paper-soft);
  padding: 24px;
}

.demo-drawer__success p {
  margin: 0;
  color: var(--l3-ink-2);
  font-size: 16px;
  line-height: 24px;
}

.demo-drawer__success p:first-child {
  color: var(--l3-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.demo-drawer__error {
  margin: 0;
  color: var(--l3-warning, #b42318);
  font-size: 14px;
  line-height: 20px;
}

/* Demo form states */
.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__input,
.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__select,
.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__textarea,
.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__submit {
  cursor: progress;
}

.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__input,
.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__select,
.demo-drawer [data-demo-form][data-state="loading"] .demo-drawer__textarea {
  opacity: 0.72;
  pointer-events: none;
}

[data-demo-form][data-state="loading"] .form__input,
[data-demo-form][data-state="loading"] .form__textarea,
[data-demo-form][data-state="loading"] .btn[type="submit"] {
  cursor: progress;
}

[data-demo-form][data-state="error"] [data-demo-form-status] {
  color: var(--l3-warning, #b42318);
}

@media (max-width: 640px) {
  .demo-drawer { width: 100%; }

  .demo-drawer__row { grid-template-columns: 1fr; }
}


/* Shared hero asset planes */
.pagehead__graphic-placeholder.l3-hero-asset-plane {
  padding: clamp(16px, 2vw, 32px);
  background: #18181b;
  border-color: #27272a;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}

.l3-hero-asset {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: top left;
}


/* HERO-VISUAL-40-60 — test hero screenshots with wider visual column */
@media (min-width: 1025px) {
  .pagehead__layout {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    column-gap: 0;
  }

  .pagehead__content,
  .pagehead__graphic {
    grid-column: auto;
  }

  .pagehead__graphic-placeholder.l3-hero-asset-plane {
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--l3-paper-soft);
    border-color: var(--l3-line);
    justify-content: center;
  }

  .l3-hero-asset {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
}


/* HOME-POLISH-PROD */
/* ── Hero illustration: fill full container, no artificial width cap ── */
.l3-hero-asset {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
}
.pagehead__graphic-placeholder.l3-hero-asset-plane {
  justify-content: center !important;
  align-items: center !important;
}

/* ── Routecard icon: consistent bottom spacing ── */
.routecard__icon {
  margin-bottom: 20px;
}

/* ── Icons: normalize stroke/optical size across card-icon ── */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.card-icon i {
  font-size: 22px !important;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================ */
/* RC-COMPLETE-FIX — Home 2x2 routecards: gap, padding, icon,  */
/*                   numbers above title                        */
/* ============================================================ */

.routecards--2x2 .routecard {
  gap: 32px;
  padding: 24px;
}
.routecards--2x2 .routecard > :not(.routecard__icon) {
  padding-left: 0;
  padding-right: 0;
}
.routecards--2x2 .routecard > .routecard__title { padding-top: 0; }
.routecards--2x2 .routecard > .routecard__body  { padding-top: 0; }
.routecards--2x2 .routecard > .routecard__cta   { padding-top: 0; padding-bottom: 0; }

.routecards--2x2 .routecard__icon {
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
  background: #E4E4E7;
  background-image: none;
  border-bottom: none;
  margin-bottom: 0;
  border-radius: 8px;
}

body[data-page="home"] .routecards--2x2 .routecard:nth-child(1) .routecard__body::before,
body[data-page="home"] .routecards--2x2 .routecard:nth-child(2) .routecard__body::before,
body[data-page="home"] .routecards--2x2 .routecard:nth-child(3) .routecard__body::before,
body[data-page="home"] .routecards--2x2 .routecard:nth-child(4) .routecard__body::before {
  content: none !important;
  display: none !important;
}

.routecards--2x2 .routecard .routecard__title::before {
  content: none;
  display: none;
}
body[data-page="home"] .routecards--2x2 .routecard:nth-child(1) .routecard__title::before { content: none; }
body[data-page="home"] .routecards--2x2 .routecard:nth-child(2) .routecard__title::before { content: none; }
body[data-page="home"] .routecards--2x2 .routecard:nth-child(3) .routecard__title::before { content: none; }
body[data-page="home"] .routecards--2x2 .routecard:nth-child(4) .routecard__title::before { content: none; }

/* ============================================================ */
/* CARD-ICON-GLOBAL                                             */
/* ============================================================ */
.card-icon { box-shadow: none; }
.card-icon i, .card-icon svg { font-size: 28px !important; width: 28px; height: 28px; }

/* ============================================================ */
/* HERO-VISUAL-FILL                                             */
/* ============================================================ */
.pagehead__graphic-placeholder.l3-hero-asset-plane {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
}
.l3-hero-asset {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: left top;
  flex: 1 1 auto;
}

/* HERO-VISUAL-FIX-V2 — shared hero asset scale */
.l3-hero-asset {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: left top;
  flex: 1 1 auto;
}
.pagehead__graphic-placeholder.l3-hero-asset-plane {
  height: 100%;
  min-height: 100%;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: 0;
}
.pagehead__graphic {
  height: var(--geo-hero-inner);
  min-height: var(--geo-hero-inner);
}
/* HERO-VISUAL-FIX-V3 */
.pagehead:has(.l3-hero-asset) .pagehead__graphic { max-height: none; align-self: start; min-height: 0; height: auto; display: block; }
.pagehead:has(.l3-hero-asset) .pagehead__graphic-placeholder { max-height: none; }
.pagehead:has(.l3-hero-asset) .pagehead__content { min-height: 0; padding-bottom: var(--geo-hero-text-pad-bottom); border-right: 0; }
.pagehead:has(.l3-hero-asset) { min-height: 0; }
.pagehead:has(.l3-hero-asset) > .container { min-height: 0; }
.pagehead:has(.l3-hero-asset) .pagehead__layout { min-height: 0; }
body[data-page="data-access"] .pagehead__graphic-placeholder.l3-hero-asset-plane .l3-hero-asset {
  object-position: right bottom;
}

@media (max-width: 1024px) {
  .pagehead:has(.l3-hero-asset) .pagehead__graphic {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: clamp(240px, 56vw, 420px);
  }
  .pagehead:has(.l3-hero-asset) .pagehead__content { padding-bottom: 0; }
}

/* CARD-PADDING-NORMALIZE — 24px everywhere */
.card, .routecard, .mech-body, .infotile { padding: 24px; }
.routecards--2x2 .routecard { padding: 24px; }
@media (max-width: 900px) {
  .card, .routecard, .mech-body, .infotile { padding: 20px; }
}

/* RC-ICON-TOP-FIX — pin routecard content to top-left */
.routecards--2x2 .routecard {
  justify-content: flex-start;
  align-items: flex-start;
  aspect-ratio: auto;
}

/* RC-COLUMN-RULES — weight normalized (illustration removed: title/body/CTA use full card width) */
.routecards--2x2 .routecard__cta {
  font-weight: 400;
}

/* MECH-COLUMN-RULES — heading=4cols(~55%), text=6cols(~75%) */
body[data-page="home"] .mech-grid-2x2 .mech-body h3 {
  max-width: 55%;
}
body[data-page="home"] .mech-grid-2x2 .mech-body p {
  max-width: 75%;
}

/* ICON-TOP TEXT-BOTTOM — icon flush top, text block pushed to bottom */
/* Routecards */
.routecards--2x2 .routecard {
  justify-content: flex-start;
  align-items: flex-start;
}
.routecards--2x2 .routecard__title {
  margin-top: 0;
}

/* Mech-cards */
body[data-page="home"] .mech-grid-2x2 .mech-body {
  justify-content: flex-start;
  align-items: flex-start;
}
body[data-page="home"] .mech-grid-2x2 .mech-body .mech-num {
  margin-top: auto;
}

/* ============================================================ */
/* REGRESSION-FIX-2026-06-28                                    */
/* ============================================================ */

/* FIX-ROUTECARD-LAYOUT — definitive: icon top, space, text block bottom */
.routecards--2x2 .routecard {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px;
  justify-content: flex-start;
  align-items: flex-start;
  aspect-ratio: auto;
  min-height: 310px;
}
/* Equalize the two 2-column rows: below the ~1280px point the longer card
   copy wraps an extra line, so the row needs a taller shared floor. The
   floor is sized to the narrowest 2-column width (768px), where wrapping
   is worst; wider tablet widths just get a small amount of extra room. */
@media (min-width: 768px) and (max-width: 1024px) {
  .routecards--2x2 .routecard {
    min-height: 440px;
  }
}
.routecards--2x2 .routecard__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.routecards--2x2 .routecard__number {
  font-size: 11px;
  font-weight: 400;
  color: var(--l3-ink-3);
  letter-spacing: 0.06em;
  line-height: 1;
}
.routecards--2x2 .routecard__title {
  margin: 0;
  padding-top: 0;
}
.routecards--2x2 .routecard .routecard__title::before {
  content: none;
  display: none;
}
.routecards--2x2 .routecard__body {
  flex: none;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
.routecards--2x2 .routecard__cta {
  margin-top: auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  font-weight: 400;
}

/* FIX-ICON-CONSISTENCY — unified icon container in home routecards */
.routecards--2x2 .card-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  background: #E4E4E7;
  border-radius: 8px;
  box-shadow: none;
  border: none;
  flex-shrink: 0;
  margin-bottom: 0;
  aspect-ratio: auto;
  background-image: none;
  border-bottom: none;
}
.routecards--2x2 .card-icon i,
.routecards--2x2 .card-icon svg {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #3F3F46;
}

/* HOME-ROUTECARDS-MOBILE-FIX — an earlier unconditional rule (FIX-G04b,
   "routecard grid, hover and visual zone") re-forces 2 columns at every
   width, overriding the 1-column mobile breakpoints below it. This scoped,
   higher-specificity rule restores 1 column under 768px and gives the
   grid one consistent gap value at every breakpoint. */
body[data-page="home"] .routecards--2x2 {
  gap: 24px;
}
@media (max-width: 767px) {
  body[data-page="home"] .routecards--2x2 {
    grid-template-columns: 1fr;
  }
}

/* HOME-HERO-LOAD-IN — subtle fade + rise on load, staggered, no scroll trigger */
@media (prefers-reduced-motion: no-preference) {
  body[data-page="home"] .pagehead__eyebrow,
  body[data-page="home"] .pagehead__title,
  body[data-page="home"] .pagehead__sub,
  body[data-page="home"] .pagehead__actions {
    opacity: 0;
    transform: translateY(8px);
    animation: home-hero-rise 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  body[data-page="home"] .pagehead__eyebrow { animation-delay: 0ms; }
  body[data-page="home"] .pagehead__title   { animation-delay: 80ms; }
  body[data-page="home"] .pagehead__sub     { animation-delay: 160ms; }
  body[data-page="home"] .pagehead__actions { animation-delay: 240ms; }
}
@keyframes home-hero-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE-LAYOUT-FIX — several unconditional/legacy rules (DEF-LIST-NORMALIZE
   and others) fight over .steplist__row / .deflist__row column layout at
   narrow widths, in unpredictable order. !important here is a deliberate,
   narrowly-scoped exception to end that conflict rather than add another
   rule to the pile. Labels must stack above body text below 768px. */
@media (max-width: 768px) {
  .steplist__row,
  .deflist__row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .steplist__body,
  .deflist__v {
    grid-column: 1 !important;
  }
}

/* Canonical flow grid (6-step ribbon): minmax(0,1fr) columns can shrink to
   the point where adjacent step labels crowd/touch each other. Give each
   node a real minimum width so the existing overflow-x:auto (768px
   breakpoint) produces clean horizontal scroll instead of squeezed text. */
@media (max-width: 768px) {
  .flow {
    grid-template-columns: repeat(var(--cols, 6), minmax(140px, 1fr)) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME-UNIFIED-CARDS
   Unified layout for .mech-grid-2x2 (mech-cards) and .routecards--2x2
   (routecards) on the Home page. 2×2 desktop / 1-col mobile.
   Card: icon top-left, number top-right, content grouped at bottom.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Grid */
body[data-page="home"] .mech-grid-2x2,
body[data-page="home"] .routecards--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 640px) {
  body[data-page="home"] .mech-grid-2x2,
  body[data-page="home"] .routecards--2x2 {
    grid-template-columns: 1fr;
  }
}

/* Card base */
body[data-page="home"] .mech-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--l3-line);
  border-radius: 8px;
  background: transparent;
  min-height: 0;
}
body[data-page="home"] .routecard {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 8px;
  aspect-ratio: unset;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

/* Top row: icon left, number right */
.mech-card__top,
.routecard__top {
  display: flex;
  align-items: flex-start;
  width: 100%;
  flex-shrink: 0;
}

/* Number container — same size as .card-icon, no fill, no border */
.mech-card__num,
.routecard__number {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l3-ink-3);
  font-family: var(--l3-font-sans);
}

/* Bottom content — pushed to card bottom */
.mech-card__bottom,
.routecard__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

/* Icon container — unified 44×44 chip, #E4E4E7 fill, for BOTH home card grids.
   mech-card previously inherited rgba(0,0,0,.02) from the legacy rule;
   routecard was already fixed by FIX-ICON-CONSISTENCY but we centralise here
   with higher specificity so the single source of truth is this block. */
body[data-page="home"] .mech-grid-2x2 .card-icon,
body[data-page="home"] .routecards--2x2 .card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: #E4E4E7;
  border-radius: 8px;
  border: none;
  border-bottom: none;
  box-shadow: none;
  background-image: none;
  aspect-ratio: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDGRID-3-NUMBERED
   Numbered cards (no icon) on product pages: number top-right,
   title + body grouped at bottom via margin-top: auto on the title.
   Matches the visual rhythm of HOME-UNIFIED-CARDS above.
   ═══════════════════════════════════════════════════════════════════════════ */

.cardgrid-3 .card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
}
.cardgrid-3 .card .card__num {
  align-self: flex-end;
  margin-bottom: 0;
}
.cardgrid-3 .card .card__title {
  margin-top: auto;
  padding-top: 20px;
  margin-bottom: 0;
}
.cardgrid-3 .card .card__body {
  margin-top: 8px;
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .cardgrid-3 .card {
    padding: 20px;
  }
}
