/* Cinefun — landing site styles.
   Plain CSS, no frameworks, no build step. Colors mirror the app's
   AppTheme.swift tokens so the site and app feel like one product.
   To rebrand: change the variables in :root and nothing else. */

:root {
  --background: #faf5ed;   /* app AppTheme.background */
  --surface:    #fffcf7;   /* app AppTheme.surface */
  --accent:     #f27361;   /* app AppTheme.accent (soft coral) */
  --text:       #382e29;   /* app AppTheme.textPrimary */
  --text-soft:  #736961;   /* app AppTheme.textSecondary */
  --radius: 16px;
  --maxw: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
header.site {
  padding: 28px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.02em;
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--text-soft); margin: 0 auto 28px; max-width: 34ch;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; align-items: center;
}
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .93; }
.btn.secondary {
  background: transparent; color: var(--text-soft);
  text-decoration: underline; padding: 14px 8px;
}

/* ---------- Screenshots ---------- */
.shots {
  display: flex; gap: 18px; justify-content: center;
  flex-wrap: wrap; padding: 8px 0 56px;
}
.shot {
  width: 210px; aspect-ratio: 9 / 19.5;
  border-radius: 26px; background: var(--surface);
  border: 1px solid rgba(56, 46, 41, .10);
  box-shadow: 0 12px 30px rgba(56, 46, 41, .09);
  display: grid; place-items: center; text-align: center;
  color: var(--text-soft); font-size: .85rem; padding: 16px;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; }

/* ---------- Sections ---------- */
section { padding: 44px 0; }
section h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin: 0 0 22px; letter-spacing: -0.01em;
}

.pillars { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px; border: 1px solid rgba(56, 46, 41, .07);
}
.pillar h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.pillar p { margin: 0; color: var(--text-soft); font-size: .98rem; }
.pillar .ico { font-size: 1.6rem; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 20px 52px; color: var(--text-soft);
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
ol.steps strong { color: var(--text); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid rgba(56, 46, 41, .07);
  padding: 16px 20px; margin-bottom: 12px;
}
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: " +"; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: " –"; }
details.faq p { color: var(--text-soft); margin: 12px 0 0; font-size: .98rem; }

/* ---------- Prose pages (privacy / support) ---------- */
.prose { padding: 20px 0 60px; }
.prose h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: 0 0 8px; }
.prose .updated { color: var(--text-soft); font-size: .9rem; margin: 0 0 28px; }
.prose h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-soft); }
.prose a { color: var(--accent); }
.prose ul { padding-left: 20px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid rgba(56, 46, 41, .10);
  padding: 28px 0 48px; color: var(--text-soft); font-size: .92rem;
}
footer.site a { color: var(--text-soft); }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
