/* Blunder Panda coming-soon page. Same "midnight dojo" tokens as the app
   (src/styles.css): ink-green night, jade accent, vermilion seal, gold. */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --bg: #0d1210;
  --bg-glow: #15201b;
  --panel: #18201c;
  --panel-2: #1e2823;
  --ink: #eef1ea;
  --ink2: #a6b0a7;
  --ink3: #707c73;
  --line: #27322c;
  --line-strong: #34423a;
  --accent: #4fbf7a;
  --accent-ink: #07130c;
  --accent-soft: #1b3426;
  --seal: #e0533d;
  --gold: #e8b44a;
  --gold-soft: #3a2f17;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --display: 'Fraunces Variable', 'Iowan Old Style', Georgia, serif;
  --sans: 'Bricolage Grotesque Variable', 'Segoe UI', system-ui, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4efe4;
    --bg-glow: #ebe3d1;
    --panel: #fffcf5;
    --panel-2: #f7f1e5;
    --ink: #1b221e;
    --ink2: #5a645d;
    --ink3: #7a847d;
    --line: #e0d7c4;
    --line-strong: #cfc4ad;
    --accent: #2b8f55;
    --accent-ink: #ffffff;
    --accent-soft: #dcefe2;
    --seal: #c8432f;
    --gold: #9a6d12;
    --gold-soft: #f6ead0;
    --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 10px 28px rgba(40, 30, 10, 0.08);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 520px at 80% -10%, var(--bg-glow), transparent 70%),
    radial-gradient(700px 420px at -10% 105%, var(--bg-glow), transparent 70%), var(--bg);
}
h1,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.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;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
}
.top-cta {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}
.top-cta:hover {
  background: var(--accent-soft);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero: mascot first on phones, side by side from tablet up */
.hero {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  padding: 12px 0 40px;
}
.chip {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.display {
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}
.pitch {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 5.2vw, 1.75rem);
  line-height: 1.25;
  color: var(--accent);
}
.lede {
  margin: 14px 0 0;
  max-width: 34em;
  color: var(--ink2);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(62vw, 260px);
  margin: 0 auto;
  aspect-ratio: 1;
}
.halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%);
}
.mascot {
  position: relative;
  width: 78%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}
.bubble {
  position: absolute;
  top: 0;
  right: -12%;
  width: max-content;
  max-width: 10.5em;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink);
}

/* Waitlist form */
.waitlist {
  margin-top: 26px;
  max-width: 30rem;
}
.field-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
input[type='email'] {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
input[type='email']::placeholder {
  color: var(--ink3);
}
input[type='email']:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
button {
  min-height: 50px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.12s ease;
}
button:hover {
  filter: brightness(1.07);
}
button:active {
  transform: translateY(1px);
}
button[disabled] {
  opacity: 0.65;
  cursor: progress;
}
button.quiet {
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
}
.form-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--ink3);
}
.form-note.ok {
  color: var(--accent);
  font-weight: 600;
}
.form-note.err {
  color: var(--seal);
  font-weight: 600;
}
.waitlist.done .field-row {
  display: none;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Feature cards */
.features {
  display: grid;
  gap: 14px;
}
.card {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}
.card p {
  margin: 0;
  color: var(--ink2);
}
.card .card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink2);
}
.steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* Same badge colours the app puts on the board's squares */
.dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
}
.dot-hold {
  background: #2f9e5b;
}
.dot-release {
  background: #6b9d7a;
}
.dot-catch {
  background: #d64040;
}

/* Second call to action */
.again {
  margin: 40px 0 8px;
  padding: 26px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.again p {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.3;
}
.again-cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  font-size: 0.88rem;
  color: var(--ink3);
}
.foot p {
  margin: 0 0 8px;
}
.privacy summary {
  cursor: pointer;
  color: var(--ink2);
}
.privacy[open] summary {
  margin-bottom: 8px;
}
.privacy p {
  max-width: 44em;
}
.remove {
  max-width: 30rem;
  margin-top: 12px;
}
.remove label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink2);
}
.remove input[type='email'],
.remove button {
  min-height: 44px;
}

/* Tablet and up */
@media (min-width: 640px) {
  .field-row {
    flex-direction: row;
  }
  .field-row input {
    flex: 1;
    min-width: 0;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 860px) {
  .top {
    padding: 22px 24px;
  }
  main {
    padding: 0 24px;
  }
  .foot {
    padding: 36px 24px 48px;
  }
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 48px 0 72px;
  }
  .hero-text {
    flex: 1.25;
  }
  .hero-art {
    flex: 1;
    width: auto;
    max-width: 380px;
  }
  .bubble {
    font-size: 0.9rem;
    /* Beside the text column the panda sits near the page edge: keep the bubble inside it. */
    right: 0;
  }
}

/* 404 page */
.lost {
  max-width: 34rem;
  padding: 18vh 16px 0;
  text-align: center;
}
.lost .display {
  margin-top: 18px;
  font-size: clamp(2rem, 8vw, 3rem);
}
.lost .lede {
  margin: 12px auto 24px;
}
