/* BunniPill website: the app's Soft UI palette (same hexes as the app's Color.kt) on Bootstrap 5.3. */

@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/lato-regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/lato-bold.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/lato-black.woff2") format("woff2"); }

:root,
[data-bs-theme="light"] {
  --bp-bg: #fff9f0;
  --bp-surface: #ffffff;
  --bp-surface-dim: #f5f2ec;
  --bp-text: #303b38;
  --bp-muted: #616d68;
  --bp-primary: #2f6b57;
  --bp-on-primary: #ffffff;
  --bp-container: #cfe9dc;
  --bp-on-container: #173f33;
  --bp-mint: #b9dccb;
  --bp-pink: #8c3b52;
  --bp-pink-container: #fbe1e8;
  --bp-amber: #8a5300;
  --bp-amber-container: #fff0d9;
  --bp-blue: #3b6a96;
  --bp-blue-container: #e3eef8;
  --bp-hairline: #e6e0d6;
  --bp-shadow: 0 10px 30px rgba(47, 107, 87, 0.10), 0 2px 6px rgba(47, 107, 87, 0.06);

  --bs-body-bg: var(--bp-bg);
  --bs-body-color: var(--bp-text);
  --bs-secondary-color: var(--bp-muted);
  --bs-tertiary-bg: var(--bp-surface-dim);
  --bs-border-color: var(--bp-hairline);
  --bs-link-color: var(--bp-primary);
  --bs-link-color-rgb: 47, 107, 87;
  --bs-link-hover-color: #23523f;
  --bs-link-hover-color-rgb: 35, 82, 63;
  --bs-primary: var(--bp-primary);
  --bs-primary-rgb: 47, 107, 87;
  --bs-emphasis-color: #1f2826;
  --bs-heading-color: #26302d;
  --bs-focus-ring-color: rgba(47, 107, 87, 0.35);
}

[data-bs-theme="dark"] {
  --bp-bg: #131a17;
  --bp-surface: #1c2421;
  --bp-surface-dim: #26302c;
  --bp-text: #f3eee6;
  --bp-muted: #aeb8b2;
  --bp-primary: #9ad3ba;
  --bp-on-primary: #0f3328;
  --bp-container: #24493d;
  --bp-on-container: #d3f0e2;
  --bp-mint: #2c5a4a;
  --bp-pink: #f2b8c6;
  --bp-pink-container: #4a2733;
  --bp-amber: #f5c46b;
  --bp-amber-container: #4a3a1c;
  --bp-blue: #a9cbee;
  --bp-blue-container: #1f3a54;
  --bp-hairline: #2f3a36;
  --bp-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  --bs-body-bg: var(--bp-bg);
  --bs-body-color: var(--bp-text);
  --bs-secondary-color: var(--bp-muted);
  --bs-tertiary-bg: var(--bp-surface-dim);
  --bs-border-color: var(--bp-hairline);
  --bs-link-color: var(--bp-primary);
  --bs-link-color-rgb: 154, 211, 186;
  --bs-link-hover-color: #c3e8d7;
  --bs-link-hover-color-rgb: 195, 232, 215;
  --bs-primary: var(--bp-primary);
  --bs-primary-rgb: 154, 211, 186;
  --bs-emphasis-color: #fbf8f3;
  --bs-heading-color: #f7f3ec;
  --bs-focus-ring-color: rgba(154, 211, 186, 0.4);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bp-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .h1, .h2, .h3, .display-title { font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
h4, h5, h6, .h4, .h5, .h6 { font-weight: 700; }
.lead { color: var(--bp-muted); font-size: 1.2rem; }
a { text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--bp-container); color: var(--bp-on-container); }

.skip-link { position: absolute; left: 1rem; top: 0.5rem; z-index: 2000; background: var(--bp-primary); color: var(--bp-on-primary); padding: 0.5rem 1rem; border-radius: 999px; }

/* ---- Navigation ----------------------------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: color-mix(in srgb, var(--bp-bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--bp-hairline) 70%, transparent); }
.site-nav { padding-block: 0.65rem; }
.brand-name { font-weight: 900; font-size: 1.35rem; color: var(--bp-primary); letter-spacing: -0.01em; }
.brand-icon { border-radius: 10px; }
.site-nav .nav-link { font-weight: 700; color: var(--bp-text); border-radius: 999px; padding: 0.45rem 0.95rem !important; }
.site-nav .nav-link:hover { background: var(--bp-surface-dim); }
.site-nav .nav-link.active { background: var(--bp-container); color: var(--bp-on-container); }
.theme-toggle { text-decoration: none; }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color); }
[data-bs-theme="dark"] .navbar-toggler-icon { filter: invert(1); }

/* ---- Buttons ---------------------------------------------------------------------------------------------------- */
.btn { font-weight: 700; border-radius: 999px; }
.btn-brand { --bs-btn-bg: var(--bp-primary); --bs-btn-color: var(--bp-on-primary); --bs-btn-border-color: var(--bp-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--bp-primary) 88%, #000); --bs-btn-hover-color: var(--bp-on-primary); --bs-btn-hover-border-color: transparent; --bs-btn-active-bg: color-mix(in srgb, var(--bp-primary) 80%, #000); --bs-btn-active-color: var(--bp-on-primary); padding: 0.75rem 1.5rem; }
.btn-soft { --bs-btn-bg: var(--bp-container); --bs-btn-color: var(--bp-on-container); --bs-btn-border-color: transparent; --bs-btn-hover-bg: color-mix(in srgb, var(--bp-container) 85%, var(--bp-primary)); --bs-btn-hover-color: var(--bp-on-container); --bs-btn-active-bg: var(--bp-container); padding: 0.75rem 1.5rem; }
.btn-play { --bs-btn-bg: #1c2421; --bs-btn-color: #fff; --bs-btn-border-color: #1c2421; --bs-btn-hover-bg: #000; --bs-btn-hover-color: #fff; --bs-btn-disabled-bg: var(--bp-surface-dim); --bs-btn-disabled-color: var(--bp-muted); --bs-btn-disabled-border-color: var(--bp-hairline); --bs-btn-disabled-opacity: 1; display: inline-flex; align-items: center; white-space: nowrap; }
[data-bs-theme="dark"] .btn-play { --bs-btn-bg: #f3eee6; --bs-btn-color: #131a17; --bs-btn-border-color: #f3eee6; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: #000; }
.btn-lg.btn-play { padding: 0.8rem 1.6rem; }
.btn:focus-visible { box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color); }

/* ---- Width helpers (no inline styles) ------------------------------------------------------------------------ */
.narrow { max-width: 760px; margin-inline: auto; }
.narrow-sm { max-width: 640px; margin-inline: auto; }

/* ---- Sections and cards ----------------------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bp-surface-dim); }
.eyebrow { display: inline-block; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bp-primary); background: var(--bp-container); color: var(--bp-on-container); border-radius: 999px; padding: 0.3rem 0.85rem; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 0.75rem; }
.soft-card { background: var(--bp-surface); border: 1px solid var(--bp-hairline); border-radius: 28px; box-shadow: var(--bp-shadow); padding: 1.75rem; height: 100%; }
.soft-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.soft-card p:last-child, .soft-card ul:last-child { margin-bottom: 0; }
.icon-bubble { width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; background: var(--bp-container); color: var(--bp-on-container); margin-bottom: 1rem; flex-shrink: 0; }
.icon-bubble.pink { background: var(--bp-pink-container); color: var(--bp-pink); }
.icon-bubble.amber { background: var(--bp-amber-container); color: var(--bp-amber); }
.icon-bubble.blue { background: var(--bp-blue-container); color: var(--bp-blue); }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0.05rem; color: var(--bp-primary); font-size: 1.2rem; }

/* ---- Hero ----------------------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 620px; height: 620px; background: var(--bp-container); left: -220px; bottom: -260px; opacity: 0.8; }
.hero::after { width: 420px; height: 420px; background: var(--bp-pink-container); right: -140px; top: -120px; opacity: 0.7; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.hero h1 .accent { color: var(--bp-primary); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: min(330px, 78vw); }
.hero-visual .bunni { position: absolute; width: clamp(100px, 16vw, 170px); left: 0; bottom: -10px; filter: drop-shadow(0 12px 16px rgba(47, 107, 87, 0.25)); }
/* Desktop: the phone on the right of its column, Bunni beside it. Small phones: no room beside it, so no Bunni. */
@media (min-width: 992px) { .hero-visual { justify-content: flex-end; padding-right: 1rem; } }
@media (min-width: 576px) and (max-width: 991.98px) { .hero-visual .bunni { left: max(0px, calc(50% - 320px)); } }
@media (max-width: 575.98px) { .hero-visual .bunni { display: none; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--bp-muted); font-weight: 700; font-size: 0.95rem; }
.trust-row i { color: var(--bp-primary); margin-right: 0.35rem; }

.phone { filter: drop-shadow(0 24px 30px rgba(47, 107, 87, 0.22)); height: auto; }
[data-bs-theme="dark"] .phone { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.5)); }

/* ---- Screenshot rail ------------------------------------------------------------------------------------------- */
.shots { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem 0.25rem 2rem; scrollbar-width: thin; }
.shots figure { flex: 0 0 auto; width: min(260px, 70vw); scroll-snap-align: center; margin: 0; text-align: center; }
.shots figcaption { font-weight: 700; margin-top: 0.75rem; color: var(--bp-muted); font-size: 0.95rem; }
.shots:focus-visible { outline: 3px solid var(--bs-focus-ring-color); outline-offset: 4px; border-radius: 12px; }

/* ---- Steps ------------------------------------------------------------------------------------------------------ */
.step-number { width: 44px; height: 44px; border-radius: 50%; background: var(--bp-primary); color: var(--bp-on-primary); font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 1rem; }

/* ---- Feature rows ----------------------------------------------------------------------------------------------- */
.feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 5.5rem); }
.feature-row .phone { width: min(300px, 74vw); }
.feature-visual { display: flex; justify-content: center; position: relative; }
.feature-visual .bunni-small { position: absolute; width: 110px; bottom: -8px; right: max(0px, calc(50% - 285px)); }
.widget-demo { width: min(420px, 92%); border-radius: 26px; box-shadow: var(--bp-shadow); background: var(--bp-surface); }
.widget-stage { background: linear-gradient(160deg, #2f6b57, #b9dccb); border-radius: 32px; padding: clamp(1.5rem, 4vw, 3rem); display: flex; justify-content: center; }
.lang-chip { display: inline-flex; align-items: center; padding: 0.45rem 1rem; border-radius: 999px; background: var(--bp-surface); border: 1px solid var(--bp-hairline); font-weight: 700; margin: 0.25rem; }

/* ---- Callouts -------------------------------------------------------------------------------------------------- */
.callout { border-radius: 22px; padding: 1.25rem 1.5rem; background: var(--bp-container); color: var(--bp-on-container); }
.callout.amber { background: var(--bp-amber-container); color: var(--bp-text); }
.callout.amber strong, .callout.amber i { color: var(--bp-amber); }
.callout.pink { background: var(--bp-pink-container); color: var(--bp-text); }
.callout p:last-child { margin-bottom: 0; }

/* ---- CTA band ----------------------------------------------------------------------------------------------------- */
.cta-band { background: var(--bp-primary); color: var(--bp-on-primary); border-radius: 36px; padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.cta-band h2 { color: inherit; }
.cta-band .lead { color: inherit; opacity: 0.85; }
.cta-band .bunni { width: clamp(120px, 20vw, 200px); }
.cta-band .btn-play.disabled { --bs-btn-disabled-bg: rgba(255,255,255,0.15); --bs-btn-disabled-color: var(--bp-on-primary); --bs-btn-disabled-border-color: rgba(255,255,255,0.3); }

/* ---- FAQ (Bootstrap accordion) ------------------------------------------------------------------------------- */
.accordion { --bs-accordion-bg: var(--bp-surface); --bs-accordion-border-color: var(--bp-hairline); --bs-accordion-border-radius: 22px; --bs-accordion-inner-border-radius: 21px; --bs-accordion-active-bg: var(--bp-container); --bs-accordion-active-color: var(--bp-on-container); --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color); --bs-accordion-btn-color: var(--bp-text); }
.accordion-button { font-weight: 700; font-size: 1.05rem; }
[data-bs-theme="dark"] .accordion-button::after { filter: invert(1) brightness(1.5); }

/* ---- Guide and legal pages ------------------------------------------------------------------------------------ */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.toc .nav-link { color: var(--bp-muted); font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.95rem; }
.toc .nav-link:hover { color: var(--bp-text); background: var(--bp-surface-dim); }
.toc .nav-link.active { color: var(--bp-on-container); background: var(--bp-container); }
.doc h2 { font-size: 1.7rem; margin-top: 3rem; margin-bottom: 1rem; scroll-margin-top: 96px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.25rem; margin-top: 1.75rem; }
.doc ol li, .doc ul li { margin-bottom: 0.4rem; }
.doc table { border-radius: 16px; overflow: hidden; }
.doc .table { --bs-table-bg: var(--bp-surface); }
.kbd-path { font-weight: 700; color: var(--bp-on-container); background: var(--bp-container); padding: 0.05rem 0.5rem; border-radius: 8px; white-space: normal; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.5rem; }
.legal .meta { color: var(--bp-muted); font-weight: 700; }
/* Phone-brand tabs in the guide: every brand is a visible chip, so it reads as something to choose. */
.brand-tabs-label { font-weight: 700; margin: 1.5rem 0 0.75rem; }
.brand-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.nav-pills.brand-tabs .nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.1rem;
  border-radius: 999px; font-weight: 700; color: var(--bp-text);
  background: var(--bp-surface); border: 1.5px solid var(--bp-hairline);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-pills.brand-tabs .nav-link:hover { border-color: var(--bp-primary); color: var(--bp-primary); }
.nav-pills.brand-tabs .nav-link:focus-visible { box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color); }
.nav-pills.brand-tabs .nav-link.active { background: var(--bp-primary); border-color: var(--bp-primary); color: var(--bp-on-primary); }
.nav-pills.brand-tabs .nav-link.active::before { content: "\F26E"; font-family: "bootstrap-icons"; margin-right: 0.4rem; }
.brand-panel { height: auto; }
.brand-panel ol { margin-bottom: 0; }
@media (max-width: 575.98px) {
  .nav-pills.brand-tabs .nav-link { padding: 0.45rem 0.9rem; font-size: 0.95rem; }
}

/* ---- Footer ------------------------------------------------------------------------------------------------------ */
.site-footer { background: var(--bp-surface); border-top: 1px solid var(--bp-hairline); padding-block: 3.5rem 2rem; margin-top: 2rem; }
.footer-heading { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-muted); font-weight: 900; margin-bottom: 0.9rem; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { color: var(--bp-text); text-decoration: none; }
.footer-links a:hover { color: var(--bp-primary); text-decoration: underline; }

/* ---- Reveal -------------------------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---- 404 ----------------------------------------------------------------------------------------------------------- */
.not-found .bunni { width: 200px; }
