/* Dashtop site. One stylesheet for every page.
   Colours, type and card styles follow the app (src/styles/tokens.css) and the
   approved "Dashtop — Landing page" canvas. Dark mode follows the visitor's
   system setting. No inline styles are used anywhere (the CSP forbids them). */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2")
    format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --subtle: #f2f4f7;
  --border: #eaecf0;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-body: #344054;
  --text-secondary: #475467;
  --text-muted: #667085;
  --accent: #444ce7;
  --accent-hover: #3538cd;
  --accent-soft: #eef4ff;
  --accent-border: #a4bcfd;
  --accent-fg: #ffffff;
  --ok: #17b26a;
  --ok-text: #067647;
  --ok-soft: #ecfdf3;
  --ok-border: #abefc6;
  --warn: #f79009;
  --warn-text: #b54708;
  --warn-soft: #fffaeb;
  --warn-border: #fedf89;
  --critical: #f04438;
  --critical-text: #b42318;
  --critical-soft: #fef3f2;
  --critical-border: #fecdca;
  --nav-bg: rgb(249 250 251 / 0.9);
  --shadow-card: 0 1px 2px rgb(16 24 40 / 0.05);
  --shadow-window:
    0 1px 2px rgb(16 24 40 / 0.04), 0 40px 72px -28px rgb(16 24 40 / 0.24);
  --shadow-price:
    0 0 0 4px var(--accent-soft), 0 24px 48px -24px rgb(16 24 40 / 0.18);
  --radius: 12px;
  --pad: clamp(16px, 2vw, 24px);
  --font:
    "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --mono:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c111d;
    --surface: #161b26;
    --subtle: #1f242f;
    --border: #1f242f;
    --border-strong: #333741;
    --text: #f5f5f6;
    --text-body: #cecfd2;
    --text-secondary: #94969c;
    --text-muted: #85888e;
    --accent-hover: #6172f3;
    --accent-soft: rgb(68 76 231 / 0.18);
    --accent-border: #6172f3;
    --ok-text: #47cd89;
    --ok-soft: rgb(23 178 106 / 0.12);
    --ok-border: rgb(23 178 106 / 0.35);
    --warn-text: #fdb022;
    --warn-soft: rgb(247 144 9 / 0.12);
    --warn-border: rgb(247 144 9 / 0.4);
    --critical-text: #f97066;
    --critical-soft: rgb(240 68 56 / 0.12);
    --critical-border: rgb(240 68 56 / 0.45);
    --nav-bg: rgb(12 17 29 / 0.86);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-window: 0 40px 72px -28px rgb(0 0 0 / 0.75);
    --shadow-price:
      0 0 0 4px var(--accent-soft), 0 24px 48px -24px rgb(0 0 0 / 0.6);
  }
}

/* ---- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

code {
  font-family: var(--mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -64px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Brand, nav, buttons --------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
}

.mark svg {
  width: 16px;
  height: 16px;
}

.mark-sm {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.mark-sm svg {
  width: 12px;
  height: 12px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.nav-links {
  display: flex;
  flex: 1 1 0;
  justify-content: flex-end;
  min-width: 0;
  gap: 28px;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-quiet {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.btn-quiet:hover {
  background: var(--subtle);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn[disabled] {
  opacity: 0.75;
  cursor: progress;
}

/* A download that does not exist yet: a link to "#" shown as unavailable. */
.btn[aria-disabled="true"] {
  border-color: var(--border-strong);
  background: var(--subtle);
  color: var(--text-secondary);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  color: var(--accent-hover);
}

@media (prefers-color-scheme: dark) {
  .link {
    color: #a4bcfd;
  }

  .link:hover {
    color: #c7d7fe;
  }
}

/* ---- Hero ------------------------------------------------------------------ */

.hero {
  padding-top: clamp(56px, 6vw, 88px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.eyebrow-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.hero h1 {
  max-width: 860px;
  margin-top: 24px;
  font-size: clamp(38px, calc(4.4vw + 8px), 70px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.lede {
  max-width: 660px;
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: clamp(17px, calc(0.4vw + 13px), 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero .waitlist {
  width: 100%;
  max-width: 480px;
  margin-top: 34px;
}

.hero-visual {
  margin-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

/* ---- Waitlist forms ---------------------------------------------------------- */

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font: 400 15px var(--font);
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus-visible {
  border-color: var(--accent);
  outline-offset: 0;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist-row .input {
  flex: 999 1 220px;
  min-width: 0;
  width: auto;
}

.waitlist-row .btn {
  flex: 1 0 auto;
}

.waitlist-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.note-icon {
  display: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.waitlist-note.is-error {
  color: var(--critical-text);
  font-weight: 500;
}

.waitlist-note.is-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 11px 16px;
  border: 1px solid var(--ok-border);
  border-radius: 10px;
  background: var(--ok-soft);
  color: var(--ok-text);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.waitlist-note.is-ok .note-icon {
  display: block;
}

.waitlist.is-done .waitlist-row,
.waitlist.is-done .cta-fields {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---- Dashboard mock (decorative; the wrapper carries the description) ------- */

.mock {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-window);
  color: var(--text-body);
  font-size: 13px;
  line-height: 1.4;
  user-select: none;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.mock-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.mock-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Tabs that do not fit wrap onto a hidden second line, whole, never half cut. */
.mock-tabs {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-content: flex-start;
  min-width: 0;
  height: 26px;
  gap: 0 4px;
  overflow: hidden;
  white-space: nowrap;
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

.mock-tab.is-active {
  background: var(--subtle);
  color: var(--text);
}

.mock-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
}

.mock-tools svg {
  width: 16px;
  height: 16px;
}

.mock-bell {
  position: relative;
}

.mock-bell i {
  position: absolute;
  top: -2px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--critical);
  box-shadow: 0 0 0 2px var(--surface);
}

/* Side by side when there is room; otherwise the cards come first and the
   source list drops underneath (wrap-reverse), as in the design. */
.mock-body {
  display: flex;
  flex-wrap: wrap-reverse;
}

.mock-side {
  flex: 1 0 200px;
  padding: 14px 12px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.mock-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 14px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.mock-side-label {
  padding: 2px 6px 6px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.mock-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-sources li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--text-body);
  font-weight: 500;
}

.mock-sources .dot {
  margin-left: auto;
}

.mock-canvas {
  display: grid;
  flex: 999 1 520px;
  grid-auto-flow: row dense;
  grid-auto-rows: minmax(118px, auto);
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(150px, calc((100% - 36px) / 4)), 1fr)
  );
  min-width: 0;
  gap: 12px;
  padding: 16px;
  background: var(--bg);
}

.card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.span-2 {
  grid-column: span 2;
}

.tall {
  grid-row: span 2;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.card-value {
  margin-top: 12px;
  color: var(--text);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 32px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.card-note {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 12px;
}

.card-line .card-value {
  margin-top: 0;
}

.card-of {
  color: var(--text-muted);
  font-size: 12.5px;
}

.spark-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 20px;
}

.spark-row .card-note {
  white-space: nowrap;
}

.spark {
  flex: 1 1 120px;
  min-width: 60px;
  height: 46px;
  overflow: visible;
}

.spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.rows {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  border-top: 1px solid var(--subtle);
  font-size: 12.5px;
  white-space: nowrap;
}

.rows .label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rows .ago {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 11.5px;
}

.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

.dot.ok {
  background: var(--ok);
}

.dot.warn {
  background: var(--warn);
}

.dot.critical {
  background: var(--critical);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px 0 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pill.ok {
  border-color: var(--ok-border);
  background: var(--ok-soft);
  color: var(--ok-text);
}

.pill.ok i {
  background: var(--ok);
}

.pill.warn {
  border-color: var(--warn-border);
  background: var(--warn-soft);
  color: var(--warn-text);
}

.pill.warn i {
  background: var(--warn);
}

.bar {
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--subtle);
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.w-65 {
  width: 65%;
}

/* ---- Brand marks (Simple Icons; near-black marks use the text colour) -------- */

.logo {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text);
}

.c-cloudflare {
  color: #f38020;
}
.c-netlify {
  color: #00c7b7;
}
.c-supabase {
  color: #3fcf8e;
}
.c-neon {
  color: #34d59a;
}
.c-upstash {
  color: #00e9a3;
}
.c-openai {
  color: #667085;
}
.c-stripe {
  color: #635bff;
}
.c-lemonsqueezy {
  color: #ffc233;
}
.c-paddle {
  color: #fddd35;
}
.c-postmark {
  color: #c9a400;
}
.c-sendgrid {
  color: #1a82e2;
}
.c-twilio {
  color: #f22f46;
}
.c-plausible {
  color: #5850ec;
}
.c-linear {
  color: #5e6ad2;
}
.c-aws {
  color: #ec7211;
}
.c-customjson {
  color: #0284c7;
}
.c-googleads {
  color: #4285f4;
}
.c-metaads {
  color: #0467df;
}

/* ---- Sections ---------------------------------------------------------------- */

.section {
  padding: clamp(72px, 7vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.hero + .section {
  border-top: 0;
}

.section-white {
  background: var(--surface);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 52px;
  text-align: center;
}

h2.display,
.section-head h2 {
  font-size: clamp(28px, calc(2.4vw + 6px), 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 18px;
}

/* Sources */

.tiles {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(min(168px, calc(50% - 5px)), 1fr)
  );
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.tile .logo {
  width: 22px;
  height: 22px;
}

.tile > div {
  min-width: 0;
}

.tile-name {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.tile-cat {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.tile.is-soon {
  border-style: dashed;
  border-color: var(--border-strong);
  background: transparent;
  box-shadow: none;
}

.tile.is-soon .tile-name {
  color: var(--text-secondary);
}

/* Cards in a grid: "Next", Features, Steps */

.grid-next,
.grid-features,
.grid-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid-next {
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(240px, calc((100% - 48px) / 4)), 1fr)
  );
}

.grid-features {
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(280px, calc((100% - 16px) / 2)), 1fr)
  );
}

.grid-steps {
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(240px, calc((100% - 32px) / 3)), 1fr)
  );
}

.panel-card {
  min-width: 0;
  padding: clamp(24px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.grid-next .panel-card {
  padding: clamp(22px, 2.2vw, 26px);
}

.grid-features .panel-card {
  background: var(--bg);
  box-shadow: none;
}

.icon-tile {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .icon-tile {
    color: #a4bcfd;
  }
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.panel-card h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.grid-next .panel-card h3 {
  margin-top: 18px;
  font-size: 17px;
}

.panel-card p {
  margin-top: 8px;
  color: var(--text-secondary);
}

.grid-next .panel-card p {
  font-size: 15px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.grid-steps h3 {
  margin-top: 18px;
}

/* Local-first */

.local {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 64px;
}

.local-copy {
  flex: 1 1 360px;
  min-width: 0;
}

.local-copy p {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 18px;
}

.local-copy .link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
}

.local-list {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-list li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.local-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
}

.local-list h3 {
  font-size: 16px;
  font-weight: 600;
}

.local-list p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Pricing */

.price-card {
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-price);
}

.price-card h3 {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .price-card h3 {
    color: #a4bcfd;
  }
}

.price {
  margin-top: 10px;
  color: var(--text-secondary);
}

.price-num {
  color: var(--text);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-alt {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 28px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-body);
  font-size: 15px;
}

.price-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ok);
}

.price-buy {
  display: grid;
  gap: 10px;
}

.price-foot {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.price-foot + .price-foot {
  margin-top: 8px;
}

/* FAQ */

.faq {
  max-width: 780px;
}

.faq h2 {
  margin-bottom: 36px;
  text-align: center;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 700px;
  padding: 0 4px 22px;
  color: var(--text-secondary);
}

/* Closing call to action */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 32px);
  border-radius: 24px;
  background: var(--accent);
  color: #e0eaff;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta > p {
  margin-top: 12px;
  font-size: 18px;
}

.cta .waitlist {
  width: 100%;
  max-width: 480px;
  margin-top: 30px;
}

.cta-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.cta-label {
  margin-top: 6px;
  color: #e0eaff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.cta .input {
  border-color: #ffffff;
  box-shadow: none;
}

.cta .input:focus-visible {
  outline-color: #ffffff;
  outline-offset: 2px;
}

.cta .btn {
  margin-top: 6px;
  border-color: #ffffff;
  background: #101828;
  color: #ffffff;
}

.cta .btn:hover {
  background: #1d2939;
}

.cta .waitlist-note {
  color: #e0eaff;
}

.cta .waitlist-note.is-error {
  color: #ffffff;
  font-weight: 600;
}

.cta .waitlist-note.is-ok {
  border-color: #ffffff;
  background: #ffffff;
  color: #067647;
}

/* ---- Footer ----------------------------------------------------------------- */

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-quiet {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-legal {
  max-width: 760px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--text);
}

/* ---- Inner pages (purchased, license, download, privacy, terms, thanks) ------- */

.page {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 7vw, 112px);
}

.page .container {
  max-width: 768px;
}

.page .container.wide {
  max-width: 1000px;
}

.page-head h1 {
  font-size: clamp(32px, calc(3.4vw + 12px), 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.page-head .eyebrow {
  margin-bottom: 20px;
}

.page-head .lede {
  margin-top: 18px;
}

.page-head .meta {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.panel {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.panel h2,
.block h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.panel > p,
.block > p {
  margin-top: 10px;
  color: var(--text-secondary);
}

.block {
  margin-top: 56px;
}

.block h3 {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-row .input {
  flex: 999 1 240px;
  min-width: 0;
  width: auto;
}

.field-row .btn {
  flex: 1 0 auto;
}

.field-help,
.form-status {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.form-status.is-ok {
  padding: 11px 16px;
  border: 1px solid var(--ok-border);
  border-radius: 10px;
  background: var(--ok-soft);
  color: var(--ok-text);
  font-size: 15px;
  font-weight: 500;
}

.form-status.is-error {
  color: var(--critical-text);
  font-weight: 500;
}

.key-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.key-box {
  display: block;
  flex: 999 1 260px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--subtle);
  color: var(--text);
  font: 500 14px/1.55 var(--mono);
  overflow-wrap: anywhere;
  user-select: all;
}

.key-row .btn {
  flex: 1 0 auto;
}

.key-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-body);
}

.steps-list .step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  font-size: 13px;
}

.steps-list strong {
  color: var(--text);
  font-weight: 600;
}

.state-card {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.state-card .state-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 10px;
}

.state-card .state-icon svg {
  width: 20px;
  height: 20px;
}

.state-icon.is-warn {
  background: var(--warn-soft);
  color: var(--warn-text);
}

.state-icon.is-error {
  background: var(--critical-soft);
  color: var(--critical-text);
}

.state-card h1 {
  font-size: clamp(24px, calc(2vw + 16px), 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.state-card > p {
  margin-top: 10px;
  color: var(--text-secondary);
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}

.loading-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
}

.callout {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.callout svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent);
}

.callout h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.callout p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .callout svg,
  .local-list svg {
    color: #a4bcfd;
  }
}

.callout.is-warn {
  border-color: var(--warn-border);
  background: var(--warn-soft);
}

.callout.is-warn svg {
  color: var(--warn-text);
}

/* Download */

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.dl-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.dl-card h2 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.dl-card p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 15px;
}

.dl-card .btn {
  margin-top: auto;
}

.dl-card p + .btn,
.dl-card ul + .btn {
  margin-top: 22px;
}

.dl-card .dl-soon {
  display: inline-block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 24px;
}

.cols-2 .panel {
  margin-top: 0;
}

.cols-2 h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Long-form text (privacy, terms) */

.prose {
  margin-top: 40px;
  overflow-wrap: break-word;
}

.prose h2 {
  margin-top: 44px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .prose a {
    color: #a4bcfd;
  }
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Thank-you page (the no-JavaScript fallback after joining) */

.thanks-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.thanks-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 44px) clamp(20px, 5vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.thanks-card h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.thanks-card p {
  margin: 12px 0 28px;
  color: var(--text-secondary);
}

.state-failed {
  display: none;
}

.state-failed:target {
  display: block;
}

.state-failed:target + .state-ok {
  display: none;
}

/* ---- Smaller screens ----------------------------------------------------- */

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-inner .btn {
    margin-left: auto;
  }
}

@media (max-width: 754px) {
  .mock-side {
    border-top: 1px solid var(--border);
    border-right: 0;
  }
}

/* Below ~378px two 150px columns no longer fit: one column, no spans. */
@media (max-width: 380px) {
  .mock-canvas {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .mock-canvas > .card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .input,
  .waitlist-row .input {
    font-size: 16px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .nav,
  .skip {
    display: none;
  }
}
