/* Styles for the static content pages generated from site/. The editor at
   /planner uses Tailwind (src/index.css) and does not load this file. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --header: #111827;
  --radius: 10px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-soft: #131926;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #273042;
    --brand: #60a5fa;
    --brand-dark: #93c5fd;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.25; }
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.4em 0 0.3em; }
h2 { font-size: 1.55rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 0.3em; }

img { max-width: 100%; height: auto; }

kbd {
  font: 0.85em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-soft);
}

code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ── Header / footer ─────────────────────────────────────────────────────── */

.site-header { background: var(--header); color: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.brand:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.site-nav a { color: #d1d5db; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: #fff; }

.site-footer { margin-top: 64px; padding: 32px 0; background: var(--bg-soft); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-start; }
.footer-brand { font-weight: 700; margin: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  background: #2563eb; color: #fff; text-decoration: none; font-weight: 600;
}
.btn:hover { background: #1d4ed8; color: #fff; }
.btn-small { padding: 7px 14px; font-size: 0.9rem; }
.site-nav a.btn { color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--brand-dark); }

/* ── Home ────────────────────────────────────────────────────────────────── */

.hero { padding: 40px 0 8px; text-align: center; }
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .lead { max-width: 680px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-img { margin-top: 32px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }

.features, .cards, .samples { list-style: none; padding: 0; display: grid; gap: 16px; }
.features { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.features li { padding: 18px; background: var(--bg-soft); border-radius: var(--radius); }
.features h3 { margin-top: 0; }
.features p { margin: 0; font-size: 0.95rem; color: var(--muted); }

.steps li { margin-bottom: 8px; }

.samples { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.samples a {
  display: flex; flex-direction: column; padding: 14px 16px; height: 100%;
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.samples a:hover { border-color: var(--brand); }
.samples span { color: var(--muted); font-size: 0.9rem; }

.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card a { text-decoration: none; }
.card p { margin: 0 0 6px; font-size: 0.95rem; }

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

/* ── Articles ────────────────────────────────────────────────────────────── */

.prose { max-width: 720px; }
.crumbs { margin: 24px 0 0; font-size: 0.9rem; color: var(--muted); }
.byline { font-size: 0.9rem; }
.prose li { margin-bottom: 6px; }

.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 20px; margin: 24px 0; }
.toc p { margin: 0 0 4px; }
.toc ol { margin: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }

.notice { padding: 12px 16px; border-left: 4px solid #f59e0b; background: var(--bg-soft); border-radius: 4px; font-size: 0.95rem; }

.cta-box {
  margin: 32px 0; padding: 20px; border-radius: var(--radius); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ── Ads ─────────────────────────────────────────────────────────────────── */

.ad { margin: 32px 0; min-height: 120px; }
.ad-label { margin: 0 0 4px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: center; }
