/* Marketing site styles. Deliberately hand-written and framework-free: one page of static
   content needs no build step, and plain HTML/CSS is the most crawlable thing there is.

   Tokens mirror client/src/index.css so the site and the app look like one product. They are
   duplicated rather than shared because this site has no build step to import them through -
   if the app's palette changes, change it here too. */

:root {
  --text: #6b6375;
  --text-h: #08060d;
  --bg: #fff;
  --bg-alt: #f7f6f9;
  --border: #e5e4e7;
  --accent: #00609c;
  --accent-ink: #fff;
  --sans: system-ui, 'Segoe UI', Roboto, sans-serif;
  /* One measure for every content column, so the hero and the sections below it share a left
     edge. They had different max-widths and, being centred, started at different x. */
  --measure: 72ch;
  --shadow: rgba(0, 0, 0, 0.08) 0 6px 18px -4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #9ca3af;
    --text-h: #f3f4f6;
    --bg: #16171d;
    --bg-alt: #1c1e26;
    --border: #2e303a;
    --accent: #4d9fd6;
    --accent-ink: #0b1016;
    --shadow: rgba(0, 0, 0, 0.4) 0 6px 18px -4px;
  }
}

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

body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--text-h);
  line-height: 1.25;
  margin: 0 0 12px;
  /* Long words (a URL, a compound) must not force a horizontal scroll on a narrow phone. */
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(32px, 7vw, 48px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 4.5vw, 32px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent);
}

/* ── Header / footer ─────────────────────────────────────────────── */

/* Three columns (1fr auto 1fr) rather than a flex row, matching the app bar: it keeps the
   centre cell centred on the SCREEN regardless of how wide the blocks either side are. On the
   home page that cell is empty - the hero lockup below carries the mark. */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 20px;
}

.site-header > .menu {
  justify-self: start;
}

.site-header > .button {
  justify-self: end;
}

.brand {
  display: inline-flex;
  line-height: 0;
}

.brand img {
  height: 32px;
  width: auto;
}

/* ── Hamburger menu ──────────────────────────────────────────────── */

.menu {
  position: relative;
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  /* A comfortable phone touch target without growing the bar. */
  min-width: 36px;
  min-height: 36px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.menu-button:hover {
  color: var(--text-h);
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* [hidden] alone loses to the display:flex above, so it has to be restated. */
.menu-dropdown[hidden] {
  display: none;
}

.menu-dropdown a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
}

.menu-dropdown a:hover {
  background: var(--border);
  color: var(--text-h);
}

/* ── Hero lockup ─────────────────────────────────────────────────── */

/* The full logo, centred above the headline. The app gives this a third of the viewport;
   here it is capped, because a marketing page has to get to its first sentence. */
.hero-logo {
  display: block;
  text-align: center;
  padding: 8px 0 4px;
}

/* Sized the way the app sizes its hero lockup: bounded by WIDTH, not height. On a phone
   max-width is what binds (80% of a ~350px column => ~107px tall at this 2.61:1 artwork),
   which is what the app renders. Driving it from vh instead made it noticeably larger than
   the app on the same screen. max-height only caps it on a wide desktop. */
.hero-logo img {
  max-width: 80%;
  max-height: 120px;
  width: auto;
  height: auto;
}

.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.button:hover {
  filter: brightness(1.08);
}

.button--ghost {
  padding: 8px 16px;
  background: none;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* ── Sections ────────────────────────────────────────────────────── */

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 16px 0 48px;
  max-width: var(--measure);
  margin-inline: auto;
}

.lede {
  font-size: clamp(18px, 2.4vw, 21px);
  max-width: 62ch;
}

.cta-row {
  margin-top: 28px;
}

.cta-note {
  font-size: 14px;
  margin-top: 12px;
}

/* Narrower than main for readability, and centred within it - left-aligned inside a wide
   page leaves the column hugging one edge on a desktop. */
.section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  max-width: var(--measure);
  margin-inline: auto;
}

/* ── Steps + features ────────────────────────────────────────────── */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 28px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-h);
  font-size: 15px;
  font-weight: 600;
}

.features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 24px;
  /* One column on a phone, two once there is room - no breakpoint needed. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.features li p:last-child {
  margin-bottom: 0;
}

/* ── Privacy / long-form pages ───────────────────────────────────── */

.prose {
  max-width: 68ch;
  margin-inline: auto;
  padding-top: 24px;
  padding-bottom: 48px;
}

.prose h2 {
  margin-top: 36px;
}

.prose h3 {
  margin-top: 24px;
}

.updated {
  font-size: 14px;
}

