/* PermaData — pricing. Dark, typographic, one accent. System fonts only. */

:root {
  --bg: #0b0c0f;
  --bg-elev: #111318;
  --bg-code: #0f1114;
  --fg: #e9eaee;
  --muted: #9aa1ac;
  --dim: #6b727d;
  --accent: #53dcf4;
  --accent-ink: #0b0c0f;
  --border: #23262d;
  --border-strong: #2e323b;
  --radius: 6px;
  --maxw: 780px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.mono, code { font-family: var(--mono); }
code.inline {
  font-size: 13px;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--fg);
}

/* ── header ─────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--border); padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.wordmark {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--fg);
}
.wordmark:hover { text-decoration: none; }
.wordmark .accent { color: var(--accent); }
.site-head .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  margin-left: auto;
  margin-right: 0;
}
.site-head .nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-head .nav a:hover { color: var(--fg); text-decoration: none; }
.site-head .nav a[aria-current="page"] { color: var(--fg); }
.site-head .tag { color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 72px 0 44px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 800;
}
.lede {
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 40em;
  font-weight: 400;
}

/* ── buttons ────────────────────────────────────────────── */
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
}
.dl-btn:hover { text-decoration: none; filter: brightness(1.06); }

/* ── sections ───────────────────────────────────────────── */
section.block { padding: 60px 0 4px; }
h2 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  font-weight: 750;
}
h2 .num { color: var(--accent); font-family: var(--mono); font-size: 0.72em; margin-right: 10px; }
.sub { color: var(--muted); margin: 0 0 26px; max-width: 46em; }
h3 { font-size: 16px; margin: 0 0 8px; font-weight: 650; }

/* ── tiers ──────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tier-title { font-size: 17px; font-weight: 700; font-family: var(--mono); letter-spacing: 0.02em; }
.tier-title .sub-t { display: block; font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--dim); margin-top: 2px; }
.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}
.badge.live { color: var(--accent); }
.badge.ship { color: var(--muted); }
.tier-card p { color: var(--muted); margin: 0 0 12px; }
.tier-card p:last-child { margin-bottom: 0; }
.tier-card p strong { color: var(--fg); }
.tier-list { list-style: none; padding: 0; margin: 0 0 14px; }
.tier-list li {
  position: relative;
  padding-left: 20px;
  margin: 7px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.tier-list li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
.tier-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

/* ── formula / rates ────────────────────────────────────── */
.code-block, .copy-row {
  display: flex;
  align-items: stretch;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-block code {
  flex: 1;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  padding: 14px 16px;
  color: var(--fg);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.formula { margin: 0 0 8px; }
.formula code { font-size: 15px; }

.facts { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.fact { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.fact:last-child { border-bottom: 0; }
.fact .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); flex-shrink: 0; padding-top: 2px; }
.fact .v { font-family: var(--mono); font-size: 13.5px; color: var(--fg); word-break: break-all; text-align: right; }

/* ── tables ─────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 600; background: var(--bg-code); }
tr:last-child td { border-bottom: 0; }
td { font-family: var(--mono); font-size: 13px; }
td.file { color: var(--fg); }
td.cost { color: var(--muted); }
td.fee { color: var(--accent); font-weight: 600; }
th.group { text-align: center; color: var(--muted); background: var(--bg-code); }
th.sub { text-align: right; }
td { text-align: right; }
td.file { text-align: left; }
td.fee { text-align: right; }

.notes { list-style: none; padding: 0; margin: 18px 0 0; }
.notes li { position: relative; padding-left: 20px; margin: 8px 0; color: var(--muted); font-size: 14.5px; }
.notes li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }

/* ── callout ────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-elev);
  padding: 20px 24px;
  margin: 0 0 16px;
}
.callout p { margin: 0 0 12px; color: var(--muted); }
.callout p:last-child { margin-bottom: 0; }
.callout p strong { color: var(--fg); }
.callout .big { font-size: 18px; color: var(--fg); font-weight: 700; }

/* ── end CTA ────────────────────────────────────────────── */
.cta-end { padding-bottom: 32px; }

/* ── footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 40px 0 64px; color: var(--dim); }
footer .mono { font-family: var(--mono); font-size: 13px; }
footer .row { margin: 8px 0; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .site-head .nav { order: 3; width: 100%; margin-left: 0; gap: 4px 14px; }
  .site-head .nav a { padding: 8px 2px; min-height: 44px; }
  .site-head .tag { display: none; }
}
@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
  section.block { padding: 44px 0 4px; }
  .site-head .nav { gap: 14px; margin-right: 0; }
  .site-head .nav a { font-size: 12px; }
}
@media (max-width: 420px) {
  .site-head .tag { display: none; }
  .site-head .nav { margin-right: 0; }
}
