/* Bimi Boo .net — shared styles (tokens, header, menu, buttons, clouds, illustrations, footer).
   Source: Figma 8vxGBIklsVyb2oFq9iVEAd. Page-specific styles live in css/<page>.css */

:root {
  --ink: #313235;
  --ink-nav: #323235;
  --text: #53565B;
  --muted: #737374;
  --sky: #EEFCFF;
  --green-10: #E2F4D7;
  --line: #ECECEF;
  --grad: linear-gradient(90deg, #5EDB67 0%, #4C96FF 100%);
  --blue: #4C96FF; /* hover/active accent, as on bimiboo.com */
  --header-h: 106px;
  --hero-top: 64px; /* header → first content, as on bimiboo.com inner pages */
  --shadow-soft: 0 0 40px rgba(0, 0, 0, .05);
  --container: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; } /* no blue box on tap (mobile browsers) */
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* bimiboo.com home, FAQ and legal pages start lower */
body[data-nav="home"], body[data-nav="faq"], body[data-nav="privacy"], body[data-nav="cookie"], body[data-nav="terms"] { --hero-top: 110px; }

/* browser autofill paints filled fields light blue and keeps it after typing — keep our own colours instead
   (an inset shadow is the only way to cover Chrome/Safari's autofill background) */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  transition: background-color 9999s ease-out 0s;
}
.search-form__input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--sky) inset; box-shadow: 0 0 0 1000px var(--sky) inset; }

/* focus ring only for keyboard navigation (as on bimiboo.com); it follows the element's own shape */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid #4C96FF; outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 12px 24px rgba(76, 150, 255, .22); }
.btn:active { transform: scale(.96); }
.btn--primary {
  padding: 20px 32px;
  color: #fff;
  background: var(--grad);
}
.btn__arrow { margin-left: 8px; }
.btn--white {
  padding: 19px 30px 19px 26px;
  background: #fff;
  color: var(--ink);
}
.btn--white img { width: 31.44px; height: 32px; }

/* keyboard users: the first Tab shows a link that jumps past the header to the page content */
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  font-weight: 700; font-size: 15px; color: var(--ink-nav);
  transform: translateY(-200%);
  transition: transform .15s;
}
.skip-link:focus { transform: none; }

/* ---------- Header (sizes, blur and shadow as on bimiboo.com) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  height: var(--header-h);
  padding: 0 24px;
}
.logo img { width: 170px; height: 40px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 17px;
  line-height: 20px;
  color: var(--ink-nav);
  transition: color .15s;
}
.nav__link img { width: 20px; height: 20px; }
.nav__link:hover { color: var(--blue); }

/* ---------- Site search (as on bimiboo.com): icon in the header → search bar under the header row ---------- */
.header__inner { justify-content: flex-start; }
.nav { margin-left: auto; }
.search-toggle {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  color: var(--ink-nav);
  transition: color .15s, background-color .15s;
}
.search-toggle svg { width: 20px; height: 20px; }
.search-toggle:hover, .search-toggle[aria-expanded="true"] { color: var(--blue); }
.site-search {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
}
.site-search[hidden] { display: none; }
.site-search__inner { max-width: 1200px; padding: 14px 24px; }
.search-form {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--sky);
  transition: box-shadow .15s;
}
.search-form:focus-within { box-shadow: 0 0 0 2px rgba(76, 150, 255, .35); }
.search-form__icon { flex: none; width: 20px; height: 20px; color: var(--muted); }
.search-form__input {
  flex: 1 1 0; min-width: 0;
  border: 0; outline: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
  font: 600 16px/24px "Nunito", system-ui, sans-serif;
  color: var(--ink-nav);
}
.search-form__input::placeholder { color: var(--muted); opacity: 1; }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__input:focus-visible { outline: 0; }
.search-form__btn {
  flex: none;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--grad);
  font-weight: 700; font-size: 14px; line-height: 20px;
  color: #fff;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.search-form__btn:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 10px 20px rgba(76, 150, 255, .28); }
.search-form__btn:active { transform: scale(.96); }
/* live suggestions under the field: up to 6 matches */
.search-suggest {
  display: flex; flex-direction: column; gap: 4px;
  max-height: calc(100vh - var(--header-h) - 110px);
  margin-top: 12px;
  overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.search-hit {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  transition: background-color .12s;
}
.search-hit:hover, .search-hit.is-active { background: var(--sky); }
.search-hit__t { font-weight: 700; font-size: 15px; line-height: 21px; color: var(--ink-nav); }
.search-hit__d {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 13px; line-height: 18px; color: var(--muted);
}
.search-empty { padding: 10px 14px; font-size: 14px; line-height: 20px; color: var(--text); }
@media (max-width: 480px) {
  /* long queries fade out at the edge instead of being cut (bimiboo.com) */
  .search-form__input { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}

/* Blog icon is drawn with rectangles in Figma */
.ic-blog { position: relative; display: block; width: 20px; height: 20px; flex: none; }
.ic-blog::before {
  content: ""; position: absolute; left: 15%; top: 7.5%; width: 70%; height: 85%;
  background: #5EDB67; border-radius: 3px;
}
.ic-blog i { position: absolute; left: 30%; height: 9%; width: 40%; background: #fff; border-radius: 1px; }
.ic-blog i:nth-child(1) { top: 30%; }
.ic-blog i:nth-child(2) { top: 47.5%; }
.ic-blog i:nth-child(3) { top: 65%; width: 25%; }

.burger, .menu-close {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.burger i, .menu-close i {
  position: absolute; left: 8px; width: 24px; height: 3px;
  border-radius: 2px; background: var(--ink);
}
.burger i:nth-child(1) { top: 13.5px; }
.burger i:nth-child(2) { top: 19.5px; }
.burger i:nth-child(3) { top: 25.5px; }
.menu-close i { top: 18.5px; }
.menu-close i:nth-child(1) { rotate: 45deg; }
.menu-close i:nth-child(2) { rotate: -45deg; }
/* open menu: the burger turns into a close icon in place (as on bimiboo.com) */
.burger[aria-expanded="true"] i:nth-child(1) { top: 18.5px; rotate: 45deg; }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 18.5px; rotate: -45deg; }

/* Mobile menu (195:236): a panel that drops down under the header, as on bimiboo.com —
   the header stays, the panel's max-height grows from 0 (.32s); js/main.js toggles .is-open
   and sets [hidden] once the closing transition ends */
.mobile-menu {
  position: fixed;
  left: 0; right: 0; top: var(--header-h);
  z-index: 19; /* under the sticky header */
  display: flex;
  flex-direction: column;
  max-height: 0;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
  overflow: hidden;
  transition: max-height .32s ease;
}
.mobile-menu.is-open { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mobile-menu { transition: none; } }
.mobile-menu__head { display: none; } /* the page header with its burger/close button stays visible */
.mobile-menu__nav { display: flex; flex-direction: column; padding: 8px 20px 0; }
.mobile-menu__nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: .03em;
  color: var(--ink-nav);
}
.mobile-menu__nav img, .mobile-menu__nav .ic-blog { width: 24px; height: 24px; }
.mobile-menu__bottom { padding: 24px 20px 32px; }
.mobile-menu__bottom .btn { width: 100%; font-size: 18px; letter-spacing: .03em; }


/* ---------- Illustrations: original Figma vector pieces on a scalable stage ---------- */
.illo { container-type: inline-size; width: 100%; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--w) / var(--h);
  --u: calc(100cqw / var(--w)); /* 1 design px */
}
.stage .pc { position: absolute; }
.stage .pc-in { position: absolute; }
.stage .pc img, .stage .pc-in img { display: block; width: 100%; height: 100%; max-width: none; }
.stage .px {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--pw) * var(--u));
  height: calc(var(--ph) * var(--u));
  max-width: none;
}
.stage .rot-box { display: flex; align-items: center; justify-content: center; container-type: size; }
.stage .rot-box img.rot-in { flex: none; max-width: none; }
.stage .px-abs {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--pw) * var(--u));
  height: calc(var(--ph) * var(--u));
  translate: -50% -50%;
  max-width: none;
}
.illo--hero .tab-body {
  background: #00D5C3;
  border: calc(3.4 * var(--u)) solid #00554D;
  border-radius: calc(56.467 * var(--u));
}
.illo--hero .tab-body--thick { background: #00BAAA; }
.illo--hero .tab-shade { background: rgba(0, 186, 170, .45); border-radius: calc(45.878 * var(--u)); }
.illo--hero .tab-screen {
  background: #CCECFF;
  border: calc(1.767 * var(--u)) solid #00554D;
  border-radius: calc(24.711 * var(--u));
  overflow: hidden;
}
.illo--hero .tab-screen > * { translate: calc(-1.767 * var(--u)) calc(-1.767 * var(--u)); }
.illo--hero .tab-app { border-radius: calc(25.556 * var(--u)); object-fit: cover; }
.illo--cart .cart-app { border-radius: calc(19.813 * var(--u)); object-fit: cover; }


/* ---------- Cloud dividers ---------- */
.clouds { --clouds-h: clamp(55px, 6.95vw, 100px); position: relative; z-index: -1; /* card shadows of the next section stay on top */ height: var(--clouds-h); background: var(--bg); overflow: hidden; }
/* keep the 1440×100 artwork's proportions (no squashing on phones): centred, cropped at the sides */
.clouds img {
  --clouds-w: max(100%, var(--clouds-h) * 14.4);
  width: var(--clouds-w); height: 100%; max-width: none;
  margin-left: calc((100% - var(--clouds-w)) / 2); /* centred with a margin, not a transform: a transform
     would lift the clouds above the next section and cut its card shadows */
}
.clouds--down img { rotate: 180deg; }

/* ---------- Section headings ---------- */
.section-title {
  font-weight: 700; font-size: 40px; line-height: 44px;
  text-align: center; color: var(--ink);
}
.section-sub {
  margin: 20px auto 0;
  font-size: 24px; line-height: 29px;
  text-align: center; color: var(--text);
}


/* ---------- Store buttons ---------- */
.stores { grid-area: stores; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.store { display: block; height: 50px; border-radius: 12px; overflow: hidden; transition: transform .15s; }
.store:hover { transform: translateY(-2px); }
.store:active { transform: scale(.96); }
.store img { height: 100%; width: 100%; object-fit: cover; }
.store--apple { width: 148px; }
.store--google { width: 170px; }
.store--amazon { width: 159px; }

/* ---------- Footer (158:7083) ---------- */
.footer { padding: 32px 0; }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 32px;
  font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: .03em; color: var(--ink);
}
.footer__links a { transition: color .15s; }
.footer__links a:hover { color: var(--blue); }
/* desktop: one row — copyright on the left, links on the right (stacked again on tablets/phones) */
.footer > .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.footer__copy { order: -1; margin-top: 0; font-size: 14px; line-height: 20px; letter-spacing: .03em; color: var(--muted); }
/* not enough room for one row: links first, copyright under them */
@media (max-width: 1100px) { .footer__copy { order: 0; flex-basis: 100%; } }


/* ================= Responsive ================= */
@media (max-width: 899px) {
  :root, body[data-nav] { --hero-top: 35px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__inner { gap: 4px; }
  .search-toggle { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; }
  .search-toggle svg { width: 24px; height: 24px; }

  .btn { font-size: 18px; line-height: 30px; letter-spacing: .03em; }

  .section-title { font-size: 28px; line-height: 1.1; }
  .section-sub { margin-top: 14px; font-size: 16px; line-height: 24px; }

  .store { height: 44px; }
  .store--apple { width: 130.24px; }
  .store--google { width: 149.6px; }
  .store--amazon { width: 139.92px; }

  .footer { padding: 28px 0 32px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__links { flex-direction: column; gap: 12px; font-size: 15px; }
  .footer > .container { display: block; }
  .footer__copy { margin-top: 28px; font-size: 12px; line-height: 18px; }
}

/* Tablet (601–899px), as on bimiboo.com: burger header, but a 720px content column
   (24px gutters at 768) and multi-column grids instead of the narrow phone column */
@media (min-width: 601px) and (max-width: 899px) {
  :root { --gutter: 24px; }

  .footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 64px; }
}

/* ---------- Cookie consent (as on bimiboo.com) ---------- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 24px;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(20, 40, 80, .12);
  animation: cookie-up .3s ease;
}
@keyframes cookie-up { from { transform: translateY(100%); } }
.cookiebar__text { flex: 1 1 320px; min-width: 240px; display: flex; align-items: flex-start; gap: 14px; }
.cookiebar__text img { flex: none; width: 40px; height: 40px; object-fit: contain; position: relative; top: 2px; }
.cookiebar__title { margin-bottom: 4px; font-weight: 700; font-size: 16px; color: var(--ink-nav); }
.cookiebar__desc { font-size: 14px; line-height: 1.5; color: var(--text); }
.cookiebar__actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cookie-link { font-weight: 700; font-size: 14px; color: var(--blue); }
.cookie-link:hover { text-decoration: underline; }
.cookie-btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: transform .15s, filter .15s, box-shadow .15s, border-color .15s;
}
.cookie-btn:hover { transform: translateY(-2px); }
.cookie-btn:active { transform: scale(.96); }
.cookie-btn--reject { background: #fff; border: 1px solid #E5E5E5; color: var(--ink-nav); }
.cookie-btn--reject:hover { border-color: #94989E; }
.cookie-btn--accept { background: var(--grad); color: #fff; }
.cookie-btn--accept:hover { filter: brightness(1.04); box-shadow: 0 10px 20px rgba(76, 150, 255, .28); }

.cookieprefs-backdrop {
  position: fixed; inset: 0; z-index: 950;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(30, 40, 60, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.cookieprefs {
  position: relative;
  width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto;
  padding: 40px 36px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(20, 40, 80, .12);
}
.cookieprefs > img { width: 52px; height: 52px; object-fit: contain; }
.cookieprefs__close {
  position: absolute; top: 16px; right: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  background: #FAFAFA;
  transition: background .15s;
}
.cookieprefs__close:hover { background: #F0F0F0; }
.cookieprefs__title { margin-top: 12px; font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--ink-nav); }
.cookieprefs__text { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text); }
.cookieprefs__rows { margin-top: 16px; }
.cookie-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #F0F0F0;
}
.cookie-row:first-child { border-top: 0; }
.cookie-row__title { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--ink-nav); }
.cookie-row__text { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--text); }
.cookie-switch {
  flex: none; width: 44px; height: 26px; padding: 2px;
  border-radius: 999px;
  background: #E0E0E0;
  transition: background .15s;
}
.cookie-switch[aria-checked="true"] { background: var(--blue); }
.cookie-switch:disabled { cursor: default; }
.cookie-switch__knob {
  display: block; width: 22px; height: 22px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.cookie-switch[aria-checked="true"] .cookie-switch__knob { transform: translateX(18px); }
.cookieprefs__actions { display: flex; gap: 10px; margin-top: 16px; }
.cookieprefs__actions .cookie-btn { flex: 1 1 0; }

/* ---------- Click-to-play YouTube (.yt) — nothing loads from YouTube before a click ---------- */
.yt { cursor: pointer; }
.yt__frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.yt__note {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  margin: 0;
  padding: 10px 16px 28px;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  font-size: 12px; line-height: 1.4; color: #fff; text-align: center;
  pointer-events: none;
}
.yt__note a { color: #fff; font-weight: 700; text-decoration: underline; pointer-events: auto; }
.yt--allowed .yt__note, .yt--playing .yt__note { display: none; }

@media (max-width: 600px) {
  .cookiebar { flex-direction: column; align-items: stretch; padding: 18px; }
  .cookiebar__text { flex: 1 1 auto; }
  .cookiebar__actions { justify-content: flex-start; gap: 6px; margin-left: 54px; }
  .cookie-link { font-size: 12px; }
  .cookie-btn { padding: 9px 10px; font-size: 12px; }
  .cookieprefs { padding: 32px 24px; }
}
