:root {
  --ink: #151515;
  --ink-strong: #050505;
  --muted: #66645f;
  --paper: #faf8f3;
  --wash: #f2efe8;
  --line: rgba(20, 20, 18, 0.14);
  --orange: #d6002a;
  --orange-dark: #a80020;
  --green: #2f7f7a;
  --blue: #243b8b;
  --max: 1160px;
  --shadow: 0 18px 50px rgba(20, 20, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 0 clamp(18px, 4vw, 34px);
  border-bottom: 1px solid rgba(20, 20, 18, 0.08);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  font-family: "Anton", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .5px;
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  color: rgba(21, 21, 21, 0.68);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a,
.auth-links a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink-strong);
}

.auth-links {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.button,
.auth-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 20, 18, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.button:hover,
.auth-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 20, 18, 0.28);
}

.button.primary,
.auth-links a.primary {
  border-color: rgba(20, 20, 18, 0.18);
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(214, 0, 42, 0.2);
}

.button.primary:hover,
.auth-links a.primary:hover {
  background: var(--orange-dark);
}

.button.secondary {
  background: #ffffff;
}

.hero {
  position: relative;
  min-height: calc(100svh - 58px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 54px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76) 58%, rgba(214, 0, 42, 0.12)),
    repeating-linear-gradient(0deg, rgba(20, 20, 18, 0.045) 0 1px, transparent 1px 36px);
  pointer-events: none;
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* pricing hero is single-column (no .hero-grid) and carries a full-sentence
   headline — size it down so the lede fits ~one viewport before the plans */
.hero-inner:not(.hero-grid) h1 {
  max-width: 940px;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.06;
}

h1 em,
h2 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy {
  margin-top: 22px;
  max-width: 640px;
  color: rgba(21, 21, 21, 0.72);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.proof-panel {
  border: 1px solid rgba(20, 20, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(20, 20, 18, 0.1);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-list {
  display: grid;
  gap: 0;
}

.proof-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(20, 20, 18, 0.08);
}

.proof-row:last-child {
  border-bottom: 0;
}

.proof-row i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(47, 127, 122, 0.12);
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.proof-row strong {
  display: block;
  margin-bottom: 3px;
}

.proof-row span,
.proof-row small,
.card p,
.step p,
.plan-card p,
.note {
  color: rgba(21, 21, 21, 0.64);
  line-height: 1.55;
}

.proof-row em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 54px);
}

.section.washed {
  background: var(--wash);
}

.section h2 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
}

.section-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(21, 21, 21, 0.68);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step,
.plan-card,
.summary-band {
  border: 1px solid rgba(20, 20, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  box-shadow: 0 12px 32px rgba(20, 20, 18, 0.07);
}

.card,
.step,
.summary-band {
  padding: 22px;
}

.card b,
.step b {
  display: block;
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
}

.card h3,
.step h3 {
  font-size: 21px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.comparison h3 {
  margin-bottom: 14px;
  font-size: 26px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: rgba(21, 21, 21, 0.7);
  line-height: 1.45;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(47, 127, 122, 0.12);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
}

.plan-card.featured {
  border-color: rgba(214, 0, 42, 0.42);
  box-shadow: 0 18px 42px rgba(214, 0, 42, 0.14);
}

.plan-tag {
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(214, 0, 42, 0.1);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin: 18px 0 6px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.price small {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.usd-price {
  min-height: 21px;
  color: rgba(21, 21, 21, 0.54);
  font-size: 13px;
  font-weight: 700;
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  margin-top: 20px;
  color: rgba(21, 21, 21, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.status-message {
  display: none;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(20, 20, 18, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: rgba(21, 21, 21, 0.72);
  line-height: 1.5;
}

.status-message.is-visible {
  display: block;
}

.interactive-demo {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin-top: 34px;
}

.demo-step-list {
  display: grid;
  gap: 10px;
}

.demo-step {
  width: 100%;
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(20, 20, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  color: rgba(21, 21, 21, 0.68);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.demo-step:hover,
.demo-step.active {
  transform: translateY(-1px);
  border-color: rgba(214, 0, 42, 0.32);
  background: rgba(214, 0, 42, 0.1);
  color: var(--ink-strong);
}

.demo-preview {
  min-height: 430px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(20, 20, 18, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 243, .88), rgba(255, 255, 255, .58)),
    repeating-linear-gradient(0deg, rgba(20, 20, 18, .045) 0 1px, transparent 1px 34px);
  box-shadow: var(--shadow);
}

.demo-preview h3 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
}

.demo-preview p {
  margin: 0;
  color: rgba(21, 21, 21, 0.66);
  font-size: 16px;
  line-height: 1.55;
}

.demo-status {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(47, 127, 122, .12);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.demo-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.demo-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(20, 20, 18, .08);
  border-radius: 7px;
  background: rgba(255, 255, 255, .5);
  color: rgba(21, 21, 21, .72);
}

.demo-list b {
  color: var(--ink-strong);
}

.demo-list span {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 5, 0.45);
}

.checkout-modal.is-open {
  display: grid;
}

.checkout-dialog {
  width: min(520px, 100%);
  border: 1px solid rgba(20, 20, 18, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(5, 5, 5, 0.28);
}

.checkout-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid rgba(20, 20, 18, 0.1);
}

.checkout-dialog form {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.checkout-dialog label {
  display: grid;
  gap: 6px;
  color: rgba(21, 21, 21, 0.66);
  font-size: 13px;
  font-weight: 800;
}

.checkout-dialog input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 20, 18, 0.14);
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
}

.modal-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 20, 18, 0.14);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.footer {
  padding: 30px clamp(20px, 5vw, 54px);
  border-top: 1px solid rgba(20, 20, 18, 0.1);
  background: #151515;
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: #ffffff;
}

/* laptop band: give the dense grids an intermediate step so 4/5-col
   layouts don't crush before the 980 single-column stack */
@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav {
    column-gap: clamp(10px, 2vw, 22px);
  }

  .nav-links {
    gap: clamp(8px, 1.4vw, 18px);
  }
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand,
  .auth-links {
    justify-self: center;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-grid,
  .grid,
  .grid.two,
  .comparison,
  .interactive-demo,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(30px, 9.4vw, 44px);
  }

  .hero-inner:not(.hero-grid) h1 {
    font-size: clamp(28px, 8.4vw, 40px);
  }

  .section h2 {
    font-size: clamp(26px, 8vw, 40px);
    line-height: 1.02;
  }

  .hero {
    min-height: auto;
  }

  .demo-preview {
    min-height: auto;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .proof-row {
    grid-template-columns: auto 1fr;
  }

  .proof-row em {
    grid-column: 2;
  }
}

/* ============================================================
   Micro-interactions — hover lifts, focus rings, scroll reveal.
   Matches the existing 160ms ease / translateY(-1px) / orange
   vocabulary. Reveal is progressive enhancement (see
   assets/marketing-pages.js): the hide only applies under
   body.reveal-init, which the script adds after boot when motion
   is allowed, so no-JS / reduced-motion never blanks content.
   ============================================================ */

.card,
.step,
.plan-card {
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}

.card:hover,
.step:hover,
.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 0, 42, 0.32);
  box-shadow: 0 20px 46px rgba(20, 20, 18, 0.12);
}

.plan-card.featured:hover {
  border-color: rgba(214, 0, 42, 0.55);
  box-shadow: 0 24px 54px rgba(214, 0, 42, 0.2);
}

.button {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button.primary:hover,
.auth-links a.primary:hover {
  box-shadow: 0 12px 26px rgba(214, 0, 42, 0.28);
}

/* accessibility: no focus styling existed before */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 5px;
}

@media (prefers-reduced-motion: no-preference) {
  body.reveal-init .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 55ms);
  }

  body.reveal-init .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Long-form legal / trust pages (privacy · terms · security ·
   company · trust). Readable prose, data tables, and callouts,
   in the same pearl/red/mono vocabulary as the marketing pages.
   ============================================================ */
.legal {
  padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 54px) clamp(56px, 9vw, 104px);
}

.legal-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.legal h1 {
  max-width: none;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.legal-meta {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-lede {
  margin: 10px 0 0;
  color: rgba(21, 21, 21, 0.72);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.5;
}

.legal h2 {
  max-width: none;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.12;
  margin: 40px 0 12px;
  scroll-margin-top: 76px;
}

.legal h3 {
  font-size: 17px;
  margin: 22px 0 7px;
}

.legal p,
.legal li {
  color: rgba(21, 21, 21, 0.76);
  font-size: 16px;
  line-height: 1.62;
}

.legal p {
  margin: 0 0 14px;
}

.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 7px;
}

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

.legal a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* red-accented callout (commitments, important notes, lawyer gate) */
.legal-note {
  margin: 22px 0;
  padding: 15px 18px;
  border: 1px solid rgba(214, 0, 42, 0.28);
  border-left-width: 3px;
  border-radius: 8px;
  background: rgba(214, 0, 42, 0.05);
  color: rgba(21, 21, 21, 0.78);
  font-size: 14.5px;
  line-height: 1.55;
}

.legal-note strong {
  color: var(--orange-dark);
}

/* neutral callout (payment disclaimer) */
.legal-callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  color: rgba(21, 21, 21, 0.78);
  font-size: 15px;
  line-height: 1.58;
}

/* data-inventory / doc tables */
.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0 22px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-table td {
  color: rgba(21, 21, 21, 0.74);
  line-height: 1.5;
}

/* trust hub link cards */
.trust-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.trust-hub a {
  display: block;
  padding: 20px;
  border: 1px solid rgba(20, 20, 18, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.72);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.trust-hub a:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 0, 42, 0.32);
  box-shadow: 0 20px 46px rgba(20, 20, 18, 0.1);
}

.trust-hub b {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 18px;
}

.trust-hub span {
  color: rgba(21, 21, 21, 0.64);
  font-size: 14px;
  line-height: 1.5;
}

/* footer legal-link row (added to the shared .footer) */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
}

.footer-legal a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .trust-hub {
    grid-template-columns: 1fr;
  }
}
