/* Fitty site: gold editorial palette from the app theme. Light + dark via prefers-color-scheme. */
:root {
  --bg: #FAF7F2; --surface: #F7F4EF; --card: #FFFFFF;
  --ink: #1A1208; --body: #3A3020; --muted: #6F6554;
  --gold: #C9A84C; --gold-dark: #8A6820; --gold-light: #F0DFA0; --rose: #C4707A;
  --border: #E8DEC8; --on-gold: #1A1208;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110C; --surface: #1D1912; --card: #221E16;
    --ink: #F4EEE0; --body: #D9D1BF; --muted: #A89F8B;
    --gold-dark: #DDBB62; --rose: #D88690; --border: #3A3326;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.site-header { display: flex; justify-content: space-between; align-items: center; max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.6rem/1 var(--serif); }
.brand img { border-radius: 9px; }
.site-header nav a { text-decoration: none; font-weight: 600; color: var(--gold-dark); }

main { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
h1, h2 { font-family: var(--serif); color: var(--ink); line-height: 1.15; }

.hero { text-align: center; padding: 3rem 0 2rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); margin: 0 0 1rem; font-style: italic; letter-spacing: -.01em; }
.sub { font-size: clamp(1.05rem, 3vw, 1.3rem); max-width: 34rem; margin: 0 auto 2rem; color: var(--muted); }
.cta { display: flex; justify-content: center; }

/* App Store badge placeholder (swap via APP_STORE_URL in scripts/build-pages.mjs) */
.badge { display: inline-flex; align-items: center; gap: .7rem; background: #000; color: #fff; border: 1px solid #5a5a5a; border-radius: 12px; padding: .55rem 1.2rem .55rem 1rem; text-decoration: none; line-height: 1.1; }
.badge:hover { color: #fff; }
.badge-mark { width: 1.9rem; height: 1.9rem; }
.badge span { display: flex; flex-direction: column; text-align: left; }
.badge small { font-size: .72rem; }
.badge strong { font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.badge-soon { cursor: default; }

.feature { display: grid; gap: 2rem; align-items: center; justify-items: center; padding: 3rem 0; }
.feature-text { max-width: 28rem; text-align: center; }
.feature-text h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0 0 .6rem; }
.feature-text p { margin: 0; font-size: 1.1rem; }
@media (min-width: 52rem) {
  .feature { grid-template-columns: 1fr 1fr; gap: 4rem; padding: 4rem 0; }
  .feature-text { text-align: left; justify-self: end; }
  .feature.flip .feature-text { order: 2; justify-self: start; }
  .feature .phone { justify-self: start; }
  .feature.flip .phone { justify-self: end; }
}

/* Phone frame */
.phone { width: min(17rem, 78vw); padding: 9px; background: #1A1208; border-radius: 2.6rem; box-shadow: 0 0 0 2px #3a3022, 0 24px 50px rgba(26,18,8,.28); }
.phone img { display: block; width: 100%; border-radius: 2rem; background: var(--bg); }
@media (prefers-color-scheme: dark) { .phone { box-shadow: 0 0 0 2px #4a3f2a, 0 24px 50px rgba(0,0,0,.6); } }

.doc { max-width: 44rem; margin: 0 auto; padding: 1.5rem 0 3rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 .4rem; }
.doc h2 { font-size: 1.35rem; margin: 2rem 0 .4rem; }
.doc p { margin: .6rem 0; }
.updated, .lead { color: var(--muted); }
.faq { margin-top: 1.5rem; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font: 600 1.1rem/1.3 var(--serif); color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; color: var(--gold-dark); font-size: 1.5rem; line-height: 1; top: 1rem; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1rem; }
.contact { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.contact h2:first-child { margin-top: 0; }

.site-footer { border-top: 1px solid var(--border); margin-top: 2rem; padding: 2rem 1.25rem 3rem; text-align: center; font-size: .95rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.site-footer p { margin: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
