/* Public landing page. Tokens and components mirror the admin site (src/styles.css),
   which in turn mirrors BeeColors and beeTheme() in the Flutter app. */

@font-face {
  font-family: 'PlusJakartaSans';
  src: url('/fonts/PlusJakartaSans.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --canvas: #f9f9ff;
  --honey: #8d4b00;
  --honey-edge: #6e3900;
  --peach: #ffdcc3;
  --peach-soft: #fff1e6;
  --ink: #181c23;
  --muted: #554336;
  --hint: #8c7868;
  --lavender: #f1f3fe;
  --track: #e5e8f3;
  --green: #006d30;
  --green-light: #e4f7e8;

  --card-shadow: 0 8px 24px rgba(85, 67, 54, 0.047), 0 3px 3px rgba(24, 28, 35, 0.059);
  --float-shadow: 0 8px 24px rgba(24, 28, 35, 0.12);
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --fast: 220ms;
  --max: 1120px;

  font-family: 'PlusJakartaSans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  letter-spacing: -1.6px;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.9px;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.2px;
}

p {
  margin: 0 0 0.75rem;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--float-shadow);
}

.skip-link:focus {
  top: 1rem;
}

/* Icons: Material Symbols Rounded, same settings as the admin site. */

.icon {
  font-family: 'Material Symbols Rounded';
  font-weight: 500;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: inline-block;
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

.honeycomb {
  background-color: var(--canvas);
  background-image: url('/honeycomb.svg');
  background-size: 75px 43.301px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

/* Buttons: BeeButton (honey with a pressable underside) and secondary. */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 54px;
  padding: 0.7rem 1.4rem;
  border-radius: 16px;
  background: var(--honey);
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--honey-edge);
  transition:
    transform 90ms var(--ease),
    box-shadow 90ms var(--ease),
    background-color var(--fast) var(--ease);
}

.button:hover {
  background: #9a5409;
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--honey-edge);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--card-shadow);
}

.button.secondary:hover {
  background: var(--peach-soft);
}

.button.secondary:active {
  transform: scale(0.97);
}

.button.small {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: var(--peach);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.pill .icon {
  font-size: 18px;
  color: var(--honey);
}

.card {
  background: #fff;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.mascot {
  display: block;
  flex-shrink: 0;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(249, 249, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid transparent;
  transition: border-color var(--fast);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  border-radius: 12px;
}

.brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.brand-sub {
  display: block;
  color: var(--honey);
  font-weight: 600;
  font-size: 0.78rem;
}

.topnav {
  display: flex;
  gap: 0.25rem;
}

.topnav a {
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.topnav a:hover {
  background: var(--peach-soft);
  color: var(--honey);
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  margin: 1rem 0 1rem;
}

.hero h1 span {
  color: var(--honey);
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-note {
  margin-top: 1rem;
  color: var(--hint);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-art {
  position: relative;
  justify-self: center;
}

.hero-art .phone {
  width: min(300px, 70vw);
}

.hero-art .mascot {
  position: absolute;
  left: -2.5rem;
  bottom: 2.5rem;
  border-radius: 28px;
  box-shadow: var(--float-shadow);
}

.phone {
  display: block;
  border-radius: 36px;
  border: 8px solid #fff;
  background: #fff;
  box-shadow: var(--float-shadow);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
}

/* Sections */

section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  scroll-margin-top: 72px;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head .pill {
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0.85rem 0 0;
}

.band {
  background: #fff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.feature h3 {
  margin: 1rem 0 0.4rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.band .card {
  background: var(--canvas);
  box-shadow: none;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--peach);
  color: var(--honey);
  display: grid;
  place-items: center;
}

.feature-icon .icon {
  font-size: 28px;
}

.feature-icon.green {
  background: var(--green-light);
  color: var(--green);
}

/* Tutorial video */

.video-card {
  max-width: 920px;
  margin: 0 auto 2.5rem;
}

.video-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: var(--peach-soft);
  box-shadow: var(--float-shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--peach-soft);
}

.video-card.portrait {
  max-width: min(100%, 360px, calc((100svh - 200px) * 9 / 16));
}

.video-card.portrait video {
  aspect-ratio: 9 / 16;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.7rem 1.4rem 0.7rem 1rem;
  border: none;
  border-radius: 50px;
  background: var(--honey);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 4px 0 var(--honey-edge),
    var(--float-shadow);
  transition:
    transform 90ms var(--ease),
    box-shadow 90ms var(--ease),
    background-color var(--fast) var(--ease);
}

.video-play[hidden] {
  display: none;
}

.video-play .icon {
  font-size: 30px;
}

.video-play:hover {
  background: #9a5409;
}

.video-play:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--honey-edge);
}

.video-play:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

.video-card figcaption {
  text-align: center;
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.step-number {
  float: right;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--track);
}

/* Screenshot strip */

.shots {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem clamp(1.1rem, 4vw, 2rem) 1.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: center;
}

.shots figcaption {
  text-align: center;
  margin-top: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Parents */

.parents {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.parents .section-head {
  text-align: left;
  margin: 0;
}

.parents .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.5rem;
  border-bottom: 1.5px solid var(--lavender);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist .icon {
  color: var(--green);
  margin-top: 0.1rem;
}

.checklist strong {
  display: block;
}

.checklist span.text {
  color: var(--muted);
  font-size: 0.95rem;
}

/* FAQ */

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq details {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 0 1.25rem;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--honey);
  transition: transform var(--fast) var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  color: var(--muted);
  padding-bottom: 1rem;
  margin: 0;
}

/* Closing call to action */

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  border-radius: 32px;
  background: var(--peach-soft);
}

.cta-card .mascot {
  margin-bottom: 1.25rem;
  border-radius: 24px;
}

.cta-card p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0.85rem 0 1.75rem;
  font-size: 1.08rem;
}

/* Footer */

footer {
  padding: 2.5rem 0 3rem;
  border-top: 1.5px solid var(--track);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--honey);
  text-decoration: underline;
}

.copyright {
  width: 100%;
  color: var(--hint);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

/* Motion (BeeSwitcher-style lift and the mascot's bob) */

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

.bob {
  animation: bob 1.6s ease-in-out infinite;
}

.hero .wrap > * {
  animation: lift-in 420ms var(--ease) both;
}

.hero .wrap > :nth-child(2) {
  animation-delay: 90ms;
}

/* Tablet and phone */

@media (max-width: 900px) {
  .hero .wrap,
  .parents {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .parents .section-head {
    text-align: center;
  }

  .parents .links {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .topnav {
    display: none;
  }

  .hero-art .mascot {
    left: -1.25rem;
    width: 72px;
    height: 72px;
  }

  .cta-row .button {
    flex: 1 1 100%;
  }

  .shots figure {
    width: 180px;
  }

  .video-frame {
    border-radius: 20px;
  }

  .video-play {
    min-height: 48px;
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
