/* Groovework marketing site.
   Colours come from the app's run sheet (kaiser-ridge-task-tracker.html, the --rsn-* set):
   the darker green that stays readable outdoors, the run sheet blue and the green-to-blue
   line. Fonts are the iPhone system font, the same as the app. Nothing loads from outside. */

:root {
  --bg: #f6f6f3;
  --card: #ffffff;
  --line: #e2e5df;
  --text: #202724;
  --sub: #555c57;          /* 6.4:1 on --bg */
  --green: #1a7f37;        /* app's darker green, 5:1 on white */
  --blue: #2463d6;         /* a shade under the app's #3478f6 so text and buttons pass 4.5:1 */
  --blue-soft: #eef4ff;
  --blue-line: #d7e6ff;
  --btn-text: #ffffff;
  --focus: #2463d6;
  --header-bg: rgba(246, 246, 243, 0.92);
  --shadow: 0 1px 2px rgba(0,0,0,0.05), 0 6px 16px rgba(0,0,0,0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --card: #232325;
    --line: #38383b;
    --text: #f2f2f7;
    --sub: #b4b4ba;
    --green: #4cd964;
    --blue: #7aadff;
    --blue-soft: rgba(52,120,246,0.16);
    --blue-line: rgba(91,155,255,0.35);
    --focus: #7aadff;
    --header-bg: rgba(22, 22, 24, 0.92);
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }

/* ── Header ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }

/* PLACEHOLDER: the final icon comes from 99designs contest 1362837. This dashed box stands in. */
.logo-placeholder {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  border: 2px dashed var(--sub);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; line-height: 1; color: var(--sub); text-transform: uppercase;
}
.wordmark {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--green);
  background: linear-gradient(90deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  color: var(--btn-text);
  background: linear-gradient(90deg, #1a7f37, #2463d6);
  border: 0; cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; }
.site-header .btn { font-size: 0.95rem; padding: 8px 14px; }
@media (max-width: 360px) { .site-header .btn { padding: 8px 10px; font-size: 0.9rem; } .wordmark { font-size: 1.15rem; } }

/* ── Sections ─────────────────────────────── */
section { padding: 56px 0; scroll-margin-top: 72px; }
section + section { border-top: 1px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--sub); }
.small { font-size: 0.95rem; color: var(--sub); }

/* Hero */
.hero { padding-top: 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 34ch; }
.hero-note { margin-top: 14px; font-size: 0.95rem; color: var(--sub); }
@media (min-width: 860px) {
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .phone-placeholder { width: 280px; border-radius: 42px; }
}

/* PLACEHOLDER: iPhone mock-up of the run sheet, with a finish time visible. */
.phone-placeholder {
  justify-self: center;
  width: min(200px, 56vw); aspect-ratio: 9 / 19.5;
  border-radius: 34px; border: 3px dashed var(--sub);
  background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 28px; text-align: center; color: var(--sub);
}
.phone-placeholder .ph-tag {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--sub);
}
.phone-placeholder .ph-text { font-size: 0.95rem; line-height: 1.4; margin: 0; }
.phone-placeholder .ph-line { width: 70%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--blue)); opacity: 0.85; }

/* Pain */
.cards { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; counter-reset: pain; }
.cards li {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow);
}
.cards h3 { margin-bottom: 0.4em; }
.cards p { margin: 0; color: var(--sub); }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.close-line { font-size: 1.1rem; font-weight: 600; max-width: 46ch; margin: 0; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 22px; }
/* align-content: start stops the spare height of a stretched step spreading between its rows,
   which pushed the headings out of line on desktop (Mitch, 21 Nov 2026). */
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; align-content: start; }
.step-num {
  width: 44px; height: 44px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--btn-text);
  background: linear-gradient(135deg, #1a7f37, #2463d6);
}
.steps h3 { margin: 8px 0 0.35em; }
.steps p { margin: 0; color: var(--sub); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } .steps li { grid-template-columns: 1fr; } }
.aside-line {
  padding: 14px 16px; border-radius: 12px;
  background: var(--blue-soft); border: 1px solid var(--blue-line);
  font-size: 0.95rem; margin: 0;
}

/* Founder story */
.story p { font-size: 1.05rem; }
.signoff { font-weight: 700; margin-top: 1.4em; }

/* FAQ */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 16px 2px; font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 1.2rem;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { margin: 0 2px 18px; color: var(--sub); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.contact-list .label { font-weight: 700; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--sub); }
.site-footer p { margin: 0 0 0.6em; }
.site-footer .foot-name { font-weight: 700; color: var(--text); }
.site-footer nav ul { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { display: inline-block; padding: 6px 0; }
.soon { font-size: 0.85em; color: var(--sub); }

/* Simple inner pages (contact, privacy, terms) */
.page { padding: 48px 0 64px; min-height: 50vh; }
.page h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
