/* Hushbox site. System fonts only: no external requests, nothing to track. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f3fb;
  --text: #17162b;
  --muted: #5d5b78;
  --accent: #5b47d6;
  --accent-ink: #ffffff;
  --border: #e3e1f0;
  --hero-from: #5b47d6;
  --hero-to: #15163a;
  --radius: 18px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1d;
    --bg-soft: #191930;
    --text: #ecebfa;
    --muted: #a9a7c6;
    --accent: #9c8cff;
    --accent-ink: #15163a;
    --border: #2a2946;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

.hero {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: #fff; text-align: center; padding: 72px 0 80px;
}
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 24px 0 12px; letter-spacing: -0.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: #dcd7ff; max-width: 640px; margin: 0 auto 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 22px; border-radius: 12px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
}
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: .8; line-height: 1; }
.hero .note { margin-top: 14px; font-size: 14px; color: #c9c3ff; }

section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 680px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
section.soft .card { background: var(--bg); }
.card .ico { font-size: 26px; line-height: 1; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.pledge { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pledge li { padding-left: 30px; position: relative; }
.pledge li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price { font-size: 34px; font-weight: 700; margin: 6px 0; }
.card.featured { border: 2px solid var(--accent); }

details { border-bottom: 1px solid var(--border); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

article.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
article.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; letter-spacing: -0.01em; }
article.doc .meta { color: var(--muted); margin: 0 0 32px; }
article.doc h2 { font-size: 22px; margin: 36px 0 8px; }
article.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
article.doc th, article.doc td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 8px; vertical-align: top; }
article.doc th { color: var(--muted); font-weight: 600; }
.callout { background: var(--bg-soft); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.todo { background: #ffef9a; color: #3a3200; padding: 0 4px; border-radius: 4px; }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  nav.site a { margin-left: 14px; font-size: 14px; }
  section { padding: 48px 0; }
}
@media (max-width: 420px) {
  /* Keep the header on one line on small phones: only the last link stays. */
  nav.site a:not(:last-child) { display: none; }
}
.more { margin-top: 20px; }
.price .per { font-size: 16px; font-weight: 400; }
.sub.small { margin-top: 18px; font-size: 14px; }

/* Guides */
h1.page { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.01em; margin: 0 0 12px; }
a.card.link { display: block; color: var(--text); text-decoration: none; }
a.card.link:hover { border-color: var(--accent); }
a.card.link h3 { margin-top: 0; color: var(--accent); }
article.doc ol, article.doc ul { padding-left: 22px; }
article.doc li { margin: 4px 0; }
/* Wide tables scroll inside their own box on phones instead of widening the page. */
@media (max-width: 640px) {
  article.doc table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  article.doc th, article.doc td { min-width: 120px; }
}
