/* Colours match the app's light theme (src/components/ui.tsx): cream page,
   white cards, orange accent. */
:root {
  --bg: #f7f3ec;
  --card: #ffffff;
  --card-alt: #efe9df;
  --text: #1a1714;
  --muted: #6e665c;
  --border: #e2dacd;
  --accent: #e8552b;
  --accent-text: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px;
}
.brand img { width: 32px; height: 32px; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero img.icon { width: 128px; height: 128px; filter: drop-shadow(0 12px 28px rgba(26,23,20,.18)); }
.eyebrow {
  margin: 24px 0 8px; color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.button {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 700; text-decoration: none;
}
.button.secondary { background: var(--card-alt); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lede { color: var(--muted); margin: 0 0 28px; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px;
}
.card .num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 15px;
}
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.features { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features .card h3 { margin-top: 0; }

.family { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.family .card { text-align: center; }
.family .card h3 { margin: 8px 0 2px; font-size: 17px; }
.family .card p { font-size: 14px; }
.family .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.family .live { border-color: var(--accent); }

/* Legal / support pages */
.page { padding-top: 48px; padding-bottom: 24px; }
.page h1 { font-size: clamp(32px, 6vw, 44px); }
.page h2 { font-size: 22px; margin-top: 36px; }
.page .updated { color: var(--muted); margin-top: -4px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
details.card { margin-bottom: 10px; padding: 16px 20px; }
details.card summary { cursor: pointer; font-weight: 700; }
details.card p { margin: 10px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--border); margin-top: 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; }
footer.site a { color: var(--muted); }
footer.site nav { display: flex; gap: 16px; }

/* Clubs and rotations */
.split { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.examples { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.examples li {
  display: flex; gap: 12px; align-items: baseline;
  background: var(--card-alt); border-radius: 14px; padding: 12px 14px; font-size: 16px;
}
.examples .tag { font-weight: 700; white-space: nowrap; }
.examples .what { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span {
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px;
  font-size: 14px; background: var(--card);
}

/* App screenshots tour: a sideways-scrolling row that snaps to each screen */
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc((100vw - 920px) / 2)) 24px;
  scroll-padding-inline: max(20px, calc((100vw - 920px) / 2));
  -webkit-overflow-scrolling: touch;
}
.shot { flex: 0 0 240px; margin: 0; scroll-snap-align: start; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: 28px;
  border: 6px solid var(--text); background: var(--card);
  box-shadow: 0 14px 34px rgba(26,23,20,.16);
}
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.shot figcaption strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.shot .num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: 13px; margin-bottom: 8px;
}
.tour-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tour-nav { display: flex; gap: 8px; margin-bottom: 28px; }
.tour-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
}
.tour-nav button:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 600px) { .tour-nav { display: none; } }
