/* Shootappz site — one design system for every page.
   Mobile-first: base rules are for a ~375px phone; min-width queries add tablet/desktop layout.
   Backgrounds stay flat black - no glow behind the logo.

   TYPE ROLES (use these, never ad-hoc sizes)
     h1/h2 .title  Barlow 800, caps    section & app headlines
     h3 .h3        Barlow 700, caps    card headings
     .eyebrow      Barlow 700, caps    orange label above a title, app names
     .tagline      Inter 600, caps     spaced-out motto line
     .lead         Inter 400           paragraph under a title (muted)
     body          Inter 400           running text, lists, FAQ questions
     .small        Inter 400           card text, footer
     .micro        Inter 400           legal line
   BUTTONS
     .btn          orange fill         the one key action of a block
     .btn.line     thin white outline  every other action
     .btn.sm       compact size        nav bars only
*/
:root {
  /* colour */
  --bg: #111112;          /* page */
  --surface: #161617;     /* alternate section band */
  --card: #1f1f22;        /* cards, boxes */
  --line: #2e2e33;        /* dividers, card borders */
  --outline: rgba(244,244,245,.7); /* outline buttons */
  --text: #f4f4f5;        /* headings, primary text */
  --text-2: #d4d4d8;      /* lists, long-form body */
  --muted: #a1a1aa;       /* leads, secondary text */
  --faint: #71717a;       /* legal, fine print */
  --accent: #fd9a11;      /* the logo's orange */
  --accent-hi: #feae42;
  --accent-lo: #dc820a;
  --on-accent: #141414;   /* text on orange */
  --ok: #34c759;          /* done states */

  /* type */
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-title: clamp(32px, 9vw, 56px);
  --fs-h3: 22px;
  --fs-eyebrow: 15px;
  --fs-tagline: 13px;
  --fs-lead: 16px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 13px;

  /* spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* radius */
  --r-btn: 12px;
  --r-card: 16px;
  --r-phone: 24px;

  /* icon sizes */
  --icon-s: 28px;   /* app titles, card icons */
  --icon-m: 52px;   /* first-screen app glyphs */

  --max: 1120px;
  --nav-h: 56px;
  --section-y: var(--s8);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* home page scrolls block by block, like a vertical carousel: every .snap block is one window tall */
html:has(.snap) { scroll-snap-type: y mandatory; }
.snap { height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
section.snap { display: flex; flex-direction: column; justify-content: center; padding: var(--s6) 0; overflow: hidden; }
.snap > .fit { width: 100%; margin: 0 auto; }
.snap footer { padding: var(--s7) 0 0; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.55 var(--body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: var(--section-y) 0; }
section.alt { background: var(--surface); }
/* sections after the apps: no divider, no band - just content on the page black */
section.plain .card { background: none; border: 0; padding: 0; }
section.plain .cards { gap: var(--s6) var(--s5); }

/* ---------- Type roles ---------- */
h1, h2, h3, .title, .h3 { font-family: var(--display); text-transform: uppercase; margin: 0; letter-spacing: .3px; }
h1, h2, .title { font-size: var(--fs-title); font-weight: 800; line-height: .94; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1; }
.eyebrow { display: block; font: 700 var(--fs-eyebrow)/1 var(--display); letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.tagline { font: 600 var(--fs-tagline)/1.7 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 560px; }
.small { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.micro { font-size: var(--fs-micro); line-height: 1.45; color: var(--faint); }
/* vertical rhythm inside a block: eyebrow → title → lead → content */
.eyebrow + .title, .eyebrow + h1, .eyebrow + h2 { margin-top: var(--s3); }
.title + .lead, h1 + .lead, h2 + .lead { margin-top: var(--s4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 50px; padding: 10px var(--s5);
  border-radius: var(--r-btn); border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent);
  font: 600 var(--fs-body)/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { background: var(--accent-lo); transform: translateY(1px); }
.btn.line { background: transparent; color: var(--text); border-color: var(--outline); }
.btn.line:hover { background: rgba(244,244,245,.08); }
.btn.sm { min-height: 40px; padding: 6px var(--s4); font-size: var(--fs-small); }
.btn b { color: var(--accent); font-weight: inherit; margin: 0 -4px; }  /* app name inside a button */
.btn-stack { display: grid; gap: var(--s3); }

/* ---------- Lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); color: var(--text-2); }
.checks li { display: flex; gap: var(--s2); line-height: 1.4; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); }
.card .h3 { margin: var(--s3) 0 var(--s2); }
.icon { width: var(--icon-s); height: var(--icon-s); flex: none; color: var(--accent); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s6); }

/* ---------- Nav (policy pages) ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17,17,18,.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: var(--s4); height: var(--nav-h); }
.logo { font: 800 24px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.logo b { color: var(--text); font-weight: 800; }

/* ---------- Home: first screen ---------- */
.hero {
  /* exactly one window tall: motto, logo and icons are all visible without scrolling */
  height: 100vh; height: 100svh; min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--s5) + 12px) 20px calc(var(--s6) + env(safe-area-inset-bottom)); text-align: center;
}
.hero .tagline { white-space: nowrap; }
/* the logo is about square, so its width is capped by the height left after motto + icons (~240px) */
.hero-logo { width: min(94vw, 420px, calc(100svh - 240px)); }
.hero-logo img { width: 100%; height: auto; }
.hero-apps { display: flex; justify-content: center; align-items: center; gap: 40px; }
.hero-apps img { width: var(--icon-m); height: var(--icon-m); transition: transform .15s; }
.hero-apps a:active img { transform: scale(.94); }
/* the Splitz waveform is thin and low, so it reads smaller than the other glyphs */
.hero-apps a[href="#splitz"] img { transform: scale(1.3); }
.hero-apps a[href="#splitz"]:active img { transform: scale(1.22); }

/* ---------- Home: app sections (text left, one phone tilted 4deg right, like the carousel slides) ---------- */
.app { overflow: hidden; }
/* the 4deg tilt swings the phone bottom ~26px to the left, so the gap must clear it */
.slide { display: grid; grid-template-columns: 1fr 40%; column-gap: var(--s6); align-items: start; }
.slide .txt { min-width: 0; overflow-wrap: break-word; }
.app-title { display: flex; align-items: center; gap: var(--s3); }
.app-title + .title { margin-top: var(--s4); }
.app-icon { width: var(--icon-s); height: var(--icon-s); flex: none; }
.app-icon[src*="splitz"] { transform: scale(1.3); transform-origin: left center; margin-right: var(--s2); }
.app .lead { margin-bottom: var(--s5); }
.phone {
  border-radius: var(--r-phone); padding: 5px; background: #0a0a0a;
  border: 1px solid #3a3a3f;
  box-shadow: 0 24px 50px rgba(0,0,0,.6), inset 0 0 0 1px #000;
}
.phone img { border-radius: calc(var(--r-phone) - 5px); width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.phone.tilt { transform: rotate(4deg); transform-origin: top left; margin: var(--s8) -34px 0 0; }
.app .btn-stack { grid-column: 1 / -1; margin-top: var(--s6); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: var(--s5); }
summary {
  cursor: pointer; list-style: none; padding: var(--s4) 0;
  font-weight: 600; min-height: 56px; display: flex; align-items: center; gap: var(--s3);
}
summary::-webkit-details-marker { display: none; }
/* the + sits right after the question, not at the far edge */
summary::after { content: "+"; flex: none; font-size: 26px; line-height: 1; color: var(--accent); font-weight: 400; transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { color: var(--muted); padding-bottom: var(--s4); }

/* ---------- Footer ---------- */
/* no top border: the FAQ list already closes with a line */
footer { padding: var(--s2) 0 calc(var(--s6) + env(safe-area-inset-bottom)); }
footer .wrap { display: grid; gap: var(--s3); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* ---------- Long-form pages (privacy) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: var(--s6) 20px var(--s8); }
.doc .back { display: inline-block; margin-bottom: var(--s5); text-decoration: none; font-weight: 600; }
.doc h1 + .small { margin-top: var(--s3); }
.doc h2 { font-size: var(--fs-h3); margin: var(--s6) 0 var(--s3); }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: var(--s3); }
.doc ul { padding-left: 20px; }

/* ---------- Testers page ---------- */
.page { max-width: 640px; margin: 0 auto; padding: var(--s6) 20px var(--s8); }
.page-head { text-align: center; margin-bottom: var(--s6); }
.page-head .lead { margin: var(--s4) auto 0; }
.page-icons { display: flex; justify-content: center; gap: 28px; margin-bottom: var(--s5); }
.page-icons img { width: 44px; height: 44px; }
.step { margin-bottom: var(--s4); padding: var(--s5); }
.step-head { display: flex; align-items: center; gap: var(--s3); }
.num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font: 700 var(--fs-small)/1 var(--body);
}
.step.done .num { background: var(--ok); color: #fff; font-size: 0; }
.step.done .num::after { content: "✓"; font-size: 15px; }
.step > p { color: var(--muted); margin: var(--s3) 0 var(--s4); }
.step .btn { width: 100%; }
.note {
  display: flex; gap: var(--s3); align-items: flex-start;
  background: rgba(253,154,17,.08); border: 1px solid rgba(253,154,17,.35);
  border-radius: var(--r-btn); padding: var(--s3) var(--s4); color: var(--text-2); font-size: var(--fs-small);
}
.note b { color: var(--accent); }
.step .note + .btn { margin-top: var(--s4); }
.tapp { background: var(--bg); padding: var(--s4); }
.tapp + .tapp { margin-top: var(--s3); }
.tapp-top { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); }
.tapp-top img { width: var(--icon-s); height: var(--icon-s); flex: none; margin-top: 2px; }
.tapp-top .small { margin-top: var(--s1); }
.tapp .btn-row { display: grid; gap: var(--s2); }
@media (min-width: 480px) { .tapp .btn-row { grid-template-columns: 1fr 1fr; } }
.tapp .btn { min-height: 44px; padding: 8px var(--s3); font-size: var(--fs-small); }  /* = .btn.sm, two side by side */
.tapp.joined .eyebrow::after { content: " ✓"; color: var(--ok); }
.page .faq-list { margin-top: var(--s4); }
.page-foot { margin-top: var(--s7); text-align: center; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
  :root { --section-y: var(--s9); --fs-lead: 17px; --fs-body: 17px; --fs-h3: 24px; --icon-s: 32px; --icon-m: 60px; }
  .hero-apps { gap: var(--s7); }
  .slide { grid-template-columns: 1fr 38%; column-gap: var(--s6); }
  .phone.tilt { margin: var(--s6) 0 0; --r-phone: 30px; padding: 7px; }
  .cards { gap: var(--s4); }
  .card { padding: var(--s5); }
}

/* ================= Desktop ================= */
@media (min-width: 960px) {
  :root { --nav-h: 64px; --fs-tagline: 14px; --fs-lead: 18px; }
  .hero-logo { width: min(640px, calc(100svh - 260px)); }
  :root { --fs-title: 72px; --fs-eyebrow: 18px; --fs-body: 18px; --fs-lead: 20px; --icon-s: 36px; }
  .btn { min-height: 56px; }
  .slide { grid-template-columns: 1fr 360px; grid-template-rows: auto 1fr; column-gap: 120px; max-width: 1120px; }
  .phone.tilt { grid-row: span 2; }
  .app .btn-stack { grid-column: 1; align-self: start; justify-items: start; }
  .cards { grid-template-columns: repeat(4, 1fr); margin-top: var(--s7); }
  .faq-list { margin-top: var(--s6); }
  footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
  footer .micro { flex-basis: 100%; }
}
