/* Shared style for the static comparison and AI module pages (public/*-alternative.html,
   public/ai-*.html). One file so the pages cannot drift apart again. Same system as the
   corporate home and /news: cool white ground, teal, terracotta for evidence and the
   single point of emphasis, Cormorant Garamond display, IBM Plex Sans and Mono.

   Light only, deliberately: aurakore.ai has no dark theme, and a "vs <vendor>" link from
   a light page should not land on a dark one. */
:root {
  --ground: #f7f9fb;
  --card: #ffffff;
  --tint: #edf2f5;
  --pale: #dce8ea;
  --line: #dde4e8;
  --teal: #1b4f5c;
  --deep: #0f2b33;
  --teal-2: #2a6274;
  --terra: #c4622d;
  --terra-ink: #a24f22;
  --ink: #2a2a26;
  --muted: #56666b;
  --serif: 'Cormorant Garamond', 'Liberation Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Liberation Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', Menlo, monospace;
  --shadow: 0 1px 2px rgba(15, 43, 51, 0.04), 0 10px 28px rgba(15, 43, 51, 0.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 2px; }
strong { color: var(--deep); font-weight: 600; }

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }

/* ---------- header: full-bleed sticky bar from inside .wrap ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(247, 249, 251, 0.92);
  box-shadow: 0 0 0 100vmax rgba(247, 249, 251, 0.92), 0 1px 0 100vmax var(--line);
  clip-path: inset(0 -100vmax -1px);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.brand a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--teal); text-decoration: none; }
.brand svg { width: 30px; height: auto; display: block; flex-shrink: 0; }
.brand .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.brand .wordmark span { color: var(--terra); }
header.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
header.nav nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
header.nav nav a:hover { color: var(--terra); }
header.nav nav a.btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--teal);
  color: var(--ground);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 14px;
}
header.nav nav a.btn:hover { background: var(--deep); color: var(--ground); }
@media (max-width: 760px) { header.nav nav a:not(.btn) { display: none; } }
@media (max-width: 420px) {
  .brand .wordmark { font-size: 17px; letter-spacing: 0.04em; }
  .brand svg { width: 24px; }
  header.nav nav a.btn { padding: 0 12px; font-size: 13px; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 8px; position: relative; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-ink);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--terra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--deep); text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -0.01em; margin: 18px 0 18px; max-width: 22ch; }
.lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- short answer ---------- */
.answer {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  border-radius: 6px;
  padding: 22px 26px;
  margin: 36px 0 26px;
  box-shadow: var(--shadow);
  max-width: 820px;
}
.answer p { margin: 0; }
.answer > p > strong:first-child {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-ink);
}

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  margin: 6px 8px 6px 0;
  border-radius: 4px;
  background: var(--teal);
  color: var(--ground);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--teal);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.cta:hover { background: var(--deep); border-color: var(--deep); color: var(--ground); }
.cta.ghost { background: transparent; color: var(--teal); border-color: #b9c8ce; }
.cta.ghost:hover { border-color: var(--teal); background: var(--card); color: var(--deep); }

/* ---------- sections ---------- */
section { margin-top: 72px; }
section[style] { margin-top: 72px !important; }
h2 { font-size: clamp(30px, 4.2vw, 42px); line-height: 1.12; margin: 0 0 18px; max-width: 32ch; }
h3 { font-size: 23px; line-height: 1.25; margin: 26px 0 6px; }
p.lead-para { max-width: 66ch; font-size: 18px; color: var(--ink); }
p { margin: 0 0 1em; }

/* ---------- comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  margin: 24px 0 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
table { border-collapse: collapse; width: 100%; min-width: 600px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
thead th {
  background: var(--deep);
  color: #e6eef0;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: none;
}
thead th.ak { color: #fff; background: var(--teal); }
tbody td:nth-child(2) { background: rgba(220, 232, 234, 0.32); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--tint); }
td.feat { font-weight: 500; color: var(--deep); width: 28%; }
.yes { color: var(--teal); font-weight: 600; }
.yes::before { content: '\2713\00a0'; color: var(--teal); }
.no { color: var(--terra-ink); font-weight: 500; }
.crit { color: var(--terra-ink); font-weight: 600; }
.disc { font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 90ch; margin-top: 10px; }

/* ---------- honest limits ---------- */
.limits {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 26px;
  max-width: 820px;
}
.limits h3 { margin: 0 0 8px; font-size: 22px; }
.limits p { margin: 0; color: var(--muted); max-width: 70ch; }

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 24px 0;
  counter-reset: card;
}
/* six cards read better as two rows of three than four and two */
@media (min-width: 760px) {
  .grid:has(> .cardbox:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.cardbox {
  counter-increment: card;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 18px;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cardbox::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--terra-ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cardbox:hover { border-color: #b9c8ce; box-shadow: var(--shadow); transform: translateY(-2px); }
.cardbox h3 { margin: 0 0 8px; font-size: 23px; }
.cardbox p { margin: 0; font-size: 15.5px; color: var(--muted); }
.cardbox ul, .cardbox ol { margin: 8px 0 0; padding-left: 18px; font-size: 15.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 10px 0;
  padding: 0 22px;
  max-width: 820px;
}
details[open] { box-shadow: var(--shadow); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 32px 18px 0;
  position: relative;
  font-weight: 500;
  color: var(--deep);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 20px;
  color: var(--terra);
}
details[open] summary::after { content: '\2212'; }
details p { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }

/* ---------- related links ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.related a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.related a:hover { border-color: var(--teal); color: var(--deep); }

/* ---------- closing band and footer ---------- */
section.close-band {
  margin-top: 88px !important;
  padding: 48px clamp(22px, 5vw, 56px);
  background: var(--deep);
  border-radius: 10px;
  color: #d5e2e5;
  position: relative;
  overflow: hidden;
}
section.close-band h2 { color: #fff; }
section.close-band .cta { background: var(--ground); color: var(--deep); border-color: var(--ground); }
section.close-band .cta:hover { background: #fff; }
section.close-band .cta.ghost { background: transparent; color: #e6eef0; border-color: rgba(230, 238, 240, 0.35); }
section.close-band .cta.ghost:hover { border-color: #e6eef0; color: #fff; }
section.close-band::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 300px;
  height: 252px;
  background: url('/img/ak-mark-ghost.svg') no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

footer {
  margin-top: 72px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--terra); }
