/* Unpack — site styles. Dark only, matching the app's Theme.swift tokens. */

:root {
  --base:            #07080A;
  --base-lift:       #101318;
  --surface:         rgba(255, 255, 255, 0.045);
  --surface-strong:  rgba(255, 255, 255, 0.080);
  --hairline:        rgba(255, 255, 255, 0.075);
  --hairline-strong: rgba(255, 255, 255, 0.150);
  --text:            rgba(255, 255, 255, 0.97);
  --text-secondary:  rgba(255, 255, 255, 0.74);
  --text-tertiary:   rgba(255, 255, 255, 0.48);
  --accent:          #4FC79B;
  --accent-dim:      rgba(79, 199, 155, 0.16);
  --sand:            #C5B296;

  --reading: 640px;
  --radius:  20px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text-secondary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* A very slow wash of the accent behind the top of the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(79, 199, 155, 0.10), transparent 70%),
    linear-gradient(var(--base-lift), transparent);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--reading);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

header.nav {
  position: relative;
  z-index: 2;
  padding: 28px 0 0;
}

header.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); }

/* ---------- Type ---------- */

h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 640;
  color: var(--text);
}

h2 {
  margin: 64px 0 16px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text);
}

h3 {
  margin: 36px 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--text);
}

p { margin: 0 0 18px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

strong { color: var(--text); font-weight: 600; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 56px 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */

.hero { padding: 80px 0 24px; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 600;
}

.lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(79, 199, 155, 0.25);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.pill.quiet {
  background: var(--surface);
  border-color: var(--hairline-strong);
  color: var(--text-secondary);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.card h3 { margin: 0 0 8px; }
.card p  { margin: 0; color: var(--text-secondary); }

/* ---------- Plans ---------- */

.plans {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
}

.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.plan .name {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0 0 6px;
}

.plan .price {
  font-size: 26px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 4px;
}

.plan .note { font-size: 14px; color: var(--accent); margin: 0; }

.fineprint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-tertiary);
}

/* ---------- Callout ---------- */

.callout {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--text-secondary);
}

/* ---------- Table ---------- */

.table-scroll { overflow-x: auto; margin-bottom: 18px; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th { color: var(--text); font-weight: 600; }

/* ---------- Doc pages ---------- */

.doc { padding: 56px 0 0; }

.doc h1 {
  font-size: clamp(32px, 6vw, 42px);
  margin-bottom: 10px;
}

.updated {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.doc h2 { font-size: 21px; margin-top: 48px; }

/* ---------- Footer ---------- */

footer {
  margin-top: 96px;
  padding: 32px 0 56px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-tertiary);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a { color: var(--text-tertiary); text-decoration: none; }
footer a:hover { color: var(--text); }

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

/* Something to replace before publishing. Deliberately loud. */
.todo {
  background: rgba(206, 136, 120, 0.14);
  border-bottom: 1px solid rgba(206, 136, 120, 0.5);
  color: #E2A897;
  padding: 0 4px;
  border-radius: 3px;
}
