/* The Thingstead look, taken from the app's styles.css: navy and bright
   yellow, white rounded cards on a navy-tinted background (deep navy in
   dark mode). Yellow is a fill, never thin text on white. */
:root {
  --bg: #e8eef5;
  --surface: #ffffff;
  --text: #0b2540;
  --muted: #4f6478;
  --line: #d5dee8;
  --fill: rgb(11 37 64 / 0.08);
  --accent: #ffd60a;
  --accent-ink: #0b2540;
  --accent-soft: #fff4b8;
  --link: #0b2540;
  --tile: radial-gradient(circle at 50% 30%, #183e64, #0b2540 75%);
  --tile-text: #ffffff;
  --tile-muted: #a9c6dd;
  --stone-off: #2b4e73;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(11 37 64 / 0.05), 0 6px 20px rgb(11 37 64 / 0.08);
  --page: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b2540;
    --surface: #133d63;
    --text: #eef7ff;
    --muted: #a9c6dd;
    --line: #24507a;
    --fill: rgb(143 211 244 / 0.13);
    --accent-soft: #0d2f4f;
    --link: #ffd60a;
    --tile: radial-gradient(circle at 50% 30%, #1d4a75, #133d63 75%);
    --stone-off: #2f5a85;
    --shadow: 0 0 #0000;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 17px/1.5 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------ header */

.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
}
.top-inner, main, .foot-inner { max-width: var(--page); margin: 0 auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.primary) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:not(.primary):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .nav a:not(.primary) { display: none; } }

/* ------------------------------------------------------------ buttons */

.primary, .ghost {
  display: inline-block; border-radius: 999px; padding: 12px 22px;
  font-weight: 700; text-decoration: none;
}
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { filter: brightness(1.04); }
.primary.small { padding: 8px 16px; font-size: 0.95rem; }
.ghost { color: var(--link); box-shadow: inset 0 0 0 2px currentColor; }
.ghost:hover { background: var(--fill); }

/* ------------------------------------------------------------ main */

main { padding: 0 16px 40px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding: 56px 0 72px;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; } }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent-soft); font-weight: 700; font-size: 0.85rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.lede strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { color: var(--muted); font-size: 0.9rem; margin: 18px 0 0; }

/* ------------------------------------------------------------ demo list */

.demo { max-width: 460px; width: 100%; justify-self: center; }
.wallet { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--tile); color: var(--tile-text); }
.wallet-words { flex: 1; min-width: 0; }
.wallet-head { margin: 0; font-weight: 650; }
.wallet-sub { margin: 1px 0 0; color: var(--tile-muted); font-size: 0.82rem; }
.dots { display: grid; grid-template-columns: repeat(5, 11px); gap: 5px; flex: none; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--stone-off); transition: background-color 0.15s; }
.dot.full { background: var(--accent); }

.section-head { margin: 22px 18px 7px; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.items {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.item {
  position: relative; display: grid; grid-template-columns: 46px 1fr auto;
  align-items: center; gap: 12px; padding: 11px 12px 11px 16px;
}
.item + .item::before { content: ""; position: absolute; top: 0; right: 0; left: 74px; border-top: 1px solid var(--line); }
.score {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; background: var(--fill);
}
.mine-has .score { background: var(--accent); color: var(--accent-ink); }
.score-num { font-size: 1.25rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.score-label { font-size: 0.68rem; font-weight: 500; opacity: 0.7; }
.title { margin: 0; font-weight: 500; font-size: 1rem; min-width: 0; }
.mine { display: flex; align-items: center; gap: 6px; }
.mine-num { min-width: 16px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.step {
  width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill);
  color: inherit; cursor: pointer; font: 700 1.15rem/1 inherit;
}
.step.plus { background: var(--accent); color: var(--accent-ink); }
.step:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 400px) { .item { gap: 8px; padding-left: 12px; } .item + .item::before { left: 66px; } }

/* ------------------------------------------------------------ sections */

.block { padding: 40px 0; }
.block > h2, .everywhere h2, .name h2, .final h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 24px;
}
h3 { font-size: 1.1rem; margin: 0 0 6px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { padding: 24px; }
.steps p { margin: 0; color: var(--muted); }
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
code { font: 600 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fill); padding: 1px 6px; border-radius: 6px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature svg {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 10px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
  fill: none; stroke: var(--link); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.feature p { margin: 0; color: var(--muted); }

.everywhere {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 36px; background: var(--tile); color: var(--tile-text);
}
.everywhere h2 { margin-bottom: 12px; }
.everywhere p { margin: 0; color: var(--tile-muted); }
@media (max-width: 760px) { .everywhere { grid-template-columns: 1fr; padding: 26px; } }
.device-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.device-list li { padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.name { display: flex; gap: 24px; align-items: flex-start; max-width: 760px; }
.name img { flex: none; border-radius: 16px; }
.name h2 { margin-bottom: 8px; }
.name p { margin: 0; color: var(--muted); }
.name em { color: var(--text); }

.final { text-align: center; padding-bottom: 24px; }
.final h2 { margin-bottom: 6px; }
.final p { color: var(--muted); margin: 0 0 20px; }

/* ------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px); color: var(--muted); font-size: 0.9rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); }
