/* Bearly Deployed Studio: "The Den". Light by default; Night navy for visitors whose device is in dark mode. */
:root {
  --bg: #f4eee3;
  --card: #fffcf6;
  --panel: #e8dcc6;       /* the bear's scene */
  --line: #e2d6c1;
  --dash: #b9a88c;
  --ink: #2a1d24;
  --muted: #5e5157;
  --link: #7a4a0e;
  --accent: #e9a53a;      /* honey: badges, bullets */
  --on-accent: #2a1d24;
  --btn: #2a1d24;         /* the main button */
  --on-btn: #fffcf6;
  --band: #2a1d24;        /* the contact band */
  --on-band: #f4eee3;
  --band-muted: #d9cfc0;
  --band-line: transparent;
  --frame: #2a1d24;       /* screenshot frames, the shelf's outline */
  --display: "Fredoka", ui-rounded, ui-sans-serif, system-ui, sans-serif; /* headings: chunky but easy to read */
  --logo: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;          /* the pixel font: the studio name only */
  --body: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151b2b;
    --card: #1f2840;
    --panel: #1f2840;
    --line: #2e3a57;
    --dash: #3a4766;
    --ink: #eef2f6;
    --muted: #a9b4c8;
    --link: #f0b45a;
    --accent: #f0b45a;
    --on-accent: #151b2b;
    --btn: #f0b45a;
    --on-btn: #151b2b;
    --band: #1f2840;
    --on-band: #eef2f6;
    --band-muted: #a9b4c8;
    --band-line: #2e3a57;
    --frame: #0b0f19;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img.pixel { image-rendering: pixelated; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 40px; }
.brand span { font-family: var(--logo); font-weight: 700; font-size: 22px; font-variant-ligatures: none; } /* Pixelify's fi ligature reads as "A" */
nav.site { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 700; font-size: 16px; }
nav.site a { color: var(--ink); text-decoration: none; }
nav.site a:hover { text-decoration: underline; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 56px 0 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; }
.lede { margin: 0 0 32px; max-width: 32em; font-size: 20px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.btn.primary { background: var(--btn); color: var(--on-btn); }
.btn.secondary { border: 2px solid var(--ink); color: var(--ink); }
.scene { flex: 1 1 380px; min-width: 0; height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 32px 56px; border-radius: 28px; background: var(--panel); }
.scene img { width: 248px; height: 176px; margin-bottom: -8px; }
.shelf { width: 100%; max-width: 360px; border: 6px solid var(--frame); }
.shelf span { display: block; }
.shelf span:nth-child(1) { height: 8px; background: #a8743e; }
.shelf span:nth-child(2) { height: 10px; background: #8a5a2e; }
.shelf span:nth-child(3) { height: 8px; background: #6a4220; }

/* Sections */
main > section { padding: 24px 0 72px; }
h2 { margin: 0 0 24px; font-size: 36px; }
p { margin: 0 0 12px; }

.feature { display: flex; flex-direction: column; gap: 36px; padding: 40px; border-radius: 28px; background: var(--card); border: 2px solid var(--line); }
.app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.app-intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.app-intro > * { margin: 0; }
.feature .icon { flex: none; width: 128px; height: 128px; border-radius: 28px; }
.feature h3 { font-size: 44px; line-height: 1; }
.feature .pitch { max-width: 34em; font-size: 19px; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.badge { padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 800; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); border: 2px solid var(--frame); }
.small { font-size: 15px; }
h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.2; }

/* Pitterpat in action: the home-screen video beside what it shows */
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: 32px; border-radius: 24px; background: var(--bg); }
.demo-video { position: relative; flex: none; width: 300px; max-width: 100%; margin: 0 auto; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1140; border-radius: 36px; border: 6px solid var(--frame); background: #1e1712; }
.demo-toggle { position: absolute; right: 16px; top: 16px; min-height: 36px; /* (over the status bar: the pet's never there) */ padding: 0 14px; border: 0; border-radius: 999px; background: rgba(42, 29, 36, 0.8); color: #fffcf6; font: 800 14px var(--body); cursor: pointer; }
.demo-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.demo-text > * { margin: 0; }
.demo-text h4 { font-size: 34px; line-height: 1.1; }
.demo-lede { font-size: 18px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 24px; }
.tiles figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tiles img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; border: 4px solid var(--frame); }
.tiles figcaption { display: flex; flex-direction: column; gap: 4px; }
.tiles h4 { font-size: 20px; }
.tiles p { margin: 0; font-size: 15px; color: var(--muted); }

.workshop { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; margin-top: 24px; padding: 28px 32px; border-radius: 20px; border: 2px dashed var(--dash); }
.workshop h3 { margin: 0; font-size: 22px; }
.workshop p { margin: 0; color: var(--muted); }

.about-lede { max-width: 46em; margin-bottom: 32px; font-size: 19px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.values div { padding: 24px; border-radius: 20px; background: var(--card); border: 2px solid var(--line); }
.values h3 { margin: 0 0 6px; font-size: 20px; }
.values p { margin: 0; color: var(--muted); }

.contact { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 40px; margin-bottom: 72px; border-radius: 28px; background: var(--band); color: var(--on-band); border: 2px solid var(--band-line); }
.contact > div { flex: 1 1 360px; min-width: 0; }
.contact h2 { margin: 0 0 8px; font-size: 32px; }
.contact p { margin: 0; color: var(--band-muted); }
.contact .btn { background: var(--accent); color: var(--on-accent); min-height: 52px; }

/* Policy pages */
.doc { padding: 24px 0 24px; max-width: 760px; }
.doc h1 { margin: 0 0 16px; font-size: clamp(32px, 6vw, 44px); }
.doc .meta { color: var(--muted); font-size: 15px; }
.doc section { padding: 24px 0; border-top: 2px solid var(--line); }
.doc h2 { margin: 0 0 12px; font-size: 26px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }

/* Footer */
footer.site { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; padding: 32px 0 48px; border-top: 2px solid var(--line); color: var(--muted); font-size: 15px; }
footer.site p { margin: 0; }
footer.site p:first-child { color: var(--ink); font-weight: 800; flex-basis: 100%; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 600px) {
  .hero { padding: 24px 0 48px; gap: 32px; }
  .scene { height: 300px; }
  .feature, .contact { padding: 24px; }
  .demo { padding: 20px; }
  .demo-text h4 { font-size: 28px; }
}
