/* =====================================================================
   Landing + About pages (index.html, about.html).
   Builds on styles.css (colors, fonts, .btn, .panel). Mobile-first.
   ===================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--glass-strong);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.site-header .wrap { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header .nav-link { padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.site-header .nav-link:hover { background: var(--accent); }
.hide-sm { display: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 44px; padding-bottom: 44px; }
.section-head { max-width: 620px; margin-bottom: 22px; }
.section-head h2 { font-size: 1.6rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; margin-bottom: 14px;
  border-radius: 999px; background: var(--primary-soft); color: var(--secondary-fg);
  font-size: .8rem; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 34px; padding-top: 36px; padding-bottom: 28px; align-items: center; }
.hero h1 { font-size: 2.3rem; line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 14px; }
.hero .lede { font-size: 1.08rem; color: var(--muted-fg); max-width: 34rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 12px; }
.hero .cta .btn { min-height: 48px; padding: 12px 20px; font-size: 1rem; }

/* App preview: a few example cards stacked like a phone screen */
.preview { position: relative; display: grid; gap: 12px; max-width: 380px; width: 100%; margin: 0 auto; }
.preview .card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-strong); box-shadow: var(--shadow);
}
.preview .card:nth-child(2) { margin-right: -30px; margin-left: 30px }
.preview .card:nth-child(3) { margin-right: 30px; margin-left: -30px }
.preview .ic {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--primary-soft); color: var(--primary);
}
.preview .ic.flame { background: var(--flame-soft); color: var(--flame); }
.preview .card b { display: block; font-size: .95rem; }
.preview .card span { font-size: .82rem; color: var(--muted-fg); }
.preview .tag-ex { position: absolute; top: -26px; right: 4px; font-size: .75rem; color: var(--muted-fg); }

/* ---------- Features / steps ---------- */
.features { display: grid; gap: 14px; }
.feature .ic {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-bottom: 12px; border-radius: 12px;
  background: var(--primary); color: var(--primary-fg);
}
.feature h3 { font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted-fg); }

.steps { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-display); font-weight: 700;
}
.step h3 { margin-bottom: 2px; }
.step p { margin: 0; color: var(--muted-fg); }

.note-band { display: grid; gap: 16px; align-items: center; }
.note-band ul { margin: 0; padding-left: 1.1rem; color: var(--muted-fg); }
.note-band li + li { margin-top: 4px; }

.final-cta { text-align: center; }
.final-cta h2 { font-size: 1.7rem; }
.final-cta .row { justify-content: center; margin-top: 16px; }

/* ---------- About page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding-top: 30px; padding-bottom: 10px; }
.doc h1 { font-size: 2rem; }
.doc h2 { margin-top: 30px; font-size: 1.35rem; }
.doc .panel + .panel { margin-top: 14px; }
.doc ul { margin: 0 0 .75rem; padding-left: 1.2rem; }
.doc li + li { margin-top: 6px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table th { font-size: .8rem; color: var(--muted-fg); font-weight: 700; }
.data-table td:first-child { font-weight: 600; white-space: nowrap; }
/* Phones: each table row becomes a small card */
@media (max-width: 639px) {
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .data-table td { display: block; padding: 2px 0; border: 0; }
  .data-table td:first-child { white-space: normal; font-size: 1rem; }
  .data-table td:nth-child(2)::before { content: "Why: "; font-weight: 600; }
  .data-table td:nth-child(3)::before { content: "Who sees it: "; font-weight: 600; }
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 30px; padding: 26px 0 36px; border-top: 1px solid var(--glass-strong); color: var(--muted-fg); font-size: .88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { text-decoration: none; font-weight: 600; color: var(--fg); }
.site-footer a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .hide-sm { display: inline-flex; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding-top: 64px; padding-bottom: 48px; }
  .hero h1 { font-size: 3.3rem; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .note-band { grid-template-columns: 1.2fr .8fr; }
}

