:root {
  --bg: #f4f0e8;
  --panel: rgba(255, 252, 247, 0.92);
  --ink: #1f1b16;
  --muted: #5a5044;
  --accent: #0f5d5e;
  --accent-2: #8e3b2e;
  --line: rgba(31, 27, 22, 0.12);
  --warn: #fff3d8;
  --good: #e6f5f0;
  --shadow: 0 20px 50px rgba(31, 27, 22, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 93, 94, 0.15), transparent 32%),
    radial-gradient(circle at bottom right, rgba(142, 59, 46, 0.15), transparent 28%),
    linear-gradient(180deg, #f9f6ef, var(--bg));
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.96;
  max-width: 12ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.tab-strip {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.tab-strip a {
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

.compact-grid {
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel h2,
.panel h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.tight {
  gap: 0.4rem;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

input,
textarea,
select {
  border: 1px solid rgba(31, 27, 22, 0.15);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: rgba(255, 255, 255, 0.86);
}

button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #0b4344);
  color: white;
  padding: 0.8rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.04);
}

form {
  margin: 0;
}

.stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat {
  min-width: 130px;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  text-align: right;
}

.stat span {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat small {
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-weight: 600;
}

a {
  color: var(--accent-2);
}

.pill {
  display: inline-block;
  background: rgba(15, 93, 94, 0.1);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.plain {
  margin: 0;
  padding-left: 1.1rem;
}

.callout {
  padding: 0.8rem;
  border-radius: 16px;
  margin-bottom: 0.75rem;
}

.callout.warn {
  background: var(--warn);
}

.callout.good {
  background: var(--good);
}

.code-block {
  margin: 0;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(31, 27, 22, 0.06);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.84rem;
}

.graph {
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, rgba(15, 93, 94, 0.06), rgba(142, 59, 46, 0.04));
  border-radius: 18px;
}

.graph text {
  font-size: 11px;
  fill: var(--ink);
}

.edge {
  stroke: rgba(31, 27, 22, 0.22);
  stroke-width: 1.3;
}

.node.subject {
  fill: rgba(142, 59, 46, 0.82);
}

.node.location {
  fill: rgba(15, 93, 94, 0.82);
}

.map {
  position: relative;
  min-height: 220px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 93, 94, 0.08), rgba(255,255,255,0.12)),
    repeating-linear-gradient(90deg, rgba(31, 27, 22, 0.05), rgba(31, 27, 22, 0.05) 1px, transparent 1px, transparent 12%);
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.map::before {
  content: "";
  position: absolute;
  inset: 15% 8%;
  border: 1px dashed rgba(31, 27, 22, 0.16);
  border-radius: 999px;
}

.map-point {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(142, 59, 46, 0.18);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero,
  .stats {
    flex-direction: column;
    align-items: stretch;
  }

  .two-up,
  .three-up {
    grid-template-columns: 1fr;
  }

  .stat {
    text-align: left;
  }
}

/* Landing (marketing) page — scoped under .marketing.
   Intentionally flat: hairline rules, no shadows, no radii, no glass panels.
   Editorial, not SaaS. */

.marketing {
  padding: 1.5rem 0 3rem;
}

.marketing a {
  color: inherit;
}

.landing-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

.landing-eyebrow {
  margin: 0 0 0.4rem;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}

.landing-eyebrow--warn {
  color: var(--accent-2);
}

/* Hero */

.landing-hero {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 3rem;
  align-items: start;
  padding-top: 1.5rem;
}

.landing-headline {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 0.96;
  max-width: 14ch;
  letter-spacing: -0.01em;
}

.landing-subhead {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 52ch;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: baseline;
  margin: 1.75rem 0 0;
}

.landing-cta-primary,
.landing-cta-secondary {
  font-family: inherit;
  text-decoration: none;
  padding-bottom: 2px;
  transition: border-color 120ms ease, color 120ms ease;
}

.landing-cta-primary {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
}

.landing-cta-primary:hover {
  color: #0b4344;
  border-bottom-color: #0b4344;
}

.landing-cta-secondary {
  color: var(--muted);
  font-size: 1rem;
  border-bottom: 1px dotted rgba(31, 27, 22, 0.3);
}

.landing-cta-secondary:hover {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

/* Hero ledger */

.landing-ledger {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 0.25rem 1.5rem 1rem;
  background: rgba(255, 252, 247, 0.55);
}

.landing-ledger dl {
  margin: 0;
}

.landing-ledger__row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.landing-ledger__row:first-child {
  border-top: 0;
}

.landing-ledger dt {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.landing-ledger dd {
  margin: 0;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.86rem;
  color: var(--ink);
  word-break: break-word;
}

/* Thesis */

.landing-thesis {
  max-width: 68ch;
}

.landing-thesis__body {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Split — weak signal vs durable corroboration */

.landing-split-wrap {
  display: grid;
  gap: 1.5rem;
}

.landing-split-header {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 40ch;
}

.landing-split {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 2.5rem;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.landing-split__divider {
  border-left: 1px dotted var(--line);
}

.landing-split__col {
  padding: 0;
}

.landing-split__col--durable {
  padding: 1rem 0 0 1.25rem;
  border-left: 2px solid var(--accent);
}

.landing-split__sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.landing-family-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-family-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

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

.landing-family-row--dim {
  color: var(--muted);
}

.landing-family-row__label {
  font-size: 1rem;
  line-height: 1.45;
}

.landing-family-tag {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  white-space: nowrap;
}

.landing-family-tag--teal { color: var(--accent); }
.landing-family-tag--orange { color: var(--accent-2); }
.landing-family-tag--muted { color: var(--muted); }

.landing-split__footnote {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 80ch;
}

.landing-split__footnote code {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.landing-split__footnote em {
  font-style: italic;
  color: var(--ink);
}

/* Rail — how a lead becomes a case */

.landing-rail-wrap {
  display: grid;
  gap: 1.5rem;
}

.landing-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 22fr 26fr 28fr 24fr;
  gap: 0;
}

.landing-rail__stage {
  padding: 0 1.5rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.landing-rail__stage:first-child {
  padding-left: 0;
  border-left: 0;
}

.landing-rail__num {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

.landing-rail__name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.landing-rail__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.landing-rail__enum {
  margin: auto 0 0;
  padding-top: 0.75rem;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Provenance */

.landing-provenance {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 3rem;
  align-items: start;
}

.landing-provenance__lede > *:first-child {
  margin-top: 0;
}

.landing-provenance__title {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  max-width: 18ch;
}

.landing-provenance__body {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}

.landing-provenance__dl {
  margin: 0;
  max-width: 62ch;
}

.landing-provenance__row {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1.25rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.landing-provenance__row dt {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.landing-provenance__row dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

.landing-run-excerpt {
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: rgba(31, 27, 22, 0.05);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre;
  overflow-x: auto;
}

.landing-run-excerpt code {
  font: inherit;
  color: inherit;
}

/* Brief — IRS scope */

.landing-brief {
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-2);
  padding: 2rem;
  background: rgba(255, 252, 247, 0.55);
}

.landing-brief__row {
  display: grid;
  grid-template-columns: 8ch 1fr;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.landing-brief__row:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}

.landing-brief__label {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.landing-brief__body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 72ch;
}

.landing-brief__body code {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.9em;
  color: var(--accent);
}

/* Close — final CTAs */

.landing-close {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 3rem;
  align-items: start;
}

.landing-close__lede {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 44ch;
}

.landing-close__links {
  display: grid;
}

.landing-close__row {
  display: grid;
  grid-template-columns: 7ch 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  align-items: baseline;
  transition: color 120ms ease;
}

.landing-close__row:last-child {
  border-bottom: 1px solid var(--line);
}

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

.landing-close__label {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-close__action {
  font-size: 1.05rem;
  font-weight: 700;
}

/* Footer */

.landing-footer {
  margin: 4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Mobile */

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1rem;
  }

  .landing-cta-row {
    gap: 1rem 1.5rem;
  }

  .landing-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1rem;
  }

  .landing-split__divider {
    display: none;
  }

  .landing-split__col--durable {
    padding: 1.5rem 0 0 1rem;
    border-top: 1px dotted var(--line);
    border-left: 2px solid var(--accent);
  }

  .landing-rail {
    grid-template-columns: 1fr;
  }

  .landing-rail__stage {
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .landing-rail__stage:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .landing-rail__enum {
    margin-top: 0.6rem;
  }

  .landing-provenance {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .landing-run-excerpt {
    margin-top: 0;
  }

  .landing-brief {
    padding: 1.5rem;
  }

  .landing-brief__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .landing-close {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .landing-rule {
    margin: 2rem 0;
  }
}

/* Your cut (reward math) + split-section lede */

.landing-cut {
  display: grid;
  gap: 1.25rem;
}

.landing-cut__title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  max-width: 22ch;
}

.landing-cut__body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 62ch;
}

.landing-cut__math {
  margin: 0.5rem 0 0;
  max-width: 72ch;
}

.landing-cut__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.landing-cut__row:last-child {
  border-bottom: 1px solid var(--line);
}

.landing-cut__row dt {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.landing-cut__row dd {
  margin: 0;
}

.landing-cut__note {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-cut__value {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: right;
  min-width: 15ch;
}

.landing-cut__row--total {
  background: rgba(15, 93, 94, 0.04);
}

.landing-cut__row--total dt {
  font-weight: 700;
}

.landing-cut__row--total .landing-cut__value {
  color: var(--accent);
  font-weight: 700;
}

.landing-cut__guardrail {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 72ch;
}

.landing-split-lede {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 60ch;
}

/* Tip form page */

.tip-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.tip-back {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.tip-back a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted rgba(31, 27, 22, 0.3);
}

.tip-back a:hover {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.tip-header {
  margin: 0 0 2.5rem;
}

.tip-headline {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  line-height: 1.05;
  max-width: 16ch;
  letter-spacing: -0.01em;
}

.tip-subhead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 58ch;
}

.tip-body {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 3rem;
  align-items: start;
}

.tip-form {
  gap: 1.1rem;
}

.tip-form label {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.005em;
}

.tip-form input,
.tip-form textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  margin-top: 0.2rem;
}

.tip-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.tip-form input:focus,
.tip-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-color: var(--accent);
}

.tip-required {
  color: var(--accent-2);
  margin-left: 0.15rem;
}

.tip-submit {
  margin-top: 0.5rem;
  justify-self: start;
  background: var(--accent);
  color: #fffdf8;
  border: 0;
  border-radius: 0;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.tip-submit:hover {
  background: #0b4344;
  filter: none;
}

.tip-form__footnote {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.tip-aside {
  display: grid;
  gap: 0;
  max-width: 34ch;
}

.tip-aside__block {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.tip-aside__block:last-child {
  border-bottom: 1px solid var(--line);
}

.tip-aside__label {
  margin: 0 0 0.4rem;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.tip-aside__body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Thanks page */

.tip-thanks {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.tip-thanks .tip-headline {
  max-width: 22ch;
}

.tip-thanks__body {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 60ch;
}

.tip-thanks__links {
  max-width: 42ch;
}

/* Mobile — tip page + cut math */

@media (max-width: 900px) {
  .landing-cut__row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
  }

  .landing-cut__row .landing-cut__note {
    grid-column: 1 / -1;
    order: 3;
  }

  .landing-cut__value {
    text-align: right;
    min-width: 0;
  }

  .tip-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tip-aside {
    max-width: none;
  }

  .tip-thanks {
    padding: 1rem 0 3rem;
  }
}

/* Top nav (public pages) */

.landing-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0 2rem;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.landing-nav__brand {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

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

.landing-nav__links {
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-nav__link {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.landing-nav__link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.landing-nav__link--active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.landing-nav__cta {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: color 120ms ease, border-color 120ms ease;
}

.landing-nav__cta:hover {
  color: #0b4344;
  border-bottom-color: #0b4344;
}

/* About page */

.landing-about__hero {
  max-width: 72ch;
  padding: 1rem 0 0;
}

.landing-about__hero .landing-headline {
  margin: 0.5rem 0 1.25rem;
  max-width: 16ch;
}

.landing-about__hero .landing-subhead {
  max-width: 60ch;
}

.landing-about__body {
  display: grid;
  grid-template-columns: 65fr 35fr;
  gap: 3rem;
  align-items: start;
}

.landing-about__col {
  max-width: 62ch;
}

.landing-about__col--wide {
  grid-column: 1 / -1;
  max-width: 68ch;
}

.landing-about__title {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  line-height: 1.15;
  max-width: 22ch;
}

.landing-about__para {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}

.landing-about__principles {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
}

.landing-about__principles ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.landing-about__principles li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--ink);
}

.landing-about__principles li:first-child {
  border-top: 0;
}

.landing-about__principles li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Investigations page */

.landing-investigations {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.investigation {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}

.investigation__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.investigation__ident {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.investigation__alias {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
}

.investigation__jur {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
}

.investigation__status {
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.investigation__line {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 78ch;
  color: var(--ink);
}

.investigation__tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.investigation__opened {
  margin: 0;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.landing-investigations__footnote {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 78ch;
}

/* Mobile — nav + about + investigations */

@media (max-width: 900px) {
  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .landing-nav__links {
    gap: 1.25rem;
    justify-content: flex-start;
  }

  .landing-about__body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-about__principles {
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
  }

  .investigation__head {
    gap: 0.5rem;
  }
}
