/* ==========================================================================
   No Extra Steps — shared stylesheet
   Plain CSS, no build step, no JavaScript. Auto light/dark.
   Per-app accent is set with a `data-app` attribute on <body>.
   ========================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f5f5f7;
  --surface:   #ffffff;
  --text:      #1d1d1f;
  --muted:     #6e6e73;
  --border:    #e3e3e8;
  --accent:    #0071e3;          /* site default (Apple blue) */
  --accent-ink:#ffffff;          /* text on accent */
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
  --radius:    16px;
  --maxw:      720px;            /* readable column for text pages */
  --maxw-wide: 980px;           /* landing / app pages */
}

/* Per-app accent themes (Apple system palette) */
body[data-app="bump"]   { --accent: #34c759; }            /* green  */
body[data-app="tally"]  { --accent: #ff9500; }            /* orange */
body[data-app="caddie"] { --accent: #30b0c7; }            /* teal   */

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #000000;
    --bg-soft: #1c1c1e;
    --surface: #1c1c1e;
    --text:    #f5f5f7;
    --muted:   #98989d;
    --border:  #38383a;
    --accent:  #0a84ff;
    --shadow:  0 1px 3px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  }
  body[data-app="bump"]   { --accent: #30d158; }
  body[data-app="tally"]  { --accent: #ff9f0a; }
  body[data-app="caddie"] { --accent: #40c8e0; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: 2.4rem; margin: 0 0 .4em; }
h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }

p { margin: 0 0 1em; }
strong { font-weight: 600; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.wide { max-width: var(--maxw-wide); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  max-width: var(--maxw-wide);
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
  letter-spacing: -0.02em;
}
.wordmark:hover { text-decoration: none; opacity: .8; }
.wordmark .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* --------------------------------------------------------------------------
   Main / footer
   -------------------------------------------------------------------------- */
main { padding: 56px 0 72px; }

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0;
  font-size: .9rem; color: var(--muted);
}
.site-footer .container { max-width: var(--maxw-wide); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-fine { color: var(--muted); }

/* --------------------------------------------------------------------------
   Landing hero
   -------------------------------------------------------------------------- */
.hero { text-align: center; padding: 40px 0 16px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: .25em; }
.hero .lede {
  font-size: 1.3rem; color: var(--muted); max-width: 34ch; margin: 0 auto 1.2em;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  font-weight: 600; color: var(--accent); margin: 0 0 .6em;
}

/* --------------------------------------------------------------------------
   App grid (landing)
   -------------------------------------------------------------------------- */
.app-grid {
  display: grid; gap: 20px; margin: 48px 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.app-card {
  display: block; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.08);
}
.app-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  color: #fff;
}
.app-card h2 { margin: 0 0 .2em; font-size: 1.3rem; }
.app-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.app-card .more { margin-top: 14px; font-weight: 600; font-size: .92rem; }

/* accent helpers reused by icons/badges */
.ic-bump   { background: #34c759; }
.ic-tally  { background: #ff9500; }
.ic-caddie { background: #30b0c7; }

/* --------------------------------------------------------------------------
   App detail page
   -------------------------------------------------------------------------- */
.app-hero { text-align: center; padding: 24px 0 8px; }
.app-hero .app-icon { margin: 0 auto 18px; width: 76px; height: 76px;
  border-radius: 18px; font-size: 2rem; }
.app-hero h1 { margin-bottom: .15em; }
.app-hero .tagline { font-size: 1.2rem; color: var(--muted); margin: 0 auto 1.4em;
  max-width: 40ch; }

.features { list-style: none; padding: 0; margin: 40px auto; max-width: 560px; }
.features li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.features li:last-child { border-bottom: 0; }
.features .check {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-size: .8rem; margin-top: 2px;
}
.features b { display: block; }
.features span { color: var(--muted); font-size: .95rem; }

/* Buttons / App Store badge */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 28px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 980px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { text-decoration: none; filter: brightness(.95); }
.btn-secondary { background: transparent; color: var(--accent);
  border-color: var(--border); }
.btn-secondary:hover { text-decoration: none; background: var(--bg-soft); }
.btn svg { width: 20px; height: 20px; }
.btn .small { font-size: .7rem; line-height: 1; opacity: .85; font-weight: 500; }
.btn .big { font-size: 1.05rem; line-height: 1.1; font-weight: 600; }
.btn-store { flex-direction: row; text-align: left; }
.btn-store .label { display: flex; flex-direction: column; }

.pill-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 980px; font-weight: 600;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border);
}

.page-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  margin-top: 8px; font-size: .95rem;
}

/* --------------------------------------------------------------------------
   Legal + support (text) pages
   -------------------------------------------------------------------------- */
.legal h1 { margin-bottom: .1em; }
.legal .updated { color: var(--muted); font-size: .95rem; margin-bottom: 2em; }
.legal h2 { font-size: 1.3rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .4em 0; }
.legal small, .fineprint { color: var(--muted); font-size: .85rem; }

.tldr {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px; margin: 0 0 2em;
}
.tldr p { margin: 0; }
.tldr .label {
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  font-weight: 700; color: var(--accent); display: block; margin-bottom: 6px;
}

.note {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin: 1.5em 0;
  font-size: .92rem; color: var(--muted);
}

/* FAQ (support) */
.faq { margin: 32px 0; }
.faq details {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 20px; margin-bottom: 12px; background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem;
  font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 14px 0 6px; color: var(--text); }
.faq .answer p:last-child { margin-bottom: 8px; }

.email-cta { text-align: center; margin: 28px 0 8px; }
.email-cta .addr { font-size: 1.25rem; font-weight: 600; }

/* breadcrumb back-link on inner pages */
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 28px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

@media (max-width: 540px) {
  body { font-size: 16px; }
  main { padding: 36px 0 56px; }
  h1 { font-size: 2rem; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
}
