/* squirrelcade.com: one page in the app's look (docs/brand): deep forest and the squirrel's orange, Fredoka for the
   display type, pixel art at whole-pixel sizes. Light and dark follow the visitor's system setting. */
@font-face { font-family: Fredoka; font-weight: 400; font-display: swap; src: url(fonts/fredoka-400.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(fonts/fredoka-600.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(fonts/fredoka-700.woff2) format('woff2'); }

:root {
  --bg: #f2f6f2;
  --surface: #ffffff;
  --ink: #14231a;
  --muted: #526357;
  --line: #d6e1d8;
  --deep: #173d2a;
  --forest: #2b7a4b;
  --acorn: #46a36b;
  --tail: #ee8a2c;
  --brown: #a3550f;
  --cap: #6b3a10;
  --on-deep: #f0f6f1;
  --on-deep-muted: #b7cdbe;
  --word-sq: #a3550f;
  --word-cade: #2b7a4b;
  --shadow: 0 24px 60px -24px rgba(16, 40, 27, 0.45);
  --display: Fredoka, 'Trebuchet MS', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1611;
    --surface: #13221a;
    --ink: #e4ede6;
    --muted: #9fb3a6;
    --line: #24392d;
    --word-sq: #ee8a2c;
    --word-cade: #46a36b;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.eyebrow { font: 600 0.8rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tail); margin-bottom: 14px; }
.eyebrow-dark { color: var(--brown); }
@media (prefers-color-scheme: dark) { .eyebrow-dark { color: var(--tail); } }

/* The hero: deep forest with a faint pixel grid, the squirrel large. */
.hero {
  background-color: var(--deep);
  background-image:
    radial-gradient(circle at 78% 40%, rgba(238, 138, 44, 0.18), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  color: var(--on-deep);
  padding-block: 28px 72px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; display: grid; gap: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 56px; width: max-content; }
.brand img { image-rendering: pixelated; }
.wordmark { font: 600 1.75rem/1 var(--display); letter-spacing: -0.02em; }
.wordmark .sq { color: var(--tail); }
.wordmark .cade { color: var(--acorn); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.02em; margin-bottom: 20px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--on-deep-muted); max-width: 34em; margin-bottom: 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1.05rem/1 var(--display); padding: 15px 22px; border-radius: 12px; text-decoration: none; border: 2px solid transparent; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--tail); color: #241302; box-shadow: 0 4px 0 #b9651a; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary.is-soon { cursor: default; background: rgba(238, 138, 44, 0.16); color: var(--tail); border-color: rgba(238, 138, 44, 0.55); border-style: dashed; box-shadow: none; transform: none; }
.btn-ghost { color: var(--on-deep); border-color: rgba(240, 246, 241, 0.35); }
.btn-ghost:hover { border-color: var(--on-deep); }
.btn:focus-visible { outline: 3px solid var(--tail); outline-offset: 3px; }
.fineprint { font-size: 0.92rem; color: var(--on-deep-muted); max-width: 36em; }

.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.pixel-squirrel { width: min(100%, 320px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 32px; background: rgba(255, 255, 255, 0.04); border: 2px solid rgba(255, 255, 255, 0.08); }
.pixel-squirrel img { width: 72%; image-rendering: pixelated; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.acorns { position: absolute; inset: 0; pointer-events: none; }
.acorns span {
  position: absolute; width: 30px; height: 36px; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 6' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v1H2z' fill='%236b3a10'/%3E%3Cpath d='M0 1h5v2H0z' fill='%236b3a10'/%3E%3Cpath d='M1 3h3v2H1zM2 5h1v1H2z' fill='%2346a36b'/%3E%3C/svg%3E") center / contain no-repeat;
}
.acorns span:nth-child(1) { left: 6%; top: 12%; transform: rotate(-14deg); }
.acorns span:nth-child(2) { right: 4%; top: 22%; transform: rotate(12deg) scale(0.8); }
.acorns span:nth-child(3) { left: 14%; bottom: 6%; transform: rotate(8deg) scale(0.9); }

/* The tour: screenshots from a made-up collection, in a browser frame and a phone. */
.tour { padding-block: 88px 40px; }
.tour h2 { margin-bottom: 40px; max-width: 18em; }
.showcase { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: end; margin-bottom: 32px; }
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
figure { margin: 0; min-width: 0; }
figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.browser > img, .phone > img { box-shadow: var(--shadow); }
.browser > img { border-radius: 0 0 12px 12px; border: 1px solid var(--line); border-top: 0; }
.browser-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding-inline: 12px; background: var(--deep); border-radius: 12px 12px 0 0; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--tail); }
.browser-bar span:nth-child(2) { background: var(--brown); }
.browser-bar span:nth-child(3) { background: var(--acorn); }
.phone > img { border-radius: 34px; border: 9px solid #0e1a13; }

/* What it does. */
.features { padding-block: 72px; }
.features h2 { margin-bottom: 36px; }
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.feature-grid h3 { display: flex; align-items: center; gap: 12px; }
.feature-grid h3::before {
  content: ''; flex: none; width: 20px; height: 24px; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 6' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v1H2z' fill='%236b3a10'/%3E%3Cpath d='M0 1h5v2H0z' fill='%236b3a10'/%3E%3Cpath d='M1 3h3v2H1zM2 5h1v1H2z' fill='%2346a36b'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feature-grid p { color: var(--muted); }

/* Getting started. */
.steps { padding-block: 32px 88px; }
.steps h2 { margin-bottom: 36px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step-list li { display: grid; gap: 10px; align-content: start; }
.step-n { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--deep); color: var(--tail); font: 700 1.5rem/1 var(--display); }
.step-list p { color: var(--muted); }

/* The closer and the footer. */
.closer { background: var(--deep); color: var(--on-deep); padding-block: 56px; }
.closer-inner { display: flex; align-items: center; gap: 28px; }
.closer img { image-rendering: pixelated; flex: none; }
.closer h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 8px; }
.closer p { color: var(--on-deep-muted); }
.footer { padding-block: 32px 48px; }
.footer-inner { display: grid; gap: 10px; }
.wordmark.small { font-size: 1.3rem; }
.footer .wordmark .sq { color: var(--word-sq); }
.footer .wordmark .cade { color: var(--word-cade); }
.footer p { color: var(--muted); font-size: 0.9rem; max-width: 52em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; }
  .pixel-squirrel { width: 180px; }
  .brand { margin-bottom: 28px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase .phone { max-width: 260px; justify-self: center; }
  .showcase-row { grid-template-columns: 1fr; }
  .feature-grid, .step-list { grid-template-columns: 1fr; }
  .closer-inner { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pixel-squirrel img { animation: none; }
}
