/* CoachHand website. Colours follow ios/FitGuide/Views/Shared/Theme.swift:
   deep green on a warm off-white, gold kept small and only as a filled shape. */

:root {
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #1e1e1e;
  --muted: #5d615f;
  --accent: #1f5c4a;
  --on-accent: #ffffff;
  --gold: #c9a84c;
  --line: #e6e1d8;
  --hero-top: #2a7a61;
  --hero-mid: #1c5745;
  --hero-bottom: #103a2e;
  --shadow: 0 18px 50px rgba(16, 58, 46, 0.16);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a19;
    --card: #222726;
    --text: #f2efe9;
    --muted: #a9b0ad;
    --accent: #7cc4a8;
    --on-accent: #10231c;
    --line: #323837;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */

.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav { display: flex; gap: 22px; }
.nav a { color: rgba(255, 255, 255, 0.92); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a { white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { text-decoration: underline; }
@media (max-width: 560px) { .nav a.optional { display: none; } }
/* On the narrowest phones only the brand and Support fit on one line. */
@media (max-width: 400px) {
  .nav { gap: 16px; }
  .nav a.wide-only { display: none; }
}

.plain .site-header { position: static; background: var(--hero-mid); }

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--hero-top), var(--hero-mid) 55%, var(--hero-bottom));
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid; gap: 36px; align-items: end;
  padding-top: 120px;
}
.hero-copy { padding-bottom: 56px; }
.hero h1 .dot { display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--gold); margin-left: 0.05em; }
.hero .lede { margin-top: 20px; font-size: 1.2rem; max-width: 30em; color: rgba(255, 255, 255, 0.92); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: #103a2e; font-weight: 700;
  padding: 13px 20px; border-radius: 999px; text-decoration: none;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.link-light { color: #fff; font-weight: 600; }

.hero-phone { justify-self: center; margin-bottom: -170px; }

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; padding-top: 140px; }
  .hero-copy { padding-bottom: 110px; align-self: center; }
  .hero-phone { margin-bottom: -150px; }
}

/* Phone frame around a real screenshot */

.phone {
  width: 280px; max-width: 78vw;
  padding: 9px; border-radius: 46px;
  background: #0f1211;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img { border-radius: 38px; width: 100%; }

/* Sections */

section { padding: 76px 0; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-lede { margin-top: 14px; color: var(--muted); max-width: 36em; font-size: 1.1rem; }

.features { display: grid; gap: 44px; margin-top: 48px; }
.feature { display: grid; gap: 22px; justify-items: center; text-align: center; }
.feature p { color: var(--muted); margin-top: 8px; max-width: 22em; }
.feature .phone { width: 240px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.note { margin-top: 30px; color: var(--muted); font-size: 0.9rem; text-align: center; }

.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 70px; position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-weight: 800;
}
.steps p { color: var(--muted); margin-top: 6px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

.compare { display: grid; gap: 14px; }
.compare div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--card); }
.compare .yes { border-color: var(--accent); }
.compare h3 { display: flex; align-items: center; gap: 10px; }
.compare p { color: var(--muted); margin-top: 6px; }
.tick, .cross { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; }
.tick { background: var(--accent); color: var(--on-accent); }
.cross { background: var(--line); color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800;
}
.checks strong { display: block; }
.checks span { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p + p { margin-top: 12px; }
.button {
  display: inline-block; margin-top: 18px;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 13px 20px; border-radius: 12px; text-decoration: none;
}

.faq { margin-top: 36px; display: grid; gap: 12px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); margin-top: 10px; }

/* Plain pages (support, not found) */

.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page h2 { font-size: 1.4rem; margin-top: 40px; }
.page p, .page li { color: var(--muted); }
.page p { margin-top: 12px; max-width: 40em; }
.page ol, .page ul { padding-left: 22px; max-width: 40em; }
.page li { margin-top: 6px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
