/* splittsy.com — shared by the home, FAQ and contact pages. The app's own
   palette: cream page, warm ink, one orange. */
:root {
  --cream: #F5EFE3;
  --card: #FFFDF9;
  --ink: #1A1814;
  --ink2: #5E584C;
  --ink3: #8C8578;
  --line: #E3D9C8;
  --orange: #FF7A1A;
  --orange-deep: #B54E00;
  --gold: #C9922E;
  --lock: #BA7517;
  --header-bg: rgba(245, 239, 227, 0.9);
  --footer-bg: #1A1814;
  --bg-ink: 94, 88, 76;
  --display: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
/* The dark look (the site default, set on <html>): warm near-black, the same
   orange; screenshots and photos stand out against it. */
:root[data-theme="dark"] {
  --cream: #14120F;
  --card: #1F1C18;
  --ink: #F5EFE3;
  --ink2: #BDB5A6;
  --ink3: #8C8578;
  --line: #36312A;
  --orange-deep: #FF9A50;
  --gold: #E0A53A;
  --lock: #E0A53A;
  --header-bg: rgba(20, 18, 15, 0.88);
  --footer-bg: #0B0A08;
  --bg-ink: 245, 239, 227;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.site-header .logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--orange); transition: background 0.15s, color 0.15s; white-space: nowrap; }
.pill.ghost { color: var(--orange-deep); background: transparent; }
.pill.ghost:hover { background: var(--orange); color: #fff; }
.pill.solid { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, 0.28); }
.pill.solid:hover { background: #F06A0A; }
.pill.big { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* ── Type ───────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-wrap: balance; margin: 0; }
h1 em, h2 span, h3 span { font-style: normal; color: var(--orange); }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange-deep); }

/* ── Simple pages (FAQ, contact) ────────────────────────── */
.page-head { padding-block: 40px 8px; max-width: 760px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -1px; margin-top: 8px; }
.page-head p { color: var(--ink2); margin: 14px 0 0; max-width: 56ch; }
.page-body { padding-block: 24px 80px; max-width: 760px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: #D8D0C1; padding-block: 48px 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer img { height: 34px; width: auto; display: block; }
.site-footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .small { font-size: 13px; color: #9A9384; margin: 12px 0 0; }

@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .site-header .logo img { height: 36px; }
  .nav .pill { min-height: 38px; padding: 0 14px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* The living hub-and-spoke background (bg.js): fixed behind everything. */
.site-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

/* Links to a section (e.g. "How it works") stop below the sticky header,
   so the section's heading is the first thing you see. */
section[id] { scroll-margin-top: 84px; }
