/* Looking for the Good Stuff: the app's own look (sea blue, parchment, sepia ink, ochre gold),
   chunky outlined cards with hard pixel shadows, and the round Fredoka font.
   Fredoka is served from this site (SIL Open Font License 1.1, /fonts/OFL.txt). */
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #1d3a5c;
  --bg-2: #234670;
  --ink-deep: #132a47;
  --night: #0c1d33;
  --ink: #2b2a22;
  --ink-2: #5a5440;
  --paper: #f4e8c8;
  --paper-dim: #e4d3a6;
  --gold: #e2b65a;
  --gold-dark: #9e7428;
  --glow: #f6d6a4;
  --mist: #d9ccab;
  --sea: #2e5fa8;
  --green: #4e8a3e;
  --live: #6c9a3c;
  --rose: #c9584c;
  --wrap: 1120px;
  --font: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", "Varela Round", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); font-weight: 600; }
a:hover { color: var(--glow); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border: 3px solid var(--ink); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink-deep) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--night);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 15px; }
.brand img { width: 40px; height: 40px; border: 3px solid var(--night); }
.brand:hover { color: var(--glow); }
.top nav { margin-left: auto; }
.top nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: 8px 12px; color: var(--paper); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--gold); }
.top .btn { padding: 8px 14px; font-size: 15px; }
@media (max-width: 900px) { .top nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 430px) { .brand span { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--night);
  padding: 12px 20px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--night); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--night); }
.btn.ghost { background: var(--paper); }
.btn svg { width: 22px; height: 22px; flex: none; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--night); color: var(--paper);
  border: 3px solid var(--paper-dim); padding: 9px 18px 9px 14px; text-decoration: none;
  box-shadow: 4px 4px 0 var(--night);
}
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; font-weight: 600; color: var(--mist); letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.store b { display: block; font-size: 19px; line-height: 1.2; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- labels ---------- */
.eyebrow {
  display: inline-block; background: var(--night); color: var(--gold);
  border: 3px solid var(--gold-dark); padding: 4px 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px;
}
.tag { display: inline-block; padding: 2px 10px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tag.live { background: var(--live); color: #fff; }
.tag.nature { background: var(--green); color: #fff; }
.tag.festival { background: var(--rose); color: #fff; }
.tag.day { background: var(--sea); color: #fff; }
.tag.birthday { background: var(--gold); color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; isolation: isolate; }
.hero::before { /* the app's pixel world map, faded into the sea */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/img/world.webp") center 40% / cover no-repeat;
  image-rendering: pixelated; opacity: .32;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 72% 45%, rgba(246, 214, 164, .28), transparent 70%),
    linear-gradient(180deg, rgba(29, 58, 92, .2) 0%, rgba(29, 58, 92, .55) 60%, var(--bg) 100%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); color: var(--paper); text-shadow: 4px 4px 0 var(--night); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 21px; max-width: 32em; color: var(--paper); }
.hero .fine { margin: 18px 0 0; font-size: 15px; color: var(--mist); }

.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.stage .phone { transform: rotate(3deg); }
.stage .scout {
  position: absolute; left: -6%; bottom: 2%; width: 40%; max-width: 210px;
  filter: drop-shadow(6px 8px 0 rgba(12, 29, 51, .6));
  animation: bob 4s ease-in-out infinite;
}
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--night); padding: 8px 14px 8px 10px; font-weight: 600; font-size: 15px; line-height: 1.2;
  animation: float 6s ease-in-out infinite;
}
.chip .dot { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--ink); font-size: 16px; }
.chip small { display: block; color: var(--ink-2); font-weight: 400; font-size: 13px; }
.chip.c1 { top: 6%; left: -2%; }
.chip.c2 { top: 40%; right: -6%; animation-delay: -2s; }
.chip.c3 { bottom: 10%; right: 0; animation-delay: -4s; }
.spark { position: absolute; width: 18px; height: 18px; animation: twinkle 2.6s ease-in-out infinite; }
.spark::before, .spark::after { content: ""; position: absolute; background: var(--glow); }
.spark::before { left: 6px; top: 0; width: 6px; height: 18px; }
.spark::after { left: 0; top: 6px; width: 18px; height: 6px; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- phone frame ---------- */
.phone {
  position: relative; width: 290px; max-width: 100%;
  padding: 12px; background: #101820; border-radius: 42px;
  border: 3px solid var(--night);
  box-shadow: 0 0 0 3px #3a4656 inset, 10px 12px 0 var(--night);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink-deep); }
.phone::before { /* camera dot */
  content: ""; position: absolute; top: 22px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #05080c; z-index: 2;
}
.phone.sm { width: 240px; border-radius: 36px; padding: 10px; }
.phone.sm img { border-radius: 26px; }

/* ---------- stats strip ---------- */
.strip { background: var(--gold); color: var(--ink); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.strip ul { list-style: none; margin: 0 auto; padding: 18px 20px; max-width: var(--wrap); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip li { display: flex; align-items: center; gap: 12px; font-weight: 600; line-height: 1.25; }
.strip b { font-size: 34px; line-height: 1; }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
section.band { padding: 88px 0; }
section.band.alt { background: var(--ink-deep); border-top: 4px solid var(--night); border-bottom: 4px solid var(--night); }
.head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.head h2 { font-size: clamp(32px, 4vw, 46px); color: var(--gold); text-shadow: 3px 3px 0 var(--night); }
.head p { font-size: 20px; color: var(--paper); }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps .phone { margin-bottom: 26px; }
.steps h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.steps h3::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: var(--gold); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--night); font-size: 20px;
}
.steps p { max-width: 21em; color: var(--paper); }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 36px 0; }
.feature + .feature { border-top: 3px dashed rgba(217, 204, 171, .25); }
.feature .art { display: flex; justify-content: center; position: relative; }
.feature.flip .art { order: 2; }
.feature h3 { font-size: clamp(28px, 3vw, 36px); color: var(--gold); }
.feature p { font-size: 19px; }
.feature ul { padding-left: 0; list-style: none; margin: 0; }
.feature li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.feature li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 12px; background: var(--gold); border: 2px solid var(--night); transform: rotate(45deg); }
.feature .scout-mini { position: absolute; width: 120px; bottom: -10px; left: 6%; filter: drop-shadow(4px 6px 0 rgba(12, 29, 51, .6)); }
.feature.flip .scout-mini { left: auto; right: 6%; }

/* gallery */
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 30px; margin: 0 auto; max-width: calc(var(--wrap) + 40px); scrollbar-color: var(--gold) var(--night); }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.gallery figcaption { margin-top: 18px; font-weight: 600; color: var(--paper); }
.gallery:focus-visible { outline-offset: -3px; }

/* privacy band */
.private { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.private .scout-big { max-width: 300px; margin: 0 auto; filter: drop-shadow(8px 10px 0 rgba(12, 29, 51, .6)); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.card {
  background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--night);
  padding: 22px;
}
.card h3 { font-size: 21px; margin-bottom: .3em; }
.card p { margin: 0; color: var(--ink-2); }
.card a { color: var(--sea); }
.card .ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--gold); border: 3px solid var(--ink); margin-bottom: 12px; }
.card .ico svg { width: 24px; height: 24px; }

/* meet Scout */
.poses { display: flex; justify-content: center; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.poses img { height: 150px; width: auto; filter: drop-shadow(4px 6px 0 rgba(12, 29, 51, .5)); transition: transform .2s ease; }
.poses img:hover { transform: translateY(-10px) rotate(-3deg); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--night); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 20px; font-weight: 700; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); border: 3px solid var(--ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }
.faq a { color: var(--sea); }

/* closing call */
.cta-box { position: relative; text-align: center; background: var(--sea); border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--night); padding: 56px 24px 48px; overflow: hidden; }
.cta-box h2 { font-size: clamp(30px, 4vw, 44px); color: var(--paper); text-shadow: 3px 3px 0 var(--night); }
.cta-box p { font-size: 20px; max-width: 34em; margin: 0 auto 26px; }
.cta-box .actions { justify-content: center; }
.cta-box img { width: 150px; margin: 0 auto 10px; filter: drop-shadow(5px 6px 0 rgba(12, 29, 51, .6)); }

/* ---------- footer ---------- */
footer.site { background: var(--night); color: var(--mist); padding: 48px 0 40px; font-size: 15px; border-top: 4px solid #07121f; }
footer.site .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer.site h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--paper); font-weight: 400; }
footer.site a:hover { color: var(--gold); }
footer.site .legal { grid-column: 1 / -1; border-top: 2px solid #1c3150; padding-top: 22px; font-size: 13px; color: #a99f84; }
footer.site .legal p { margin: 0 0 6px; }

/* ---------- simple pages (privacy, accessibility, 404) ---------- */
main.doc { max-width: 800px; margin: 0 auto; padding: 40px 20px 72px; }
.doc .card { padding: 30px 30px 26px; }
.doc .card + .card { margin-top: 22px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); }
.doc h2 { font-size: 23px; margin: 30px 0 8px; }
.doc .card p, .doc .card li { color: var(--ink); margin: 0 0 10px; }
.doc ul { padding-left: 22px; margin: 0 0 10px; }
.dated { color: #6b6450 !important; font-size: 15px; margin: 0 0 18px !important; }
.short { background: var(--gold); border: 3px solid var(--gold-dark); padding: 14px 16px; margin: 0 0 8px; }
.short p:last-child, .short ul:last-child { margin-bottom: 0; }
.lost { text-align: center; padding-top: 20px; }
.lost img { width: 220px; margin: 0 auto 8px; filter: drop-shadow(6px 8px 0 rgba(12, 29, 51, .6)); animation: bob 4s ease-in-out infinite; }
.lost h1 { font-size: clamp(34px, 5vw, 52px); color: var(--gold); text-shadow: 3px 3px 0 var(--night); }
.lost .code { font-size: 15px; letter-spacing: .1em; color: var(--mist); text-transform: uppercase; }
.lost .actions { justify-content: center; margin-top: 26px; }

/* ---------- reveal on scroll (only when JS is on and motion is allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .feature, .private { grid-template-columns: 1fr; }
  .hero .copy { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .actions { justify-content: center; }
  .stage { min-height: 0; padding: 20px 0; }
  .feature { gap: 28px; text-align: left; }
  .feature.flip .art { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .private .scout-big { max-width: 200px; }
  footer.site .wrap { grid-template-columns: 1fr 1fr; }
  footer.site .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  section.band { padding: 64px 0; }
  .stage .phone { width: 240px; }
  .chip { font-size: 13px; padding: 6px 10px 6px 8px; }
  .chip .dot { width: 24px; height: 24px; font-size: 13px; }
  .chip.c1 { left: 0; }
  .chip.c2 { right: 0; }
  .stage .scout { width: 34%; left: 0; }
  .cards { grid-template-columns: 1fr; }
  .strip b { font-size: 28px; }
  .strip li { font-size: 15px; }
  .doc .card { padding: 22px 18px; }
  .feature .scout-mini { width: 90px; }
}

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

/* ---------- small helpers (no inline styles: the site's security policy blocks them) ---------- */
.spark.s1 { top: 4%; right: 22%; }
.spark.s2 { top: 60%; left: 4%; animation-delay: -1s; }
.spark.s3 { bottom: 2%; right: 30%; animation-delay: -1.8s; }
.chip .dot.festival { background: var(--rose); }
.chip .dot.nature { background: var(--green); }
.chip .dot.day { background: var(--sea); }
.head.left { text-align: left; margin: 0 0 28px; }
p.more { margin-top: 24px; }
footer.site .blurb { margin-top: 14px; }

/* ---------- Ask Scout ---------- */
.ask-grid { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: end; max-width: 980px; margin: 0 auto; }
.ask-scout { position: relative; display: flex; flex-direction: column; align-items: center; }
.ask-scout img { width: 230px; filter: drop-shadow(6px 8px 0 rgba(12, 29, 51, .6)); }
.ask-scout img.hop { animation: hop .5s ease; }
.ask-scout .bubble {
  position: relative; margin-bottom: 22px; background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--night); padding: 14px 16px; font-size: 16px; line-height: 1.4;
}
.ask-scout .bubble::after { content: ""; position: absolute; left: 50%; bottom: -15px; width: 22px; height: 22px; background: var(--paper); border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-18px); } }

.ask-box { display: flex; flex-direction: column; gap: 14px; min-height: 420px; padding: 20px; }
.ask-log { list-style: none; margin: 0; padding: 0 4px 0 0; flex: 1; display: flex; flex-direction: column; gap: 12px; max-height: 360px; overflow-y: auto; }
.ask-log:empty { display: none; }
.ask-log li { display: flex; }
.ask-log .q { margin: 0 0 0 auto; max-width: 85%; background: var(--gold); border: 3px solid var(--gold-dark); padding: 8px 14px; font-weight: 600; color: var(--ink); }
.ask-log .a { margin: 0; max-width: 90%; background: #fffaf0; border: 3px solid var(--ink); padding: 10px 14px; color: var(--ink); }
.ask-log .a b { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.ask-log .a a { color: var(--sea); }
.starters { display: flex; flex-wrap: wrap; gap: 10px; }
.starters button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--paper-dim); color: var(--ink); border: 3px solid var(--ink); padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink);
}
.starters button:hover { background: var(--gold); }
.starters button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ask-box form { display: flex; gap: 10px; margin-top: auto; }
.ask-box input {
  flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink);
  background: #fffaf0; border: 3px solid var(--ink); padding: 10px 14px; border-radius: 0;
}
.ask-box input::placeholder { color: #8a826a; }
.ask-box input:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.ask-box .btn { padding: 10px 18px; box-shadow: 3px 3px 0 var(--ink); justify-content: center; }
.ask-box .btn[disabled] { opacity: .6; cursor: wait; }
.ask-status { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--ink-2); }
.ask-status.problem { color: #a33a2f; font-weight: 600; }
.ask-note { margin: 0; font-size: 13px; color: #6b6450; }
.ask-note a { color: var(--sea); }

@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; gap: 10px; }
  .ask-scout { flex-direction: row; align-items: center; gap: 12px; }
  .ask-scout img { width: 110px; order: -1; }
  .ask-scout .bubble { margin: 0 0 0 10px; flex: 1; font-size: 15px; }
  .ask-scout .bubble::after { left: -15px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(135deg); }
}
@media (max-width: 560px) {
  .ask-box { padding: 14px; min-height: 0; }
  .ask-box form { flex-direction: column; }
}
