/* ============================================================
   Beez Санхүү — Landing page (templates/home.php)
   Every rule is prefixed with .bfh-root so it outranks theme
   element styles; the reset uses :where() to stay at 0 specificity.
   ============================================================ */

body.beez-fin-canvas { margin: 0; background: #fef8f5; }
:root:has(.bfh-root) { scroll-behavior: smooth; }

:where(.bfh-root, .bfh-root *, .bfh-root *::before, .bfh-root *::after) {
  box-sizing: border-box; margin: 0; padding: 0;
}

.bfh-root {
  /* warm pastel — cream/blush ground, white cards, plum ink */
  --bfh-bg:      #fef8f5;
  --bfh-bg2:     #fbeee9;
  --bfh-surface: #ffffff;
  --bfh-border:  #f0dfd9;
  --bfh-text:    #3b2f3a;
  --bfh-muted:   #6c5c68;
  --bfh-accent:  #58439e;
  --bfh-income:  #22694a;
  --bfh-expense: #a63a54;
  --bfh-cash:    #58439e;
  --bfh-amber:   #8f4f18;
  --bfh-primary: #d9b5dc;
  --bfh-primary-fg: #33253a;

  font-family: 'Segoe UI', system-ui, -apple-system, 'Noto Sans', sans-serif;
  font-size: 16px; line-height: 1.6;
  background: var(--bfh-bg); color: var(--bfh-text);
  overflow-x: clip;
}
.bfh-root a { text-decoration: none; }
.bfh-root .bfh-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.bfh-root .bfh-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: transform .15s, opacity .15s, background .15s;
}
.bfh-root .bfh-btn:hover { transform: translateY(-1px); }
.bfh-root .bfh-btn-sm { padding: 9px 18px; font-size: 13px; }
.bfh-root .bfh-btn-primary { background: var(--bfh-primary); color: var(--bfh-primary-fg); box-shadow: 0 8px 24px rgba(201,184,236,.55); }
.bfh-root .bfh-btn-primary:hover { filter: brightness(1.04) saturate(1.05); color: var(--bfh-primary-fg); }
.bfh-root .bfh-btn-ghost { border-color: rgba(59,47,58,.22); color: var(--bfh-text); background: rgba(255,255,255,.55); }
.bfh-root .bfh-btn-ghost:hover { background: #fff; color: var(--bfh-text); }
.bfh-root .bfh-btn-white { background: #fff; color: var(--bfh-text); box-shadow: 0 8px 22px rgba(214,150,150,.28); }
.bfh-root .bfh-btn-white:hover { color: var(--bfh-text); filter: brightness(.98); }
.bfh-root .bfh-btn-ghost-white { background: transparent; color: #4d3d4b; border-color: rgba(77,61,75,.35); }
.bfh-root .bfh-btn-ghost-white:hover { background: rgba(255,255,255,.35); color: #4d3d4b; }

/* ── Nav ─────────────────────────────────────────────────────── */
.bfh-root .bfh-nav {
  position: sticky; top: 0; z-index: 50;
  background: #efd3d6;
  box-shadow: 0 2px 18px rgba(214,150,150,.28);
}
body.admin-bar .bfh-root .bfh-nav { top: 32px; }
.bfh-root .bfh-nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.bfh-root .bfh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--bfh-text); }
.bfh-root .bfh-logo-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #fcd69c;
  box-shadow: 0 3px 10px rgba(226,160,90,.35);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.bfh-root .bfh-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.bfh-root .bfh-logo-text strong { font-size: 16px; font-weight: 700; color: var(--bfh-text); }
.bfh-root .bfh-logo-text small { font-size: 11px; color: #5e4d5b; }
.bfh-root .bfh-nav-links { display: flex; gap: 4px; flex: 1; }
.bfh-root .bfh-nav-links a { white-space: nowrap; color: #4d3d4b; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.bfh-root .bfh-nav-links a:hover { background: rgba(255,255,255,.55); color: var(--bfh-text); }

/* Narrow desktops / landscape tablets: keep the (now longer) brand and five links on one line */
@media (min-width: 961px) and (max-width: 1100px) {
  .bfh-root .bfh-nav-inner { gap: 16px; }
  .bfh-root .bfh-nav-links { gap: 0; }
  .bfh-root .bfh-nav-links a { padding: 8px 9px; font-size: 13px; }
  .bfh-root .bfh-logo-text small { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────── */
.bfh-root .bfh-hero {
  padding: 88px 0 96px;
  background:
    transparent;
}
.bfh-root .bfh-hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.bfh-root .bfh-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(250,215,190,.65); color: #8f4f18; border: 1px solid rgba(226,160,110,.4);
  font-size: 13px; font-weight: 600;
}
.bfh-root h1 {
  font-family: inherit; font-size: clamp(34px, 5vw, 56px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.02em; color: var(--bfh-text); margin-bottom: 20px;
}
.bfh-root .bfh-grad {
  background: #9a4e92;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bfh-root .bfh-lead { font-size: 18px; color: var(--bfh-muted); max-width: 540px; margin-bottom: 32px; }
.bfh-root .bfh-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.bfh-root .bfh-hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; color: var(--bfh-muted); font-size: 14px; }
.bfh-root .bfh-hero-points li::before { content: '✓'; color: var(--bfh-income); font-weight: 700; margin-right: 6px; }
.bfh-root .bfh-apk-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; font-weight: 600; color: var(--bfh-text); text-decoration: none;
  border-bottom: 1px dashed rgba(59,47,58,.35); padding-bottom: 2px;
}
.bfh-root .bfh-apk-link:hover { color: var(--bfh-primary); border-color: var(--bfh-primary); }
.bfh-root .bfh-apk-link-icon { font-size: 16px; }
.bfh-root .bfh-apk-link-sub { color: var(--bfh-muted); font-weight: 400; }

/* Product screenshots — real dashboard (desktop) + phone view */
.bfh-root .bfh-tagline { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; font-weight: 700; color: var(--bfh-text); margin-bottom: 16px; }
.bfh-root .bfh-devices { position: relative; padding: 0 0 56px; }
.bfh-root .bfh-desktop {
  background: var(--bfh-surface); border: 1px solid var(--bfh-border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(205,140,140,.28);
}
.bfh-root .bfh-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fbeee9; border-bottom: 1px solid var(--bfh-border); }
.bfh-root .bfh-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e6cfc8; }
.bfh-root .bfh-browser-bar em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--bfh-muted); }
.bfh-root .bfh-desktop img, .bfh-root .bfh-phone img { display: block; width: 100%; height: auto; }
.bfh-root figure.bfh-desktop { margin: 0; }

/* Бизнес | Хувийн switch — shows one set of screenshots at a time */
.bfh-root .bfh-hero-visual { min-width: 0; }
.bfh-root .bfh-mode-tabs {
  display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 22px; padding: 5px;
  border-radius: 12px; background: var(--bfh-surface); border: 1px solid var(--bfh-border);
  box-shadow: 0 4px 14px rgba(205,140,140,.12);
}
.bfh-root .bfh-mode-tabs-section { margin: -16px auto 40px; }
.bfh-root .bfh-mode-tab {
  padding: 9px 26px; border: none; border-radius: 8px; background: transparent; color: var(--bfh-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s, color .15s;
}
.bfh-root .bfh-mode-tab:hover { color: var(--bfh-text); }
.bfh-root .bfh-mode-tab.active { background: var(--bfh-primary); color: var(--bfh-primary-fg); }
.bfh-root .bfh-mode-tab:focus-visible { outline: 2px solid var(--bfh-accent); outline-offset: 2px; }
.bfh-root:not([data-bfh-mode="personal"]) [data-bfh-only="personal"],
.bfh-root[data-bfh-mode="personal"] [data-bfh-only="business"] { display: none; }
@keyframes bfh-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bfh-root[data-bfh-touched] [data-bfh-only] { animation: bfh-swap .35s ease; }
@media (prefers-reduced-motion: reduce) { .bfh-root[data-bfh-touched] [data-bfh-only] { animation: none; } }

/* Phone frame (screenshot inside a plum bezel) */
.bfh-root .bfh-phone {
  border: 7px solid #3b2f3a; border-radius: 32px; overflow: hidden; background: #3b2f3a;
  box-shadow: 0 22px 48px rgba(59,47,58,.30);
}
.bfh-root figure.bfh-phone { margin: 0; }
.bfh-root .bfh-phone img { border-radius: 24px; }
.bfh-root .bfh-phone-float { position: absolute; right: -14px; bottom: 0; width: 31%; }

/* Showcase section: desktop (left) + two phones (right) */
.bfh-root .bfh-showcase { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.bfh-root .bfh-shot { margin: 0; }
.bfh-root .bfh-shot figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--bfh-muted); }
.bfh-root .bfh-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* ── Sections ────────────────────────────────────────────────── */
.bfh-root .bfh-section { padding: 88px 0; scroll-margin-top: 68px; }
.bfh-root .bfh-section-alt { background: var(--bfh-bg2); }
.bfh-root .bfh-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.bfh-root .bfh-eyebrow { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bfh-amber); }
.bfh-root h2 { font-family: inherit; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--bfh-text); margin-bottom: 14px; }
.bfh-root h3 { font-family: inherit; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--bfh-text); margin-bottom: 8px; }
.bfh-root .bfh-section-head h2 { text-wrap: balance; }
.bfh-root .bfh-section-head p { color: var(--bfh-muted); font-size: 17px; }

.bfh-root .bfh-grid { display: grid; gap: 20px; }
.bfh-root .bfh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bfh-root .bfh-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Feature cards */
.bfh-root .bfh-card {
  background: var(--bfh-surface); border: 1px solid var(--bfh-border); border-radius: 16px;
  padding: 26px; transition: transform .2s, border-color .2s;
  box-shadow: 0 4px 18px rgba(205,140,140,.10);
}
.bfh-root .bfh-card:hover { transform: translateY(-3px); border-color: #e6c9c4; }
.bfh-root .bfh-card p { color: var(--bfh-muted); font-size: 15px; }
.bfh-root .bfh-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; font-size: 22px;
}
.bfh-root .bfh-icon-green  { background: #d6eee2; }
.bfh-root .bfh-icon-blue   { background: #d6e9f4; }
.bfh-root .bfh-icon-amber  { background: #fbe3cf; }
.bfh-root .bfh-icon-purple { background: #e3dbf3; }
.bfh-root .bfh-icon-red    { background: #f9dbe1; }
.bfh-root .bfh-icon-slate  { background: #eee3e4; }

/* Steps */
.bfh-root .bfh-step { text-align: center; padding: 8px 16px; }
.bfh-root .bfh-step p { color: var(--bfh-muted); font-size: 15px; }
.bfh-root .bfh-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%;
  background: #e9d1e2; color: var(--bfh-text);
  font-size: 22px; font-weight: 800; box-shadow: 0 8px 22px rgba(205,140,140,.28);
}

/* Decision cards */
.bfh-root .bfh-q { background: var(--bfh-surface); border: 1px solid var(--bfh-border); border-left: 4px solid #b7a6e6; border-radius: 14px; padding: 24px 26px; box-shadow: 0 4px 18px rgba(205,140,140,.08); }
.bfh-root .bfh-q p { color: var(--bfh-muted); font-size: 15px; }
.bfh-root .bfh-q-green  { border-left-color: #8fd4b2; }
.bfh-root .bfh-q-red    { border-left-color: #f2a0b3; }
.bfh-root .bfh-q-blue   { border-left-color: #8fc3e3; }
.bfh-root .bfh-q-purple { border-left-color: #b7a6e6; }

/* Pricing */
.bfh-root .bfh-pricing-tabs { display: flex; justify-content: center; gap: 6px; margin: -16px auto 40px; width: fit-content; padding: 5px; border-radius: 12px; background: var(--bfh-surface); border: 1px solid var(--bfh-border); }
.bfh-root .bfh-pricing-tab { padding: 9px 22px; border: none; border-radius: 8px; background: transparent; color: var(--bfh-muted); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.bfh-root .bfh-pricing-tab.active { background: var(--bfh-primary); color: var(--bfh-primary-fg); }
.bfh-root .bfh-grid-pricing { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.bfh-root .bfh-pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--bfh-surface); border: 1px solid var(--bfh-border); border-radius: 16px;
  padding: 28px 26px; box-shadow: 0 4px 18px rgba(205,140,140,.10);
}
.bfh-root .bfh-pkg-featured { border-color: var(--bfh-primary); box-shadow: 0 16px 36px rgba(180,140,200,.30); }
.bfh-root .bfh-pkg-badge {
  position: absolute; top: -13px; left: 26px; padding: 4px 12px; border-radius: 999px;
  background: var(--bfh-primary); color: var(--bfh-primary-fg); font-size: 12px; font-weight: 700;
}
.bfh-root .bfh-pkg h3 { margin-bottom: 14px; }
.bfh-root .bfh-pkg-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bfh-root .bfh-pkg-compare { font-size: 15px; color: var(--bfh-muted); text-decoration: line-through; }
.bfh-root .bfh-pkg-price { font-size: 30px; font-weight: 800; letter-spacing: -.3px; color: var(--bfh-text); }
.bfh-root .bfh-pkg-duration { font-size: 13px; color: var(--bfh-muted); margin-bottom: 20px; }
.bfh-root .bfh-pkg-features { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; flex: 1; }
.bfh-root .bfh-pkg-features li { font-size: 14px; color: var(--bfh-text); padding-left: 22px; position: relative; }
.bfh-root .bfh-pkg-features li::before { content: '✓'; position: absolute; left: 0; color: var(--bfh-income); font-weight: 700; }
.bfh-root .bfh-pkg-cta { width: 100%; margin-top: auto; }

/* CTA band */
.bfh-root .bfh-cta-section { padding-top: 24px; }
.bfh-root .bfh-cta {
  text-align: center; padding: 64px 32px; border-radius: 24px;
  background: #efd3d6;
  box-shadow: 0 24px 60px rgba(214,150,150,.28);
}
.bfh-root .bfh-cta p { color: #4d3d4b; font-size: 17px; margin-bottom: 28px; }
.bfh-root .bfh-cta h2 { margin-bottom: 12px; }
.bfh-root .bfh-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Footer */
.bfh-root .bfh-footer { border-top: 1px solid var(--bfh-border); padding: 28px 0; color: var(--bfh-muted); font-size: 14px; }
.bfh-root .bfh-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.bfh-root .bfh-footer a { color: var(--bfh-text); }
.bfh-root .bfh-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .bfh-root .bfh-hero { padding: 64px 0 72px; }
  .bfh-root .bfh-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .bfh-root .bfh-hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .bfh-root .bfh-showcase { grid-template-columns: 1fr; gap: 32px; }
  .bfh-root .bfh-phones { max-width: 460px; width: 100%; margin: 0 auto; }
  .bfh-root .bfh-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bfh-root .bfh-nav-links { display: none; }
  .bfh-root .bfh-nav-inner { justify-content: space-between; }
}
@media (max-width: 782px) {
  body.admin-bar .bfh-root .bfh-nav { top: 46px; }
}
@media (max-width: 640px) {
  .bfh-root .bfh-section { padding: 64px 0; }
  .bfh-root .bfh-grid-3, .bfh-root .bfh-grid-2, .bfh-root .bfh-grid-pricing { grid-template-columns: 1fr; }
  .bfh-root .bfh-pricing-tabs { margin-top: 0; }
  .bfh-root .bfh-logo-text small { display: none; }
  .bfh-root .bfh-lead { font-size: 16px; }
  .bfh-root .bfh-hero-cta .bfh-btn { flex: 1 1 100%; }
  .bfh-root .bfh-cta { padding: 44px 20px; }
  .bfh-root .bfh-phone { border-width: 5px; border-radius: 24px; }
  .bfh-root .bfh-phone img { border-radius: 18px; }
  .bfh-root .bfh-phone-float { right: -6px; width: 34%; }
  .bfh-root .bfh-phones { gap: 12px; }
  .bfh-root .bfh-mode-tabs-section { margin-top: 0; }
  .bfh-root .bfh-shot figcaption { font-size: 13px; }
}

/* Small phones: let the brand name shrink / wrap so the «Нэвтрэх» button never gets pushed off-screen */
@media (max-width: 420px) {
  .bfh-root .bfh-nav-inner { gap: 10px; }
  .bfh-root .bfh-logo { min-width: 0; gap: 8px; flex-shrink: 1; }
  .bfh-root .bfh-logo-icon { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; flex-shrink: 0; }
  .bfh-root .bfh-logo-text { min-width: 0; }
  .bfh-root .bfh-logo-text strong { font-size: 14px; line-height: 1.15; }
  .bfh-root .bfh-nav .bfh-btn-sm { flex-shrink: 0; padding: 8px 14px; }
}

/* ── Desktop scale ───────────────────────────────────────────────
   Renders the whole landing page at 85% on desktop widths (like
   browser zoom 85%) so it isn't oversized on scaled displays.
   Change --bfh-zoom to taste: 1 = original size, .8 = smaller.
   Tablets / phones (<1025px) are not scaled. */
.bfh-root { --bfh-zoom: .85; }
@media (min-width: 1025px) {
  .bfh-root { zoom: var(--bfh-zoom); }
  .bfh-root .bfh-container { max-width: 1280px; }
  .bfh-root .bfh-hero { padding: 56px 0 64px; }
  body.admin-bar .bfh-root .bfh-nav { top: calc(32px / var(--bfh-zoom)); }
}
