/* Claimed — the Ledger: ink on paper, one dark object. */

:root {
  color-scheme: light dark;
  --paper: #F7F5F0;
  --ink: #141413;
  --muted: #55534D;
  --well: #ECE9E1;
  --rule: #D6D2C7;
  --signal: #1B6B4A;
  --on-signal: #FFFFFF;
  --panel: #1C1C1A;
  --on-panel: #F2F0EA;
  --panel-muted: #ABA89F;
  --panel-rule: #3A3935;
  --panel-signal: #7DD3A8;
  --measure: 44rem;
  --wide: 64rem;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141413;
    --ink: #F2F0EA;
    --muted: #ABA89F;
    --well: #1F1F1D;
    --rule: #35342F;
    --signal: #7DD3A8;
    --on-signal: #0C2118;
    --panel: #22221F;
    --panel-rule: #3E3D38;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }

.prose { max-width: var(--measure); }

header.site {
  border-bottom: 1px solid var(--rule);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.brand svg { width: 1.75rem; height: 1.75rem; flex: none; }
/* Route-Tick mark: the app icon's dark appearance on a dark page. */
@media (prefers-color-scheme: dark) {
  .brand .rt-ground { fill: #141618; stroke: #35342F; }
  .brand .rt-eye { fill: #141618; }
  .brand .rt-route { stroke: #F1F2F4; }
  .brand .rt-tick { fill: #34D399; }
  .brand .rt-trail { fill: #52565E; }
}
nav.primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
nav.primary a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
  display: inline-block;
  padding: 0.5rem 0;
}
nav.primary a:hover, nav.primary a[aria-current="page"] { text-decoration: underline; }

main { padding: 2.5rem 0 4rem; }

section { margin: 0 0 3.5rem; }

/* Type */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.1875rem; font-weight: 650; margin-top: 1.75rem; }
section > h2:first-child, .prose > h1:first-child { margin-top: 0; }
p, ul, ol, dl, table { margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }

.lede {
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  color: var(--muted);
  max-width: 38rem;
  text-wrap: pretty;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Hero */

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 1rem;
}
@media (min-width: 56rem) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.75rem 1.375rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.button.primary { background: var(--signal); color: var(--on-signal); }
.button.secondary { background: var(--well); color: var(--ink); border-color: var(--rule); }
.button:hover { text-decoration: none; filter: brightness(1.06); }

.facts {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.facts li {
  margin: 0;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

/* The one dark object: a sample ledger tray */

.tray {
  margin: 0;
  background: var(--panel);
  color: var(--on-panel);
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 18px 40px -24px rgba(20, 20, 19, 0.55);
}
.tray .tray-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--panel-rule);
}
.tray .label { color: var(--panel-muted); font-size: 0.875rem; }
.tray .total {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tray .meter-note { margin: 0 0 0.25rem; }
.tray .total .minor { font-weight: 500; opacity: 0.75; }
.tray .meter {
  margin: 0.875rem 0 0.25rem;
  height: 6px;
  border-radius: 3px;
  background: var(--panel-rule);
  overflow: hidden;
}
.tray .meter span { display: block; height: 100%; width: 27%; background: var(--panel-signal); }
.tray table { width: 100%; margin: 0.5rem 0 0; border-collapse: collapse; }
.tray caption { text-align: left; }
.tray th, .tray td {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--panel-rule);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}
.tray tr:last-child th, .tray tr:last-child td { border-bottom: 0; }
.tray td.amt { text-align: right; white-space: nowrap; padding-left: 0.75rem; }
.tray .route { display: block; font-weight: 600; }
.tray .sub { display: block; color: var(--panel-muted); font-size: 0.875rem; }
.tray .tag { color: var(--panel-signal); }

/* Cards & grids */

.grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 40rem) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--well);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--signal);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.5rem 0;
}

/* Tables (pricing, rates) */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96875rem;
}
table.data caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 0.5rem;
}
table.data th, table.data td {
  padding: 0.75rem 0.75rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
table.data thead th {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 650;
}
table.data tbody th { font-weight: 600; }
table.data td.r, table.data th.r { text-align: right; }

/* Narrow screens: each row becomes a labelled block, no sideways scroll. */
@media (max-width: 36rem) {
  table.data.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data.stack tbody tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }
  table.data.stack tbody th { display: block; flex: 0 0 100%; }
  table.data.stack tbody td { display: block; flex: 1 1 0; min-width: 0; }
  table.data.stack tbody th, table.data.stack tbody td { padding: 0; border: 0; text-align: left; }
  table.data.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
  table.data.stack .num { white-space: normal; }
}

.price-row {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 40rem) { .price-row { grid-template-columns: repeat(2, 1fr); } }
.price {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.price.featured { border: 2px solid var(--signal); }
.price h3 { margin: 0 0 0.25rem; }
.price .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
}
.price p:last-child { margin-bottom: 0; }

/* Steps */

ol.steps { padding-left: 1.25rem; }
ol.steps li { padding-left: 0.25rem; }

/* FAQ */

.faq h3 { margin-top: 2rem; }

/* Footer */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
footer.site ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
footer.site li { margin: 0; }
footer.site a { color: var(--ink); display: inline-block; padding: 0.25rem 0; }
footer.site p { max-width: var(--measure); }

/* Motion & print */

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  :root {
    --paper: #FFFFFF;
    --ink: #000000;
    --muted: #333333;
    --well: #FFFFFF;
    --rule: #BBBBBB;
    --signal: #000000;
    --panel: #FFFFFF;
    --on-panel: #000000;
    --panel-muted: #333333;
    --panel-rule: #BBBBBB;
    --panel-signal: #000000;
  }
  body { font-size: 11pt; }
  header.site nav, .actions, .skip { display: none; }
  .tray { box-shadow: none; border: 1px solid #BBBBBB; }
  a { color: inherit; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  section, .card, .price, table { break-inside: avoid; }
}
