/* StrivFlow — shared site styles */

:root {
  color-scheme: light dark;

  --text: #1a1a2e;
  --muted: #6b6f80;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --border: #e2e4ee;
  --accent: #3a5bd9;
  --accent-soft: #eef1fb;
  --warn-bg: #fdf1e7;
  --warn-border: #f0d5bb;

  --radius: 14px;
  --wrap: 1080px;
  --prose: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6e8f2;
    --muted: #9a9eb2;
    --bg: #14151f;
    --surface: #1b1d2a;
    --border: #2a2c3a;
    --accent: #8ba4ff;
    --accent-soft: #1e2030;
    --warn-bg: #2b2418;
    --warn-border: #443722;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: -0.015em;
  color: var(--text);
  text-decoration: none;
}

.brand svg { display: block; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); }

/* ---------- type ---------- */

h1 { font-size: 2.1rem; line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 10px; }
h2 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.015em; margin: 44px 0 12px; }
h3 { font-size: 1.08rem; margin: 24px 0 6px; }

p, li { font-size: 1rem; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 7px; }

.lede { font-size: 1.12rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.92rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px;
}

/* ---------- sections ---------- */

.section { padding: 60px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- hero ---------- */

.hero { padding: 76px 0 64px; }
.hero h1 { font-size: 2.7rem; max-width: 15ch; }
.hero .lede { max-width: 54ch; margin: 0 0 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #14151f; } }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-note { font-size: 0.88rem; color: var(--muted); }

/* ---------- cards ---------- */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.card h3 { margin: 0 0 6px; font-size: 1.04rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ---------- callouts ---------- */

.note, .warn {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.note { background: var(--accent-soft); }
.warn { background: var(--warn-bg); border-color: var(--warn-border); }

.note p:first-child, .warn p:first-child { margin-top: 0; }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }

/* ---------- definition rows ---------- */

.rows { border-top: 1px solid var(--border); margin: 22px 0 0; }
.row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.row dt { font-weight: 600; margin: 0; }
.row dd { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 72px;
  padding: 44px 0 56px;
  font-size: 0.93rem;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

.footer-cols h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 0 0 12px;
}

.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); }

.footer-org { max-width: 42ch; margin: 0; }
.footer-org strong { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 2.05rem; }
  h2 { font-size: 1.32rem; }
  .section { padding: 46px 0; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .site-header .wrap { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { gap: 16px; width: 100%; margin-left: 0; }
}
