/* ════════════════════════════════════════════════════════════════
   ARTEMION — Marketing site
   Cut from the same cloth as the AIRE product UI.
   Serif display · mono labels · grotesque body · stat-card signature.
   ════════════════════════════════════════════════════════════════ */

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  /* light (matches product viewport) */
  --bg:        #f5f4ef;
  --bg-2:      #efede6;
  --surface:   #ffffff;
  --surface-2: #faf9f5;
  --ink:       #16150f;
  --ink-dim:   rgba(22,21,15,0.60);
  --ink-faint: rgba(22,21,15,0.38);
  --hair:      rgba(22,21,15,0.10);
  --hair-2:    rgba(22,21,15,0.16);

  --green:     #008c54;
  --green-ink: #00794a;
  --green-soft:rgba(0,140,84,0.10);
  --gold:      #b0913c;
  --red:       #c0533a;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --shadow-sm: 0 1px 2px rgba(20,18,12,0.04), 0 8px 24px -16px rgba(20,18,12,0.30);
  --shadow:    0 1px 0 rgba(255,255,255,0.6), 0 30px 60px -34px rgba(40,34,20,0.42);
  --radius: 14px;
}

:root[data-theme="dark"] {
  --bg:        #0a0b0a;
  --bg-2:      #0f100e;
  --surface:   #141513;
  --surface-2: #191a17;
  --ink:       #edefe9;
  --ink-dim:   rgba(237,239,233,0.62);
  --ink-faint: rgba(237,239,233,0.36);
  --hair:      rgba(237,239,233,0.11);
  --hair-2:    rgba(237,239,233,0.20);

  --green:     #28b277;
  --green-ink: #3cc489;
  --green-soft:rgba(40,178,119,0.14);
  --gold:      #cda94e;
  --red:       #d9694e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px -18px rgba(0,0,0,0.8);
  --shadow:    0 1px 0 rgba(255,255,255,0.04), 0 36px 70px -36px rgba(0,0,0,0.85);
}

/* accent override hook for tweaks */
:root[data-accent="cobalt"] { --green:#2f6fe0; --green-ink:#2a63c9; --green-soft:rgba(47,111,224,0.12); }
:root[data-theme="dark"][data-accent="cobalt"] { --green:#5b8ff0; --green-ink:#79a4f4; --green-soft:rgba(91,143,240,0.16); }
:root[data-accent="violet"] { --green:#7a5cd6; --green-ink:#6c4fc6; --green-soft:rgba(122,92,214,0.12); }
:root[data-theme="dark"][data-accent="violet"] { --green:#9d83ec; --green-ink:#b39df0; --green-soft:rgba(157,131,236,0.16); }

/* Brand scheme — matches the Artemion logo (teal/mint mark + deep navy) */
:root[data-accent="brand"]:not([data-theme="dark"]) {
  --green:#1f9e8c; --green-ink:#16806f; --green-soft:rgba(31,158,140,0.12);
  --ink:#16233d; --ink-dim:rgba(22,35,61,0.62); --ink-faint:rgba(22,35,61,0.40);
  --hair:rgba(22,35,61,0.10); --hair-2:rgba(22,35,61,0.17);
}
:root[data-theme="dark"][data-accent="brand"] {
  --green:#3fd3bd; --green-ink:#54e0c9; --green-soft:rgba(63,211,189,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s ease, color .35s ease;
  overflow-x: clip;
}
::selection { background: var(--green-soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── PRIMITIVES ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-ink);
  font-weight: 500;
}
.eyebrow.muted { color: var(--ink-faint); }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.09;
  color: var(--ink);
  text-wrap: pretty;
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-dim);
  max-width: 46ch;
  text-wrap: pretty;
}
.mono { font-family: var(--mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* numerals — slashed zero, tabular, product-matched */
.fig {
  font-family: var(--mono);
  font-feature-settings: "zero" 1, "tnum" 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* ── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: var(--green); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand .mark svg { width: 15px; height: 15px; }
/* real logo mark — theme-aware (dark variant knocks the keyhole through) */
.brand .mark-img { height: 30px; width: auto; flex-shrink: 0; display: block; }
.brand .mark-dark { display: none; }
:root[data-theme="dark"] .brand .mark-light { display: none; }
:root[data-theme="dark"] .brand .mark-dark { display: block; }
.brand .word {
  font-family: var(--sans); font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 15px;
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--ink-dim); padding: 7px 13px; border-radius: 8px;
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--hair-2); background: var(--surface);
  color: var(--ink-dim); display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.icon-btn svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
.icon-btn .i-sun { display: none; }
.icon-btn .i-moon { display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  padding: 11px 18px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--surface-2); }

/* live pill — recreated engine-live indicator */
.live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-dim);
  padding: 6px 11px; border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--surface); white-space: nowrap;
}
.live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce){ .live .dot { animation: none; } }

/* ── STAT CARD (signature) ────────────────────────────────────── */
.stat {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .k {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px;
}
.stat .v {
  font-family: var(--mono); font-feature-settings: "zero" 1, "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-weight: 500; font-size: clamp(30px, 4vw, 46px);
  line-height: 0.95; letter-spacing: -0.02em; color: var(--ink);
}
.stat .v.gold { color: var(--gold); }
.stat .v.red  { color: var(--red); }
.stat .v.green{ color: var(--green); }
.stat .c { font-size: 13px; color: var(--ink-dim); margin-top: 12px; }

/* ── PRODUCT VISUAL FRAME ─────────────────────────────────────── */
.shot {
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot img { width: 100%; }
.shot.pad { padding: 18px 20px; }
:root[data-theme="dark"] .shot {
  /* crops are light-themed PNGs — keep them on a light plate in dark mode */
  background: #f7f6f2;
  border-color: rgba(237,239,233,0.14);
}
.shot-cap {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
}

/* section scaffold */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }
.section-head .display { font-size: clamp(30px, 4.4vw, 52px); }

/* learn-more link */
.more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-size: 14px; color: var(--green-ink); font-weight: 500;
}
.more svg { width: 15px; height: 15px; transition: transform .15s; }
.more:hover svg { transform: translateX(3px); }

/* proof band */
.proof { border-block: 1px solid var(--hair); background: var(--surface-2); }
.proof .row {
  display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center;
  padding: 26px 0;
}

/* ── EDIT PASS 2 — trust + signature ──────────────────────────── */
/* time-to-value chip (frictionless line) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink-dim); background: var(--surface);
  border: 1px solid var(--hair-2); border-radius: 999px; padding: 8px 14px;
  white-space: nowrap;
}
.chip b { color: var(--ink); font-weight: 500; }

/* customer proof + design-partner quote band */
.custproof { border-top: 1px solid var(--hair); background: var(--bg); }
.custproof-row { display: grid; gap: 26px; padding: clamp(28px, 4vw, 44px) 0; align-items: center; }
@media (min-width: 880px){ .custproof-row { grid-template-columns: 0.92fr 1.08fr; gap: 56px; } }
.cust-claim { display: flex; align-items: flex-start; gap: 14px; }
.cust-claim .dot-lg {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; margin-top: 9px; box-shadow: 0 0 0 4px var(--green-soft);
}
.cust-claim .ce { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); }
.cust-claim p { font-family: var(--serif); font-size: clamp(20px, 2.1vw, 26px); line-height: 1.22; color: var(--ink); margin-top: 6px; text-wrap: pretty; }
.quote p { font-family: var(--serif); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.42; color: var(--ink); text-wrap: pretty; }
.quote p::before { content: "\201C"; }
.quote p::after { content: "\201D"; }
.quote cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-style: normal; }
.quote.placeholder p { color: var(--ink-faint); font-style: italic; }

/* recurring signature: gold SLN + red ELN pair */
.sig-pair { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 560px; margin: 30px auto 0; text-align: left; }
@media (min-width: 520px){ .sig-pair { grid-template-columns: 1fr 1fr; } }
.proof .item {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim);
  display: flex; align-items: center; gap: 9px;
}
.proof .item::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); opacity: .7;
}

/* footer */
.foot {
  border-top: 1px solid var(--hair); padding: 48px 0 56px;
  color: var(--ink-dim); font-size: 13.5px;
}
.foot-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-end; }
.foot a:hover { color: var(--ink); }

/* utility grids — mobile-first, large numerals need room */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g4, .g3, .g2 { grid-template-columns: 1fr; }
@media (min-width: 560px){ .g4, .g2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 760px){ .g3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1040px){ .g4 { grid-template-columns: repeat(4,1fr); } }

.hide-print { }

/* compact density (tweak) */
.compact .section { padding-block: clamp(40px, 6vw, 78px); }
.compact .heroA, .compact .heroB, .compact .howhero, .compact .whohero { padding-top: clamp(28px, 4vw, 56px); }
.compact .heroA .statrow { margin-top: clamp(28px, 4vw, 44px); }
.compact .proof .row { padding: 20px 0; }
