:root {
  --paper: #f7f5f0;
  --paper-alt: #efece4;
  --ink: #1b1b19;
  --muted: #5d5b55;
  --rule: #d9d4c8;
  --accent: #1f4a3a;
  --accent-ink: #ffffff;
  --lot: #c8462b;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.eyebrow {
  font: 600 0.76rem/1.2 var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 240, 0.96);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font: 600 1.18rem/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
}
nav { display: flex; align-items: center; gap: 28px; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; }
nav a:hover { color: var(--accent); }
nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  border-radius: 2px;
}
nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.98rem/1 var(--sans);
  padding: 15px 22px;
  border-radius: 2px;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #163a2d; }
.btn-quiet { color: var(--ink); padding-left: 4px; padding-right: 4px; }
.btn-quiet:hover { color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.lede { font-size: 1.12rem; color: #33322e; max-width: 34em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }
.hero-figure { margin: 0; }
.hero-figure img { border: 1px solid var(--rule); }
.hero-figure figcaption {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  font-size: 0.82rem; color: var(--muted); margin-top: 12px;
}
.key { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.swatch { width: 18px; height: 12px; display: inline-block; }
.swatch-lot { border: 2px solid var(--lot); }
.swatch-ravine {
  background: repeating-linear-gradient(45deg, rgba(40,110,80,.45) 0 3px, rgba(40,110,80,.12) 3px 7px);
  border: 1px dashed #5d7d6c;
}
.source { width: 100%; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-lede { color: #33322e; font-size: 1.06rem; margin-top: 18px; }

/* Case comparison */
.case { background: #fff; border: 1px solid var(--rule); padding: 32px 36px 26px; }
.case-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.case-label { font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; }
.case-price { font: 500 1.05rem/1 var(--sans); margin: 0; font-variant-numeric: tabular-nums; }
.compare { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 600 0.76rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 18px; }
.compare tbody th { width: 14%; font-weight: 500; color: var(--muted); }
.compare td:nth-child(2) { width: 36%; color: var(--muted); }
.compare td:nth-child(3) { color: var(--ink); }
.compare .row-decision th, .compare .row-decision td { border-bottom: 0; }
.compare .row-decision td:nth-child(3) { font-weight: 600; }
.case-note { font-size: 0.84rem; color: var(--muted); margin: 16px 0 0; }

/* Contents list */
.contents {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  counter-reset: item;
  border-top: 1px solid var(--rule);
}
.contents li {
  counter-increment: item;
  padding: 28px 28px 30px 0;
  border-bottom: 1px solid var(--rule);
}
.contents li:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.contents li:not(:nth-child(3n+1)) { padding-left: 28px; }
.contents li::before {
  content: counter(item, decimal-leading-zero);
  display: block; font: 500 0.82rem/1 var(--sans); color: var(--muted); margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.contents h3 { margin-bottom: 10px; }
.contents p { color: #3a3934; font-size: 0.97rem; margin: 0; }

/* Sample */
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sample-grid h2 { margin-bottom: 18px; }
.doc {
  display: block; position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 10px 10px 0 -1px var(--paper-alt), 10px 10px 0 0 var(--rule);
  max-width: 420px; justify-self: end; width: 100%;
  height: 470px; overflow: hidden;
  transition: transform .15s ease;
}
.doc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(rgba(255,255,255,0), #fff 85%);
}
.doc:hover { transform: translateY(-2px); }
.doc img { width: 100%; }

/* Two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col h2 { margin-bottom: 18px; }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 0.98rem; }
.plain li:last-child { border-bottom: 1px solid var(--rule); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); background: #fff; }
.price { padding: 30px 30px 26px; }
.price + .price { border-left: 1px solid var(--rule); }
.price h3 { font: 600 0.8rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.amount { font: 500 2.1rem/1.1 var(--serif); margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.amount span { font: 400 0.9rem/1 var(--sans); color: var(--muted); }
.price p:last-child { margin: 0; color: #3a3934; font-size: 0.96rem; }
.coverage { color: var(--muted); font-size: 0.92rem; margin: 18px 0 0; max-width: 46em; }

/* Contact */
.section-contact { background: var(--ink); color: var(--paper); }
.section-contact h2 { color: #fff; margin-bottom: 14px; }
.section-contact p { color: #cfcbc1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-card { border-left: 1px solid #45443f; padding-left: 40px; }
.contact-email { display: inline-block; font: 500 1.45rem/1.2 var(--serif); color: #fff; margin-bottom: 16px; }
.contact-card p { margin: 0; line-height: 1.7; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; font-size: 0.82rem; color: var(--muted); }
.footer-inner p { margin: 0; }
.footer-inner p:last-child { text-align: right; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid, .sample-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .doc { justify-self: start; }
  .contents { grid-template-columns: 1fr 1fr; }
  .contents li, .contents li:not(:nth-child(3n+1)) { padding: 24px 20px 26px 0; border-right: 0; }
  .contents li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .contents li:nth-child(even) { padding-left: 20px; }
  .prices { grid-template-columns: 1fr; }
  .price + .price { border-left: 0; border-top: 1px solid var(--rule); }
  .contact-card { border-left: 0; padding-left: 0; border-top: 1px solid #45443f; padding-top: 28px; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  nav a:not(.nav-cta) { display: none; }
  .case { padding: 22px 18px 18px; }
  .case-head { flex-direction: column; align-items: flex-start; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { display: block; width: auto !important; border: 0; padding: 3px 0; }
  .compare td:nth-child(2)::before { content: "Free screen: "; font-weight: 600; }
  .compare td:nth-child(3)::before { content: "Our check: "; font-weight: 600; }
  .contents { grid-template-columns: 1fr; }
  .contents li, .contents li:nth-child(even) { padding: 22px 0; border-right: 0 !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner p:last-child { text-align: left; }
}
