/* FigureGenie marketing site — shared styles (landing, terms, privacy).
   Palette mirrors the app's index.html :root variables. */
:root {
  --bg:        #f0f2f5;
  --surface:   #ffffff;
  --surface2:  #f7f8fa;
  --border:    #e2e5ea;
  --border2:   #d0d4db;
  --accent:    #2563eb;
  --accent-lt: #eff6ff;
  --accent2:   #059669;
  --accent2-lt:#ecfdf5;
  --amber:     #d97706;
  --text:      #111827;
  --text2:     #4b5563;
  --text3:     #9ca3af;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  height: 60px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 34px; width: auto; border-radius: 6px; display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--text2); font-size: 14.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 8px;
}
.site-nav a:hover { color: var(--accent); background: var(--accent-lt); text-decoration: none; }
.site-nav a.nav-cta {
  color: #fff; background: var(--accent);
}
.site-nav a.nav-cta:hover { background: #1d4fd8; color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--accent-lt) 0%, var(--surface) 90%);
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 840px;
  margin: 0 auto 18px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text2);
  max-width: 760px;
  margin: 0 auto 26px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 16px; font-weight: 600;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1d4fd8; text-decoration: none; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--border2); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.hero-principle {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 20px;
  background: var(--accent2-lt);
  color: var(--accent2);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
}

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 64px 0; }
section.alt { background: var(--surface2); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.section-head p { color: var(--text2); font-size: 16.5px; }
.section-head .mode-strip {
  margin-top: 14px;
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--border2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text2);
  letter-spacing: 0.01em;
}

/* ── Features ───────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.feature svg { width: 100%; height: 120px; margin-bottom: 16px; display: block; }
.feature h3 { font-size: 18px; font-weight: 650; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text2); }

/* ── How it works ───────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.step { text-align: center; padding: 8px 14px; }
.step .step-num {
  width: 44px; height: 44px; line-height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 19px; font-weight: 700;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--text2); }
.step .free-tag { color: var(--accent2); font-weight: 600; }

/* ── Pricing ────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 12px; border-radius: 999px; text-transform: uppercase;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; }
.price-card .price { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--text3); }
.price-card ul { list-style: none; margin: 18px 0 22px; text-align: left; flex: 1; }
.price-card li {
  font-size: 14px; color: var(--text2);
  padding: 6px 0 6px 26px; position: relative;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 4px;
  color: var(--accent2); font-weight: 700;
}
.credit-pack {
  background: var(--amber) linear-gradient(90deg, #fffbeb, #fffbeb);
  background: #fffbeb;
  border: 1px solid rgba(217,119,6,0.35);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.credit-pack strong { color: var(--amber); font-size: 16px; }
.credit-pack span { color: var(--text2); font-size: 14.5px; }
.pricing-note {
  margin-top: 22px; text-align: center;
  font-size: 14px; color: var(--text2);
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.pricing-note strong { color: var(--text); }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600; font-size: 15.5px;
  padding: 15px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 12px;
  font-size: 20px; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; font-size: 14.5px; color: var(--text2); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface2);
  padding: 28px 0;
  font-size: 13.5px; color: var(--text3);
}
.site-footer .wrap {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center; text-align: center;
}
.site-footer a { color: var(--text2); }
.site-footer a:hover { color: var(--accent); }

/* ── Legal pages ────────────────────────────────────────────────────── */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 72px; }
.legal h1 { font-size: 30px; margin-bottom: 6px; letter-spacing: -0.01em; }
.legal .effective { color: var(--text3); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 15px; color: var(--text2); margin-bottom: 12px; }
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .site-header .wrap { height: 54px; gap: 8px; }
  .site-logo img { height: 28px; }
  .site-nav a { padding: 6px 8px; font-size: 13.5px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 44px 0; }
}
