/* The Information Machine — one shared stylesheet for every public page.
   No external deps / CDNs so the pages host as pure static files (local now, CloudFront later).
   Neutral, professional brand: a single ink/accent pair, system fonts, generous whitespace. */

:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --faint: #8a8a8a;
  --line: #e6e6e6;
  --bg: #fafafa;
  --card: #ffffff;
  --accent: #2b5fff;
  --accent-ink: #ffffff;
  --ok: #1f7a40;
  --warn: #a15c00;
  --err: #b3261e;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 2rem;
}

.brand .mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.92rem; }
.faint { color: var(--faint); font-size: 0.85rem; }

label { display: block; margin: 1.25rem 0 0.35rem; font-weight: 600; font-size: 0.95rem; }

input[type="email"],
input[type="text"] {
  font: inherit;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.choices { display: grid; gap: 0.5rem; margin-top: 0.4rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.choice input { margin-top: 0.25rem; }
.choice .title { font-weight: 600; }
.choice .desc { color: var(--muted); font-size: 0.9rem; }

.btn {
  font: inherit;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #f3f3f3; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .name { font-weight: 600; }
.row .sub { color: var(--muted); font-size: 0.9rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}
.badge-pro { background: #efe8ff; color: #5b2bd9; }
.badge-paid { background: #fff4e0; color: var(--warn); }

.note { margin-top: 1rem; min-height: 1.2rem; }
.note.ok { color: var(--ok); }
.note.warn { color: var(--warn); }
.note.err { color: var(--err); }

.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}
.icon-ok { background: #e6f4ec; color: var(--ok); }
.icon-warn { background: #fbf0df; color: var(--warn); }
.icon-err { background: #fbe7e6; color: var(--err); }

hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

.foot {
  margin-top: 2rem;
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
}
.foot a { color: var(--muted); }

.spinner {
  display: inline-block;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  vertical-align: -0.2rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cadence toggle (monthly / annual) shared by pricing + the pro trial CTA. */
.cadence { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem; gap: 0.2rem; }
.cadence button {
  font: inherit; font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--muted);
  padding: 0.35rem 0.9rem; border-radius: 999px; cursor: pointer;
}
.cadence button.active { background: var(--ink); color: #fff; }

.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
