/* EcoBear marketing site — app palette (constants/uiConstants.ts) with the comic's
   ink outlines and offset shadows for a playful, hand-drawn feel. */
:root {
  --ink: #153d46;
  --text: #1b2733;
  --muted: #5f6d79;
  --bg: #f7f9fb;
  --card: #ffffff;
  --accent: #1470c8;
  --accent-dark: #0f5ba3;
  --accent-tint: #e8f2fc;
  --sky: #d6ecfb;
  --green: #2f8f5b;
  --green-tint: #e3f4e9;
  --sun: #ffd23f;
  --caption: #fff4c9;
  --red: #c64545;
  --red-tint: #fbe9e9;
  --radius: 18px;
  --outline: 3px solid var(--ink);
  --shadow: 5px 6px 0 var(--ink);
  --wrap: 1180px;
  --heading: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --comic: 'Bangers', 'Fredoka', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--heading); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border: var(--outline); border-radius: 10px; z-index: 20; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons, cards, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 700 1rem/1 var(--body);
  color: var(--ink); background: var(--sun);
  border: var(--outline); border-radius: 999px;
  padding: .8em 1.3em; min-height: 44px;
  box-shadow: 3px 4px 0 var(--ink);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--small { padding: .55em 1em; font-size: .95rem; }
.btn--ghost { background: var(--card); }
.btn--ghost:disabled { opacity: .4; cursor: default; transform: none; box-shadow: 3px 4px 0 var(--ink); }
.btn--youtube { background: #ff3b30; color: #fff; }

.card { background: var(--card); border: var(--outline); border-radius: var(--radius); box-shadow: var(--shadow); }

.eyebrow {
  display: inline-block; margin: 0 0 .6em;
  font: italic 400 1.25rem/1 var(--comic); letter-spacing: .06em;
  color: var(--accent);
}
.section-head { text-align: center; margin-bottom: 28px; }
.eyebrow--title { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: .04em; margin-bottom: .2em; transform: rotate(-1.5deg); text-shadow: 3px 3px 0 var(--sun); }
.section-subtitle { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.sticker {
  display: inline-block;
  font: italic 400 1.2rem/1 var(--comic); letter-spacing: .06em;
  background: var(--caption); color: var(--ink);
  border: var(--outline); border-radius: 8px;
  padding: .45em .8em .35em; transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink); margin-bottom: 18px;
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgb(247 249 251 / .92); backdrop-filter: blur(8px); border-bottom: 2px solid #e4e9ee; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.35rem/1 var(--heading); color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { display: inline-block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 10px; }
.nav__links a:not(.btn):hover { background: var(--accent-tint); }
@media (max-width: 640px) { .nav__links li:not(:last-child) { display: none; } }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%);
  padding: 44px 0 8px;
  text-align: center;
}
.hero h1 { max-width: 22ch; margin-inline: auto; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hl { color: var(--accent); position: relative; white-space: nowrap; }
.hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em;
  background: var(--sun); border-radius: 999px; z-index: -1;
}
.hero h1 { position: relative; z-index: 0; }
.lede { max-width: 38rem; margin: 0 auto 22px; font-size: 1.15rem; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; }
.badge { display: inline-block; border-radius: 10px; }
.badge img { height: 48px; width: auto; }
.badge img.badge--play { height: 72px; margin: -12px -11px; } /* Google's badge has built-in padding */

/* ---------- comic ---------- */
.comic { padding: 28px 0 64px; }
.strip { margin: 0; }
/* Each panel is a window onto the full strip SVG (1888×664, panels 600×620 at
   x = 22 + i·622, y = 22): a background sprite, so one file serves every layout. */
.strip__panels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.panel {
  aspect-ratio: 600 / 620;
  border: 4px solid var(--ink); border-radius: 14px;
  background-repeat: no-repeat;
  background-size: 314.67% auto; /* 1888 / 600 */
  box-shadow: var(--shadow);
  background-color: #fff;
}
.panel:nth-child(1) { background-position: 1.708% 50%; }
.panel:nth-child(2) { background-position: 50% 50%; }
.panel:nth-child(3) { background-position: 98.292% 50%; }
.strip__dots { display: none; }
@media (max-width: 760px) {
  .strip__panels {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px 16px 14px; margin: 0 -16px; scrollbar-width: none;
  }
  .strip__panels::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: center; }
  .strip__dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
  .strip__dots span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; transition: background .2s; }
  .strip__dots span.on { background: var(--ink); }
}

.strip__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: nowrap; }
.strip__nav .btn { justify-content: center; min-width: 48px; flex: none; }
.strip__list { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; justify-content: center; align-items: center; }
.strip__gap { color: var(--muted); font-weight: 800; padding: 0 2px; }
@media (max-width: 560px) {
  /* phones: arrow-only buttons and a short window of numbers, all on one line */
  .strip__nav { gap: 4px; }
  .strip__nav .lbl { display: none; }
  .strip__nav .btn { min-width: 40px; padding: .8em .6em; }
  .strip__list { gap: 4px; }
  .strip__list button { min-width: 40px; padding: 0 6px; }
}
.strip__list button {
  font: 700 .95rem/1 var(--body); color: var(--ink);
  min-width: 44px; min-height: 44px; padding: 0 12px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px; cursor: pointer;
}
.strip__list button[aria-current='true'] { background: var(--ink); color: #fff; }
/* Transcript stays available to screen readers but isn't shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- video ---------- */
.video { background: var(--ink); color: #e6f1f4; padding: 72px 0; position: relative; }
.video::before, .video::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px;
  background: radial-gradient(circle at 20px -6px, transparent 22px, var(--ink) 23px) 0 0 / 40px 28px repeat-x;
}
.video::before { top: -27px; transform: scaleY(-1); }
.video::after { bottom: -27px; }
.video h2 { color: #fff; }
.video .eyebrow { color: var(--sun); }
.eyebrow--tour { font-size: 1.75rem; }
.video__text p { font-size: 1.15rem; }
.video__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .video__inner { grid-template-columns: 5fr 7fr; } }
.video__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 4px solid #fff; box-shadow: 6px 7px 0 var(--sun); background: #000;
}
.video__frame iframe, .video__facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__facade { padding: 0; cursor: pointer; background: #000; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.video__facade:hover img { opacity: 1; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; translate: -50% -50%;
  background: var(--sun); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 4px 5px 0 var(--ink);
}
.video__play::after {
  content: ''; position: absolute; left: 33px; top: 23px;
  border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--ink);
}

/* ---------- quiz ---------- */
.quiz { padding: 96px 0 72px; }
.quiz__inner { max-width: 760px; }
.quiz__date { color: var(--muted); font-weight: 600; margin: -6px 0 0; }
.quiz__card { padding: 28px; }
@media (max-width: 520px) { .quiz__card { padding: 20px 16px; } }
.quiz__q { font: 600 1.35rem/1.35 var(--heading); color: var(--ink); margin-bottom: 18px; }
.quiz__options { display: grid; gap: 10px; }
.quiz__option {
  display: flex; align-items: center; gap: 12px; text-align: left;
  font: 600 1.05rem/1.35 var(--body); color: var(--text);
  background: var(--card); border: 2px solid #cfd9e1; border-radius: 14px;
  padding: 12px 14px; min-height: 52px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.quiz__option:hover:not(:disabled) { border-color: var(--ink); transform: translateX(2px); }
.quiz__letter {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--ink); font: 700 .95rem/1 var(--heading); color: var(--ink); background: var(--caption);
}
.quiz__option:disabled { cursor: default; }
.quiz__option.is-correct { border-color: var(--green); background: var(--green-tint); }
.quiz__option.is-correct .quiz__letter { background: var(--green); border-color: var(--green); color: #fff; }
.quiz__option.is-wrong { border-color: var(--red); background: var(--red-tint); }
.quiz__option.is-wrong .quiz__letter { background: var(--red); border-color: var(--red); color: #fff; }
.quiz__option.is-dim { opacity: .55; }
.quiz__result:empty { display: none; }
.quiz__result { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--accent-tint); }
.quiz__verdict { font: italic 400 1.5rem/1 var(--comic); letter-spacing: .05em; margin-bottom: 8px; }
.quiz__verdict.good { color: var(--green); }
.quiz__verdict.bad { color: var(--red); }
.quiz__result p:last-child { margin-bottom: 0; }
.quiz__more { text-align: center; margin-top: 22px; color: var(--muted); }

/* ---------- features ---------- */
.features { padding: 24px 0 72px; }
.features__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features__grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px 22px 8px; }
.feature:nth-child(3n + 2) { transform: rotate(.6deg); }
.feature:nth-child(3n) { transform: rotate(-.5deg); }
.feature__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px;
  font-size: 1.6rem; border: var(--outline); border-radius: 14px; background: var(--accent-tint);
}
.feature:nth-child(2n) .feature__icon { background: var(--green-tint); }
.feature:nth-child(3n) .feature__icon { background: var(--caption); }
.feature p { color: var(--muted); }

/* ---------- download ---------- */
.download { padding: 0 0 80px; }
.download__inner {
  text-align: center; color: #fff;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 4px solid var(--ink); border-radius: 28px; box-shadow: 8px 9px 0 var(--ink);
  padding: 44px 20px 40px;
}
.download h2 { color: #fff; }
.download p { color: #edf5fd; font-size: 1.15rem; }
.download__bear { margin: 0 auto 14px; width: 104px; height: 104px; }
.badges--center { margin-top: 8px; }

/* ---------- footer ---------- */
.footer { border-top: 2px solid #e4e9ee; padding: 22px 0 30px; color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.footer p { margin: 0; }
.footer ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); }

/* ---------- doc pages (privacy, support) ---------- */
.doc { padding: 36px 0 64px; }
.doc__inner { max-width: 760px; padding: 32px 36px; }
@media (max-width: 600px) { .doc__inner { padding: 22px 18px; margin: 0 16px; } }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li + li { margin-top: .35em; }
.doc hr { border: 0; border-top: 2px solid #e4e9ee; margin: 1.8em 0; }
.doc a { word-break: break-word; }
