/* eAML public site — shared stylesheet.
   One file, referenced by every page, so the visual language (and the
   nav/footer markup that leans on it) only needs to change in one place.
   Palette continues the teal/gold system already established in the
   investor deck and the in-app Compliance Playbook — this is the same
   brand, not a new one invented for the marketing site. */

:root {
  --ink: #14211d;
  --ink-soft: #47534d;
  --ink-faint: #7c8983;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --surface-sunken: #eef1ee;
  --line: #dce2dc;
  --line-soft: #e9ede8;

  --accent: #0f6e64;
  --accent-ink: #0a4c45;
  --accent-soft: #e4f3f0;
  --accent-soft-line: #bfe0da;
  --accent-strong: #0a4c45;

  --gold: #b8791f;
  --gold-ink: #8a5a12;
  --gold-soft: #fbeed9;
  --gold-soft-line: #f0d19c;

  --danger: #a53a2e;
  --danger-soft: #fbe6e2;

  /* The logo mark's own gradient — deliberately separate from --accent/
     --accent-ink above: those flip intensity between themes (accent-ink
     is the *darker* shade in light mode but the *lighter* one in dark
     mode, since it doubles as tint-on-text colour), which is exactly
     backwards from what a light-to-dark gradient needs in both themes. */
  --logo-tile: #101d18;
  --logo-a: #1cad9e;
  --logo-b: #0a4c45;
  --logo-check: #ffffff;

  --focus-ring: #0f6e64;
  --shadow-card: 0 1px 2px rgba(20, 33, 29, 0.06), 0 8px 24px rgba(20, 33, 29, 0.07);
  --shadow-lift: 0 4px 10px rgba(20, 33, 29, 0.1), 0 16px 40px rgba(20, 33, 29, 0.12);

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --container: 1180px;

  /* Fixed, theme-independent — .section--dark is a deliberately dark
     band within the page (for rhythm/contrast) in EITHER site theme, so
     these must not flip with --ink/--paper the way every other token
     here does, or the "dark" section inverts to a washed-out light one
     the moment the page itself is already in dark mode. */
  --fixed-dark-bg: #101d18;
  --fixed-dark-ink: #f7f8f5;
  --fixed-dark-ink-soft: rgba(247, 248, 245, 0.72);
  --fixed-dark-line: rgba(255, 255, 255, 0.14);
  --fixed-dark-accent: #6fe0c9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #eaf2ee;
    --ink-soft: #b9c9c2;
    --ink-faint: #82988f;
    --paper: #0d1712;
    --surface: #15251f;
    --surface-sunken: #101c17;
    --line: #2a4139;
    --line-soft: #1e332c;

    --accent: #4fd6bf;
    --accent-ink: #a8ede0;
    --accent-soft: #163731;
    --accent-soft-line: #235148;
    --accent-strong: #7ee8d4;

    --gold: #e3ac52;
    --gold-ink: #f2cd93;
    --gold-soft: #2e2413;
    --gold-soft-line: #4a3a1c;

    --danger: #e08a7a;
    --danger-soft: #3a201b;

    --logo-tile: #f7f8f5;
    --logo-a: #5fe6cf;
    --logo-b: #0f6e64;
    --logo-check: #0a2b26;

    --focus-ring: #4fd6bf;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme='dark'] {
  --ink: #eaf2ee;
  --ink-soft: #b9c9c2;
  --ink-faint: #82988f;
  --paper: #0d1712;
  --surface: #15251f;
  --surface-sunken: #101c17;
  --line: #2a4139;
  --line-soft: #1e332c;

  --accent: #4fd6bf;
  --accent-ink: #a8ede0;
  --accent-soft: #163731;
  --accent-soft-line: #235148;
  --accent-strong: #7ee8d4;

  --gold: #e3ac52;
  --gold-ink: #f2cd93;
  --gold-soft: #2e2413;
  --gold-soft-line: #4a3a1c;

  --danger: #e08a7a;
  --danger-soft: #3a201b;

  --logo-tile: #f7f8f5;
  --logo-a: #5fe6cf;
  --logo-b: #0f6e64;
  --logo-check: #0a2b26;

  --focus-ring: #4fd6bf;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: var(--accent-soft-line); }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}
.section { padding: 5rem 0; }
.section--tight { padding: 3.25rem 0; }
.section--sunken { background: var(--surface-sunken); }
.section--dark {
  background: var(--fixed-dark-bg);
  color: var(--fixed-dark-ink);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--fixed-dark-ink); }
.section--dark p { color: var(--fixed-dark-ink-soft); }
.section--dark .eyebrow { color: var(--fixed-dark-accent); }
.section--dark .eyebrow::before { background: var(--fixed-dark-accent); }

.lede { font-size: 1.15rem; line-height: 1.65; max-width: 56ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8em 1.5em;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent-soft-line); background: var(--accent-soft); }
.btn-gold { background: var(--gold); color: #201404; box-shadow: var(--shadow-card); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav__mark { width: 50px; height: 50px; flex: none; display: block; }
.nav__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--accent-ink); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta .btn-ghost { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line);
    background: var(--surface); cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: center;
  padding: 4.5rem 0 5rem;
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0; }
}
.hero h1 { margin-bottom: 0.65em; }
.hero .lede { margin-bottom: 1.9rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; font-size: 0.88rem; color: var(--ink-faint); }
.hero__trust span { display: flex; align-items: center; gap: 0.5em; }
.hero__trust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.hero__art { position: relative; }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--surface); padding: 1.75rem 1.6rem; }
.stat__num { font-family: var(--font-mono); font-weight: 500; font-size: 2.1rem; color: var(--accent-ink); letter-spacing: -0.01em; }
.stat__label { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.4rem; line-height: 1.45; }
.section--dark .stat { background: rgba(255,255,255,0.04); }
.section--dark .stats { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.14); }
.section--dark .stat__num { color: var(--accent-strong, #7ee8d4); }
.section--dark .stat__label { color: rgba(247,248,245,0.68); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
}
.card--feature { display: flex; flex-direction: column; gap: 0.9rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 0.3rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.card--live {
  border-color: var(--accent-soft-line);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
}
.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.3em 0.7em; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid var(--accent-soft-line);
}
.pill--gold { background: var(--gold-soft); color: var(--gold-ink); border-color: var(--gold-soft-line); }
.pill svg { width: 11px; height: 11px; }

/* ---------- Industries ---------- */
.domain-card {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.7rem; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.domain-card:hover { border-color: var(--accent-soft-line); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.domain-card__meta { font-size: 0.84rem; color: var(--ink-faint); font-family: var(--font-mono); }

/* ---------- Timeline / pipeline ---------- */
.pipeline { display: flex; flex-wrap: wrap; gap: 0; counter-reset: step; }
.pipeline__step {
  flex: 1 1 150px;
  position: relative;
  padding: 1.6rem 1.3rem 1.3rem;
  border-top: 2px solid var(--line);
}
.pipeline__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent-ink);
  display: block; margin-bottom: 0.6rem;
}
.pipeline__step h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.pipeline__step p { font-size: 0.87rem; margin: 0; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem;
  box-shadow: var(--shadow-card);
}
.price-card--highlight { border-color: var(--accent); box-shadow: var(--shadow-lift); position: relative; }
.price-card__figure { display: flex; align-items: baseline; gap: 0.35em; }
.price-card__amount { font-family: var(--font-mono); font-size: 2.6rem; color: var(--ink); font-weight: 500; }
.price-card__period { color: var(--ink-faint); font-size: 0.95rem; }
.price-card ul { display: flex; flex-direction: column; gap: 0.65rem; }
.price-card li { display: flex; gap: 0.65em; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.price-card li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 0.2em; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.25rem 0.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.15s ease; color: var(--accent); flex: none; width: 18px; height: 18px; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { padding: 0 0.2rem 1.4rem; font-size: 0.95rem; }

/* ---------- Callout / fillin (matches business-plan's own convention) ---------- */
.callout {
  border: 1px solid var(--accent-soft-line);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  font-size: 0.93rem;
  color: var(--ink);
}
.callout strong { color: var(--accent-ink); }
.note {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); background: var(--surface-sunken); }
tr:last-child td { border-bottom: none; }
td.num, th.num { font-family: var(--font-mono); text-align: right; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 3.5rem 0 2.5rem; background: var(--surface-sunken); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.footer a:hover { color: var(--accent-ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- Page header (non-home pages) ---------- */
.page-header { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--line-soft); }
.page-header .lede { margin-bottom: 0; }

/* ---------- misc utility ---------- */
.mt-0 { margin-top: 0; }
.flow > * + * { margin-top: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
