/* ExitVerdict marketing site. Paper and ink, matching the app. No external assets. */

:root {
  --paper: #f4f0e6;
  --card: #fffdf8;
  --ink: #1d1a16;
  --muted: #514b42;
  --line: #e3dacb;
  --rust: #8c3a22;
  --rust-ink: #fffaf6;
  --rust-deep: #6f2e1b;
  --chip: #efe6d6;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #e7d3c8;
  color: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust-deep);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
  color: var(--paper);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.prose {
  max-width: 40rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.25rem;
  padding: 0.35rem 0;
}

.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand:hover {
  color: var(--rust);
  text-decoration: underline;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
}

.nav a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--rust-deep);
}

.section {
  padding: 3.25rem 0;
}

.hero {
  padding-top: 3.75rem;
  padding-bottom: 2.5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--rust);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
.brand,
.steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4vw + 1rem, 3.35rem);
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 1.5vw + 1rem, 2.05rem);
  line-height: 1.2;
  scroll-margin-top: 1.25rem;
}

h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  scroll-margin-top: 1.25rem;
}

p {
  margin: 0.85rem 0;
  overflow-wrap: break-word;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.55;
}

.cta-block {
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: 14px;
  background: var(--rust);
  color: var(--rust-ink);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--rust-deep);
  color: var(--rust-ink);
}

.cta-note,
.legal-near {
  margin: 0.8rem 0 0;
}

.cta-note a,
.legal-near a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-near {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.3rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--rust);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
}

.steps p {
  margin: 0;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.split {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.3rem 1.25rem;
}

.panel h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.panel ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.panel li + li {
  margin-top: 0.35rem;
}

.aside {
  max-width: 40rem;
  margin-top: 1.25rem;
}

.band {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding: 2.4rem 0 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr auto;
    align-items: start;
  }
}

.footer-brand {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.site-footer p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.footer-nav a:hover {
  color: var(--rust-deep);
}

.legal.wrap {
  width: min(100% - 2.5rem, 42rem);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.legal .dates {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
}

.legal h2 {
  margin-top: 2.3rem;
}

.toc {
  margin: 1.6rem 0 0.4rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toc-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
}

.toc li {
  margin: 0.2rem 0;
}

.toc a {
  color: var(--ink);
  text-decoration-color: var(--rust);
}

ul.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.1rem;
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal li {
  margin: 0.4rem 0;
}

.legal li > ul {
  margin-top: 0.25rem;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8rem 0;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--chip);
  padding: 0.08em 0.35em;
  border-radius: 4px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.98rem;
}

.compare caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.compare th {
  font-weight: 600;
}

@media (max-width: 40rem) {
  .button {
    width: 100%;
  }

  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .compare tr {
    margin: 0 0 0.85rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.35rem 0.15rem;
  }

  .compare th,
  .compare td {
    border-bottom: 0;
    padding: 0.45rem 0.85rem;
  }

  .compare th[scope="row"]::before,
  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media print {
  .skip,
  .site-header,
  .site-footer,
  .toc,
  .cta-block {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }

  .legal a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}
