:root {
  --ink: #0F1923;
  --ink-2: #1a2534;
  --muted: #525252;
  --muted-2: #737373;
  --muted-3: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --line-3: #f7f7f7;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f5f5f5;
  --accent: #B08D57;
  --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6;
  --accent-soft-2: #FBF7F0;
  --green: #2f7a4d;
  --green-soft: #f0f7f3;
  --green-on-dark: #3FA86A;
  --yellow: #B07D2A;
  --yellow-soft: #FBF3E3;
  --red: #c94a3e;
  --red-soft: #fbe9e7;
  --blue: #3b5ea5;
  --blue-soft: #eef2f8;

  /* category colors — used on category chips and card accents */
  --c-ops:        #B08D57;
  --c-finance:    #2D5A66;
  --c-compliance: #6E4F8E;
  --c-cs:         #2F7A4D;
  --c-procure:    #8C5A2F;
  --c-logistics:  #3B5EA5;
  --c-quality:    #B23A48;

  --ff-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-mono: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-w: 1440px;
  --inner-pad: 32px;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.7s;
}

/* ============== RESET + BASE ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body); color: var(--ink); background: var(--paper);
  line-height: 1.5; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--inner-pad); padding-right: var(--inner-pad); }
main > section { padding: 96px var(--inner-pad); border-bottom: 1px solid var(--line); }

/* ============== TYPE ============== */
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }
.h-display { font-size: clamp(48px, 5.2vw, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.h-section { font-size: clamp(40px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.h-section-sm { font-size: clamp(36px, 3.8vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h-section-xs { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.h-card { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.h-sub { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: var(--ff-mono); }
.num { font-variant-numeric: tabular-nums; }
em.acc { font-style: normal; color: var(--accent); }

/* ============== BUTTONS ============== */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 0s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(176, 141, 87, 0.55); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 28px -10px rgba(15, 25, 35, 0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-inv:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 16px 26px; font-size: 17px; font-weight: 600; }
.link-arrow {
  font-size: 16px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-fast) var(--ease-smooth); text-decoration: none;
}
.link-arrow:hover { gap: 10px; }

/* ============== HEADER ============== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; flex: none; }
.site-nav { background: var(--paper); }
.site-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 14px var(--inner-pad); display: flex; align-items: center; justify-content: space-between; }
.site-nav-left { display: flex; align-items: center; gap: 44px; }
.site-nav-right { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav-link { font-size: 16.5px; font-weight: 500; color: var(--ink); padding: 8px 4px; transition: color var(--dur-fast); text-decoration: none; }
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--accent); }
.nav-signin { font-size: 16px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.nav-signin:hover { color: var(--accent); }
.nav-cta { padding: 10px 18px; }
.nav-hamburger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); }
.edma-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; }
.edma-logo .phoenix { height: 34px; width: auto; display: block; max-width: 100%; }

/* ============== SUBNAV ============== */
.subnav { position: sticky; top: 71px; z-index: 90; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--inner-pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 52px;
}
.subnav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: 14px; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; }
.subnav-brand .crumb-mark {
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(176,141,87,0.3);
  font-family: var(--ff-mono); font-size: 14px; font-weight: 500;
}
.subnav-brand .crumb-sep { color: var(--muted-3); }
.subnav-brand .crumb-cur { color: var(--ink); font-weight: 500; }
.subnav-links { display: flex; align-items: center; gap: 4px; font-family: var(--ff-mono); font-size: 14px; }
.subnav-links a { padding: 8px 10px; color: var(--muted-2); letter-spacing: 0.02em; transition: color var(--dur-fast); }
.subnav-links a:hover { color: var(--ink); }
.subnav-links a.is-active { color: var(--accent); }
.subnav-cta { font-size: 15px; color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

/* ============== HERO ============== */
.s-hero { padding-top: 88px; padding-bottom: 56px; }
.s-hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.s-hero-left .eyebrow { display: inline-block; margin-bottom: 24px; }
.s-hero h1 { margin-bottom: 24px; }
.s-hero .lede { max-width: 560px; margin-bottom: 32px; }
.cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.s-hero .cta-row { display: flex; }

/* hero side mini-card — stack of 3 workflow chips */
.hero-doc {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.hero-doc::before {
  content: ''; position: absolute; right: -1px; top: -1px; width: 22px; height: 22px;
  background:
    linear-gradient(135deg, transparent 50%, var(--line) 50%, var(--line) 52%, var(--paper-2) 52%);
}
.hero-doc-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hero-doc-chan { display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: 13.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.hero-doc-chan .gly { width: 22px; height: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-family: var(--ff-mono); border: 1px solid rgba(176,141,87,0.3); }
.hero-doc-stamp { font-family: var(--ff-mono); font-size: 13px; color: var(--accent); }
.hero-doc-title { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.hero-doc-sub { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.hero-doc-body { display: flex; flex-direction: column; gap: 8px; }
.hero-wf {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  position: relative;
}
.hero-wf::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
}
.hero-wf .cat {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 3px 6px; border: 1px solid var(--line);
  background: var(--paper);
}
.hero-wf .name { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.hero-wf .deploy {
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--accent); letter-spacing: 0.04em;
  padding: 4px 8px; border: 1px solid rgba(176,141,87,0.4);
  background: var(--accent-soft);
}
.hero-wf .desc {
  grid-column: 1 / -1;
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--muted-2); line-height: 1.5;
}
.hero-doc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px dashed var(--line); font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }
.hero-doc-foot .ok { color: var(--green); }

/* KPI strip */
.kpi-strip {
  max-width: var(--max-w); margin: 64px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi-cell {
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  text-align: left;
  border-right: 1px solid var(--line);
}
.kpi-cell:last-child { border-right: 0; }
.kpi-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.kpi-val { font-family: var(--ff-mono); font-size: 22px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.kpi-val .accent { color: var(--accent); }
.kpi-sub { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }

/* ============== CENTERPIECE — Library cockpit ============== */
.s-center { background: var(--ink); color: #fff; border-bottom: 0; padding: 96px var(--inner-pad); }
.s-center .s-head { max-width: 1080px; margin: 0 auto 56px; text-align: center; }
.s-center .eyebrow { color: var(--accent); }
.s-center h2 { color: #fff; margin: 16px 0 18px; }
.s-center .lede { color: rgba(255,255,255,0.65); max-width: 800px; margin: 0 auto; }

.lib-frame {
  max-width: 1360px; margin: 0 auto;
  background: #0a121b;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.65), 0 10px 28px -10px rgba(176,141,87,0.18);
}
.lib-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--ff-mono); font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em;
}
.lib-titlebar .dots { display: inline-flex; gap: 6px; }
.lib-titlebar .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.lib-titlebar .dots span:nth-child(1) { background: #ff5f56; }
.lib-titlebar .dots span:nth-child(2) { background: #ffbd2e; }
.lib-titlebar .dots span:nth-child(3) { background: #27c93f; }
.lib-titlebar .crumbs { display: flex; gap: 10px; align-items: center; }
.lib-titlebar .crumbs .sep { color: rgba(255,255,255,0.25); }
.lib-titlebar .crumbs .cur { color: #fff; }
.lib-titlebar .stamp { color: var(--accent); }

/* Library toolbar */
.lib-toolbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.18);
}
.lib-search {
  display: flex; align-items: center; gap: 10px;
  flex: 1; max-width: 340px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  font-family: var(--ff-mono); font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.lib-search .glyph { color: var(--accent); }
.lib-search .cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--accent); margin-left: 2px;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.lib-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.lib-chip {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px;
}
.lib-chip::before {
  content: ''; width: 6px; height: 6px;
  background: var(--cat, rgba(255,255,255,0.4));
}
.lib-chip.is-active {
  color: #fff; border-color: var(--cat, var(--accent));
  background: rgba(176,141,87,0.10);
}
.lib-chip .ct { color: rgba(255,255,255,0.4); font-size: 12px; }
.lib-toolbar .lib-action {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.20);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.lib-toolbar .lib-action.is-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* Library status strip */
.lib-status {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lib-status-cell {
  padding: 12px 18px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 2px;
}
.lib-status-cell:last-child { border-right: 0; }
.lib-status .lbl { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.lib-status .v { font-family: var(--ff-mono); font-size: 16px; color: #fff; letter-spacing: -0.005em; }
.lib-status .v .acc { color: var(--accent); }
.lib-status .v .ok { color: var(--green-on-dark); }

/* Grid of workflow cards */
.lib-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.lib-card {
  padding: 18px 18px 16px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255,255,255,0.012);
  position: relative;
}
.lib-card:nth-child(3n) { border-right: 0; }
.lib-card.is-popular::before {
  content: 'most deployed'; position: absolute; top: 0; right: 0;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.10em;
  color: var(--accent); text-transform: uppercase;
  padding: 4px 8px; background: rgba(176,141,87,0.08);
  border-left: 1px solid rgba(176,141,87,0.30);
  border-bottom: 1px solid rgba(176,141,87,0.30);
}
.lib-card-head {
  display: flex; align-items: center; gap: 8px;
}
.lib-card .cat {
  font-family: var(--ff-mono); font-size: 11.5px;
  padding: 3px 7px;
  letter-spacing: 0.10em; text-transform: uppercase;
  border: 1px solid var(--cat, rgba(255,255,255,0.20));
  color: var(--cat, rgba(255,255,255,0.85));
  background: rgba(0,0,0,0.30);
}
.lib-card .id {
  font-family: var(--ff-mono); font-size: 11.5px;
  color: rgba(255,255,255,0.35); letter-spacing: 0.06em;
}
.lib-card .name {
  font-size: 17px; font-weight: 600; color: #fff;
  letter-spacing: -0.005em; line-height: 1.25;
}
.lib-card .desc {
  font-family: var(--ff-mono); font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
}
.lib-card .meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.10);
}
.lib-card .used {
  font-family: var(--ff-mono); font-size: 12.5px;
  color: rgba(255,255,255,0.75); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 8px;
}
.lib-card .used .bar {
  display: inline-block; width: 36px; height: 4px;
  background: rgba(255,255,255,0.08);
  position: relative;
}
.lib-card .used .bar::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 50%); background: var(--accent);
}
.lib-card .deploy {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 5px 10px;
  background: rgba(176,141,87,0.10);
  border: 1px solid rgba(176,141,87,0.40);
  color: var(--accent); letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 6px;
}
.lib-card .deploy::after { content: '↗'; font-size: 13px; }
.lib-card.is-deployed .deploy {
  background: rgba(63,168,106,0.10);
  border-color: rgba(63,168,106,0.40);
  color: var(--green-on-dark);
}
.lib-card.is-deployed .deploy::after { content: '●'; font-size: 10px; }

/* Footer of library frame */
.lib-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0,0,0,0.22);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--ff-mono); font-size: 13px; color: rgba(255,255,255,0.55);
}
.lib-foot .left { display: flex; gap: 14px; }
.lib-foot .acc { color: var(--accent); }
.lib-foot .ok { color: var(--green-on-dark); }
.lib-foot .pager { display: flex; gap: 6px; align-items: center; }
.lib-foot .pager span { padding: 3px 8px; border: 1px solid rgba(255,255,255,0.10); color: rgba(255,255,255,0.55); }
.lib-foot .pager span.is-current { color: var(--accent); border-color: rgba(176,141,87,0.40); background: rgba(176,141,87,0.08); }

.ck-caption { max-width: 880px; margin: 40px auto 0; text-align: center; font-family: var(--ff-mono); font-size: 14px; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); }
.ck-caption em { font-style: normal; color: var(--accent); }

@media (max-width: 1180px) {
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-card:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.06); }
  .lib-card:nth-child(2n) { border-right: 0; }
  .lib-status { grid-template-columns: repeat(2, 1fr); }
  .lib-status-cell { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .lib-status-cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-card { border-right: 0 !important; }
}

/* ============== FULL LIBRARY (by category) ============== */
.s-full .s-head { max-width: var(--max-w); margin: 0 auto 56px; }
.s-full .s-head h2 { max-width: 920px; margin-bottom: 14px; }
.s-full .s-head .lede { max-width: 760px; }

.cat-block {
  max-width: var(--max-w); margin: 0 auto 0;
  border: 1px solid var(--line);
}
.cat-block + .cat-block { border-top: 0; }
.cat-head {
  display: grid; grid-template-columns: 240px 1fr auto;
  align-items: center; gap: 20px;
  padding: 18px 22px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.cat-head .name {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.cat-head .name .mk {
  width: 8px; height: 26px; background: var(--cat, var(--accent));
}
.cat-head .scope {
  font-family: var(--ff-mono); font-size: 13.5px;
  color: var(--muted-2); letter-spacing: 0.02em;
}
.cat-head .count {
  font-family: var(--ff-mono); font-size: 13.5px;
  color: var(--cat, var(--accent)); letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cat-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.cat-item {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper);
}
.cat-item:last-child { border-right: 0; }
.cat-item .id {
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--muted-3); letter-spacing: 0.10em;
}
.cat-item .name {
  font-size: 16.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em; line-height: 1.3;
}
.cat-item .desc {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2); line-height: 1.5;
}
.cat-item .tail {
  margin-top: auto; padding-top: 8px;
  border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--muted-2);
}
.cat-item .tail .acc { color: var(--cat, var(--accent)); }
.cat-item .tail .deploy {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
}

/* sized for each category by count */
.cat-block[data-n="5"] .cat-grid { grid-template-columns: repeat(5, 1fr); }
.cat-block[data-n="4"] .cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-block[data-n="3"] .cat-grid { grid-template-columns: repeat(3, 1fr); }
.cat-block[data-n="2"] .cat-grid { grid-template-columns: repeat(2, 1fr); }
.cat-block[data-n="1"] .cat-grid { grid-template-columns: 1fr; }

@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cat-item { border-bottom: 1px solid var(--line); }
  .cat-item:nth-child(2n) { border-right: 0; }
  .cat-item:nth-last-child(-n+2) { border-bottom: 0; }
  .cat-head { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: 1fr !important; }
  .cat-item { border-right: 0 !important; }
}

/* ============== HOW DEPLOYMENT WORKS (3-step) ============== */
.s-howto { background: var(--paper-2); }
.s-howto .s-head { max-width: var(--max-w); margin: 0 auto 48px; }
.s-howto .s-head h2 { max-width: 760px; margin-bottom: 14px; }
.howto-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); background: var(--paper);
}
.howto-step {
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.howto-step:last-child { border-right: 0; }
.howto-step .num {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--accent); letter-spacing: 0.14em;
}
.howto-step h3 {
  font-size: 22px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
}
.howto-step > p {
  font-size: 16.5px; line-height: 1.6;
  color: var(--muted);
}
.howto-step p strong { color: var(--ink); font-weight: 600; }

/* step 1 — card preview */
.howto-prev {
  margin-top: auto;
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.howto-prev .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-family: var(--ff-mono); font-size: 13.5px;
}
.howto-prev .row .l { color: var(--muted-2); letter-spacing: 0.04em; }
.howto-prev .row .v { color: var(--ink); }
.howto-prev .row .v.acc { color: var(--accent); }
.howto-prev .name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.howto-prev .desc { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); line-height: 1.5; }
.howto-prev .bar { height: 4px; background: var(--line); position: relative; }
.howto-prev .bar > i { display: block; height: 100%; background: var(--accent); }
.howto-prev .cur { color: var(--accent); }

/* step 2 — Bot Studio editor preview */
.howto-edit {
  margin-top: auto;
  background: var(--ink); color: #fff;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--ff-mono); font-size: 13.5px;
}
.howto-edit .e-head {
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
}
.howto-edit .e-head .acc { color: var(--accent); }
.howto-edit .field { display: flex; flex-direction: column; gap: 3px; }
.howto-edit .field .l {
  font-size: 11.5px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent);
}
.howto-edit .field .v { color: rgba(255,255,255,0.85); line-height: 1.5; }
.howto-edit .field .v em { font-style: normal; color: var(--accent); background: rgba(176,141,87,0.10); padding: 0 3px; }
.howto-edit .field .v .strike { text-decoration: line-through; color: rgba(255,255,255,0.40); }

/* step 3 — agent live state */
.howto-live {
  margin-top: auto;
  padding: 14px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.howto-live .pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--green); letter-spacing: 0.04em;
}
.howto-live .pulse::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}
.howto-live .audit {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted); line-height: 1.6;
}
.howto-live .audit .ev {
  display: flex; gap: 10px;
  padding: 4px 0;
  border-top: 1px dashed var(--line);
}
.howto-live .audit .ev:first-child { border-top: 0; }
.howto-live .audit .ev .t { color: var(--muted-3); flex: none; }
.howto-live .audit .ev .a { color: var(--ink); }

@media (max-width: 980px) {
  .howto-grid { grid-template-columns: 1fr; }
  .howto-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .howto-step:last-child { border-bottom: 0; }
}

/* ============== BOT STUDIO CONNECTION ============== */
.s-bot { background: var(--paper); }
.s-bot-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line);
}
.s-bot-left {
  padding: 56px;
  display: flex; flex-direction: column; gap: 20px;
  border-right: 1px solid var(--line);
}
.s-bot-left p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.s-bot-left p strong { color: var(--ink); font-weight: 600; }
.s-bot-left .cta-row { margin-top: 12px; }
.s-bot-right {
  padding: 56px;
  display: flex; flex-direction: column; gap: 18px;
  background: var(--paper-2);
}
.bot-bar {
  display: flex; flex-direction: column;
  gap: 8px;
}
.bot-bar .bar-row {
  display: grid; grid-template-columns: 120px 1fr auto;
  align-items: center; gap: 16px;
}
.bot-bar .lbl {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase;
}
.bot-bar .track {
  height: 36px; background: var(--paper); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.bot-bar .track .floor {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--floor, 60%); background: var(--accent-soft-2);
  border-right: 1px dashed rgba(176,141,87,0.4);
  display: flex; align-items: center; padding: 0 12px;
  font-family: var(--ff-mono); font-size: 13px; color: var(--accent);
  letter-spacing: 0.04em;
}
.bot-bar .track .ceiling {
  position: absolute; right: 8px; top: 0; bottom: 0;
  display: flex; align-items: center;
  font-family: var(--ff-mono); font-size: 13px; color: var(--ink);
  letter-spacing: 0.04em;
}
.bot-bar .tail {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2);
}
.bot-bar .tail .acc { color: var(--accent); }

@media (max-width: 980px) {
  .s-bot-inner { grid-template-columns: 1fr; }
  .s-bot-left { border-right: 0; border-bottom: 1px solid var(--line); padding: 40px; }
  .s-bot-right { padding: 40px; }
  .bot-bar .bar-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 720px) {
  /* Library defaults vs Bot Studio ceiling — stack into 2 rows on mobile
     instead of side-by-side bar (text would overlap otherwise) */
  .bot-bar .bar-row { gap: 8px; }
  .bot-bar .track {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: visible;
  }
  .bot-bar .track .floor {
    position: static;
    width: 100% !important;
    border-right: 0;
    border-bottom: 1px dashed rgba(176,141,87,0.4);
    padding: 10px 12px;
    background: var(--accent-soft-2);
  }
  .bot-bar .track .floor::before {
    content: 'library default: ';
    color: var(--muted-2); margin-right: 4px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  }
  .bot-bar .track .ceiling {
    position: static;
    padding: 10px 12px;
  }
  .bot-bar .track .ceiling::before {
    content: 'Bot Studio: ';
    color: var(--muted-2); margin-right: 4px;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  }
  .bot-bar .tail { display: none; }
}

/* ============== MONTHLY ADDITIONS ============== */
.s-monthly { background: var(--paper-2); }
.s-monthly .s-head { max-width: var(--max-w); margin: 0 auto 40px; }
.s-monthly .s-head h2 { max-width: 760px; margin-bottom: 14px; }
.s-monthly .s-head .lede { max-width: 720px; }

.monthly-wrap {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 0;
  border: 1px solid var(--line); background: var(--paper);
}
.monthly-stats {
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
}
.monthly-stat { display: flex; flex-direction: column; gap: 4px; }
.monthly-stat .lbl {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2); letter-spacing: 0.10em; text-transform: uppercase;
}
.monthly-stat .v {
  font-family: var(--ff-mono); font-size: 26px;
  color: var(--ink); letter-spacing: -0.01em;
}
.monthly-stat .v .acc { color: var(--accent); }
.monthly-stat .sub {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2);
}

.monthly-feed {
  padding: 36px;
  display: flex; flex-direction: column; gap: 12px;
}
.monthly-h {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2); letter-spacing: 0.12em; text-transform: uppercase;
  padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.monthly-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: start; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.monthly-row:last-child { border-bottom: 0; }
.monthly-row .when {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--muted-2); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.monthly-row .when .acc { color: var(--accent); }
.monthly-row .body { display: flex; flex-direction: column; gap: 4px; }
.monthly-row .body .name {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
}
.monthly-row .body .desc {
  font-family: var(--ff-mono); font-size: 13.5px;
  color: var(--muted); line-height: 1.5;
}
.monthly-row .status {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 4px 8px; letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--muted-2);
  white-space: nowrap;
}
.monthly-row.is-beta .status { color: var(--accent); border-color: rgba(176,141,87,0.4); background: var(--accent-soft); }
.monthly-row.is-live .status { color: var(--green); border-color: rgba(47,122,77,0.4); background: var(--green-soft); }
.monthly-row.is-planned .status { color: var(--muted); border-color: var(--line); background: var(--paper-2); }

@media (max-width: 980px) {
  .monthly-wrap { grid-template-columns: 1fr; }
  .monthly-stats { flex-direction: row; flex-wrap: wrap; gap: 24px; border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .monthly-feed { padding: 28px; }
  .monthly-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ============== COMPOSE (chained workflows) ============== */
.s-compose { background: var(--ink); color: #fff; border-bottom: 0; }
.s-compose .s-head { max-width: 1080px; margin: 0 auto 48px; text-align: center; }
.s-compose .eyebrow { color: var(--accent); }
.s-compose h2 { color: #fff; margin: 16px 0 18px; }
.s-compose .lede { color: rgba(255,255,255,0.65); max-width: 800px; margin: 0 auto; }

.chain-wrap {
  max-width: 1280px; margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
}
.chain-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  position: relative;
}
.chain-tile {
  padding: 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.chain-tile + .chain-tile { margin-left: -1px; }
.chain-tile .cat {
  font-family: var(--ff-mono); font-size: 11.5px;
  padding: 3px 7px; letter-spacing: 0.10em; text-transform: uppercase;
  border: 1px solid var(--cat, rgba(255,255,255,0.20));
  color: var(--cat, rgba(255,255,255,0.85));
  background: rgba(0,0,0,0.30);
  width: max-content;
}
.chain-tile .name {
  font-size: 17px; font-weight: 600; color: #fff;
  letter-spacing: -0.005em;
}
.chain-tile .desc {
  font-family: var(--ff-mono); font-size: 13px;
  color: rgba(255,255,255,0.65); line-height: 1.5;
}
.chain-tile .arrow {
  position: absolute; right: -14px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px; z-index: 2;
  display: grid; place-items: center;
  background: var(--ink); color: var(--accent);
  font-family: var(--ff-mono); font-size: 16px;
  border: 1px solid rgba(176,141,87,0.40);
}
.chain-tile:last-child .arrow { display: none; }

.chain-out {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(176,141,87,0.4);
  background: rgba(176,141,87,0.06);
  display: grid; grid-template-columns: 220px 1fr; gap: 28px;
  align-items: center;
}
.chain-out .lbl {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
}
.chain-out .body {
  font-family: var(--ff-mono); font-size: 15px;
  color: rgba(255,255,255,0.92); line-height: 1.6;
}
.chain-out .body em { font-style: normal; color: var(--accent); }
.chain-cap {
  max-width: 880px; margin: 28px auto 0;
  text-align: center;
  font-family: var(--ff-mono); font-size: 14px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.02em;
}
.chain-cap em { font-style: normal; color: var(--accent); }

@media (max-width: 980px) {
  .chain-row { grid-template-columns: 1fr; }
  .chain-tile + .chain-tile { margin-left: 0; margin-top: -1px; }
  .chain-tile .arrow { right: 50%; top: auto; bottom: -14px; transform: translateX(50%) rotate(90deg); }
  .chain-out { grid-template-columns: 1fr; gap: 12px; }
}

/* ============== TRUST ============== */
.s-trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.s-trust .s-head { max-width: var(--max-w); margin: 0 auto 40px; }
.s-trust .s-head h2 { max-width: 720px; margin-bottom: 14px; }
.s-trust .s-head .lede { max-width: 700px; }
.trust-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.trust-cell {
  padding: 22px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.trust-cell:last-child { border-right: 0; }
.trust-cell .num {
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--accent); letter-spacing: 0.12em;
}
.trust-cell h3 {
  font-size: 17px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.005em;
}
.trust-cell p {
  font-size: 15px; line-height: 1.55; color: var(--muted);
}
.trust-cell .tail {
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--accent); letter-spacing: 0.04em;
}
@media (max-width: 1180px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-cell { border-bottom: 1px solid var(--line); }
  .trust-cell:nth-child(2n) { border-right: 0; }
  .trust-cell:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-cell { border-right: 0; }
  .trust-cell:last-child { grid-column: auto; }
}

/* ============== COMPARE ============== */
.s-compare .s-head { max-width: var(--max-w); margin: 0 auto 48px; }
.s-compare .s-head h2 { max-width: 900px; margin-bottom: 14px; }
.cmp-wrap { max-width: var(--max-w); margin: 0 auto; overflow-x: auto; border: 1px solid var(--line); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 1000px; }
.cmp-table thead th {
  text-align: left; padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
  background: var(--paper-2); vertical-align: bottom;
  white-space: nowrap;
}
.cmp-table thead th .sub { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0.06em; color: var(--muted-3); margin-top: 4px; text-transform: none; }
.cmp-table thead th.is-edma { color: var(--accent); background: var(--accent-soft); border-bottom-color: var(--accent); }
.cmp-table thead th.is-edma .sub { color: var(--accent); }
.cmp-table tbody td { padding: 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; text-align: center; }
.cmp-table tbody td.cmp-cap { text-align: left; font-weight: 500; color: var(--ink); }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody td.is-edma { border-left: 2px solid var(--accent); background: var(--accent-soft-2); }
.cmp-yes { color: var(--accent); font-weight: 600; }
.cmp-partial { color: var(--muted); font-style: italic; font-size: 14px; }
.cmp-no { color: var(--muted-3); }

/* ============== FAQ ============== */
.s-faq { background: var(--paper-2); }
.s-faq-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.s-faq h2 { margin-bottom: 16px; }
.s-faq .lede { max-width: 360px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.faq-a { font-size: 17.5px; line-height: 1.7; color: var(--muted); }
.faq-a a { color: var(--accent); border-bottom: 1px solid rgba(176,141,87,0.35); }
.faq-a strong { color: var(--ink); font-weight: 600; }

/* ============== CTA ============== */
.s-cta { background: var(--ink); color: #fff; border-bottom: 0; }
.s-cta-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.s-cta h2 { color: #fff; margin-bottom: 18px; }
.s-cta p { color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.6; margin-bottom: 32px; }
.s-cta .cta-row { justify-content: center; }
.s-cta .link-arrow { color: var(--accent); margin-top: 22px; display: inline-flex; }

/* ============== RELATED ============== */
.s-related-inner { max-width: var(--max-w); margin: 0 auto; }
.s-related h3 { margin-bottom: 32px; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: var(--paper); border: 1px solid var(--line); padding: 28px; transition: border-color var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth); display: flex; flex-direction: column; gap: 12px; }
.related-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.related-card-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.related-card-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.related-card-desc { font-size: 16px; color: var(--muted); line-height: 1.55; }
.related-card-link { color: var(--accent); font-size: 15.5px; font-weight: 500; margin-top: auto; padding-top: 8px; }

/* ============== FOOTER ============== */
.site-footer { background: var(--ink); color: #fff; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-inner { max-width: var(--max-w); margin: 0 auto; padding: 48px var(--inner-pad); display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.edma-logo--footer .phoenix { height: 40px; }
.edma-logo--footer .edma-wordmark { font-size: 26px; color: #fff; }
.edma-logo--footer { color: #fff; }
.footer-brand-tag { color: rgba(255,255,255,0.55); font-size: 16px; line-height: 1.55; margin-top: 14px; max-width: 480px; }
.footer-newsletter-title { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.footer-newsletter-sub { color: rgba(255,255,255,0.55); font-size: 15px; margin-bottom: 14px; }
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input { flex: 1; padding: 12px 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); color: #fff; font-family: inherit; font-size: 15px; outline: none; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button { padding: 12px 18px; background: var(--accent); color: #fff; font-family: inherit; font-size: 15px; font-weight: 500; border: 0; cursor: pointer; }
.footer-newsletter button:hover { background: var(--accent-hover); }
.footer-links { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--inner-pad); display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col-title { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.footer-link-list li { padding: 4px 0; }
.footer-link-list a { font-size: 15px; color: rgba(255,255,255,0.65); transition: color var(--dur-fast); }
.footer-link-list a:hover { color: #fff; }
.footer-legal-inner { max-width: var(--max-w); margin: 0 auto; padding: 18px var(--inner-pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.45); }
.footer-legal-inner .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-inner .links a:hover { color: #fff; }
.footer-legal-inner .status-ok { color: var(--green-on-dark); }

/* ============== RESPONSIVE ============== */
@media (max-width: 1180px) {
  .s-hero-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 980px) {
  .s-faq-inner { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --inner-pad: 20px; }
  main > section { padding: 56px 20px; }
  .nav-list, .nav-signin, .nav-link-pricing { display: none; }
  .nav-cta { display: inline-flex; font-size: 14px; padding: 8px 14px; }
  .nav-hamburger { display: flex; }
  .subnav-links { display: none; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi-cell:nth-child(2n) { border-right: 0; }
  .kpi-cell { border-bottom: 1px solid var(--line); }
  .h-display { font-size: 38px; }
  .h-section { font-size: 32px; }
  .h-section-sm { font-size: 28px; }
  .h-section-xs { font-size: 24px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   MOBILE FIXES — propagated from Atlas pattern (2026-05-27)
   ============================================================ */
@media (max-width: 768px) {
  /* COMPARE TABLE: add visible scroll-hint right-edge fade + "swipe" hint */
  .cmp-wrap {
    position: relative;
    -webkit-overflow-scrolling: touch;
  }
  .cmp-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 32px;
    background: linear-gradient(to left, var(--paper, #fff), rgba(255,255,255,0));
    pointer-events: none;
  }
  .cmp-table { min-width: 720px; font-size: 14px; }
  .cmp-table thead th, .cmp-table tbody td { padding: 12px 10px; }
  .s-compare .s-head::after {
    content: '\2190 swipe to compare all tools \2192';
    display: block;
    margin-top: 14px;
    font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted-2); font-family: var(--ff-mono, monospace);
  }

  /* DT-GRID: allow columns to shrink below content min-width so 4-col collapses correctly on mobile */
  .dt-grid { grid-template-columns: 1fr !important; }
  .dt-cell { min-width: 0; }

  /* CK-TABS: horizontal scroll so tabs don't push page width */
  .ck-tabs { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .ck-tabs .ck-action { flex: none; }

  /* CTA row mobile equal-widths (in addition to globals.css universal pattern) */
  .s-hero .cta-row,
  .s-cta .cta-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .s-hero .cta-row > .btn,
  .s-cta .cta-row > .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ============================================================
   MOBILE — narrow viewport card grid + sort hide
   Vio request 2026-05-27
   ============================================================ */
@media (max-width: 720px) {
  /* Hide the "Sort · popular" + "+ build custom" controls inside the
     library board mockup — they get squashed against the chip cloud
     on narrow viewports and don't add value on mobile. */
  .lib-toolbar .lib-action { display: none !important; }
}

@media (max-width: 720px) {
  /* Library status row: 4 cells stack 1-col instead of 2x2 */
  .lib-status { grid-template-columns: 1fr !important; }
  .lib-status-cell { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
  .lib-status-cell:last-child { border-bottom: 0 !important; }

  /* KPI strip 1-col like the other AI pages */
  .kpi-strip { grid-template-columns: 1fr !important; }
  .kpi-cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .kpi-cell:last-child { border-bottom: 0 !important; }

  /* Trust architecture cards 1-col */
  .trust-grid { grid-template-columns: 1fr !important; }
  .trust-cell { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
  .trust-cell:last-child { border-bottom: 0 !important; }
}
