/* AnswerHatch v1
   Modern product-led SaaS shell, so the page reads as credible to buyers
   arriving from the incumbent AI-answers vendors. The distinctiveness is the
   refusal demo and the receipts identity, not the styling.

   One accent colour, and it means one thing: a source exists. Where there is
   no source, the accent is absent and the slot is ruled empty. */

:root {
  --bg: #FBFCFA;
  --surface: #F1F4EF;
  --ink: #0F1F1C;
  --petrol: #12403A;
  --muted: #56635F;
  --cite: #0A6B5E;
  --cite-lit: #3FC7AF;

  --line: rgba(15, 31, 28, 0.12);
  --line-strong: rgba(15, 31, 28, 0.26);
  --line-dark: rgba(226, 236, 233, 0.18);
  --on-dark: #E2ECE9;
  --on-dark-muted: #9DB2AC;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
          system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
          Menlo, Consolas, monospace;
  /* reserved for the product's own voice: answers and refusals, verbatim */
  --voice: Georgia, "Iowan Old Style", "Times New Roman", serif;

  --wrap: 70rem;
  --r: 10px;
  --r-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--cite); text-underline-offset: 0.18em; }

:focus-visible { outline: 3px solid var(--cite); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--petrol); color: #fff; border-radius: var(--r-sm);
  padding: 0.7rem 1.1rem; font-size: 0.9rem; text-decoration: none;
  transition: top 0.12s ease;
}
.skip:focus { top: 0.75rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- sections ---------- */

.panel { padding: 6rem 0; }
.panel.tight { padding: 3.5rem 0; }
.panel.alt { background: var(--surface); }

.head { max-width: 42rem; margin-bottom: 3rem; }
.head p:last-child { margin-bottom: 0; }

/* grid children must be allowed to shrink below their content width, or a
   preformatted embed snippet drags the whole page wider than the viewport */
.hero-grid > *, .grid > *, .steps > *, .tiers > *, .probe > *, .doc > *,
.facts > *, .foot-grid > * { min-width: 0; }

/* vertical rhythm for sections that stack several blocks */
.stack > * + * { margin-top: 2.25rem; }
.stack > .head { margin-bottom: 0; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 700; margin: 0 0 0.75rem; color: var(--ink); }
h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.4rem);
  line-height: 1.05; letter-spacing: -0.034em; margin-bottom: 1.15rem;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.14; letter-spacing: -0.028em; margin-bottom: 1rem;
}
h3 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.012em; }

p { margin: 0 0 1rem; max-width: 60ch; color: var(--muted); }
.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.28rem); line-height: 1.5;
  color: var(--muted); max-width: 46ch; margin-bottom: 1.75rem;
}

/* mono is the record: field names, hashes, code, counts, prices */
.label {
  display: block; font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.17em; text-transform: uppercase; font-weight: 600;
  color: var(--cite); margin: 0 0 1rem;
}

/* Georgia is the product speaking. Nothing else uses it. */
.voice {
  font-family: var(--voice); font-size: 1.0625rem; line-height: 1.5;
  color: var(--on-dark); margin: 0 0 1rem; max-width: 42ch;
}

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  min-height: 4.25rem; padding-top: 0.7rem; padding-bottom: 0.7rem;
}

/* typographic wordmark: the citation bracket is the device */
.brand {
  display: inline-flex; align-items: baseline; gap: 0.45rem;
  color: var(--ink); text-decoration: none;
  font-size: 1.2rem; font-weight: 700; letter-spacing: -0.035em;
}
.brand .bracket {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.04em; color: var(--cite);
}
.brand:hover .bracket { color: var(--ink); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 0.9375rem; font-weight: 600;
  padding: 0.72rem 1.3rem; border-radius: var(--r-sm);
  border: 1px solid var(--petrol); background: var(--petrol); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface); border-color: var(--petrol); color: var(--petrol); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.75rem; }
.actions.end { margin-bottom: 0; margin-top: 2rem; }

/* ---------- hero ---------- */

.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-copy h1 { max-width: 15ch; }

.embed {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.7;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 0.8rem 0.95rem;
  overflow-x: auto; white-space: pre; color: var(--ink); margin: 0;
}
.embed b { font-weight: 600; color: var(--cite); }
.embed-cap {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0.7rem 0 0;
}

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 4rem; }
}

/* ---------- the signature: the demo card ---------- */

.demo-card {
  background: var(--petrol); color: var(--on-dark);
  border-radius: var(--r); padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 20px 44px rgba(15, 31, 28, 0.16), 0 2px 6px rgba(15, 31, 28, 0.08);
}
.demo-card .label { color: var(--cite-lit); }
.demo-card h2 { color: var(--on-dark); font-size: 1.25rem; letter-spacing: -0.02em; }
.demo-card p { color: var(--on-dark-muted); }
.demo-card :focus-visible { outline-color: var(--cite-lit); }

.turn { padding: 1.1rem 0; border-top: 1px solid var(--line-dark); }
.turn:first-of-type { border-top: 0; padding-top: 0.2rem; }
.turn .who {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-dark-muted); display: block; margin-bottom: 0.55rem;
}
.slot { font-family: var(--mono); font-size: 0.76rem; display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.slot .src { color: var(--cite-lit); text-decoration: none; }
.slot .src:hover { text-decoration: underline; }
.slot .src::before { content: "[" attr(data-n) "] "; }
/* the empty slot: same shape, no colour */
.slot.empty { color: var(--on-dark-muted); }
.slot.empty .ruled::before { content: "[ ] "; }
.slot .why { font-family: var(--sans); font-size: 0.8125rem; color: var(--on-dark-muted); }

/* ---------- fact strip: our substitute for a customer logo bar ---------- */

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-top: 3.5rem;
}
.fact { background: var(--bg); padding: 1.15rem 1.25rem; }
.fact .k {
  display: block; font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cite); margin-bottom: 0.4rem;
}
.fact .v { font-size: 0.9375rem; color: var(--ink); font-weight: 600; }

/* ---------- probes ---------- */

.probe { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.ask {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.35rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
}
.ask .label { margin-bottom: 0; }
.ask q { font-family: var(--voice); font-size: 1.05rem; line-height: 1.45; color: var(--ink); quotes: '"' '"'; }
.copy {
  font: inherit; font-size: 0.8125rem; font-weight: 600;
  background: transparent; color: var(--petrol);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 0.5rem 0.9rem; cursor: pointer; margin-top: auto;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.copy:hover { border-color: var(--petrol); background: var(--surface); }
.copy[data-done="1"] { border-color: var(--cite); color: var(--cite); }

.pointer {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cite); margin: 1.75rem 0 0;
}
.pointer svg { animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge {
  0%, 65%, 100% { transform: translate(0, 0); }
  80% { transform: translate(3px, 3px); }
}

/* ---------- cards and steps ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem;
}
.panel.alt .card { background: #fff; }
.card h3 { margin-bottom: 0.45rem; }
.card p { font-size: 0.9375rem; margin: 0; max-width: none; }

/* the pipeline is the one place order carries information, so it is the one
   place with numbered markers */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.step { border-top: 2px solid var(--cite); padding-top: 1.1rem; }
.step .n {
  display: block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.18em; color: var(--cite); margin-bottom: 0.65rem;
}
.step p { font-size: 0.9375rem; margin: 0; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
.tier {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem; display: flex; flex-direction: column;
}
.panel.alt .tier { background: #fff; }
.tier.pick { border-color: var(--petrol); box-shadow: 0 8px 24px rgba(15, 31, 28, 0.07); }
.tier .name {
  display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 0.9rem;
}
.tier.pick .name { color: var(--cite); }
.tier .price {
  display: block; font-size: 1.85rem; font-weight: 700;
  letter-spacing: -0.035em; color: var(--ink); line-height: 1.1;
}
.tier .per { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 1.1rem; }
.tier ul { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 0.9rem; color: var(--muted); }
.tier li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.tier li:last-child { border-bottom: 0; }
.tier li b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 0.92em; }
.tier .foot { margin-top: auto; font-size: 0.8125rem; color: var(--muted); }

.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 36rem; }
caption { text-align: left; font-size: 0.875rem; color: var(--muted); padding: 1rem 1.1rem 0; }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
tbody th { font-weight: 600; color: var(--ink); }
td { color: var(--muted); }
td.num { font-family: var(--mono); color: var(--ink); white-space: nowrap; }

/* ---------- notes ---------- */

.note {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--cite); border-radius: var(--r-sm);
  padding: 1.15rem 1.25rem; font-size: 0.9375rem; color: var(--muted);
}
.panel.alt .note { background: #fff; }
.note p { margin: 0; font-size: inherit; max-width: 70ch; }
.note p + p { margin-top: 0.75rem; }
.note strong { color: var(--ink); font-weight: 600; }

/* ---------- annotated document: claims with their source in the margin ---------- */

.doc { display: block; }
.doc .claim { border-top: 1px solid var(--line); padding: 1.6rem 0 1.3rem; }
.doc .claim h3 { margin-bottom: 0.5rem; }
.doc .claim p:last-child { margin-bottom: 0; }
.doc .cite-margin { font-family: var(--mono); font-size: 0.75rem; padding: 0 0 1.3rem; color: var(--muted); }
.doc .cite-margin a { text-decoration: none; }
.doc .cite-margin a:hover { text-decoration: underline; }
.doc .cite-margin::before { content: "[+] "; color: var(--cite); }

@media (min-width: 62rem) {
  .doc { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; column-gap: 3rem; }
  .doc .claim { grid-column: 1; }
  .doc .cite-margin { grid-column: 2; border-top: 1px solid var(--line); padding: 1.75rem 0 1.3rem; }
}

/* ---------- prose pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 3rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1rem; color: var(--muted); }
.prose li { padding: 0.2rem 0; }
.prose dl { margin: 0 0 1rem; }
.prose dt {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--cite); font-weight: 600; margin-top: 1.35rem;
}
.prose dd { margin: 0.35rem 0 0; color: var(--muted); max-width: 68ch; }
.prose .note { margin-top: 2rem; }

.stamp {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.85rem; margin: 0 0 2.5rem;
}

/* ---------- footer ---------- */

.site-foot { background: var(--petrol); color: var(--on-dark-muted); padding: 4rem 0 2.75rem; font-size: 0.9rem; }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot :focus-visible { outline-color: var(--cite-lit); }
.site-foot .brand { color: var(--on-dark); margin-bottom: 1.25rem; }
.site-foot .brand .bracket { color: var(--cite-lit); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2.25rem; }
.foot-grid h2 {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--cite-lit); font-weight: 600; margin: 0 0 0.9rem;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 0.25rem 0; }
.foot-legal { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; }
.foot-legal p { color: var(--on-dark-muted); max-width: 80ch; margin: 0 0 0.65rem; }
.foot-legal p:last-child { margin-bottom: 0; }

/* ---------- responsive and motion ---------- */

@media (max-width: 48rem) {
  .panel { padding: 4rem 0; }
  .head { margin-bottom: 2rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .facts { margin-top: 2.5rem; }
}
@media (max-width: 30rem) {
  .wrap { padding: 0 1.1rem; }
  .site-nav { gap: 0.85rem; width: 100%; margin-left: 0; }
  .site-nav a { font-size: 0.85rem; }
  .demo-card { padding: 1.3rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
