/* ==========================================================================
   VenueRev
   Direction A, "Letterpress Correspondence" (see DESIGN.md).
   Landing page + shared legal page template.

   The system in one line: warm ivory stock, one evergreen ink, hairline rules
   where other products put drop shadows. Serif for what is read, sans for what
   is scanned or clicked, mono for time.
   ========================================================================== */

:root {
  /* grounds and rules */
  --paper:        #FAF6EF;
  --paper-raised: #FFFDF8;
  --paper-sunk:   #F2EBDF;
  --rule:         #DFD5C4;   /* decorative */
  --rule-soft:    #EBE3D5;   /* internal */
  --rule-control: #8E8070;   /* functional, 3.56:1 */

  /* ink */
  --ink:          #14120E;
  --ink-soft:     #453E34;
  --ink-muted:    #6B6255;
  --ink-faint:    #9A9082;   /* disabled only */

  /* accent */
  --accent:       #1D4535;
  --accent-deep:  #143024;
  --accent-tint:  #E7EEE9;
  --accent-rule:  #C7D8CD;

  /* status */
  --brass: #775A16;  --brass-tint: #F6EEDA;  --brass-rule: #E4D3AC;
  --clay:  #A33B2A;  --clay-tint:  #F8E9E4;  --clay-rule:  #EFCFC6;
  --ochre: #8A5F12;  --ochre-tint: #F8F0DC;
  --slate: #33556B;  --slate-tint: #E8EEF2;  --slate-rule: #CBDCE5;

  /* chat */
  --bubble-in:    #F0EAE0;
  --bubble-out:   #F4F8F5;

  /* type */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-text:    "Newsreader", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-ui:      "DM Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* space */
  --s-0: 2px; --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* radius */
  --r-xs: 2px; --r-sm: 3px; --r-md: 4px; --r-bubble: 10px; --r-full: 9999px;

  /* elevation: overlays only */
  --shadow-overlay: 0 8px 32px rgba(20, 18, 14, 0.14);

  /* motion */
  --t-micro: 100ms; --t-short: 150ms; --t-med: 200ms; --t-long: 300ms;

  /* layout */
  --shell: 1100px;

  /* section rhythm */
  --band: clamp(56px, 8vw, 104px);
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* --- Layout primitives --------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

/* Label layer: wide-tracked uppercase, sans. The hospitality signal. */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

/* Display layer: tight lowercase serif. The software register. */
.section-title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 400;
  line-height: 1.10;
  letter-spacing: -0.020em;
  max-width: 20ch;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color var(--t-short) ease-out,
              border-color var(--t-short) ease-out,
              color var(--t-short) ease-out;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Secondary: paper-raised fill on a functional rule. */
.btn-secondary {
  background: var(--paper-raised);
  color: var(--ink);
  border-color: var(--rule-control);
}

.btn-secondary:hover { background: var(--paper-sunk); border-color: var(--ink); }

/* Primary, inverted, for use on the accent band. */
.btn-invert {
  background: var(--paper);
  color: var(--accent-deep);
  border-color: var(--paper);
}

.btn-invert:hover {
  background: var(--paper-raised);
  border-color: var(--paper-raised);
}

.btn-sm { font-size: 13.5px; padding: 10px 17px; }

/* Ghost: accent text, underline on hover at 3px offset. */
.link-cta {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--accent);
  text-decoration: 1px solid underline transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-short) ease-out;
}

.link-cta:hover { text-decoration-color: currentColor; }

/* --- Wordmark ------------------------------------------------------------ */

.wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color var(--t-short) ease-out;
}

.wordmark:hover { color: var(--accent); }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 70px;
}

.site-nav {
  display: flex;
  gap: var(--s-5);
  margin-left: var(--s-3);
  margin-right: auto;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color var(--t-short) ease-out, border-color var(--t-short) ease-out;
}

.site-nav a:hover { color: var(--ink); border-color: var(--accent); }

/* --- Hero ---------------------------------------------------------------- */

/* Flat paper. No gradient, ever. */
.hero {
  padding: clamp(20px, 2.4vw, 32px) 0 clamp(44px, 6vw, 76px);
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.hero-title {
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hero-sub {
  margin-top: var(--s-4);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.hero-note {
  margin-top: var(--s-4);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
}

/* --- The demo: a printed artifact, not a device -------------------------- */

.demo { margin: 0; }

.demo-panel {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  max-width: 430px;
  margin: 0 auto;
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 11px 16px;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--rule);
}

/* Monogram avatars are serif, and are one of two things allowed full radius. */
.demo-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-bar-text { display: flex; flex-direction: column; min-width: 0; }

.demo-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Live dot: a slow heartbeat, decorative only. The text carries the status. */
.demo-status::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--accent);
  animation: heartbeat 2400ms ease-in-out infinite;
}

.demo-tag {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: var(--r-xs);
  padding: 3px 8px;
  background: var(--paper-raised);
}

.demo-thread { padding: var(--s-4) var(--s-4) var(--s-5); }

/* Day marker: centered mono micro label with hairlines running left and right. */
.demo-caption-line {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  margin-bottom: var(--s-3);
}

.demo-caption-line::before,
.demo-caption-line::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--rule);
}

/* Channel marker: an accent-tinted chip, pill-free. */
.demo-source {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-rule);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  width: fit-content;
  margin: 0 auto var(--s-4);
}

.msg {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s-2);
  max-width: 82%;
}

.msg-in { align-items: flex-start; margin-right: auto; }
.msg-out { align-items: flex-end; margin-left: auto; }

/* Bubbles are product UI: sans, per the dashboard scale. */
.bubble {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--r-bubble);
  animation: arrive var(--t-med) ease-out both;
}

/* Couple, inbound. The hairline defines the shape; the fill is only a
   1.18 luminance step off the card surface. */
.msg-in .bubble {
  background: var(--bubble-in);
  border-color: var(--rule);
  color: var(--ink);
  border-bottom-left-radius: var(--r-xs);
}

/* Evergreen is always the AI. This mapping never varies. */
.msg-out .bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bubble-out);
  border-bottom-right-radius: var(--r-xs);
}

/* Time is evidence, so time is mono and tabular. */
.stamp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  margin-top: var(--s-1);
  padding: 0 var(--s-1);
}

/* Signature element: elapsed time, laid out as a strip of stamped chips. */
.demo-timeline {
  list-style: none;
  display: flex;
  align-items: stretch;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
}

.demo-timeline li {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  background: var(--accent-tint);
  border: 1px solid var(--accent-rule);
  border-radius: var(--r-xs);
  padding: 6px 4px 7px;
}

.demo-timeline li + li { margin-left: var(--s-4); }

/* Hairline connector between chips, drawn in the gap. */
.demo-timeline li + li::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: var(--s-4);
  height: 1px;
  background: var(--rule);
}

.tl-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-time {
  display: block;
  margin-top: var(--s-0);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* --- Problem ------------------------------------------------------------- */

.problem {
  padding: var(--band) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper-raised);
}

.beats {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}

.beat { border-top: 2px solid var(--accent); padding-top: var(--s-5); }

/* Counters are identifiers, so they are mono. */
.beat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.beat h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.015em;
}

.beat p {
  margin-top: var(--s-3);
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-soft);
  max-width: 40ch;
}

.problem-close {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.020em;
  max-width: 34ch;
  text-wrap: balance;
}

/* --- How it works -------------------------------------------------------- */

.how {
  padding: var(--band) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}

.steps {
  margin-top: var(--s-7);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

.step {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-5) var(--s-6);
  transition: border-color var(--t-short) ease-out;
}

.step:hover { border-color: var(--rule-control); }

/* A stamped numeral, not a bubble. */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 3px 6px;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-4);
}

.step h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.015em;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
}

.step p {
  margin-top: var(--s-3);
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* --- Capabilities -------------------------------------------------------- */

.capabilities {
  padding: var(--band) 0;
  background: var(--paper-sunk);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cards {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-5) var(--s-6);
  transition: border-color var(--t-short) ease-out;
}

/* Cards do not lift. They change border color. */
.card:hover { border-color: var(--rule-control); }

.card h3 {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.015em;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
}

.card p {
  margin-top: var(--s-3);
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

/* --- Trust --------------------------------------------------------------- */

.trust {
  padding: var(--band) 0;
  background: var(--paper);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.trust-lede {
  margin-top: var(--s-5);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Hairlines do the work a bullet glyph would otherwise do. */
.trust-list { list-style: none; }

.trust-list li {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
}

.trust-list li:first-child { padding-top: 0; }
.trust-list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* --- FAQ ----------------------------------------------------------------- */

.faq {
  padding: var(--band) 0;
  background: var(--paper-raised);
  border-top: 1px solid var(--rule);
}

.faq-list {
  margin-top: var(--s-6);
  border-top: 1px solid var(--rule);
  max-width: 860px;
}

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-1);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: -0.012em;
  transition: color var(--t-short) ease-out;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary:hover { color: var(--accent); }

/* The one piece of iconography in the system. */
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform var(--t-med) ease-out;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq-body { padding: 0 var(--s-1) var(--s-5); max-width: 60ch; }

.faq-body p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* --- Final CTA ----------------------------------------------------------- */

.cta-band {
  background: var(--accent);
  color: var(--bubble-out);
  padding: clamp(64px, 9vw, 108px) 0;
}

.cta-inner { text-align: center; }

.cta-band h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 400;
  line-height: 1.10;
  letter-spacing: -0.025em;
  max-width: 26ch;
  margin: 0 auto;
  color: var(--paper);
}

.cta-sub {
  margin: var(--s-5) auto var(--s-6);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: rgba(250, 246, 239, 0.82);
  max-width: 48ch;
}

/* Demo request form.
   Sits on the accent band as a printed reply card: paper-raised stock, one
   hairline, no shadow. Fields are sans on a functional rule, controls at 3px. */
.lead-form {
  max-width: 620px;
  margin: var(--s-6) auto 0;
  padding: var(--s-6);
  text-align: left;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  color: var(--ink);
}

.lead-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.field label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.field input {
  width: 100%;
  padding: var(--s-3);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-control);
  border-radius: var(--r-sm);
  transition: border-color var(--t-short) ease-out;
}

.field input:hover { border-color: var(--ink); }
.field input:focus { border-color: var(--accent); }

/* Honeypot: offscreen for people, in the DOM for bots. */
.lead-form-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.lead-form button {
  width: 100%;
  margin-top: var(--s-5);
}

/* Hints in this product are about enforcement, so they read as policy. */
.lead-form-hint {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.cta-quiet {
  margin-top: var(--s-5);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(250, 246, 239, 0.74);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: var(--s-7) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: var(--s-5);
  margin-left: var(--s-2);
  margin-right: auto;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  border-bottom: 1.5px solid transparent;
  transition: color var(--t-short) ease-out, border-color var(--t-short) ease-out;
}

.footer-nav a:hover { color: var(--accent); border-color: var(--accent); }

.copyright,
.footer-legal {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  margin: 0;
}

/* ==========================================================================
   Legal page template (privacy.html, terms.html)
   Structure: body.legal-body > .site-header + main.legal + .site-footer
   ========================================================================== */

.legal-body { background: var(--paper-raised); }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 28px clamp(56px, 8vw, 96px);
}

.legal h1 {
  font-size: clamp(34px, 5.4vw, 50px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

/* A date is time evidence, so it is mono. */
.legal .legal-updated {
  margin-top: var(--s-3);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.legal h2 {
  font-size: clamp(22px, 3vw, 27px);
  font-weight: 500;
  line-height: 1.20;
  letter-spacing: -0.018em;
  margin-top: var(--s-7);
}

.legal h3 {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.30;
  letter-spacing: -0.012em;
  margin-top: var(--s-6);
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.legal p { margin-top: var(--s-4); }

.legal ul,
.legal ol {
  margin-top: var(--s-4);
  padding-left: 22px;
}

.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }

.legal li { margin-top: 9px; padding-left: var(--s-1); }
.legal li::marker { color: var(--accent); }

.legal a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent-rule);
  transition: border-color var(--t-short) ease-out;
}

.legal a:hover { border-color: var(--accent); }

.legal strong { color: var(--ink); font-weight: 600; }

/* Table cells are scanned, not read, so they are sans. */
.legal table {
  width: 100%;
  margin-top: var(--s-5);
  border-collapse: collapse;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}

.legal tr:last-child td { border-bottom: 0; }

.legal th {
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--rule-control);
}

.legal .legal-note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: 15.5px;
  line-height: 1.58;
  color: var(--ink-muted);
  max-width: 60ch;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 18ch; }
  .hero-sub { max-width: 54ch; }
  .demo { margin-top: var(--s-3); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; gap: var(--s-3); }
  .wordmark { margin-right: auto; }
  .beats { grid-template-columns: 1fr; gap: var(--s-5); }
  .steps { grid-template-columns: 1fr; gap: var(--s-4); }
  .cards { grid-template-columns: 1fr; }
  .lead-form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .footer-nav { margin: 0; }
}

@media (max-width: 480px) {
  .msg { max-width: 88%; }
}

@media (max-width: 460px) {
  body { font-size: 16.5px; }
  .shell { padding: 0 18px; }
  .hero-title { font-size: clamp(36px, 11vw, 46px); max-width: none; }
  .hero-actions { gap: var(--s-4); }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .link-cta { margin: 0 auto; }
  .demo-thread { padding: var(--s-3) var(--s-3) var(--s-4); }
  .demo-caption-line { letter-spacing: 0.06em; }
  .demo-timeline li + li { margin-left: var(--s-3); }
  .demo-timeline li + li::before { left: -13px; width: var(--s-3); }
  .tl-label { font-size: 9px; letter-spacing: 0.08em; }
  .tl-time { font-size: 11.5px; }
  .step { padding: var(--s-5) var(--s-4); }
  .card { padding: var(--s-5) var(--s-4); }
  .lead-form { padding: var(--s-5) var(--s-4); }
  .legal { padding-left: 18px; padding-right: 18px; }
}

/* --- Motion -------------------------------------------------------------- */

/* The one signature: arrival. Speed is the product. */
@keyframes arrive {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

@keyframes heartbeat {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
