/* Hide & Keep — site styles. Single light theme (committed choice: the butter
   palette is the brand; it doesn't invert). Tokens first. */
:root {
  --ground: #FFFDF6;
  --panel: #FFFFFF;
  --ink: #2B2416;
  --ink-soft: #6E6250;
  --butter: #FFD84D;
  --butter-soft: #FFF3C2;
  --sky: #79B8E6;
  --sky-deep: #2B6FA8;
  --grass: #5B9E6B;
  --line: #EDE5D2;
  --radius: 18px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", -apple-system, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
a { color: var(--sky-deep); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.brand {
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand .mark { width: 34px; height: 34px; border-radius: 9px; display: block; }
.site-head nav { display: flex; gap: 22px; font-size: 15.5px; flex-wrap: wrap; }
.site-head nav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; }
.site-head nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-head { padding: 14px 0; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-head nav { gap: 6px 16px; font-size: 15px; }
}

/* hero */
.hero { padding: 40px 0 72px; }
@media (max-width: 640px) { .hero { padding: 16px 0 48px; } }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 840px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  /* mobile: proof video directly under the headline block */
}
h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(38px, 5.4vw, 58px); line-height: 1.06; margin: 0 0 18px;
  text-wrap: balance;
}
h1 .keep { background: linear-gradient(transparent 62%, var(--butter) 62%); }
.hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 26px; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink);
  color: #fff; text-decoration: none; border-radius: 14px; padding: 14px 24px;
  font-family: var(--display); font-weight: 500; font-size: 18px;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn .apple { font-size: 21px; line-height: 1; }
.proof-line { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* waitlist modal */
.store-btn { border: 0; cursor: pointer; }
.store-btn:disabled { opacity: 0.6; transform: none; cursor: default; }
#wlModal {
  border: 0; border-radius: 22px; padding: 0; background: var(--ground); color: var(--ink);
  width: min(92vw, 400px); box-shadow: 0 24px 70px rgba(43, 36, 22, 0.35);
}
#wlModal::backdrop { background: rgba(43, 36, 22, 0.45); }
#wlModal .waitlist { position: relative; display: grid; gap: 12px; padding: 26px; margin: 0; }
#wlModal h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 2px; }
#wlModal .wl-input {
  font: inherit; font-size: 16.5px; padding: 13px 16px; width: 100%;
  border: 2px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink);
}
#wlModal .wl-input:focus { outline: none; border-color: var(--sky-deep); }
/* short screens / phone keyboards: sit the modal high so the keyboard never covers it */
@media (max-height: 720px) {
  #wlModal { margin-top: 6vh; }
}
#wlModal .store-btn { width: 100%; justify-content: center; font-family: var(--display); }
.wl-close {
  position: absolute; top: 10px; right: 14px; border: 0; background: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--ink-soft); padding: 6px;
}
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-note { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.wl-done { font-size: 16px; font-weight: 700; color: var(--ink); background: var(--butter-soft);
  border-radius: 14px; padding: 14px 18px; margin: 0; }
@media (max-width: 480px) {
  .store-btn { width: 100%; justify-content: center; }
  .cta-row { gap: 10px; }
}

/* phone frame — holds the hero clip and the editor screen recording */
.phone {
  width: min(300px, 78vw); margin: 0 auto; border-radius: 36px; padding: 10px;
  background: var(--ink); box-shadow: 0 18px 48px rgba(43, 36, 22, 0.18);
}
.phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 27px; background: #000; }
/* screen recordings keep their own aspect (status bar cropped off, so taller than 9:16) */
.phone video.native { aspect-ratio: auto; object-fit: contain; }
.media-caption { text-align: center; font-size: 14.5px; color: var(--ink-soft); margin: 12px 0 0; }

/* asset slots — honest placeholders until the real assets land (ASSETS.md).
   Deliberately unmistakable for content: dashed, labeled, never shipped. */
.slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 2px dashed var(--sky-deep); border-radius: 16px; background: var(--panel);
  color: var(--ink-soft); font-size: 14px; padding: 20px; line-height: 1.5;
}
.slot p { margin: 0; }
.slot b { color: var(--ink); }
.slot .slot-ref { font-size: 12.5px; opacity: 0.75; }
.slot-tall { aspect-ratio: 9 / 16; border-radius: 27px; }
.slot-wide { aspect-ratio: 16 / 9; max-width: 760px; margin: 0 auto; }

/* sections */
section { padding: 64px 0; }
@media (max-width: 640px) { section { padding: 44px 0; } }
section.tint { background: var(--butter-soft); }
h2 {
  font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 10px; letter-spacing: -0.01em; text-wrap: balance;
}
.sec-lede { color: var(--ink-soft); max-width: 60ch; margin: 0 0 30px; }

/* interactive photo demo — mirrors the editor: pixelate covers, chips, badges */
.photo-demo { max-width: 560px; margin: 0 auto; }
.photo-stage { position: relative; border-radius: 16px; overflow: hidden; }
.photo-stage .photo { display: block; width: 100%; height: auto; }
/* true pixelate: a pre-pixelated copy of the photo, clipped to the face */
.photo-stage .pix {
  position: absolute; inset: 0; width: 100%; height: auto;
  opacity: 1; transition: opacity 0.22s; pointer-events: none;
}
.photo-stage .pix.off { opacity: 0; }
.photo-stage .spot-sticker {
  position: absolute; transform: translate(-50%, -50%) rotate(-6deg); height: auto;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
  pointer-events: none;
}
.photo-stage .spot-sticker.off { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-12deg); }
.hotspot {
  position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
/* state badge — the app pops "Hidden"/"Shown" near the tapped face */
.face-badge {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none;
  background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; box-shadow: 0 3px 10px rgba(43,36,22,0.25);
  opacity: 0;
}
.face-badge.pop { animation: badge 1.1s ease forwards; }
@keyframes badge {
  0% { opacity: 0; transform: translate(-50%, -30%); }
  12%, 75% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -60%); }
}
/* chips row — the editor's person chips: thumb + Shown/Hidden state */
.chips { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.chip {
  border: 2.5px solid var(--line); background: var(--panel); border-radius: 16px;
  padding: 5px; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  gap: 3px; transition: border-color 0.2s; -webkit-tap-highlight-color: transparent;
}
.chip img { width: 56px; height: 56px; border-radius: 12px; display: block; object-fit: cover; }
.chip .chip-state { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.chip.shown { border-color: var(--butter); }
.chip.shown .chip-state { color: var(--ink); }
.all-btn {
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px;
  font-weight: 700; color: var(--sky-deep); padding: 8px 10px; margin-left: 4px;
}

/* how it works — screen recording + numbered captions beside/below it */
.how-grid { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; max-width: 860px; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; gap: 28px; } }
.how-steps { margin: 0; padding-left: 22px; display: grid; gap: 16px; max-width: 46ch; }
.how-steps li { padding-left: 6px; }
.how-steps li::marker { font-family: var(--display); font-weight: 600; color: var(--sky-deep); }

/* covers showcase */
#covers .wrap { text-align: center; }
#covers .sec-lede { margin-inline: auto; }
.bunch { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.bunch img { width: clamp(84px, 11vw, 124px); height: auto; rotate: var(--tilt, 0deg); }
.bunch img.wiggle { animation: wigr 0.42s ease; }
@keyframes wigr {
  0%, 100% { rotate: var(--tilt, 0deg); }
  30% { rotate: calc(var(--tilt, 0deg) - 7deg); }
  65% { rotate: calc(var(--tilt, 0deg) + 3deg); }
}
.bunch-note { margin: 24px 0 0; color: var(--ink-soft); font-size: 14.5px; }

/* privacy — a plain list, not a card grid */
.priv-list { margin: 0; padding: 0; list-style: none; max-width: 62ch; display: grid; gap: 14px; }
.priv-list li { padding-left: 26px; position: relative; }
.priv-list li::before { content: "●"; position: absolute; left: 4px; color: var(--grass); font-size: 12px; top: 5px; }
.priv-list b { display: block; }
.origin { margin: 36px 0 0; max-width: 52ch; color: var(--ink-soft); font-style: italic; }

/* faq */
.faq details { border-bottom: 1.5px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 22px; color: var(--ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); max-width: 68ch; }

/* closing cta */
.closer { text-align: center; }
.closer h2 { margin-bottom: 20px; }
.peek-anim {
  width: 200px; height: 200px; margin: 0 auto 22px; border-radius: 22px;
  background: url("assets/peek-strip.webp") 0 0 no-repeat;
  background-size: 1200px 200px;
  animation: peek 2.8s steps(6) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .peek-anim { background-position-x: -400px; } /* static "joey up" frame */
}
@keyframes peek { to { background-position-x: -1200px; } }

/* footer */
.site-foot { border-top: 1.5px solid var(--line); padding: 28px 0 40px; margin-top: 30px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-soft); }
.site-foot a { color: var(--ink-soft); }

/* legal pages */
.legal { padding: 24px 0 64px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal .updated { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; }
.legal p { max-width: 68ch; }
.legal h2 { font-size: 22px; margin-top: 36px; }
