/* ============================================================
   Odin — Access Manager Pro content cluster
   Shared design system. Paper tone matches the live site's own
   meta-theme-color (#f8f4f4); everything else extends it.
   ============================================================ */

:root {
  --paper: #f8f4f4;
  --paper-raised: #ffffff;
  --ink: #1c1a19;
  --ink-soft: #4a4542;
  --muted: #948c87;
  --line: #e4deda;
  --line-strong: #d3cbc5;

  --enforced: #1f5f5b;       /* primary accent: "this is enforced server-side" */
  --enforced-dim: #e6efee;
  --enforced-ink: #12403d;

  --masked: #b8722e;         /* secondary accent: masked / conditional states */
  --masked-dim: #f5eadf;

  --limit: #a23b3b;          /* muted brick red: native-Odoo-limitation callouts */
  --limit-dim: #f6e9e8;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(28,26,25,.04), 0 6px 20px rgba(28,26,25,.05);

  --font-display: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--enforced-dim); color: var(--enforced-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
strong { color: var(--ink); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 780px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--enforced);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--enforced);
  display: inline-block;
}

/* ---------- chips: the recurring signature element ---------- */
.chip {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 3px 9px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.chip--on   { background: var(--enforced-dim); color: var(--enforced-ink); border-color: #cfe1df; }
.chip--off  { background: #efece9; color: var(--muted); border-color: var(--line); text-decoration: line-through; text-decoration-color: #c7bfba; }
.chip--masked { background: var(--masked-dim); color: var(--masked); border-color: #ecd7bd; }
.chip--limit { background: var(--limit-dim); color: var(--limit); border-color: #eccfcd; }
.chip--dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- header / nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248,244,244,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  display: flex; align-items: baseline; gap: 8px;
}
.logo span { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; }
nav.primary { display: flex; align-items: center; gap: 26px; }
nav.primary a {
  font-size: .89rem; text-decoration: none; color: var(--ink-soft);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
}
nav.primary a:hover { color: var(--ink); border-color: var(--line-strong); }
.btn {
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--enforced); color: #fff; }
.btn--primary:hover { background: var(--enforced-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.mobile-menu { display: none; }
@media (max-width: 860px) {
  nav.primary { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; font-family: var(--font-mono); font-size: .8rem; cursor: pointer; border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: var(--radius); }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { margin-bottom: 10px; }
  .mobile-menu .menu-list { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
  .mobile-menu .menu-list a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--enforced); }
.breadcrumb .sep { margin: 0 6px; color: var(--line-strong); }
.breadcrumb .current { color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-sub { font-size: 1.13rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; gap: 22px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
}
.hero-meta b { color: var(--ink-soft); font-weight: 600; }

/* ---------- mock permission panel (signature visual) ---------- */
.perm-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.perm-panel__head {
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; letter-spacing: .04em; text-transform: uppercase;
}
.perm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: .87rem;
}
.perm-row:last-child { border-bottom: none; }
.perm-row .field-name { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); }
.perm-row .field-name small { color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 52px 0; }
section.tight { padding: 36px 0; }
.section-divider { border-top: 1px solid var(--line); }
.lede { font-size: 1.08rem; max-width: 62ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--enforced);
  background: var(--enforced-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--limit { border-left-color: var(--limit); background: var(--limit-dim); }
.callout--limit .eyebrow { color: var(--limit); }
.callout--limit .eyebrow::before { background: var(--limit); }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 500; color: var(--ink-soft); width: 38%; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); }
.compare-wrap table { border: none; }
.compare-wrap tr:last-child td, .compare-wrap tr:last-child th { border-bottom: none; }

/* ---------- numbered steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); overflow: hidden; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-mono); font-size: 1.3rem; color: var(--line-strong); font-weight: 600; }
.step h4 { margin-bottom: 4px; }
.step p { margin-bottom: 0; }

/* ---------- feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--enforced);
  margin-top: 8px; flex-shrink: 0;
}
.feature-list b { display: block; color: var(--ink); }
.feature-list span.desc { color: var(--ink-soft); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem; color: var(--muted); flex-shrink: 0;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-a { padding: 0 0 20px; color: var(--ink-soft); max-width: 68ch; }
.faq-item .faq-a p:last-child { margin-bottom: 0; }

/* ---------- stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) { .stat-strip { grid-template-columns: 1fr; } }
.stat { border-top: 2px solid var(--enforced); padding-top: 12px; }
.stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink); line-height: 1; }
.stat .label { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.stat .src { font-family: var(--font-mono); font-size: .68rem; color: var(--line-strong); margin-top: 4px; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c9c2bd; margin-bottom: 0; }
.cta-band .btn--primary { background: var(--paper); color: var(--ink); }
.cta-band .btn--primary:hover { background: #fff; }
.cta-band .btn--ghost { border-color: #55504c; color: #fff; }

/* ---------- related / spokes ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; display: block; background: var(--paper-raised);
}
.related-card:hover { border-color: var(--enforced); }
.related-card .eyebrow { margin-bottom: 6px; font-size: .68rem; }
.related-card h4 { margin: 0 0 4px; font-size: .98rem; }
.related-card p { font-size: .85rem; margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: .85rem; text-decoration: none; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--enforced); }
.footer-fine { font-size: .8rem; color: var(--muted); margin-top: 22px; }

/* ---------- focus ---------- */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--enforced); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
