/* STAILIST — landing + legal pages
 * Single stylesheet, no build step, no framework. Mobile-first, dark-mode
 * via prefers-color-scheme. Stylesheet stays small + cacheable.
 *
 * Brand accent #c250e6 matches the app splash AI-highlight (AppBootstrap).
 */

:root {
  --bg: #faf8fb;
  --surface: #ffffff;
  --surface-muted: #f1ecf4;
  --text: #1a1622;
  --text-secondary: #6b6577;
  --outline: #e8e2ed;
  --primary: #c250e6;
  --primary-text: #ffffff;
  --shadow: 0 8px 24px rgba(74, 63, 102, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1100px;
  --gap-xl: clamp(48px, 8vw, 96px);
  --gap-l: 32px;
  --gap-m: 20px;
  --gap-s: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a14;
    --surface: #15121e;
    --surface-muted: #1d1a2a;
    --text: #f4f1f7;
    --text-secondary: #9a93a8;
    --outline: #2a2538;
    --primary: #d878f0;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 248, 251, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--outline);
}

@media (prefers-color-scheme: dark) {
  header.site { background: rgba(12, 10, 20, 0.85); }
}

header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
}
.wordmark .ai { color: var(--primary); }

nav.site a {
  color: var(--text-secondary);
  margin-left: 24px;
  font-size: 15px;
  font-weight: 500;
}
nav.site a:hover { color: var(--text); text-decoration: none; }

/* --- Hero --- */
section.hero {
  padding: var(--gap-xl) 0 calc(var(--gap-xl) * 0.6);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h1.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
h1.hero-title .ai { color: var(--primary); }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* --- Store badges --- */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); text-decoration: none; }
.store-badge .small { display: block; font-size: 11px; font-weight: 400; opacity: 0.7; line-height: 1; margin-bottom: 2px; }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

/* --- Sections --- */
section.block {
  padding: var(--gap-xl) 0;
}
section.block.muted {
  background: var(--surface-muted);
}
h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--gap-l);
}

/* --- Feature grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-m);
}
.feature {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* --- Steps --- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-m);
  counter-reset: step;
}
.step {
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* --- Pricing --- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap-m);
  margin-top: var(--gap-l);
}
.plan {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan.recommended {
  border-color: var(--primary);
  border-width: 2px;
  position: relative;
}
.plan.recommended::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--primary-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}
.plan h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.plan .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 24px;
}
.plan .price-amount { font-size: 36px; font-weight: 800; color: var(--text); }
.plan .price-unit { font-size: 15px; color: var(--text-secondary); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}
.plan li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.plan li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.plan .cta {
  display: block;
  text-align: center;
  background: var(--text);
  color: var(--bg);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s ease;
}
.plan.recommended .cta {
  background: var(--primary);
  color: var(--primary-text);
}
.plan .cta:hover { opacity: 0.9; text-decoration: none; }

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: var(--gap-m);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- FAQ --- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  content: "−";
}
.faq .answer {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* --- Footer --- */
footer.site {
  border-top: 1px solid var(--outline);
  padding: 40px 0 32px;
  margin-top: var(--gap-xl);
}
footer.site .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
}
footer.site nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site nav a { color: var(--text-secondary); }
footer.site nav a:hover { color: var(--text); text-decoration: none; }

/* --- Legal pages --- */
article.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--gap-xl) 24px;
}
article.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
article.legal h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}
article.legal h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
article.legal p, article.legal li {
  color: var(--text);
  margin: 12px 0;
  line-height: 1.65;
}
article.legal ul, article.legal ol { padding-left: 24px; }
article.legal table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 14px;
}
article.legal th, article.legal td {
  border: 1px solid var(--outline);
  padding: 10px 14px;
  text-align: left;
}
article.legal th { background: var(--surface-muted); font-weight: 600; }
article.legal a { color: var(--primary); }

.back-home {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- Responsive tweaks --- */
@media (max-width: 600px) {
  nav.site a { margin-left: 14px; font-size: 13px; }
  .wordmark { font-size: 18px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; }
}
