/* boink.app: matches the old WordPress/Elementor site (purple background, white text, Raleway + Poppins). */

/* Self-hosted fonts (no Google requests). Files in /fonts/; system fonts are the fallback. */
@font-face { font-family: "Raleway"; src: url("/fonts/raleway-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --purple: #692571;      /* Elementor kit "Boink Alternate": page background */
  --purple-dark: #3b1052;
  --lilac: #f8d9ff;       /* kit "Accent": buttons */
  --lilac-text: #e3b8e8;  /* kit "Boink Tertiary": labels, active menu item */
  --white: #ffffff;
  --max: 1140px;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav: "Poppins", var(--sans);
  font-family: var(--sans);
  color: var(--white);
  background: var(--purple);
  line-height: 1.6;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--purple); }
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 1rem 1rem 3rem; }
a { color: var(--lilac-text); }
img { max-width: 100%; height: auto; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--purple); max-width: var(--max); width: 100%; margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 100px; }
.logo img { display: block; width: 180px; }
.site-header nav { display: flex; align-items: center; gap: .25rem 2rem; flex-wrap: wrap; font-family: var(--nav); font-size: 1.25rem; }
.site-header nav a, .dropdown > button { color: var(--white); text-decoration: none; padding: .25rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .dropdown > button:hover { color: var(--lilac-text); }
.site-header nav > a[aria-current="page"], .dropdown.current > button { color: var(--lilac-text); border-bottom-color: var(--lilac-text); }
.dropdown { position: relative; }
.dropdown > button { font: inherit; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.dropdown > button::after { content: ""; display: inline-block; margin-left: .6rem; vertical-align: middle; border: 6px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 12rem; background: #f2f2f6; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.dropdown:hover .submenu, .dropdown:focus-within .submenu, .dropdown.open .submenu { display: block; }
.submenu a { display: block; padding: .8rem 2.5rem; color: #3b1052 !important; border: 0 !important; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--lilac); }

/* footer */
.site-footer { max-width: var(--max); width: 100%; margin: 0 auto; padding: 1.5rem 1rem 3rem; font-size: 1.05rem; }
.site-footer p { margin: 0 0 0 7rem; }

/* home */
.hero { text-align: center; }
.tagline { font-family: var(--nav); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin: 2.5rem 0 2rem; }
.carousel { position: relative; max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { flex: 0 0 100%; scroll-snap-align: center; object-fit: contain; max-height: 640px; }
.carousel-prev, .carousel-next { background: none; border: 0; color: var(--white); font-size: 3.5rem; line-height: 1; cursor: pointer; padding: 0; }
.carousel-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.carousel-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.carousel-dots button[aria-current="true"] { background: var(--white); }
.stores { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 3rem 0 1rem; }
.stores img, .stores a { display: block; height: 58px; width: auto; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2.4fr; gap: 2rem; align-items: start; padding-top: 4rem; }
.faq-title { font-size: clamp(3rem, 9vw, 8.5rem); font-weight: 900; line-height: 1; margin: 4rem 0 0 2rem; }
.faq details { margin-bottom: 2.2rem; }
.faq summary { font-weight: 800; font-size: 1.4rem; cursor: pointer; list-style: none; display: flex; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; width: 1.2rem; flex: none; font-weight: 700; }
.faq details[open] summary::before { content: "\2013"; }
.faq details p { margin: 1rem 0 0 2.2rem; font-size: 1.3rem; }
.faq a { color: var(--white); }

/* support and delete */
.narrow { max-width: 860px; margin: 0 auto; }
.page-title { font-weight: 300; font-size: clamp(2.5rem, 5vw, 3.75rem); margin: 1.5rem 0 1rem; line-height: 1.2; }
.lead { font-size: 1.4rem; line-height: 1.4; margin: 0 0 2rem; }
.steps { font-size: 1.3rem; margin: 0 0 2rem; }
.contact { display: flex; flex-direction: column; }
.contact label { color: var(--lilac-text); font-size: 1.4rem; margin: .8rem 0 .4rem; }
.contact input, .contact textarea { font: inherit; font-family: system-ui, Roboto, sans-serif; font-size: 1.2rem; color: #333; padding: 1rem 1.4rem; border: 0; border-radius: 3px; margin-bottom: .8rem; width: 100%; }
.contact button { align-self: center; margin-top: 1rem; background: var(--lilac); color: #3b1052; border: 0; border-radius: 3px; padding: 1.1rem 2.2rem; font: inherit; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .3em; cursor: pointer; transition: transform .2s; }
.contact button:hover { transform: scale(1.05); }
.whatsapp { text-align: right; margin: 4rem 0 0; }

/* legal pages: Terms and Privacy keep their own styles (from WordPress) inside a white card; CSAE is white text on purple */
.card { background: var(--white); color: #1a1a1a; max-width: 1350px; margin: 2rem auto 0; padding: 3rem 1rem; }
.legal { font-size: 1.15rem; }
.legal h2 { font-weight: 400; font-size: clamp(2rem, 3.5vw, 2.6rem); line-height: 1.2; margin: .5rem 0 1.5rem; }
.legal h3 { font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1rem 0 .8rem; }
.legal b, .legal strong { font-weight: 800; }
.legal a { color: var(--white); }

/* tutorial (not in the menu; kept from the 2021 site) */
.tutorial { max-width: 640px; margin: 0 auto; text-align: center; }
.tutorial-title { font-family: Georgia, "Roboto Slab", serif; font-weight: 400; text-transform: uppercase; font-size: 2.3rem; margin: 2.5rem 0 2rem; }
.tutorial figure { margin: 0 0 2.5rem; }
.tutorial img { display: block; margin: 0 auto 1rem; max-width: min(100%, 320px); }
.tutorial figcaption, .tutorial-end { font-size: 1.15rem; }
.tutorial-end { font-weight: 700; margin-top: 3rem; }

/* page not found */
.page-404 .lead a { color: var(--white); }

@media (max-width: 800px) {
  .site-header { min-height: 65px; }
  .logo img { width: 120px; }
  .site-header nav { font-size: 1rem; gap: .25rem 1.25rem; }
  .site-footer p { margin: 0; }
  .faq { grid-template-columns: 1fr; padding-top: 1rem; }
  .faq-title { margin: 0; }
  .faq details p { margin-left: 0; }
  .carousel { grid-template-columns: 2rem 1fr 2rem; }
  .card { padding: 1.5rem 0; }
  .card table { display: block; overflow-x: auto; }
}
