/* Marketing pages (home + presentation).
   Colors come from the app's tokens in app/styles.css (loaded first), so light/dark
   mode and any skin apply here too. This file adds only the marketing look:
   Figtree display type, bold heroes, kickers, pill buttons, section bands. */

:root {
  --display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --band: var(--bg2);
  --band-alt: var(--bg);
  --wrap: 1180px;
}
body.site { font-family: var(--display); font-size: 18px; line-height: 1.55; height: auto; min-height: 100%; }
body.site::before { position: fixed; }
.s-wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; position: relative; }

/* ---------- Header ---------- */
.s-head { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .s-head { background: var(--bg); } }
.s-head .s-wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.s-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
.s-logo img { width: 34px; height: 34px; }
.s-logo small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.s-nav { display: flex; gap: 4px; margin-left: auto; }
.s-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.s-nav a:hover, .s-nav a.on { color: var(--text); background: var(--tint-green); }
.s-head .s-btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.s-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.s-icon svg { width: 21px; height: 21px; }
.s-menu { display: none; }
@media (max-width: 980px) {
  .s-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .s-nav.open { display: flex; }
  .s-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .s-menu { display: grid; margin-left: auto; }
  .s-head .s-btn.hide-sm { display: none; }
}
@media (max-width: 420px) { .s-logo small { display: none; } .s-logo { font-size: 0.95rem; } }

/* ---------- Type ---------- */
.s-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.s-kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--green); }
.s-h1 { font-weight: 800; font-size: clamp(48px, 6.6vw, 104px); line-height: 0.96; letter-spacing: -0.04em; margin: 18px 0 0; }
.s-h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; margin: 14px 0 0; }
.s-h3 { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }
.s-lede { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); max-width: 60ch; margin-top: 18px; }
.accent { color: var(--green); }
.dot { color: var(--green); }
.s-micro { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* ---------- Buttons ---------- */
.s-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; font-family: inherit; }
.s-btn svg { width: 20px; height: 20px; }
.s-btn.primary { background: linear-gradient(180deg, var(--primary-a), var(--primary-b)); color: var(--on-primary); box-shadow: 0 10px 34px var(--glow); }
.s-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px var(--glow); }
.s-btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.s-btn.ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Sections ---------- */
.s-sec { position: relative; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; scroll-margin-top: 68px; }
.s-sec.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-grid { display: grid; gap: 22px; margin-top: 44px; }
.s-grid.three { grid-template-columns: repeat(3, 1fr); }
.s-grid.four { grid-template-columns: repeat(4, 1fr); }
.s-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .s-grid.three, .s-grid.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .s-grid.three, .s-grid.four, .s-grid.two { grid-template-columns: 1fr; } }
.s-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 18px 50px var(--shadow); }
.s-card p { color: var(--muted); margin-top: 10px; font-size: 1rem; }
.s-ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: var(--tint-green); color: var(--green); }
.s-ic svg { width: 26px; height: 26px; }
.s-ic.cyan { background: var(--tint-cyan); color: var(--cyan); }
.s-ic.violet { background: var(--tint-violet); color: var(--violet); }
.s-ic.amber { background: var(--tint-amber); color: var(--amber); }

/* Reveal on scroll (JS adds .in). */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; } .rv.d3 { transition-delay: 0.24s; }

/* Parallax layers (JS sets --py). */
.px { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .px { transform: none !important; }
  html { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* Name links go to Ken's chosen Google search (press coverage), not a company. */
.s-google { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.s-google:hover { color: var(--green); }

/* ---------- Terms / legal page ---------- */
.s-legal .s-wrap { max-width: 820px; }
.s-legal h1 { max-width: none; }
.s-legal h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 10px; }
.s-legal p, .s-legal li { color: var(--muted); font-size: 1.02rem; }
.s-legal p { margin: 10px 0 0; }
.s-legal ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.s-legal b { color: var(--text); }
.s-legal a { color: var(--green); }
.s-foot p a { color: inherit; }
