/* CoCoBun - shared static stylesheet. Page layout uses inline styles (ported from the
   original design); this file holds only what inline styles can't express: resets,
   keyframes, responsive overrides, and focus states. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFF6E9; font-family: 'Hanken Grotesk', sans-serif; color: #5B3010; }
a { color: #FF8D28; }
a:hover { color: #C85E12; }
img { max-width: 100%; }

/* Pill CTA buttons — defined as classes so they survive HTML post-processing/minification */
.cta-pill { display: inline-block; text-decoration: none !important; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 17px; padding: 15px 30px; border-radius: 30px; line-height: 1.1; }
.cta-pill-orange { background: #FF8D28 !important; color: #FFFFFF !important; }
.cta-pill-dark { background: #5B3010 !important; color: #FFFFFF !important; }
.cta-pill-ghost { background: rgba(255,255,255,0.16) !important; border: 1px solid rgba(255,255,255,0.5); color: #FFFFFF !important; }
.cta-pill-orange:hover, .cta-pill-dark:hover, .cta-pill-ghost:hover { color: #FFFFFF !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-12px) rotate(var(--r,0deg)); } }
@keyframes floaty-s { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sparkChase { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes emberFade { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(0.3); } }

.spark-head { animation: sparkChase 2.2s linear infinite; }
.spark-ember0 { animation: sparkChase 2.2s linear infinite, emberFade 0.6s ease-out infinite; animation-delay: -0.08s, 0s; }
.spark-ember1 { animation: sparkChase 2.2s linear infinite, emberFade 0.6s ease-out infinite; animation-delay: -0.16s, 0s; }
.spark-ember2 { animation: sparkChase 2.2s linear infinite, emberFade 0.6s ease-out infinite; animation-delay: -0.24s, 0s; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2.5px solid #FF8D28;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  header nav > div:last-child { flex-wrap: wrap; gap: 14px !important; row-gap: 10px !important; justify-content: flex-end; }
}

/* ===== Compact navigation: hamburger menu (any non-wide screen) ===== */
@media (max-width: 1200px) {
  header nav > div > a { display: none !important; }
  header nav > div > #siteNavWaitlist { display: none !important; }
  .nav-hamburger-btn { display: flex !important; }
}
.nav-hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #F0E2CB;
  background: #FFF;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger-btn span { display: block; width: 20px; height: 2.5px; background: #5B3010; border-radius: 2px; position: relative; }
.nav-hamburger-btn span::before, .nav-hamburger-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2.5px; background: #5B3010; border-radius: 2px; }
.nav-hamburger-btn span::before { top: -7px; }
.nav-hamburger-btn span::after { top: 7px; }

.nav-mobile-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 16px;
  left: 16px;
  background: #FFF;
  border: 1.5px solid #F0E2CB;
  border-radius: 16px;
  box-shadow: 0 20px 40px -18px rgba(62,36,17,0.35);
  padding: 10px;
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-panel.open { display: flex; }
.nav-mobile-panel a, .nav-mobile-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #5B3010;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile-panel a:hover, .nav-mobile-panel button:hover { background: #FFF6E9; }
.nav-mobile-panel .nav-mobile-cta { background: #FF8D28; color: #FFF; text-align: center; margin-top: 4px; }

/* ===== Floating waitlist button: centered on mobile (static in-page CTAs unaffected) ===== */
@media (max-width: 1200px) {
  #floatingWaitlistWrap { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile landscape: three-column card sections become 2-up, with a centered third card */
@media (max-width: 760px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  .row-reverse-md { flex-direction: column !important; }
  .sequel-flow > figure img { width: auto !important; max-width: 80vw !important; }
  .sequel-arrow { transform: rotate(90deg); }
  .philosophy-card { flex-direction: column !important; text-align: center; padding: 32px 24px !important; }
}

@media screen and (orientation: landscape) and (max-width: 932px) and (max-height: 500px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
  }
  .grid-3 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2);
    max-width: 100%;
    justify-self: center;
  }
}

details.faq-item > summary { list-style: none; cursor: pointer; }
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item[open] .faq-sign::before { content: "\2013"; }
details.faq-item:not([open]) .faq-sign::before { content: "+"; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

#waitlistLiveRegion { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
