/* InvoiceQA landing — R2_Phase_1. Consumes tokens.css (copied from design/). */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Archivo Variable";
  src: url("assets/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ----------------------------------------------------------------- base */
* { box-sizing: border-box; }
/* tokens.css keeps component classes in @layer components (so the app's
   Tailwind utilities can override them); this page's own rules are unlayered
   and therefore WIN any conflict — including the generic `a { color }` below,
   which would otherwise paint white text on the white pills. State the pill
   colours unlayered, right here. */
.pill { color: var(--bg); }
.pill-ghost { color: var(--text); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--text); }
p a, li a { text-underline-offset: 3px; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
.small { font-size: 0.85em; }
.shell { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings-tight);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--text-dim); }
.wordmark .mark { margin-right: 9px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.pill--nav { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* ----------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 20px; margin-top: 8px; }
.hero-panel { border-radius: var(--radius-panel); border: 1px solid var(--line); overflow: hidden; position: relative; }
.hero-copy {
  background: #0c0c0e;
  background-image: var(--dots);
  background-size: var(--dots-size);
  padding: 60px 56px 52px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 26px;
}
.eyebrow {
  margin: 0;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
}
h1.display { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
h1 .gone { color: var(--hold); }
.sub { color: var(--text-dim); font-size: 1.08rem; line-height: 1.6; max-width: 34rem; margin: 0; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { color: var(--text-faint); font-size: 0.85rem; margin: 4px 0 0; }
.trust b { color: var(--text-dim); font-weight: 600; }

.hero-art {
  background: radial-gradient(120% 90% at 75% 10%, #2a2a31 0%, #17171b 45%, #0e0e10 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 560px; padding: 48px 0;
}
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--dots); background-size: var(--dots-size);
  opacity: 0.6; pointer-events: none;
}
.invoice-wrap { position: relative; width: 62%; }
.invoice-wrap img {
  display: block; border-radius: 8px;
  transform: rotate(-3.5deg);
  box-shadow: var(--shadow-artefact);
  outline: 1px solid rgba(255, 255, 255, 0.22);
}
.stamp {
  position: absolute; top: 16%; right: -6%;
  transform: rotate(-12deg);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 90, "wght" 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--hold); border: 3px solid var(--hold); border-radius: 8px;
  padding: 10px 22px; font-size: 1.6rem;
  background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(2px);
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.25);
}
.art-chip { position: absolute; left: 6%; bottom: 5%; max-width: 82%; flex-wrap: wrap; }
.art-chip .mono { color: var(--text); font-size: 0.78rem; }
.chip-dim { color: var(--text-faint); }
.art-caption {
  position: absolute; right: 18px; top: 14px; z-index: 1;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ------------------------------------------------------------ stat strip */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  margin-top: 20px; background: var(--surface);
  padding-left: 0; padding-right: 0;
}
.stat { padding: 22px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .n {
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  font-size: 1.7rem; display: block;
}
.stat .l { color: var(--text-faint); font-size: 0.82rem; }

/* -------------------------------------------------------------- sections */
.section { margin-top: 110px; }
h2.display { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 26px; }
.lede { color: var(--text-dim); font-size: 1.05rem; max-width: 46rem; }
:where(.lede) a { color: var(--text); }
.metal-text {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-line { margin-top: 28px; }

/* steps + bento */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-n { color: var(--text-faint); font-size: 0.85rem; letter-spacing: 0.1em; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card h3 {
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  text-transform: uppercase; font-size: 1.2rem; margin: 16px 0 10px;
}
.card p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; margin: 0; }
:where(.card p) a { color: var(--text); }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.glyph {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--metal-dim); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 1rem; color: #e8e8ec;
}
.lock-svg { width: 11px; height: 11px; }
.v { font-weight: 600; white-space: nowrap; }
.v--safe { color: var(--safe); }
.v--review { color: var(--review); }
.v--hold { color: var(--hold); }

/* --------------------------------------------------------------- compare */
.compare-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0 26px; }
.panel { margin: 0; }
.panel figcaption {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.page { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); }
.page img { display: block; }
.page a { display: block; line-height: 0; }
.edit-mark {
  position: absolute; border: 2px solid var(--hold); border-radius: 4px;
  background: rgba(248, 113, 113, 0.08);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.25);
  pointer-events: none;
}
.edits {
  width: 100%; border-collapse: collapse; margin: 8px 0 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; font-size: 0.95rem;
}
.edits th, .edits td {
  text-align: left; padding: 14px 18px; border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.edits thead th {
  border-top: 0; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
}
.edits tbody th { color: var(--text-dim); font-weight: 500; width: 22%; }
.edited { color: var(--hold); }

/* ------------------------------------------------------------ voice/demo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.call-card { display: flex; flex-direction: column; gap: 16px; }
.call-title { font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.call-card audio { width: 100%; }
.transcript summary { cursor: pointer; color: var(--text-dim); font-size: 0.9rem; }
.transcript ol { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.transcript li { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.transcript strong { color: var(--text); font-weight: 600; }
.fine { color: var(--text-faint); font-size: 0.8rem; margin: 0; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.shot { margin: 0; }
.shot img {
  display: block; border-radius: 12px; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.shot figcaption { color: var(--text-faint); font-size: 0.85rem; margin-top: 10px; }

/* ------------------------------------------------------ security/access */
.claims { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.claims li {
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-weight: 500;
}
.claims li::before { content: "— "; color: var(--safe); }
.prose p { color: var(--text-dim); }
.prose strong { color: var(--text); }

.access {
  padding: 56px; text-align: center;
  background: #0c0c0e; background-image: var(--dots); background-size: var(--dots-size);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.access .lede { margin: 0 auto; }

/* ---------------------------------------------------------------- footer */
.footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 110px; padding-top: 28px; padding-bottom: 44px;
  border-top: 1px solid var(--line);
  color: var(--text-faint); font-size: 0.88rem;
}
.footer p { margin: 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 28px; }
  .hero-art { min-height: 480px; }
  .art-chip { position: static; margin: 18px auto 0; max-width: 100%; }
  .invoice-wrap { width: 72%; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .compare-panels { grid-template-columns: 1fr; }
  .section { margin-top: 72px; }
  .nav-links { display: none; }
  .access { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}
