/* Shared stylesheet for the static pages (blog, tools, legal). Mirrors the
   app's dark-slate look without pulling in Tailwind. */
:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #16213a;
  --border: #334155;
  --text: #cbd5e1;
  --text-dim: #94a3b8;
  --text-faint: #64748b;
  --white: #f8fafc;
  --indigo: #818cf8;
  --indigo-deep: #4f46e5;
  --amber: #fbbf24;
  --green: #4ade80;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }
header.site {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 760px; margin: 0 auto; padding: 18px 20px;
}
header.site .brand {
  color: var(--white); font-weight: 700; text-decoration: none; font-size: 16px;
}
header.site nav a {
  color: var(--indigo); text-decoration: none; font-size: 14px; font-weight: 600; margin-left: 18px;
  white-space: nowrap;
}
header.site nav a:hover { color: #a5b4fc; }
h1 { color: var(--white); font-size: 34px; line-height: 1.2; margin: 28px 0 10px; }
h2 { color: var(--white); font-size: 24px; margin: 40px 0 12px; }
h3 { color: var(--white); font-size: 18px; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--indigo); }
ul, ol { padding-left: 24px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
.subtitle { color: var(--text-dim); font-size: 18px; margin-bottom: 8px; }
.byline { color: var(--text-faint); font-size: 13px; margin-bottom: 32px; }
table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px;
  display: block; overflow-x: auto;
}
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
th { background: var(--panel); color: var(--white); white-space: nowrap; }
td { background: rgba(30, 41, 59, 0.4); }
.tool {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; margin: 28px 0;
}
.tool h2 { margin-top: 0; font-size: 20px; }
.tool label { display: block; font-size: 13px; color: var(--text-dim); font-weight: 600; margin: 14px 0 4px; }
.tool input, .tool select {
  width: 100%; background: var(--bg); color: var(--white);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 15px;
}
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .tool .row { grid-template-columns: 1fr; } }
.tool .result {
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; margin-top: 20px;
}
.tool .result h3 { margin-top: 0; }
.tool .result .big { color: var(--amber); font-size: 22px; font-weight: 700; }
.tool .result table { margin: 12px 0 4px; }
.tool .note { color: var(--text-faint); font-size: 12.5px; margin: 10px 0 0; }
a.cta {
  display: inline-block; background: var(--indigo-deep); color: var(--white);
  font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 14px;
  margin: 8px 0 16px;
}
a.cta:hover { background: #6366f1; }
.post-card {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; margin-bottom: 16px; text-decoration: none;
}
.post-card h2 { margin: 0 0 6px; font-size: 19px; }
.post-card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.post-card .tag {
  display: inline-block; background: rgba(79, 70, 229, 0.25); color: var(--indigo);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}
footer.site {
  max-width: 760px; margin: 0 auto; padding: 30px 20px 50px;
  color: var(--text-faint); font-size: 13px; text-align: center;
  border-top: 1px solid var(--border);
}
footer.site a { color: var(--text-faint); }
.disclaimer {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 12px; padding: 12px 16px; font-size: 13.5px; color: var(--text-dim);
  margin: 24px 0;
}

@media (max-width: 480px) {
  header.site { align-items: flex-start; gap: 12px; }
  header.site .brand { line-height: 1.25; }
  header.site nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 12px;
    text-align: right;
  }
  header.site nav a {
    margin-left: 0;
    font-size: 13px;
  }
}
