@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap');

:root {
  color-scheme: light dark;
  --bg: #faf6ef;
  --surface: #fffdf8;
  --surface-alt: #f3ecdd;
  --text: #1c1917;
  --dim: #78716c;
  --border: #e7e0d3;
  --accent: #b3401e;
  --accent-soft: #f6e3da;
  --olive: #5b6236;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1e1a17;
    --surface-alt: #292320;
    --text: #efe9dd;
    --dim: #a39a8d;
    --border: #37302a;
    --accent: #e0704f;
    --accent-soft: #3a231b;
    --olive: #a8b078;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.serif {
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
}

#app { min-height: 100vh; }

.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

.topbar { padding: 1.25rem 0 0.25rem; }
.wordmark { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.tagline { margin: 0.25rem 0 0; font-size: 13px; color: var(--dim); }

main.content { padding: 0.5rem 0 7rem; }

h1.page-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 30px; line-height: 1.2; font-weight: 500;
  margin: 0.5rem 0 0;
}
p.lede { font-size: 16px; line-height: 1.5; color: var(--dim); margin: 0.5rem 0 0; }

.section-label {
  margin: 2rem 0 0.75rem;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
button.row-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--text); font: inherit;
}
button.row-card:active { background: var(--surface-alt); }
.row-card + .row-card { margin-top: 0.5rem; }
.row-title { font-family: "Newsreader", Georgia, serif; font-size: 18px; font-weight: 500; line-height: 1.35; }
.row-meta { margin-top: 0.25rem; font-size: 12px; color: var(--dim); }

.field-label { display: block; font-size: 14px; font-weight: 500; margin: 1.25rem 0 0; }
.field-hint { margin: 0.25rem 0 0; font-size: 14px; color: var(--dim); }
input.text, textarea.text, select.text {
  width: 100%; margin-top: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  padding: 0.75rem 1rem; font-size: 16px; line-height: 1.5;
  outline: none; font-family: inherit;
}
textarea.text.serif { font-family: "Newsreader", Georgia, serif; font-size: 18px; }
input.text:focus, textarea.text:focus, select.text:focus { border-color: var(--accent); }
input.text::placeholder, textarea.text::placeholder { color: var(--dim); }

.btn {
  display: block; width: 100%;
  border-radius: var(--radius); padding: 0.85rem 1rem;
  font-size: 16px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; margin-top: 1.25rem;
  background: var(--accent); color: #fff;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost-accent {
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--accent);
}
.linklike {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font-size: 14px; font-weight: 500; font-family: inherit;
}
.linklike.dim { color: var(--dim); text-decoration: underline; }

.error { margin-top: 0.75rem; font-size: 14px; color: var(--accent); text-align: center; }
.status { margin-top: 0.75rem; font-size: 14px; color: var(--dim); text-align: center; }

.weight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.5rem; }
.weight-btn {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  padding: 0.6rem 0.25rem; font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer;
}
.weight-btn[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}

.pill-filters { display: flex; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text);
  padding: 0.4rem 0.85rem; font-size: 14px; font-weight: 500;
  font-family: inherit; cursor: pointer;
}
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.callout {
  margin-top: 1.5rem; border-radius: var(--radius);
  background: var(--accent-soft); padding: 0.85rem 1rem;
}
.callout .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.callout .engine { font-size: 12px; color: var(--dim); margin-top: 0.25rem; }

.verdict-box {
  border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--surface); padding: 1rem;
}
.horizon { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.horizon dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.horizon dd { margin: 0.15rem 0 0.5rem; font-size: 15px; line-height: 1.5; }

ul.bullets { padding-left: 1.25rem; margin: 0.5rem 0 0; }
ul.bullets li { margin-bottom: 0.5rem; font-size: 15px; line-height: 1.55; }
ul.plain { list-style: none; padding: 0; margin: 0.5rem 0 0; }
ul.plain li { font-size: 14px; line-height: 1.6; }

.price-big { font-family: "Newsreader", Georgia, serif; font-size: 36px; font-weight: 500; margin: 0.25rem 0 0; }
.price-big small { font-size: 18px; color: var(--dim); font-weight: 400; }
.schedule { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 0.75rem; }
.schedule .tier {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem; background: var(--surface);
  border-top: 1px solid var(--border);
}
.schedule .tier:first-child { border-top: none; }
.schedule .tier.current { background: var(--accent-soft); }
.schedule .tier .t-price { font-family: "Newsreader", Georgia, serif; font-size: 18px; font-weight: 500; }
.you-are-here { margin-left: 0.5rem; font-size: 12px; font-weight: 700; color: var(--accent); }
.progress { height: 8px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin-top: 1rem; }
.progress > div { height: 100%; border-radius: 999px; background: var(--accent); }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--border); background: var(--surface);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs-inner { max-width: 42rem; margin: 0 auto; display: flex; }
.tab {
  flex: 1; position: relative; background: none; border: none; cursor: pointer;
  padding: 0.85rem 0.25rem; font-size: 14px; font-weight: 500;
  font-family: inherit; color: var(--dim); text-align: center;
}
.tab[aria-current="page"] { color: var(--accent); }
.tab .bar {
  position: absolute; left: 1rem; right: 1rem; bottom: 4px;
  height: 2px; border-radius: 999px; background: var(--accent);
}
.tab .dot {
  position: absolute; top: 8px; right: 25%;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}

.auth-card { margin-top: 2rem; }
.auth-tabs { display: flex; gap: 0.5rem; margin-top: 1rem; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; margin-top: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0 0; color: var(--dim); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 14px; }
.kv:first-child { border-top: none; }
.kv .k { color: var(--dim); }
.mono { font-family: ui-monospace, monospace; font-size: 13px; }

.center { text-align: center; }
.mt { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.preline { white-space: pre-line; }
