/* Baton landing page. Same tokens as the app (docs/DESIGN.md): warm charcoal, periwinkle actions,
   quota colors that only ever mean "how much is left". */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #1a1918;
  --panel: #222120;
  --raised: #2a2826;
  --line: #35322f;
  --text: #eceae4;
  --muted: #a3a097;
  --faint: #7d7a72;
  --act: #9aa5ff;
  --act-ink: #16172e;
  --full: #5ec98c;
  --half: #e2be5c;
  --low: #ec8d4a;
  --empty: #f06868;
  --off: #34312e;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #f5f3ee;
    --panel: #fbfaf7;
    --raised: #eeebe4;
    --line: #dcd7cd;
    --text: #1f1d1a;
    --muted: #605c54;
    --faint: #847f75;
    --act: #4556d6;
    --act-ink: #ffffff;
    --full: #16804a;
    --half: #926800;
    --low: #b6500e;
    --empty: #c42e34;
    --off: #e2ded5;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--act);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--act);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: color-mix(in srgb, var(--act) 35%, transparent);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}
code {
  background: var(--raised);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.8em;
  line-height: 1.5;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--act);
  color: var(--act-ink);
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 21px/1 var(--serif);
}
.top nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.top nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.top nav a:hover {
  color: var(--text);
  background: var(--raised);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--panel);
  transition: filter 120ms, background 120ms;
}
.btn:hover {
  background: var(--raised);
  text-decoration: none;
}
.btn-primary {
  background: var(--act);
  border-color: var(--act);
  color: var(--act-ink);
}
.btn-primary:hover {
  background: var(--act);
  filter: brightness(1.08);
}
.btn-quiet {
  background: transparent;
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.dl {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dl-note {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--muted);
}
.hero-foot {
  margin-top: 26px;
  font-size: 14px;
  color: var(--faint);
}

/* The board: an HTML replica of the app's "Best account right now" panel, driven by site.js. */
.board-fig {
  margin: 0;
}
.board {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.board-title {
  font: 600 17px/1 var(--serif);
}
.board-clock {
  font-size: 13px;
  color: var(--muted);
}
.best {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--line);
}
.best-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.best-name strong {
  font: 600 26px/1.1 var(--serif);
  transition: opacity 260ms;
}
.best-tool {
  color: var(--muted);
  font-size: 14px;
}
.best-figure {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.big {
  font: 600 52px/0.95 var(--serif);
  color: var(--full);
  transition: color 450ms;
}
.big-cap {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  padding-bottom: 4px;
}
.best-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--act);
  color: var(--act-ink);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c, var(--act));
  flex: none;
}

/* Segmented meters: lit cells = quota left, color = how much is left. */
.meter {
  display: flex;
  gap: 2px;
  height: 8px;
}
.meter i {
  flex: 1;
  border-radius: 1.5px;
  background: var(--off);
  transition: background-color 450ms ease-out;
}
.meter-big {
  height: 26px;
  gap: 3px;
  margin-top: 14px;
}
.meter-big i {
  border-radius: 3px;
}
.meter[data-level="full"] i.on {
  background: var(--full);
}
.meter[data-level="half"] i.on {
  background: var(--half);
}
.meter[data-level="low"] i.on {
  background: var(--low);
}
.meter[data-level="empty"] i.on {
  background: var(--empty);
}
.big[data-level="half"] {
  color: var(--half);
}
.big[data-level="low"] {
  color: var(--low);
}
.big[data-level="empty"] {
  color: var(--empty);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.rows li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 120px 76px;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 14px;
  transition: background 300ms;
}
.rows li.active {
  background: var(--raised);
}
.rows .row-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows .row-name small {
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}
.rows .row-pct {
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}
.rows .meter {
  height: 6px;
}

.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms, transform 260ms;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast-msg {
  font-weight: 600;
  font-size: 14px;
}
.toast-cmd {
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-fig figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--faint);
}
.pause {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}
.pause:hover {
  color: var(--text);
}

/* ---------- problem ---------- */
.problem {
  padding: 48px 0 64px;
}
.problem-text {
  max-width: 30em;
  font: 400 clamp(22px, 2.6vw, 30px) / 1.4 var(--serif);
  color: var(--text);
}
.inline-meter {
  display: inline-flex;
  vertical-align: middle;
  width: 4.2em;
  margin: 0 0.15em;
}
.inline-meter .meter {
  width: 100%;
  height: 0.55em;
}

/* ---------- sections ---------- */
.sec {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.sec-alt {
  background: var(--panel);
}
.sec-head {
  max-width: 42em;
  margin-bottom: 40px;
}
.sec-head h2,
.faq-wrap h2,
.privacy-copy h2 {
  font-size: clamp(30px, 3.4vw, 42px);
}
.sec-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ground);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.5);
}
.tour {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.tour-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tour-list button {
  text-align: left;
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  border-left: 3px solid transparent;
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.tour-list button strong {
  display: block;
  color: var(--text);
  font: 600 19px/1.3 var(--serif);
  margin-bottom: 4px;
}
.tour-list button span {
  font-size: 15px;
  line-height: 1.5;
}
.tour-list button[aria-selected="true"] {
  border-left-color: var(--act);
  background: var(--raised);
}
.tour-list button:hover {
  background: var(--raised);
}

.recommend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  margin-top: 64px;
  align-items: center;
}
.recommend h3,
.grid-copy h3 {
  font-size: 26px;
}
.recommend p,
.grid-copy p {
  margin-top: 10px;
  color: var(--muted);
}
.picks {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.picks li {
  display: grid;
  grid-template-columns: 14px 130px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.picks li:first-child {
  border-top: 0;
}
.pick-name {
  font-weight: 600;
}
.pick-why {
  color: var(--muted);
}

.launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.ran-title {
  font: 600 20px/1.3 var(--serif);
}
.term {
  margin: 14px 0;
  padding: 16px 18px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  line-height: 1.8;
}
.term .prompt,
.tgrid .p {
  color: var(--act);
}
.ran-note {
  color: var(--muted);
  font-size: 15px;
}

.grid-preview {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: center;
}
.tgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pane {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ground);
  min-width: 0;
}
.pane-limit {
  border-color: color-mix(in srgb, var(--act) 60%, transparent);
}
.pane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.pane-pct {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
}
.q-full {
  color: var(--full);
}
.q-half {
  color: var(--half);
}
.q-empty {
  color: var(--empty);
}
.pane pre {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  min-height: 104px;
}
.pane .ok {
  color: var(--full);
}
.pane-stop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 10px;
  border-radius: 6px;
  background: var(--raised);
  font-size: 12px;
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--act);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* tools */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tools {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
.tools th,
.tools td {
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.tools thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  background: var(--panel);
}
.tools tbody th {
  font-weight: 600;
  white-space: nowrap;
}
.tools td {
  color: var(--muted);
}
.mono-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 600 12px/1 var(--mono);
  margin-right: 10px;
  color: var(--muted);
}
.tools-next {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* privacy */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.facts li {
  color: var(--muted);
  padding-left: 18px;
  border-left: 2px solid var(--line);
}
.facts strong {
  color: var(--text);
  display: block;
}
.share {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ground);
  padding: 22px;
}
.share h3 {
  font-size: 21px;
}
.share > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}
.toggles {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.toggles li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.sw {
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--off);
  position: relative;
}
.sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--faint);
}
.sw.on {
  background: var(--act);
}
.sw.on::after {
  left: 17px;
  background: var(--act-ink);
}
.never-label {
  font-size: 13px;
  color: var(--muted);
}

/* how it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.steps li {
  border-top: 2px solid var(--line);
  padding-top: 20px;
}
.step-n {
  font: 600 40px/1 var(--serif);
  color: var(--act);
}
.steps h3 {
  margin-top: 10px;
  font-size: 22px;
}
.steps p {
  margin-top: 8px;
  color: var(--muted);
}

/* faq */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: 48px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font: 600 19px/1.4 var(--serif);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  color: var(--muted);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 40em;
}

/* closing */
.closing {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing-in {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closing h2 {
  font-size: clamp(34px, 4.4vw, 54px);
}
.closing-sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}
.closing .dl {
  justify-content: center;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  background: var(--panel);
}
.foot-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 32px;
  align-items: center;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 19px/1 var(--serif);
}
.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  font-size: 15px;
}
.foot-links a {
  color: var(--muted);
}
.disclaimer {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 13px;
  max-width: 52em;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-in,
  .recommend,
  .launch-grid,
  .grid-preview,
  .privacy,
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .tour {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-list {
    flex-direction: row;
    overflow-x: auto;
  }
  .tour-list button {
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    min-width: 220px;
  }
  .tour-list button[aria-selected="true"] {
    border-bottom-color: var(--act);
  }
  .tour-list button span {
    display: none;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .hero {
    padding-top: 48px;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .nav-opt {
    display: none;
  }
  .sec {
    padding: 64px 0;
  }
  .rows li {
    grid-template-columns: 12px minmax(0, 1fr) 64px 60px;
    padding: 8px 14px;
  }
  .rows .row-name small {
    display: none;
  }
  .board-head,
  .best {
    padding-left: 14px;
    padding-right: 14px;
  }
  .big {
    font-size: 42px;
  }
  .tgrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .picks li {
    grid-template-columns: 12px minmax(0, 1fr);
  }
  .pick-why {
    grid-column: 2;
  }
  .foot-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation: none !important;
  }
}
