/* Candy Pop theme — mirrors apps/mobile/src/theme/index.ts design tokens:
   blue gradient (#60A5FA → #2563EB → #1E3A8A), yellow CTA #FACC15 with hard
   bottom shadows, M PLUS Rounded 1c text / Baloo 2 numbers, puffy cards. */
:root {
  --blue: #2563eb;
  --blue-deep: #1e3a8a;
  --blue-light: #60a5fa;
  --sky: #38bdf8;
  --bg-light-1: #eff6ff;
  --bg-light-2: #dbeafe;
  --yellow: #facc15;
  --yellow-hi: #fde68a;
  --yellow-mid: #eab308;
  --yellow-shadow: #c99a09;
  --yellow-shadow-deep: #b45309;
  --brown: #7c2d12;
  --text: #0f172a;
  --text-sub: #64748b;
  --card-shadow: #bfd3ff;
  --white: #fff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-light-1);
  color: var(--text);
  font-family:
    'M PLUS Rounded 1c',
    -apple-system,
    BlinkMacSystemFont,
    'Hiragino Maru Gothic ProN',
    'Hiragino Sans',
    'Noto Sans JP',
    Meiryo,
    sans-serif;
  font-weight: 500;
  line-height: 1.9;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* --- Header (sits on the blue gradient) --- */

.top {
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--blue) 55%, var(--blue-deep) 100%);
  color: var(--white);
}

.top.fill-viewport {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

header.site {
  padding: 1.1rem 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
}

.q-badge {
  width: 1.5em;
  height: 1.5em;
}

nav.site a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  margin-left: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

nav.site a:hover {
  color: var(--yellow);
}

/* Hamburger toggle — hidden on desktop, shown below the breakpoint. */
.menu-toggle {
  display: none;
}

@media (max-width: 640px) {
  header.site .wrap {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--white);
    border-radius: 999px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  header.site.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  header.site.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  header.site.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  nav.site {
    display: none;
    order: 3;
    width: 100%;
  }

  header.site.nav-open nav.site {
    display: block;
    margin-top: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 0.4rem;
  }

  header.site.nav-open nav.site a {
    display: block;
    margin: 0;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--white);
  }
}

/* --- Hero (LP) — mirrors the app Home screen layout --- */

.hero {
  text-align: center;
  padding: 3.5rem 0 4.5rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buzzer-icon {
  display: block;
  width: 138px;
  height: 138px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.35));
}

.buzzer {
  width: 138px;
  height: 138px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 34% 26%,
    var(--yellow-hi) 0%,
    var(--yellow) 56%,
    var(--yellow-mid) 100%
  );
  box-shadow:
    0 10px 0 var(--yellow-shadow-deep),
    0 18px 32px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  position: relative;
}

.buzzer::after {
  content: '';
  position: absolute;
  top: 16%;
  right: 18%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
}

.pill-glass {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
  color: var(--white);
}

.hero .tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  margin: 0.6rem 0 2.2rem;
}

.hero p.lead {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 2.4rem;
  max-width: 40em;
}

.cta-pill {
  display: inline-block;
  background: linear-gradient(180deg, var(--yellow-hi) 0%, var(--yellow) 70%);
  color: var(--brown);
  border-radius: 999px;
  padding: 0.75rem 2.2rem;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: 0 5px 0 var(--yellow-shadow);
}

.store-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  width: 163px;
  height: 60px;
}

.store-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

/* --- Feature cards — puffy white cards like the app's ModeCards --- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 5rem 0;
}

.feature {
  background: var(--white);
  border-radius: 20px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 6px 0 var(--card-shadow);
}

.feature h2 {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.feature p {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* --- Article pages (support / privacy) --- */

main.page {
  padding: 2.6rem 0 3.4rem;
}

article.card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.2rem 2rem 2.6rem;
  box-shadow: 0 6px 0 var(--card-shadow);
}

article.card h1 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-deep);
  margin: 0 0 0.4rem;
}

article.card h2 {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  margin: 2.4rem 0 0.6rem;
  padding-left: 0.7rem;
  border-left: 5px solid var(--yellow);
  border-radius: 2px;
}

.meta {
  color: var(--text-sub);
  font-size: 0.9rem;
}

a {
  color: var(--blue);
  font-weight: 700;
}

/* --- Footer --- */

footer.site {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.6rem 0 2.4rem;
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

footer.site a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  margin-right: 1.25rem;
  font-weight: 700;
}

/* Subtle operator credit lines (copyright + developed-by). */
footer.site .credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

footer.site .credit a {
  margin-right: 0;
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

footer.site .credit a:hover {
  color: var(--yellow);
}

footer.site a:hover {
  color: var(--yellow);
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .buzzer {
    width: 112px;
    height: 112px;
    font-size: 3.4rem;
  }

  article.card {
    padding: 1.6rem 1.2rem 2rem;
  }
}
