/* Lonely Bear Labs — shared styles (palette taken from the badge logo) */

:root {
  --bg: #ffffff;
  --bg-alt: #f1f6fc;
  --surface: #ffffff;
  --ink: #1d3461;          /* navy outline color */
  --muted: #5a6479;
  --line: #dfe7f1;
  --sky: #8fb5dd;          /* badge background blue */
  --sky-ink: #3a6aa8;
  --sky-soft: #e4eef9;
  --cream: #fbf7ee;        /* badge label */
  --purple: #9d8fd6;
  --purple-ink: #5d4fa3;
  --purple-soft: #efecfa;
  --pink: #f4a6aa;
  --pink-ink: #b8474e;
  --pink-soft: #fdeced;
  --radius: 20px;
  --radius-lg: 30px;
  --max: 1120px;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--sky-ink); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2.5px solid var(--sky-ink); outline-offset: 3px; border-radius: 6px; }

img, svg { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky-ink);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--sky);
  /* four-point sparkle, like the badge */
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; display: block; }
.wordmark {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: lowercase;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--sky-soft); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--sky-ink);
}
.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.hero-art img { display: block; width: 100%; height: auto; }

/* sparkles around the badge */
.sparkle {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: var(--sky);
  animation: sparkle 3.6s ease-in-out infinite;
}
.sparkle--1 { top: 6%; left: -2%; }
.sparkle--2 { top: 30%; right: -4%; width: 18px; height: 18px; fill: var(--purple); animation-delay: 1.2s; }
.sparkle--3 { bottom: 8%; left: 2%; width: 16px; height: 16px; fill: var(--pink); animation-delay: 2.4s; }
@keyframes sparkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; }
  html { scroll-behavior: auto; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a4a85; color: #fff; }
.btn-ghost { color: var(--ink); background: var(--surface); }
.btn-ghost:hover { background: var(--sky-soft); color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sky-soft);
  color: var(--sky-ink);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }
.icon--purple { background: var(--purple-soft); color: var(--purple-ink); }
.icon--pink { background: var(--pink-soft); color: var(--pink-ink); }

.brand-note {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Apps */
.apps { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.app-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--sky-soft);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
}
.app-icon svg { width: 46px; height: 46px; }
.app-card--soon { border-style: dashed; border-color: var(--sky); background: rgba(255, 255, 255, 0.6); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-ink);
  background: var(--sky-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky-ink);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .status::before { animation: none; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-grid .card h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-grid .big {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}
.contact-grid address { font-style: normal; color: var(--ink); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.6em; }
.legal h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  margin: 1.4em 0 0.4em;
}
.legal .meta {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--line);
}
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }

/* 404 */
.not-found {
  text-align: center;
  padding: 96px 24px;
}
.not-found svg { width: 160px; height: 160px; margin: 0 auto 16px; display: block; }
.not-found .eyebrow { display: flex; justify-content: center; }
.not-found p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 44px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 400px; }
  .values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .legal { padding: 44px 16px 64px; }
  .wordmark { font-size: 1.15rem; }
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
  .sparkle--1 { left: 2%; }
  .sparkle--2 { right: 0; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 440px) {
  .nav { display: none; }
}
