/* Shared stylesheet for the generated content pages (scripts/site/build_site.py).
   Tokens and components follow the hand-written pages so the site reads as one. */
:root {
  --primary: #162244; --primary-light: #273a6f; --primary-dark: #101a34;
  --accent: #f43f5e; --accent-light: #fb7185;
  --text-primary: #ffffff; --text-secondary: #e2e8f0; --text-muted: #b4b3c8;
  --border-soft: rgba(255,255,255,0.14); --surface: rgba(39,58,111,0.7);
  --shadow: 0 20px 50px rgba(0,0,0,0.35); --radius: 18px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Segoe UI", "SF Pro Text", "Inter", system-ui, sans-serif;
  background: radial-gradient(1300px 800px at 15% -10%, #2d4688 0%, transparent 60%),
    radial-gradient(1000px 600px at 95% 0%, #3b2c64 0%, transparent 58%),
    var(--primary-dark);
  color: var(--text-primary); min-height: 100%;
}
a { color: inherit; text-decoration: none; }
main a:not(.btn):not(.card) { color: var(--accent-light); }
main a:not(.btn):not(.card):hover { text-decoration: underline; }
.page { max-width: 920px; margin: 0 auto; padding: 22px 16px 40px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.wordmark { display: inline-flex; align-items: center; gap: 5px; line-height: 1; font-weight: 800; letter-spacing: 0.3px; font-size: 1.2rem; }
.wm-sub { color: #fff; text-transform: uppercase; }
.wm-pill { font-family: "Fraunces", Georgia, serif; font-weight: 700; background: var(--accent); color: #fff; border-radius: 7px; padding: 2px 9px 3px; text-transform: lowercase; }
.nav-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-secondary); }
.nav-cta { color: #fff !important; background: rgba(244,63,94,0.18); border: 1px solid rgba(244,63,94,0.45); padding: 6px 12px; border-radius: 10px; }
.crumbs { color: var(--text-muted); font-size: 0.82rem; margin: 6px 0 22px; }
.crumbs a:hover { color: var(--text-secondary); }
.eyebrow { color: #ffd2dc; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; font-weight: 700; }
h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin: 34px 0 12px; line-height: 1.2; }
h3 { font-size: 1.12rem; margin: 22px 0 8px; }
p, li { color: var(--text-secondary); line-height: 1.65; font-size: 1rem; }
.lead { margin: 0 0 26px; color: var(--text-secondary); font-size: 1.06rem; line-height: 1.55; max-width: 62ch; }
.answer { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 0 0 24px; }
.answer p { margin: 0; color: #fff; }
.muted { color: var(--text-muted); font-size: 0.92rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.step { position: relative; padding: 16px 18px 16px 62px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--surface); margin-bottom: 12px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(140deg, var(--accent), var(--accent-light)); color: #fff; }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; transition: transform 120ms ease, filter 120ms ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary { background: linear-gradient(140deg, var(--accent), var(--accent-light)); color: #fff; box-shadow: 0 10px 22px rgba(244,63,94,0.35); }
.btn-secondary { background: rgba(255,255,255,0.02); border-color: var(--border-soft); color: var(--text-secondary); }
.cta-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 34px 0 10px; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(244,63,94,0.4); background: linear-gradient(140deg, rgba(244,63,94,0.16), rgba(39,58,111,0.6)); }
.cta-box strong { display: block; font-size: 1.05rem; }
.cta-box span { color: var(--text-muted); font-size: 0.92rem; }
/* Media: real renders from the app, shown the way creators post them (9:16). */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,0.22); box-shadow: var(--shadow); background: #000; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-row { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 26px; align-items: start; margin: 8px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; border-radius: 16px; border: 1px solid var(--border-soft); background: var(--surface); overflow: hidden; transition: transform 120ms ease, border-color 120ms ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(244,63,94,0.55); }
.card .thumb { aspect-ratio: 9 / 16; background: #000; }
.card .thumb video, .card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px 14px 14px; }
.card .body strong { display: block; color: #fff; margin-bottom: 4px; }
.card .body span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 12px 0 20px; }
.fact { border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,0.03); }
.fact b { display: block; color: #fff; font-size: 1.05rem; }
.fact span { color: var(--text-muted); font-size: 0.88rem; }
table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; color: var(--text-secondary); }
th { color: #fff; font-weight: 700; background: rgba(255,255,255,0.04); }
.table-wrap { overflow-x: auto; }
.sources { margin-top: 30px; font-size: 0.88rem; }
.sources li { color: var(--text-muted); font-size: 0.88rem; }
details { border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: rgba(255,255,255,0.03); }
summary { cursor: pointer; font-weight: 700; color: #fff; }
.footer { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-muted); font-size: 0.86rem; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.legal { display: flex; gap: 12px; flex-wrap: wrap; }
.legal a:hover { color: var(--text-secondary); }
/* App screenshots: real screens, shown at their own (tall) aspect ratio. */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 14px 0 8px; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow); }
.shot figcaption { color: var(--text-muted); font-size: 0.88rem; margin-top: 8px; text-align: center; }
@media (max-width: 640px) {
  .media-row { grid-template-columns: 1fr; }
  .phone { max-width: 260px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 10px; font-size: 0.9rem; }
}
