/* ======================================================================
   FluteGym marketing site — shared stylesheet
   Loaded by every page (index, about, support, privacy, terms).
   App-screen visuals are real <img> screenshots in /images; the page-
   specific size bump for the home hero is scoped under body.page-home.
   ====================================================================== */

:root {
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --accent: #2DD4BF;
  --accent-2: #5EEAD4;
  --accent-deep: #0F766E;
  --accent-ink: #04201D;

  --maxw: 1180px;
  --gutter: 24px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
}

[data-theme="dark"] {
  --bg: #0C0C0B;
  --bg-soft: #121210;
  --elev: #181714;
  --card: #1A1916;
  --card-2: #211F1B;
  --text: #F4F1EA;
  --muted: #A39D90;
  --faint: #6E6A60;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --nav-bg: rgba(12, 12, 11, 0.72);
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  --glow: rgba(45, 212, 191, 0.16);
  --accent-tint: rgba(45, 212, 191, 0.10);
  --accent-ring: rgba(45, 212, 191, 0.28);
}

[data-theme="light"] {
  --bg: #FBF9F4;
  --bg-soft: #F5F2EA;
  --elev: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F4F1E9;
  --text: #1A1714;
  --muted: #645C50;
  --faint: #978E80;
  --border: rgba(26, 23, 20, 0.10);
  --border-strong: rgba(26, 23, 20, 0.16);
  --nav-bg: rgba(251, 249, 244, 0.78);
  --shadow: 0 40px 80px -35px rgba(40, 33, 24, 0.28);
  --glow: rgba(45, 212, 191, 0.22);
  --accent-tint: rgba(45, 212, 191, 0.12);
  --accent-ring: rgba(45, 212, 191, 0.30);
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: 70ch; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px;
  background: var(--accent); display: inline-block; opacity: 0.7;
}

h1, h2, h3 { font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
.serif { font-family: var(--font-serif); }

.display { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; }
.display .accent { color: var(--accent); font-style: italic; }

.h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; }
.h2 .accent { color: var(--accent); font-style: italic; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); }

/* Home gets a larger display scale than the inner pages. */
.page-home .display { font-size: clamp(2.6rem, 6.4vw, 4.7rem); line-height: 1.0; letter-spacing: -0.015em; }
.page-home .h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.page-home .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 44ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* ---------- store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 18px 11px 16px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--elev);
  transition: transform .15s ease, border-color .15s ease;
}
.store:hover { transform: translateY(-2px); border-color: var(--accent); }
.store svg { flex-shrink: 0; }
.store .st-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store .st-small { font-size: 10.5px; color: var(--muted); letter-spacing: 0.03em; }
.store .st-big { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

/* ======================================================================
   NAV
   ====================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }

/* LOGO PLACEHOLDER — replace .logo-ph with the final brand mark before launch */
.logo-ph {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card-2); border: 1px dashed var(--border-strong);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--faint); text-transform: uppercase; flex-shrink: 0;
}
.brand-name b { font-weight: 900; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.sun, .moon { display: none; }
[data-theme="dark"] .moon { display: block; }
[data-theme="light"] .sun { display: block; }

.hamburger { display: none; }
.mobile-menu { display: none; }

/* ======================================================================
   HERO (home)
   ====================================================================== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; right: -5%;
  width: 720px; height: 720px; max-width: 90vw;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  filter: blur(8px); pointer-events: none; z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy h1 { margin: 20px 0 22px; max-width: 14ch; }
.hero-copy .lead { margin-bottom: 30px; max-width: 50ch; }
.hero-cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-note { font-size: 13.5px; color: var(--faint); }
.hero-art { display: flex; justify-content: center; }

/* ======================================================================
   APP SCREENSHOTS
   Drop real PNG/JPG screenshots into /images using the same filenames and
   they appear here automatically — no markup changes needed. The frame
   (rounded corners + shadow) is applied here, so export raw screenshots.
   ====================================================================== */
.app-shot {
  display: block;
  width: 300px; max-width: 80vw; height: auto;
  border-radius: 36px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow: var(--shadow);
}
.app-shot.tilt { transform: perspective(1600px) rotateY(-9deg) rotateX(2deg); }

/* ======================================================================
   SYLLABI STRIP
   ====================================================================== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; }
.strip-label { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.strip-name { font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.45rem); color: var(--text); opacity: 0.85; }

/* ======================================================================
   FEATURE SECTIONS (home)
   ====================================================================== */
section.feature { padding: clamp(56px, 9vw, 110px) 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature.reverse .feature-grid { direction: rtl; }
.feature.reverse .feature-grid > * { direction: ltr; }
.feature-copy h2 { margin: 16px 0 18px; max-width: 16ch; }
.feature-copy p { color: var(--muted); max-width: 46ch; margin-bottom: 16px; }
.feature-points { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.feature-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.feature-points svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.feature-visual { display: flex; justify-content: center; }

/* ======================================================================
   SECONDARY GRID (home)
   ====================================================================== */
.more { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 9vw, 96px); }
.more-head { text-align: center; max-width: 36ch; margin: 0 auto clamp(36px, 5vw, 56px); }
.more-head h2 { margin-top: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .18s ease, transform .18s ease;
}
.mini:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.mini-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.mini h3 { font-size: 1.25rem; font-family: var(--font-serif); margin-bottom: 8px; }
.mini p { font-size: 14.5px; color: var(--muted); }

/* ======================================================================
   BMC + FINAL CTA (home)
   ====================================================================== */
.bmc { margin: 0 auto; max-width: var(--maxw); }
.bmc-inner {
  margin: 0 var(--gutter);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px) clamp(24px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.bmc-inner h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 6px; }
.bmc-inner p { color: var(--muted); font-size: 15px; max-width: 48ch; }

.cta {
  position: relative; overflow: hidden;
  margin: clamp(56px, 9vw, 100px) 0 0;
  padding: clamp(56px, 9vw, 100px) 0;
  text-align: center; border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; max-width: 100vw;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { margin: 16px auto 16px; max-width: 16ch; }
.cta .lead { margin: 0 auto 30px; }
.cta .stores { justify-content: center; }

/* ======================================================================
   INNER PAGE HEADER (about, support)
   ====================================================================== */
.page-head { position: relative; padding: clamp(56px, 9vw, 104px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.page-glow { position: absolute; top: -20%; right: -10%; width: 620px; height: 620px; max-width: 90vw; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); pointer-events: none; }
.page-head .inner { position: relative; z-index: 1; }
.page-head h1 { margin: 18px 0 22px; max-width: 16ch; }
.page-head .lead { max-width: 56ch; }

/* ---------- about: content blocks ---------- */
section.block { padding: clamp(36px, 5vw, 56px) 0; }
.block h2 { margin-bottom: 18px; }
.block p { color: var(--muted); margin-bottom: 18px; max-width: 70ch; }
.block p strong { color: var(--text); font-weight: 700; }
.divider { height: 1px; background: var(--border); max-width: var(--maxw); margin: 0 auto; }

.pull { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.25; color: var(--text); border-left: 2px solid var(--accent); padding: 4px 0 4px 24px; margin: 8px 0; max-width: 28ch; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.vcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.vcard .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.vcard h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 8px; }
.vcard p { font-size: 14.5px; color: var(--muted); margin: 0; }

.cta-band { margin: clamp(40px,6vw,72px) auto 0; max-width: var(--maxw); }
.cta-band .inner { margin: 0 var(--gutter); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(32px,5vw,52px); text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 24px; }
.cta-band .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- support: contact + FAQ ---------- */
.contact { padding: clamp(24px,4vw,40px) 0 clamp(36px,5vw,56px); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.ccard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px,3vw,34px); }
.ccard.feature {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, rgba(45,212,191,0.4), transparent) border-box;
  border: 1px solid transparent;
}
.ccard .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.ccard h2 { font-family: var(--font-serif); font-size: 1.55rem; margin-bottom: 10px; }
.ccard h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 10px; }
.ccard p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.mail { font-size: 1.15rem; font-weight: 700; color: var(--accent); word-break: break-all; }
.mail:hover { color: var(--accent-2); }
.ccard .small { font-size: 13.5px; color: var(--faint); margin-bottom: 0; margin-top: 14px; }

.faq { padding: clamp(36px,5vw,56px) 0 clamp(48px,7vw,72px); border-top: 1px solid var(--border); }
.faq h2 { margin-bottom: 28px; }
.qa { border-bottom: 1px solid var(--border); padding: 22px 0; max-width: 76ch; }
.qa:first-of-type { border-top: 1px solid var(--border); }
.qa h3 { font-size: 1.15rem; font-weight: 700; font-family: var(--font-sans); margin-bottom: 8px; letter-spacing: -0.01em; }
.qa p { color: var(--muted); font-size: 15.5px; }
.qa a { color: var(--accent); }
.qa a:hover { color: var(--accent-2); }

/* ======================================================================
   LEGAL PAGES (privacy, terms)
   ====================================================================== */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px,7vw,88px) var(--gutter) clamp(56px,8vw,96px); }
.legal .prose { max-width: none; }
.legal-head { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-head h1 { font-family: var(--font-serif); font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 14px 0 18px; }
.legal-meta { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 24px; }

.summary-box { background: var(--accent-tint); border: 1px solid var(--accent-ring); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 3rem; }
.summary-box p { font-size: 0.95rem; color: var(--text); line-height: 1.65; }
.summary-box p + p { margin-top: 10px; }
.summary-box strong { font-weight: 700; }

.prose h2 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--text); margin: 2.75rem 0 0.85rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-size: 1.02rem; font-weight: 700; font-family: var(--font-sans); color: var(--text); margin: 1.5rem 0 0.5rem; }
.prose p { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 1rem; }
.prose ul, .prose ol { font-size: 1rem; color: var(--muted); line-height: 1.75; padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-2); }

.contact-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 1rem; }
.contact-block p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; margin-bottom: 6px; }
.contact-block p:last-child { margin-bottom: 0; }
.contact-block strong { color: var(--text); }

/* ======================================================================
   FOOTER
   ====================================================================== */
footer { border-top: 1px solid var(--border); padding: clamp(48px, 7vw, 72px) 0 40px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 30ch; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .15s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--border); }
.foot-bottom p { font-size: 13.5px; color: var(--faint); }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .app-shot.tilt { transform: none; }
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-grid { direction: ltr; }
  .feature-visual { order: -1; }
  .cards3 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: grid; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--border); background: var(--nav-bg); backdrop-filter: blur(16px); }
  .mobile-menu a { display: block; padding: 14px var(--gutter); color: var(--text); border-bottom: 1px solid var(--border); font-weight: 500; }
  .bmc-inner { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
