/* litterquest.fyi - the app's palette (app/src/theme.ts) and Montserrat (the wordmark's face). */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #faf6ef;          /* cream, the app's light background */
  --card: #ffffff;
  --alt: #f2ebdf;
  --border: #e7ddcd;
  --text: #292524;
  --body: #57534e;
  --muted: #736c66;
  --primary: #15803d;
  --primary-deep: #14532d;
  --gold: #a16207;
  --hero: #0d3a2d;        /* the store screenshots' eucalypt green */
  --hero-2: #0a1a24;
  --on-hero: #f0fdf4;
  --on-hero-body: #c7dccf;
  --wattle: #fbbf24;
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12100e;
    --card: #1c1917;
    --alt: #181513;
    --border: #2e2925;
    --text: #f5f0e8;
    --body: #cfc6bb;
    --muted: #a8a29e;
    --primary: #4ade80;
    --primary-deep: #22c55e;
    --gold: #fbbf24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12100e;
  --card: #1c1917;
  --alt: #181513;
  --border: #2e2925;
  --text: #f5f0e8;
  --body: #cfc6bb;
  --muted: #a8a29e;
  --primary: #4ade80;
  --primary-deep: #22c55e;
  --gold: #fbbf24;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, .shots:focus-visible { outline: 3px solid var(--wattle); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--hero); color: var(--on-hero); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-hero); text-decoration: none; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--on-hero-body); text-decoration: none; font-size: 0.95rem; }
.top nav a:hover { color: var(--on-hero); text-decoration: underline; }
@media (max-width: 560px) { .top nav { display: none; } }

/* Hero */
.hero {
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(251, 191, 36, 0.10), transparent 60%),
    linear-gradient(180deg, var(--hero) 0%, #0b2a26 60%, var(--hero-2) 100%);
  color: var(--on-hero-body);
  padding: 32px 0 0;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 32px; align-items: end; }
.hero-copy { padding-bottom: 8px; }
.eyebrow {
  font-family: "Montserrat", sans-serif; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem;
  color: var(--wattle); margin-bottom: 14px;
}
.hero h1 { color: var(--on-hero); font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.6rem); margin-bottom: 18px; }
.lede { font-size: 1.1rem; max-width: 36em; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 150px; min-height: 52px; padding: 7px 18px;
  border-radius: 12px; border: 1.5px solid rgba(240, 253, 244, 0.35);
  background: rgba(240, 253, 244, 0.06); color: var(--on-hero);
}
.store-kicker { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-hero-body); }
.store-name { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }

.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  font-size: 0.85rem; padding: 4px 12px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.14); color: #fde68a;
}

.hero-art { justify-self: center; width: min(88vw, 420px); }
.hero-art img {
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-copy { padding-bottom: 72px; align-self: center; }
  .hero-art { width: 420px; justify-self: end; }
}

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--alt); border-block: 1px solid var(--border); }
.section-lede { max-width: 42em; margin-bottom: 32px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; top: 18px; right: 20px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1.6rem; color: var(--border);
}
.steps img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.steps p { margin: 0; font-size: 0.97rem; }
@media (max-width: 600px) {
  .steps { gap: 12px; }
  .steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 16px 18px; }
  .steps img { width: 52px; height: 52px; grid-row: span 2; margin: 0; }
  .steps h3 { margin-bottom: 0.25em; padding-right: 24px; }
  .steps li::before { top: 12px; right: 14px; font-size: 1.2rem; }
}

/* Screenshots: one row that scrolls sideways */
.shots-section { padding-bottom: 56px; }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 16px 20px; margin-top: 8px; scroll-padding-inline: 16px;
  scrollbar-width: thin;
}
@media (min-width: 720px) {
  .shots {
    padding-inline: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
    scroll-padding-inline: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
  }
}
.shots img {
  flex: 0 0 auto; width: 240px; border-radius: 18px; scroll-snap-align: start;
  box-shadow: 0 8px 28px rgba(13, 58, 45, 0.18);
}

/* Buddies */
.buddies { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.buddies li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px 6px 10px;
}
.buddies img { width: 88px; height: 88px; object-fit: contain; }
.buddies span { font-size: 0.82rem; line-height: 1.25; color: var(--text); margin-top: 6px; }

/* Lists */
.two-col { display: grid; gap: 48px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
  border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary);
  transform: rotate(-45deg);
}
.more { margin-top: 8px; font-weight: 600; }

/* Closing call */
.cta { background: var(--hero); color: var(--on-hero-body); padding: 64px 0; text-align: center; }
.cta h2 { color: var(--on-hero); }
.cta p { max-width: 36em; margin: 0 auto; }

/* Footer */
.foot { background: var(--hero-2); color: #9fb5a9; padding: 28px 0 36px; font-size: 0.92rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: #d6e7dc; }

/* 404 (no inline styles: the CSP allows only this stylesheet) */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound h1 { color: var(--on-hero); }
.notfound a { color: var(--wattle); }
