:root {
  --navy: #0c1b33;
  --navy-2: #12243d;
  --ink: #172033;
  --paper: #f4f1ea;
  --paper-2: #fffdf8;
  --line: #e3dcd0;
  --muted: #5c6b7a;
  --gold: #c6a15a;
  --gold-ink: #6a5424;
  --link: #1a4f8b;
  --up: #14663f;
  --down: #8d3a3a;
  --focus: #e2b657;
  --header: 4.25rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.7rem, 7vw, 4.7rem);
}

h2 {
  margin: 0.25rem 0 0.8rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
}

h3 {
  margin: 0.15rem 0 0.55rem;
  font-size: 1.7rem;
}

p {
  margin: 0 0 0.9rem;
}

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  color: #0e3460;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: var(--navy);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
}

.skip:focus {
  top: 0.7rem;
}

.sr-only {
  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(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: 5.5rem;
}

.section-lead {
  max-width: 42rem;
  margin-bottom: 1.6rem;
  color: var(--ink);
}

.section-navy {
  background: var(--navy);
  color: #f4f7fb;
}

.section-navy .eyebrow {
  color: #e2c27a;
}

.section-navy .section-lead {
  color: #d5deea;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  min-height: var(--header);
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f7f5f0;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: #fff;
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.nav a {
  color: #e7eef8;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(78, 128, 186, 0.28), transparent 60%),
    var(--navy);
  color: #f7f5f0;
  padding: 3.4rem 0 4.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 2.5rem 3rem;
  align-items: end;
}

.hero .eyebrow {
  color: #e2c27a;
}

.tagline {
  margin: 0 0 0.9rem;
  max-width: 18em;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: #d7e0ec;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-light {
  background: #f6f3ec;
  color: var(--navy);
}

.btn-light:hover {
  background: #fff;
  color: var(--navy);
}

.btn-ghost {
  border: 1px solid rgba(247, 245, 240, 0.5);
  color: #f7f5f0;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.fine {
  margin: 0.85rem 0 0;
  color: #d5deea;
  font-size: 0.95rem;
}

.fine a,
.section-navy a {
  color: #f3f6fb;
}

.fine a:hover,
.section-navy a:hover {
  color: #fff;
}

.stand {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.2rem 1.25rem 1.05rem;
  background: rgba(8, 16, 32, 0.35);
}

.stand ul {
  list-style: none;
  margin: 0.4rem 0 0.9rem;
  padding: 0;
}

.stand li {
  padding: 0.72rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.4;
}

.stand-demo,
.stand-balance {
  margin: 0;
  color: #d5deea;
  font-size: 0.98rem;
}

.stand-balance {
  margin-top: 0.35rem;
  color: #f7f5f0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stand-demo span,
.firm-kicker {
  display: inline-block;
  margin: 0 0.45rem 0 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(226, 194, 122, 0.75);
  border-radius: 999px;
  color: #e6d3a4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split,
.milestone-layout,
.follow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 3.5rem;
  align-items: start;
}

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

.rules li {
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

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

.rules strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.28rem;
  font-weight: 400;
}

.miles {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mile;
}

.miles li {
  counter-increment: mile;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  font-size: 1.15rem;
}

.miles li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.miles li::before {
  content: counter(mile, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.05rem;
  color: #e2c27a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 1.6rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.stats div {
  background: var(--paper-2);
  padding: 0.95rem 1rem 1rem;
}

.stats dt {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats dd {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stats dd span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.chart {
  margin: 0 0 1.8rem;
  max-width: 100%;
}

.table-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.chart img {
  display: block;
  width: 100%;
  background: #f6f3ec;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.chart figcaption,
.footnote,
.affiliate-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-navy .affiliate-note {
  color: #c9d4e4;
}

.weeks {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  caption-side: top;
  margin: 0 0 0.7rem;
  text-align: left;
  font-weight: 700;
}

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

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.num {
  text-align: right;
}

abbr {
  text-decoration: none;
}

.note-link {
  font-weight: 700;
  text-decoration: none;
}

.firms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.firm {
  margin: 0;
  padding: 1.3rem 1.3rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: var(--navy-2);
}

.firm p:last-child {
  margin-bottom: 0;
}

.firm-link {
  color: inherit;
  text-decoration: none;
}

.firm-link:hover {
  border-color: rgba(226, 194, 122, 0.85);
  color: inherit;
}

.firm-kicker {
  margin-bottom: 0.7rem;
}

.code {
  margin-top: 0.8rem;
}

.code strong {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.firm-go {
  margin-top: 1rem;
  color: #e6d3a4;
  font-weight: 700;
}

.firm-note {
  color: #d5deea;
}

.follow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.follow-list a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
}

.follow-list a:hover {
  border-color: #b7ab96;
  color: var(--ink);
}

.follow-where {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.follow-list a span:last-child {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: 1.55rem;
}

.site-footer {
  background: var(--navy);
  color: #d5deea;
  padding: 2.4rem 0 2.6rem;
}

.disclaimer {
  max-width: 48rem;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.legal {
  margin: 0;
  color: #f4f7fb;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .milestone-layout,
  .follow-layout,
  .firms,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(1100px, calc(100% - 1.5rem));
  }

  .header-inner,
  .hero-grid,
  .split,
  .milestone-layout,
  .follow-layout,
  .firms {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0 0.9rem;
  }

  .nav {
    justify-content: flex-start;
    gap: 0.45rem 0.9rem;
  }

  .hero {
    padding: 2.2rem 0 2.6rem;
  }

  .section {
    padding: 3rem 0;
    scroll-margin-top: 8.5rem;
  }

  .tagline {
    max-width: none;
  }

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

  .stats div:last-child {
    grid-column: auto;
  }

  .weeks thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .weeks table,
  .weeks tbody,
  .weeks tr,
  .weeks td {
    display: block;
    width: 100%;
  }

  .weeks tr {
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.9rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper-2);
  }

  .weeks td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.42rem 0;
    border-bottom: 0;
    text-align: right;
  }

  .weeks td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }

  .weeks td:first-child {
    font-family: Georgia, "Iowan Old Style", Palatino, serif;
    font-size: 1.2rem;
  }
}

@media (max-width: 420px) {
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

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