/* ==========================================================================
   SayCheese — shared site chrome & primitives
   Used by every page (/, /watch, /press). Page-specific sections (hero, band,
   demo, gallery, etc.) stay in each page's inline <style>, which is loaded
   AFTER this file so it wins any equal-specificity conflict.
   Bump the ?v= query on the <link> whenever this file changes.
   ========================================================================== */

/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sky:        #43a0f5;
  --sky-deep:   #2e86e8;
  --grape:      #7a22e0;
  --grape-deep: #4c10a6;
  --coral:      #f86a8e;
  --lemon:      #f2e96b;

  --ink:    #201338;
  --muted:  #5f5578;
  --wash:   #f6f1ff;
  --card:   #ffffff;
  --line:   #ece4fb;

  --shadow-sm: 0 2px 10px rgba(46, 19, 84, .06);
  --shadow-md: 0 14px 40px rgba(46, 19, 84, .12);
  --shadow-lg: 0 30px 80px rgba(46, 19, 84, .22);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-pill: 999px;

  --maxw: 1140px;
  --font-display: "Fredoka", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--wash);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.01em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--grape);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--coral); }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill); border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: .75rem; }
.store {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #100a1f; color: #fff;
  padding: .62rem 1.15rem; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store svg { flex-shrink: 0; }
.store .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store .lines small { font-size: .62rem; letter-spacing: .04em; opacity: .82; text-transform: uppercase; }
.store .lines strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand span b { color: var(--grape); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { padding: .58rem 1.15rem; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink); }

/* ---------- Section shells ---------- */
section { padding-block: clamp(3.4rem, 7vw, 5.5rem); }
.sec-head { max-width: 640px; margin-bottom: 2.6rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: .8rem 0 .7rem; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 1.1rem; color: #fff;
}
.feature:nth-child(1) .ic { background: linear-gradient(135deg, var(--grape), var(--sky-deep)); }
.feature:nth-child(2) .ic { background: linear-gradient(135deg, var(--coral), #ff9a6b); }
.feature:nth-child(3) .ic { background: linear-gradient(135deg, var(--sky-deep), #57c2c9); }
.feature:nth-child(4) .ic { background: linear-gradient(135deg, #b455e6, var(--coral)); }
.feature:nth-child(5) .ic { background: linear-gradient(135deg, #e0a02a, var(--lemon)); color: var(--ink); }
.feature:nth-child(6) .ic { background: linear-gradient(135deg, #45c07a, var(--sky-deep)); }
.feature h3 { font-size: 1.24rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ---------- Steps ---------- */
.steps { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2.2rem 1.5rem 1.6rem; border-radius: var(--r-md); background: var(--wash); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--grape), var(--coral));
  box-shadow: var(--shadow-md);
}
.step h3 { font-size: 1.24rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 1.35rem; margin-bottom: .8rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
details[open] { border-color: var(--grape); }
summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary .chev { flex-shrink: 0; transition: transform .2s ease; color: var(--grape); }
details[open] summary .chev { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 1.25rem; font-size: 1rem; }

/* ---------- Final CTA ---------- */
.cta {
  text-align: center; color: #fff;
  background:
    radial-gradient(90% 120% at 15% 10%, rgba(248,106,142,.4), transparent 45%),
    linear-gradient(120deg, var(--grape-deep), var(--sky-deep));
  border-radius: var(--r-lg); padding: clamp(2.6rem, 5vw, 4rem) 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: .8rem; }
.cta p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 1.9rem; }
.cta .badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 3rem 2rem; margin-top: clamp(3rem,6vw,5rem); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-brand { max-width: 300px; }
.foot-brand .brand { color: #fff; margin-bottom: .7rem; }
.foot-brand p { font-size: .92rem; }
.foot-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot-cols h4 { font-family: var(--font-display); color: #fff; font-size: .95rem; margin-bottom: .8rem; letter-spacing: .02em; }
.foot-cols a { display: block; font-size: .92rem; padding: .22rem 0; color: rgba(255,255,255,.72); transition: color .15s ease; }
.foot-cols a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .84rem; color: rgba(255,255,255,.55); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive (shared chrome) ---------- */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--wash); padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (min-width: 861px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
