/* ===========================================================
   Funny Face — sticker-book pop design system
   =========================================================== */

:root {
  /* palette */
  --paper:  #FFF6E6;
  --paper-2:#FFEFD3;
  --ink:    #20160F;
  --sun:    #FFCE2E;
  --coral:  #FF5A5F;
  --mint:   #1FC8A9;
  --sky:    #4C8DFF;
  --grape:  #C04CFF;

  /* roles */
  --bg: var(--paper);
  --fg: var(--ink);
  --line: var(--ink);

  /* shape */
  --r-sm: 14px;
  --r:    22px;
  --r-lg: 34px;
  --bd: 3px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  /* type */
  --display: "Fredoka", "Trebuchet MS", sans-serif;
  --body: "Nunito", system-ui, sans-serif;

  /* layout */
  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 56px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw + 13px, 19px);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  font-weight: 600;
  overflow-x: hidden;
  /* paper grain */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(32,22,15,.05) 1px, transparent 0);
  background-size: 22px 22px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2em; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  display: inline-block;
  padding: 6px 14px;
  border: var(--bd) solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--sun);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 26px;
  background: var(--b);
  color: var(--ink);
  border: var(--bd) solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 9px 9px 0 var(--ink); }
.btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--coral { --b: var(--coral); color: #fff; }
.btn--mint  { --b: var(--mint); color: var(--ink); }
.btn--ghost { --b: #fff; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,246,230,.82);
  backdrop-filter: blur(8px);
  border-bottom: var(--bd) solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.brand .face {
  width: 38px; height: 38px; border-radius: 12px;
  border: var(--bd) solid var(--line);
  background: var(--sun);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px); }
.nav a.link { font-family: var(--display); font-weight: 500; }
.nav a.link:hover { color: var(--coral); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 90px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px,5vw,70px); align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .pop { color: var(--coral); display: inline-block; }
.hero h1 .pop2 { color: var(--mint); }
.hero p.lede { font-size: 1.18rem; max-width: 44ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .ministat { display:flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero .ministat b { font-family: var(--display); font-size: 1.5rem; display:block; }
.hero .ministat span { font-size: .85rem; opacity:.7; }

/* phone mock */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone {
  position: relative; z-index: 2;
  width: min(280px, 78vw); aspect-ratio: 9/19;
  background: var(--ink);
  border: var(--bd) solid var(--line);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, var(--sky), var(--grape) 55%, var(--coral));
  position: relative;
  display: grid; place-items: center;
}
.phone .screen .bigface { font-size: 120px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); }
.phone .screen .chips { position:absolute; bottom: 18px; left:0; right:0; display:flex; gap:8px; justify-content:center; }
.phone .screen .chip { width: 42px; height: 42px; border-radius: 12px; background:#fff; border:2px solid var(--ink); display:grid; place-items:center; font-size:20px; }
.phone .screen .chip.on { background: var(--sun); transform: scale(1.12); }
.phone .notch { position:absolute; top:18px; left:50%; transform:translateX(-50%); width:78px; height:20px; background:var(--ink); border-radius:0 0 12px 12px; z-index:3; }

/* floating stickers */
.sticker {
  position: absolute; z-index: 1;
  width: 76px; height: 76px; border-radius: 18px;
  border: var(--bd) solid var(--line);
  background: #fff; display: grid; place-items: center;
  font-size: 38px; box-shadow: 4px 4px 0 var(--ink);
  animation: bob 4s ease-in-out infinite;
}
.sticker.s1 { top: 4%;  left: -2%;  background: var(--sun);  transform: rotate(-12deg); animation-delay:.0s;}
.sticker.s2 { top: 12%; right: 2%;  background: var(--mint); transform: rotate(10deg);  animation-delay:.6s;}
.sticker.s3 { bottom: 8%; left: 6%;  background: var(--coral);transform: rotate(8deg);   animation-delay:1.1s;}
.sticker.s4 { bottom: 0%; right: -2%; background: var(--sky); transform: rotate(-8deg);  animation-delay:1.6s;}
@keyframes bob { 0%,100%{ translate: 0 0; } 50%{ translate: 0 -14px; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: var(--bd) solid var(--line);
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding: 14px 0;
}
.marquee .track { display: flex; gap: 40px; width: max-content; animation: scroll 22s linear infinite; font-family: var(--display); font-size: 1.4rem; }
.marquee .track span { display:flex; align-items:center; gap:40px; }
.marquee .track span::after { content:"★"; color: var(--sun); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.card {
  background: #fff;
  border: var(--bd) solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--ink); }
.card .ico { width: 58px; height: 58px; border-radius: 16px; border: var(--bd) solid var(--line); display:grid; place-items:center; font-size: 30px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; opacity: .85; font-weight: 600; }
.card:nth-child(1) .ico { background: var(--sun); }
.card:nth-child(2) .ico { background: var(--mint); }
.card:nth-child(3) .ico { background: var(--coral); }
.card:nth-child(4) .ico { background: var(--sky); }
.card:nth-child(5) .ico { background: var(--grape); }
.card:nth-child(6) .ico { background: var(--sun); }

/* ---------- how it works ---------- */
.how { background: var(--paper-2); border-block: var(--bd) solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 54px; counter-reset: step; }
.step { position: relative; background:#fff; border: var(--bd) solid var(--line); border-radius: var(--r); padding: 38px 26px 28px; box-shadow: var(--shadow); }
.step .num {
  counter-increment: step;
  position: absolute; top: -24px; left: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--coral); color:#fff;
  border: var(--bd) solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.step .num::after { content: counter(step); }
.step h3 { margin: 8px 0; }
.step p { font-size: .96rem; opacity:.85; }

/* ---------- powered by snap ---------- */
.powered { text-align:center; }
.powered .ghost-card {
  display:inline-flex; flex-direction:column; gap:10px; align-items:center;
  background:#fff; border: var(--bd) dashed var(--line); border-radius: var(--r-lg);
  padding: 34px 44px; box-shadow: var(--shadow);
}
.powered .ghost-card .snap { font-family:var(--display); font-weight:700; font-size: 1.4rem; display:flex; align-items:center; gap:10px; }
.powered .ghost-card .snap .gh { width:40px;height:40px;border-radius:12px;background:var(--sun);border:var(--bd) solid var(--line);display:grid;place-items:center;font-size:22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline:auto; margin-top: 44px; display: grid; gap: 14px; }
.qa { background:#fff; border: var(--bd) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow:hidden; }
.qa summary {
  list-style: none; cursor: pointer;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  padding: 22px 24px; font-family: var(--display); font-weight: 600; font-size: 1.15rem;
}
.qa summary::-webkit-details-marker { display:none; }
.qa summary .plus { flex:none; width:34px;height:34px;border-radius:50%;border:var(--bd) solid var(--line); background:var(--sun); display:grid;place-items:center; font-size:22px; transition: transform .2s ease; }
.qa[open] summary .plus { transform: rotate(45deg); background: var(--coral); color:#fff; }
.qa .ans { padding: 0 24px 24px; font-size: 1rem; font-weight: 600; opacity:.88; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sun); border-block: var(--bd) solid var(--line); text-align:center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .btn--coral { color:#fff; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--paper); border-top: var(--bd) solid var(--line); }
.site-foot .wrap { padding-block: 56px 40px; }
.foot-top { display:flex; flex-wrap:wrap; justify-content:space-between; gap: 36px; }
.foot-top .brand { color: var(--paper); }
.foot-cols { display:flex; gap: clamp(30px,6vw,80px); flex-wrap:wrap; }
.foot-cols h4 { font-family:var(--display); font-size: .9rem; text-transform:uppercase; letter-spacing:.12em; color: var(--sun); margin-bottom: 14px; }
.foot-cols a { display:block; padding: 5px 0; opacity:.85; font-weight:600; }
.foot-cols a:hover { opacity:1; color: var(--sun); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); display:flex; flex-wrap:wrap; gap: 12px; justify-content:space-between; font-size:.85rem; opacity:.7; }

/* ===========================================================
   LEGAL / DOC pages
   =========================================================== */
.doc-hero { background: var(--paper-2); border-bottom: var(--bd) solid var(--line); padding-block: clamp(50px,7vw,90px); }
.doc-hero h1 { font-size: clamp(2.4rem,6vw,4rem); }
.doc-hero p { margin-top: 14px; opacity:.8; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: clamp(30px,5vw,70px); align-items:start; padding-block: clamp(50px,7vw,90px); }
.toc { position: sticky; top: 96px; background:#fff; border:var(--bd) solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.toc h4 { font-family:var(--display); text-transform:uppercase; letter-spacing:.1em; font-size:.8rem; margin-bottom:12px; }
.toc a { display:block; padding:7px 0; font-size:.92rem; font-weight:700; opacity:.78; }
.toc a:hover { opacity:1; color: var(--coral); }
.doc-body h2 { font-size: clamp(1.5rem,3vw,2.1rem); margin: 40px 0 14px; scroll-margin-top: 96px; }
.doc-body h2:first-child { margin-top:0; }
.doc-body h3 { font-size: 1.2rem; margin: 24px 0 8px; }
.doc-body p, .doc-body li { font-weight: 600; line-height: 1.7; }
.doc-body p { margin: 10px 0; }
.doc-body ul { margin: 8px 0; display: grid; gap: 6px; }
.doc-body strong { font-weight: 800; }
.callout { background: var(--sun); border:var(--bd) solid var(--line); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow); margin: 22px 0; font-weight:700; }
.doc-body a.inline { color: var(--sky); text-decoration: underline; text-decoration-thickness: 2px; font-weight: 800; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-stage { order: -1; min-height: 380px; margin-top: 10px; }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .nav .link { display: none; }
  .nav-toggle {
    display: grid; place-items:center; width:46px;height:46px;
    background:#fff; border:var(--bd) solid var(--line); border-radius:12px; box-shadow:3px 3px 0 var(--ink); cursor:pointer; font-size: 20px;
  }
  .nav.open { position: absolute; top: 72px; left:0; right:0; flex-direction: column; background: var(--paper); padding: 20px var(--gut) 28px; border-bottom: var(--bd) solid var(--line); align-items: stretch; gap: 8px; }
  .nav.open .link { display:block; padding: 12px 0; border-bottom: 2px dashed rgba(32,22,15,.2); }
  .nav.open .btn { display:inline-flex; justify-content:center; margin-top: 8px; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero .ministat { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity:1; transform:none; }
}
