/* Claimed — the Ledger: ink on paper, dark phones carry the story. */

:root {
  color-scheme: light dark;
  --paper: #F7F5F0;
  --ink: #141413;
  --muted: #55534D;
  --well: #ECE9E1;
  --rule: #D6D2C7;
  --signal: #137A55;
  --on-signal: #FFFFFF;
  --panel: #1C1C1A;
  --on-panel: #F2F0EA;
  --panel-muted: #ABA89F;
  --panel-rule: #3A3935;
  --panel-signal: #7DD3A8;
  --on-panel-signal: #0C2118;
  --bezel: #0E0E0D;
  --shadow: rgb(20 20 19 / 0.4);
  --measure: 44rem;
  --wide: 68rem;
  --radius: 20px;
  --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: #1F1F1D;
    --panel-rule: #3E3D38;
    --shadow: rgb(0 0 0 / 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 5rem; }

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: 30;
}
.skip:focus { top: 1rem; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 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); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
@media (min-width: 40rem) {
  header.site {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  header.site { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.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 li { margin: 0; }
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; }
.home nav.primary { margin-left: auto; }
@media (max-width: 39.99rem) {
  .home nav.primary { order: 3; flex-basis: 100%; }
  .home nav.primary a { padding: 0.25rem 0; }
}

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; }

/* Buttons */

.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: inherit;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.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); }
.button.small-button {
  min-height: 40px;
  padding: 0.4rem 1rem;
  font-size: 0.9375rem;
  background: var(--ink);
  color: var(--paper);
}

/* The QR code only helps someone reading on a computer, and needs the popover API. */
@media (hover: none), (max-width: 47.99rem) { .qr-button { display: none; } }
@supports not selector(:popover-open) { .qr-button { display: none; } }
.qr {
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 60px -20px var(--shadow);
}
.qr::backdrop { background: rgb(20 20 19 / 0.45); }
.qr img { display: block; width: 200px; height: 200px; margin: 0 auto; border-radius: 12px; }
.qr p { margin: 0.75rem 0 1rem; font-weight: 600; }
.qr .qr-close { min-height: 44px; padding: 0.5rem 1.25rem; }

/* Region: US by default; the UK radio swaps screens and prices, with no script. */

.region {
  position: relative;
  display: inline-flex;
  gap: 2px;
  margin: 1.5rem 0 0;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--well);
}
.region input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.region label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}
.region input:checked + label { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px var(--shadow); }
.region input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }

body:has(#region-uk:checked) .only-us,
body:has(#region-us:checked) .only-uk { display: none; }
@supports not selector(:has(a)) {
  .only-uk, .region { display: none; }
}

/* Phones: a real screenshot in a dark bezel. The container's --w sets the width; everything else follows it. */

.phone {
  position: relative;
  width: var(--w);
  flex: none;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1px #3A3935,
    0 40px 60px -36px var(--shadow),
    0 14px 28px -18px var(--shadow);
}
.phone picture { display: block; }
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * 0.135);
  background: var(--well);
}
.phone::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.052);
  left: 50%;
  width: calc(var(--w) * 0.27);
  height: calc(var(--w) * 0.078);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Home */

.home main { padding: 0; }
.home main section { margin-bottom: 5.5rem; }
.home main h2 { text-align: center; font-size: clamp(1.75rem, 4.5vw, 2.5rem); margin-bottom: 2rem; }

.home main h2 + .intro { max-width: 36rem; margin: -1.25rem auto 2rem; text-align: center; color: var(--muted); }

.hero { text-align: center; padding-top: 3.5rem; }
.hero h1 { font-size: clamp(2.5rem, 7.5vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.04; max-width: 14ch; margin: 0 auto 1rem; }
.hero .lede { margin: 0 auto; }
.hero .actions { justify-content: center; }

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

.fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 2.5rem;
  padding: 1rem 0 2.5rem;
  overflow-x: clip;
}
.fan .mid { --w: min(46vw, 300px); z-index: 2; }
.fan .side { --w: min(36vw, 250px); z-index: 1; margin-bottom: 1.5rem; }
.fan .left { transform: translateX(22%) rotate(-7deg); }
.fan .right { transform: translateX(-22%) rotate(7deg); }

.how ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
}
@media (min-width: 48rem) { .how ol { grid-template-columns: repeat(3, 1fr); } }
.how li {
  counter-increment: step;
  margin: 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--well);
  color: var(--muted);
}
.how li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.875rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 700;
}
.how strong { display: block; color: var(--ink); font-size: 1.1875rem; font-family: var(--font-display); }

/* Screens: a swipeable strip on phones, a tab list beside one big phone on wide screens. */

.slide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.slide-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--well);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.slide-nav a:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.showcase {
  position: relative;
  display: flex;
  gap: 1.25rem;
  margin: 0 -1rem;
  padding: 0.5rem 1rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  overscroll-behavior-x: contain;
}
.slide {
  --w: min(64vw, 280px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: var(--w);
  flex: none;
  scroll-snap-align: center;
}
.slide input { display: none; }
.slide figure { margin: 0; order: -1; }
.slide label strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; }
.slide label > span { color: var(--muted); }
.pro, .slide label .pro {
  display: inline-block;
  padding: 0 0.45rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}

@media (min-width: 56rem) {
  .slide-nav { display: none; }
  .showcase {
    display: grid;
    grid-template-columns: minmax(0, 26rem) 340px;
    justify-content: center;
    align-items: center;
    column-gap: 4.5rem;
    row-gap: 0.25rem;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .slide { display: contents; --w: 320px; }
  .slide input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
  .slide label {
    grid-column: 1;
    display: block;
    padding: 0.875rem 1.25rem;
    border-radius: 16px;
    cursor: pointer;
  }
  .slide label:hover { background: var(--well); }
  .slide input:checked + label { background: var(--well); box-shadow: inset 3px 0 0 var(--signal); }
  .slide input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }
  .slide figure { grid-column: 2; grid-row: 1 / span 6; display: none; justify-self: center; }
  .slide input:checked ~ figure { display: block; }
  .slide:nth-child(1) label { grid-row: 1; }
  .slide:nth-child(2) label { grid-row: 2; }
  .slide:nth-child(3) label { grid-row: 3; }
  .slide:nth-child(4) label { grid-row: 4; }
  .slide:nth-child(5) label { grid-row: 5; }
  .slide:nth-child(6) label { grid-row: 6; }
}

/* Pricing & rates */

.plans, .rates {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto 1.25rem;
}
@media (min-width: 40rem) { .plans, .rates { grid-template-columns: 1fr 1fr; } }
.plan {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.plan h3 { margin: 0 0 1rem; font-size: 1.375rem; }
.plan.pro-plan { border: 2px solid var(--signal); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.plan li { position: relative; padding-left: 1.625rem; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 0.4rem;
  height: 0.7rem;
  border: solid var(--signal);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.plan .price { margin: 0 0 0.75rem; color: var(--muted); }
.plan .price:last-child { margin-bottom: 0; }
.plan .price .num {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rate {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.rate:hover .more { text-decoration: underline; }
body:has(#region-us:checked) .us-rate,
body:has(#region-uk:checked) .uk-rate { box-shadow: inset 0 0 0 1px var(--signal); border-color: var(--signal); }
.rate .label { font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rate .figures {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: normal;
}
.rate .more { margin-top: 0.5rem; color: var(--signal); font-weight: 650; }

.home main section.cta {
  margin: 0;
  padding: 4.5rem 0;
  background: var(--panel);
  color: var(--on-panel);
  border-top: 1px solid var(--panel-rule);
  text-align: center;
}
.cta h2 { color: var(--on-panel); }
.home main .cta h2 { margin-bottom: 0.5rem; }
.cta .actions { justify-content: center; }
.cta .button.primary { background: var(--panel-signal); color: var(--on-panel-signal); }
.cta .button.secondary { background: transparent; color: var(--on-panel); border-color: var(--panel-rule); }
.cta p { margin: 0; color: var(--panel-muted); }
.cta a:focus-visible, .cta .button:focus-visible { outline-color: var(--panel-signal); }

/* Notes, tables and steps on the guide pages */

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

.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; }
}

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

.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 { position: static; }
  header.site nav, .actions, .skip, .region, .small-button { display: none; }
  .phone { box-shadow: none; }
  a { color: inherit; }
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  section, .plan, .rate, table { break-inside: avoid; }
}
