/* FitDIY marketing site — single stylesheet, no build step.
   Palette sampled from the app icon (green trend curve on dark slate). */

:root {
  --bg: #0e141c;
  --bg-raised: #17202b;
  --line: #263240;
  --text: #e8eef4;
  --dim: #9fb0bf;
  --accent: #3ddc97;
  --accent-deep: #2c8867;
  --wrap: 72rem;
  --prose: 44rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.site { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.site a { color: var(--dim); font-size: 0.95rem; }
nav.site a:hover { color: var(--text); text-decoration: none; }
nav.site a.store {
  color: var(--bg); background: var(--accent);
  padding: 0.3rem 0.8rem; border-radius: 999px; font-weight: 600;
}
nav.site a.store:hover { background: #55e6a8; }
@media (max-width: 34rem) {
  nav.site { margin-left: 0; flex-basis: 100%; gap: 0.9rem; }
}

/* ---------- hero ---------- */

.hero { padding: 4rem 0 3rem; }
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem; align-items: center;
}
.kicker {
  color: var(--accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.12; letter-spacing: -0.02em; }
.hero p.sub { color: var(--dim); font-size: 1.2rem; margin: 1.2rem 0 1.8rem; }
.cta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.cta .badge img { width: 160px; height: 53.5px; }
.cta a.more { font-size: 0.98rem; }
.hero .phone { justify-self: center; }
.hero .phone img { width: min(294px, 72vw); border-radius: 18px; }

@media (max-width: 46rem) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ---------- sections ---------- */

section.band { padding: 3.25rem 0; border-top: 1px solid var(--line); }
section.band h2 { font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 0.9rem; }
section.band > .wrap > p.lead, section.band > .prose > p.lead { color: var(--dim); max-width: var(--prose); }

/* screenshot strip */
.shots {
  display: flex; gap: 1.25rem; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.shots figure { scroll-snap-align: start; flex: 0 0 auto; }
.shots img { width: min(294px, 78vw); border-radius: 16px; }

/* feature grid */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  margin-top: 1.75rem;
}
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.4rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.card p, .card li { color: var(--dim); font-size: 0.97rem; }
.card ul { list-style: none; }
.card li { padding-left: 1.1rem; position: relative; margin-top: 0.35rem; }
.card li::before { content: "–"; position: absolute; left: 0; color: var(--accent-deep); }

/* check list (privacy) */
ul.checks { list-style: none; max-width: var(--prose); margin-top: 1.25rem; }
ul.checks li { padding: 0.35rem 0 0.35rem 1.9rem; position: relative; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0.25rem; top: 0.35rem;
  color: var(--accent); font-weight: 700;
}
ul.checks li span { color: var(--dim); }

.pill {
  display: inline-block; background: var(--bg-raised); border: 1px solid var(--accent-deep);
  color: var(--accent); border-radius: 999px; padding: 0.25rem 0.9rem;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem;
}

/* ---------- articles / prose pages ---------- */

main.page { padding: 3rem 0 4rem; }
main.page h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
main.page .meta { color: var(--dim); font-size: 0.92rem; margin-bottom: 2rem; }
main.page h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; letter-spacing: -0.01em; }
main.page h3 { font-size: 1.12rem; margin: 1.8rem 0 0.6rem; }
main.page p { margin: 0.9rem 0; }
main.page ul, main.page ol { margin: 0.9rem 0 0.9rem 1.4rem; }
main.page li { margin: 0.35rem 0; }
main.page em { color: var(--dim); }
main.page hr { border: 0; border-top: 1px solid var(--line); margin: 2.25rem 0; }
main.page blockquote {
  border-left: 3px solid var(--accent-deep); padding: 0.2rem 0 0.2rem 1.1rem;
  color: var(--dim); margin: 1.2rem 0;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
code { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.35em; }
pre {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.2rem; overflow-x: auto; margin: 1.2rem 0; line-height: 1.5;
}
pre code { background: none; border: 0; padding: 0; }

.table-scroll { overflow-x: auto; margin: 1.2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem 0.9rem; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 600; white-space: nowrap; }
td:first-child { white-space: nowrap; }

/* changelog + blog index */
article.entry { border-top: 1px solid var(--line); padding: 1.9rem 0; }
article.entry:first-of-type { border-top: 0; padding-top: 0.5rem; }
article.entry h2 { margin-top: 0; }
article.entry .meta { margin-bottom: 0.8rem; }
article.entry h2 a { color: var(--text); }
article.entry h2 a:hover { color: var(--accent); text-decoration: none; }

/* ---------- footer ---------- */

footer.site { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2.5rem 0 3rem; }
footer.site .wrap { display: grid; gap: 1.1rem; }
footer.site .links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.95rem; }
footer.site .links a { color: var(--dim); }
footer.site .links a:hover { color: var(--text); }
footer.site p { color: var(--dim); font-size: 0.88rem; max-width: 56rem; }
footer.site .badge img { width: 140px; height: 46.8px; }
