/*
 * Static pages (privacy, terms, support, how it works).
 *
 * Framework-free and build-free on purpose: these must render if the SPA never
 * loads — an App Review reviewer, a crawler, or a browser with JS off. Tokens
 * are copied from src/styles/tokens.css; keep them in step by hand.
 */
/* The two brand faces, latin subset. `node scripts/generate-assets.mjs` copies
 * them from @fontsource into public/fonts; these pages never load the app
 * bundle, so they carry their own @font-face. */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
}

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/familjen-grotesk-latin-400-normal.woff2) format('woff2');
}

@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/familjen-grotesk-latin-700-normal.woff2) format('woff2');
}

:root {
  --bg: #fbf8f2;
  --bg-canvas: #ece8df;
  --card: #fff;
  --ink: #1c1a17;
  --ink-2: #6e675d;
  --muted: #9b9384;
  --line: #e3ddd1;
  --line-2: #efeae0;
  --yellow: #ffd23f;
  --orange: #e0642b;
  --green: #3f8f3a;
  --blue: #3a6fd8;
  --pink: #c9327f;
  --pink-tint: #f7d6e8;
  --purple: #7a4fd0;
  --display: 'Bricolage Grotesque Variable', 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Familjen Grotesk', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding: 28px 22px 64px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 48px 40px 80px;
  }
}

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.open-app {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--card);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  margin: 32px 0 0;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 36px 0 0;
}

h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 22px 0 0;
}

p,
ul,
ol {
  margin: 12px 0 0;
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-top: 6px;
}

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

.mark {
  display: inline-block;
  background: var(--yellow);
  padding: 0 10px 2px;
  border-radius: 10px;
  transform: rotate(-2deg);
}

.mark.pink {
  background: var(--pink-tint);
  color: var(--pink);
}

.lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.updated {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 16px;
}

.card.loud {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.formula {
  background: var(--ink);
  color: var(--bg);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  overflow-x: auto;
}

.formula b {
  color: var(--yellow);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

footer.foot {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1.5px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

footer.foot a {
  color: var(--ink-2);
}

.verified {
  color: var(--green);
  font-weight: 700;
}

.estimate {
  color: var(--ink-2);
  font-weight: 700;
}
