/* Recession.Today — Secondary pages (login/register, pricing, legal, blog)
   Shares the observatory palette with landing-concept.css. */
:root {
  --bg: #10100E;
  --bg-2: #161512;
  --surface: rgba(26, 25, 22, 0.6);
  --surface-2: rgba(30, 29, 25, 0.5);
  --border: rgba(233, 229, 220, 0.12);
  --text: #E9E5DC;
  --muted: #77736A;
  --earth: #D9D4C8;
  --signal: #D47A3A;
  --warning: #B85C3C;
  --stress: #8F3838;
  --green: #9caf88;
  /* aliases used by extracted auth/splash markup */
  --accent: #D47A3A;
  --accent2: #e08a4a;
  --accent-dim: rgba(212, 122, 58, 0.08);
  --muted2: #5c5850;
  --cond: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1200px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; }

a { color: inherit; text-decoration: none; }

/* ── Header (same as landing) ── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 68px; padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 16, 14, 0.82);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--earth);
  color: #10100E; font-weight: 900; font-size: 17px;
}
.brand-dot { color: var(--signal); }

.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-login { color: var(--text); }
.nav-cta {
  padding: 9px 16px; border-radius: 9px;
  background: var(--earth);
  color: #10100E !important; font-weight: 800;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--signal); }

/* ── Page shell ── */
.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 90px;
}
.page-narrow { max-width: 720px; }

.eyebrow, .section-label {
  color: var(--muted); font-size: 11px; font-weight: 900;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.page h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04; letter-spacing: -0.045em;
}
.page .lead { color: var(--muted); font-size: 17px; max-width: 640px; }

/* ── Auth cards ── */
.auth-layout { max-width: 460px; margin: 0 auto; }
.auth-sources {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 24px;
}
.auth-sources span {
  font-size: 10px; padding: 3px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); font-weight: 800;
  letter-spacing: 0.1em;
}
.auth-card {
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.card-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.card-sub { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.msg { display: none; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.msg.error { display: block; background: rgba(184, 92, 60, 0.12); color: #d99a8a; border: 1px solid rgba(184, 92, 60, 0.35); }
.msg.success { display: block; background: rgba(156, 175, 136, 0.12); color: var(--green); border: 1px solid rgba(156, 175, 136, 0.35); }
.form-group { margin-bottom: 16px; }
.lbl { display: block; font-size: 11px; color: var(--muted); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.inp {
  width: 100%; padding: 11px 14px;
  background: rgba(16, 16, 14, 0.7);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color 0.2s;
}
.inp:focus { outline: none; border-color: rgba(212, 122, 58, 0.6); }
.forgot { display: inline-block; margin: 2px 0 14px; color: var(--signal); font-size: 12px; cursor: pointer; }
.auth-btn {
  width: 100%; padding: 13px 16px; margin-top: 4px;
  background: var(--earth); color: #10100E;
  border: 0; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  transition: background 0.2s;
}
.auth-btn:hover { background: var(--signal); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-footer { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-footer a { color: var(--signal); cursor: pointer; }
.check-row { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 14px; font-size: 12px; color: var(--muted); }
.check-row a { color: var(--signal); text-decoration: underline; }
.no-card {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: -8px 0 18px; font-size: 12px; color: var(--green); font-weight: 700;
}

/* ── Pricing ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.plan {
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; position: relative;
}
.plan.featured { border-color: rgba(212, 122, 58, 0.45); }
.plan-tag { color: var(--signal); font-size: 10px; font-weight: 900; letter-spacing: 0.16em; margin-bottom: 8px; }
.plan-name { font-size: 20px; font-weight: 900; }
.plan-desc { color: var(--muted); font-size: 13px; margin: 8px 0 18px; line-height: 1.5; }
.plan-price { margin-bottom: 18px; }
.price-amount { font-size: 34px; font-weight: 900; color: var(--earth); letter-spacing: -0.03em; }
.price-period { color: var(--muted); font-size: 12px; }
.price-note { color: var(--muted); font-size: 11px; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { color: var(--muted); font-size: 13px; padding: 6px 0 6px 20px; position: relative; }
.plan li::before { content: "▸"; position: absolute; left: 0; color: var(--signal); }
.plan li small { display: block; color: #5c5850; font-size: 11px; margin-top: 1px; }
.plan .button { width: 100%; }
.billing-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 13px; }

/* pricing extras (ported from legacy pricing.html) */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 30px;
}
.toggle-label { font-size: 13px; font-weight: 800; color: var(--muted); cursor: pointer; letter-spacing: 0.06em; }
.toggle-label.active { color: var(--signal); }
.toggle-switch {
  width: 52px; height: 26px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  position: relative; cursor: pointer;
}
.toggle-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--earth); position: absolute; top: 2px; left: 3px;
  transition: left 0.25s ease;
}
.toggle-switch.yearly .toggle-thumb { left: 27px; background: var(--signal); }
.toggle-save { color: var(--signal); font-size: 12px; font-weight: 800; }
.price-currency { color: var(--earth); font-weight: 800; }
.price-old { color: var(--muted2); text-decoration: line-through; font-size: 12px; }
.price-promo { color: var(--warning); font-size: 10px; font-weight: 900; letter-spacing: 0.12em; margin-bottom: 6px; }
.price-saving { color: var(--muted); font-size: 11px; margin-top: 4px; }
.price-risk-reversal { color: var(--muted); font-size: 11px; margin: -8px 0 14px; }
.plan-badge { position: absolute; top: -10px; right: 14px; background: var(--signal); color: #10100E; font-size: 10px; font-weight: 900; padding: 4px 12px; border-radius: 8px; letter-spacing: 0.08em; }
.plan-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  font-weight: 800; font-size: 14px; text-align: center;
  transition: background 0.2s ease;
}
.plan-btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.plan-btn-outline:hover { border-color: var(--signal); color: var(--signal); }
.plan-btn-primary { background: var(--signal); color: #10100E; }
.plan-btn-primary:hover { background: var(--accent2, #e08a4a); }
.plan-btn-pro { background: var(--earth); color: #10100E; }
.plan-btn-pro:hover { background: var(--signal); }
.annual-link { margin-top: 10px; text-align: center; }
.annual-link a { color: var(--muted); font-size: 12px; }
.annual-link a:hover { color: var(--signal); }
.feature-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.feature-list li { color: var(--muted); font-size: 13px; padding: 5px 0; }
.ft-check { color: var(--signal); margin-right: 8px; font-weight: 900; }

/* trust row */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; margin: 34px 0 10px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.trust-item svg { width: 16px; height: 16px; stroke: var(--signal); fill: none; stroke-width: 1.8; }

/* comparison table */
.compare-section { margin-top: 70px; }
.compare-title { text-align: center; margin-bottom: 26px; }
.compare-title h2 { font-size: 26px; letter-spacing: -0.03em; }
.compare-title p { color: var(--muted); font-size: 14px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cmp-table th { color: var(--text); font-weight: 800; font-size: 12px; }
.cmp-table td.fn { color: var(--muted); }
.cmp-table td.fn small { display: block; color: #5c5850; font-size: 11px; }
.cmp-table .center { text-align: center; }
.cmp-table .chk { color: var(--signal); font-weight: 900; }
.cmp-table .crs { color: var(--warning); font-weight: 900; }
.cmp-table .ltd { color: var(--muted2); }
.cmp-table .cat-row td { background: var(--surface-2); color: var(--earth); font-weight: 900; font-size: 11px; letter-spacing: 0.14em; }

/* ── Legal / about prose ── */
.prose { max-width: 780px; }
.prose h2 { margin: 40px 0 12px; font-size: 22px; letter-spacing: -0.02em; }
.prose h3 { margin: 26px 0 8px; font-size: 16px; color: var(--earth); }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose a { color: var(--signal); }
.prose ul { padding-left: 22px; }
.updated-line { color: #5c5850; font-size: 12px; margin-top: 8px; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.blog-card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: rgba(212, 122, 58, 0.4); }
.blog-card .bc-date { color: var(--signal); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; }
.blog-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.blog-card p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.blog-card .bc-link { color: var(--signal); font-size: 13px; font-weight: 800; }
.blog-post { max-width: 760px; }
.blog-post .bp-date { color: var(--signal); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; }
.blog-post h1 { margin: 10px 0 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.04em; }
.blog-post .prose { max-width: none; }

/* blog cards (generated by blog_engine.build_index_cards) */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.post-card {
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s;
}
.post-card:hover { border-color: rgba(212, 122, 58, 0.4); }
.post-meta { color: var(--signal); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; }
.post-card h2 { margin: 0; font-size: 17px; line-height: 1.35; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--signal); }
.post-card p { color: var(--muted); font-size: 13px; margin: 0; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag { font-size: 10px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-family: var(--mono); }
.read-link { color: var(--signal); font-size: 13px; font-weight: 800; }
.read-link:hover { text-decoration: underline; }

/* blog post page */
.meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.cta-box {
  margin: 40px 0 20px; padding: 26px;
  border: 1px solid rgba(212, 122, 58, 0.35); border-radius: var(--radius);
  background: var(--surface); text-align: center;
}
.cta-box h2 { font-size: 22px; margin: 0 0 8px; }
.cta-box p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 10px;
  background: var(--earth); color: #10100E; font-weight: 800;
  transition: background 0.2s;
}
.cta-btn:hover { background: var(--signal); }
.cta-sub { margin-top: 14px; color: var(--muted); font-size: 12px; }
.back-link { color: var(--signal); font-size: 14px; font-weight: 800; }
.back-link:hover { text-decoration: underline; }

/* ── Footer (same as landing) ── */
.footer {
  display: flex; justify-content: space-between; gap: 40px;
  padding: 50px max(20px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--border); color: var(--muted);
}
.footer p { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 13px; }
.footer-disclaimer { color: #55524a; font-size: 11px !important; max-width: 420px; }

@media (max-width: 1000px) {
  .nav a:not(.nav-login):not(.nav-cta) { display: none; }
  .plans, .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .site-header { padding: 0 16px; }
  .page { width: min(100% - 28px, var(--max)); }
  .plans, .blog-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; padding: 40px 20px; }
}
