/* Reel Joy — official site
   Brand: near-black canvas + gold gradient, matching the app icon. */

:root {
  --gold-1: #FFE894;
  --gold-2: #F7C948;
  --gold-3: #E0A21B;
  --bg: #0A0A08;
  --bg-elev: #131210;
  --bg-elev-2: #1B1915;
  --border: rgba(247, 201, 72, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #F6F3EA;
  --text-muted: #A6A093;
  --text-dim: #7C776C;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --maxw-prose: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Ambient gold glow behind the top of every page. */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background: radial-gradient(60% 55% at 50% 0%, rgba(247, 201, 72, 0.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--maxw-prose); }

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

h1, h2, h3 { line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
strong { color: #FFF6DC; font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 3rem 0; }

.gold {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 8, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text-muted); font-size: 0.94rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-2); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px; font-weight: 650; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  color: #1A1403;
  box-shadow: 0 8px 30px rgba(247, 201, 72, 0.22);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero .logo-lg {
  width: 108px; height: 108px; border-radius: 26px; display: block; margin: 0 auto 30px;
  box-shadow: 0 20px 60px rgba(247, 201, 72, 0.18);
}
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-muted); max-width: 660px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(247, 201, 72, 0.06);
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.card .ico { font-size: 1.5rem; line-height: 1; display: block; margin-bottom: 14px; }

section { padding: 26px 0; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* Answer-first summary block: the short, quotable definition of the page. */
.answer {
  border-left: 3px solid var(--gold-2);
  background: rgba(247, 201, 72, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 0 0 2rem;
}
.answer p:last-child { margin-bottom: 0; }
.answer .label {
  display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-3); margin-bottom: 6px; font-weight: 700;
}

/* ---------- Legal / long-form pages ---------- */
.page-head { padding: 60px 0 8px; }
.page-head .updated { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.legal { padding-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.6em; padding-top: 0.2em; }
.legal h3 { font-size: 1.05rem; color: #FFF0C8; }
.legal p, .legal li { color: #DBD6C9; font-size: 1rem; }
.legal .toc { border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px 24px; background: var(--bg-elev); }
.legal .toc h2 { margin: 0 0 10px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.legal .toc ol { margin: 0; padding-left: 1.2em; }
.legal .toc li { margin-bottom: 4px; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-soft); padding: 26px 0; }
.faq-item:first-of-type { border-top: 1px solid var(--border-soft); }
.faq-item h3 { margin: 0 0 10px; font-size: 1.1rem; color: #FFF6DC; }
.faq-item p { margin: 0; color: var(--text-muted); }
.faq-item p + p { margin-top: 0.8em; }

/* ---------- Definition list (facts table for AI extraction) ---------- */
.facts { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 0; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.facts dt { padding: 14px 20px; background: var(--bg-elev); color: var(--text-dim); font-size: 0.9rem; border-bottom: 1px solid var(--border-soft); }
.facts dd { padding: 14px 20px; margin: 0; font-size: 0.95rem; border-bottom: 1px solid var(--border-soft); }
/* Last row sits against the container border already. */
.facts dt:nth-last-child(2), .facts dd:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); margin-top: 70px; padding: 44px 0 56px; color: var(--text-dim); font-size: 0.92rem; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .legal-note { margin: 26px 0 0; max-width: 620px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 10px 18px; }
  .nav { margin-left: 0; width: 100%; gap: 16px; }
  .hero { padding: 56px 0 48px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; background: transparent; }
  .facts dd { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
