/* Squatch Says: forest-night palette taken from the app's treeline art and logo. */
:root {
  --night: #060d07;
  --pine: #0f2413;
  --pine-raised: #17331c;
  --line: rgba(238, 232, 218, 0.1);
  --bone: #eee8da;
  --fog: rgba(238, 232, 218, 0.64);
  --dim: rgba(238, 232, 218, 0.38);
  --amber: #ffbf33;
  --ember: #ff5a1f;
  --landed: #30d158;
  --missed: #ff453a;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

a { color: var(--amber); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--amber); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand img { height: 26px; width: auto; }
.site-nav { display: flex; gap: clamp(14px, 3vw, 32px); align-items: center; }
.site-nav a {
  color: var(--fog); text-decoration: none;
  font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--bone); }
.site-nav .get { color: #000; background: var(--amber); padding: 10px 14px; border-radius: 999px; }
.site-nav .get:hover { color: #000; background: #ffd06b; }
@media (max-width: 640px) {
  .site-nav .hide-sm { display: none; }
  .brand img { height: 20px; }
}

/* Shared type */

.eyebrow {
  font: 500 13px/1.2 var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase; }
h2 { font-size: clamp(44px, 7vw, 88px); }
h3 { font-size: 30px; line-height: 1; }
.lede { color: var(--fog); font-size: clamp(17px, 1.6vw, 20px); max-width: 38em; }

section { padding-block: clamp(72px, 11vw, 140px); }

/* Hero: Squatch calls a trick */

.hero { padding: clamp(28px, 4vw, 48px) 0 0; position: relative; }
.caller { text-align: center; }
.caller .says {
  font: 500 clamp(13px, 1.4vw, 15px)/1 var(--mono);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--fog);
  margin: 0 0 18px;
}
.trick {
  font-size: clamp(60px, 11vw, 150px);
  color: var(--bone);
  min-height: 1.84em; /* room for two lines so rerolls don't shove the page */
  display: flex; align-items: center; justify-content: center;
  text-wrap: balance;
  padding-inline: 4px;
}
.trick span { display: inline-block; }
.trick.is-rolling span { animation: roll 0.42s cubic-bezier(.2, .8, .2, 1); }
@keyframes roll {
  from { opacity: 0; transform: translateY(0.18em) rotate(-1.5deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.call-meta { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 14px 0 26px; font: 500 14px/1 var(--mono); color: var(--fog); text-transform: uppercase; letter-spacing: 0.08em; }
.tier { display: inline-flex; align-items: center; gap: 8px; }
.tier::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tier, var(--landed)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 17px/1 var(--body);
  padding: 16px 24px; border-radius: 14px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: #ffd06b; }
.btn-ghost { background: var(--pine-raised); color: var(--bone); }
.btn-ghost:hover { background: #1f4226; }
.btn svg { width: 18px; height: 18px; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.treeline { position: relative; margin-top: clamp(20px, 3vw, 36px); }
.scene { position: relative; aspect-ratio: 3 / 1; overflow: hidden; }
.scene .forest { position: absolute; inset: 0; background: url(forest.svg) center bottom / cover no-repeat; }

/* Below 1200px, show the original video instead of the vector scene. */
.original-walk { display: none; }
@media (max-width: 1199.98px) {
  .original-walk { display: block; }
  .scene { display: none; }
}

/* The walking Squatch is drawn on this canvas by the script in index.html. */
.walker { position: absolute; inset: 0; width: 100%; height: 100%; }
.treeline video, .treeline img {
  width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover;
  mix-blend-mode: lighten; /* the original art's black sky takes on the page color */
}
.treeline::after {
  content: ""; display: block; height: clamp(60px, 9vw, 120px);
  background: linear-gradient(#031403, var(--night));
}

.tagline {
  text-align: center; margin: 8px auto 0; padding-inline: var(--gutter);
  font: 600 clamp(20px, 2.4vw, 28px)/1.3 var(--body); max-width: 30em;
}
.tagline small { display: block; margin-top: 10px; font: 400 16px/1.5 var(--body); color: var(--fog); }

/* Letter tiles, the game's scoreboard */

.tiles { display: inline-flex; gap: 6px; }
.tiles b {
  width: 1.7em; height: 1.7em; display: grid; place-items: center;
  font: 500 15px/1 var(--mono);
  background: var(--pine-raised); color: var(--dim); border-radius: 6px;
}
.tiles b.on { background: var(--amber); color: #000; }

/* How a session goes */

.session { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(40px, 7vw, 100px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font: 900 46px/0.9 var(--display); color: var(--amber);
}
.steps h3 { font-size: 26px; }
.steps p { margin: 4px 0 0; color: var(--fog); }
.steps .tiles { margin-top: 12px; }
@media (max-width: 820px) { .session { grid-template-columns: 1fr; } .session .phone { max-width: 320px; margin-inline: auto; } }

/* Phone frame around real app screenshots */

.phone {
  position: relative;
  border-radius: 15% / 7%;
  padding: 3.2%;
  background: linear-gradient(145deg, #2b2f2c, #0b0d0c 55%, #232624);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px #000;
}
.phone img { border-radius: 12% / 5.6%; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; background: #000; }
.phone::after {
  content: ""; position: absolute; top: 4.6%; left: 50%; translate: -50% 0;
  width: 27%; height: 2.6%; border-radius: 999px; background: #000;
}

/* Feature gallery */

.gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 270px);
  gap: clamp(20px, 3vw, 36px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 48px var(--gutter) 24px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--pine-raised) transparent;
}
@media (min-width: 1280px) { .gallery { margin-inline: 0; padding-inline: 0; } }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 22px; }
.gallery figcaption strong { display: block; font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.gallery figcaption span { display: block; margin-top: 6px; color: var(--fog); font-size: 15px; line-height: 1.5; }

/* House rules */

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.rule { background: var(--night); padding: 28px 26px 30px; }
.rule h3 { font-size: 28px; color: var(--bone); }
.rule p { margin: 10px 0 0; color: var(--fog); font-size: 16px; }
.rule .tag { display: inline-block; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }

/* Skate or snow */

.ride { background: var(--pine); border-block: 1px solid var(--line); }
.ride-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 28px); margin-top: 48px; }
.ride-card { background: var(--night); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.ride-card .count { font: 900 clamp(72px, 10vw, 128px)/0.85 var(--display); color: var(--amber); }
.ride-card h3 { margin-top: 14px; }
.ride-card p { color: var(--fog); margin: 10px 0 18px; }
.ride-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ride-card li { font: 500 13px/1 var(--mono); padding: 8px 10px; border-radius: 8px; background: var(--pine-raised); color: var(--fog); }
@media (max-width: 720px) { .ride-grid { grid-template-columns: 1fr; } }

/* Privacy band */

.privacy-band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.no-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.no-list li { display: flex; gap: 14px; align-items: baseline; font: 800 clamp(30px, 4vw, 44px)/1 var(--display); text-transform: uppercase; }
.no-list li::before { content: "✕"; font: 500 18px/1 var(--mono); color: var(--missed); translate: 0 -0.2em; }
@media (max-width: 820px) { .privacy-band .wrap { grid-template-columns: 1fr; } }

/* Final call */

.final { text-align: center; padding-bottom: 0; }
.final h2 { font-size: clamp(56px, 11vw, 150px); line-height: 1.02; letter-spacing: 0.02em; }
.final h2 em { font-style: normal; color: var(--amber); }
.final .lede { margin: 22px auto 30px; }
.final .treeline { margin-top: 56px; }
.final .treeline::after { display: none; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--fog); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--fog); text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.site-footer img { height: 20px; width: auto; }

/* Document pages: privacy and support */

.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(56px, 9vw, 104px); }
.doc .updated { font: 500 13px/1 var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; margin: 18px 0 40px; }
.doc h2 { font-size: clamp(30px, 4vw, 40px); margin: 52px 0 14px; }
.doc p, .doc li { color: var(--fog); }
.doc strong { color: var(--bone); font-weight: 600; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.contact-card { margin: 32px 0 8px; background: var(--pine); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.contact-card p { margin: 0; color: var(--bone); font-weight: 600; }
.contact-card p span { display: block; color: var(--fog); font-weight: 400; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.4 var(--body); color: var(--bone); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trick.is-rolling span { animation: none; }
  .btn { transition: none; }
}
