/* ==========================================================================
   Borbalo case study  (/borbalo/)
   Section structure from case-study.css (Wineland / Dippi system), restyled
   in Borbalo's own brand language (borbalo.ge): white and #f2f4f5 bands,
   black FiraGO type (Fira Sans is its Latin base), teal #00c6be surfaces,
   26-30px radius cards and pill buttons.
   ========================================================================== */
.page-borbalo {
  --bb-teal: #00c6be;
  --bb-teal-ink: #00857f;   /* teal dark enough for small icons on white */
  --bb-gray: #f2f4f5;
  --bb-line: rgba(0, 0, 0, .12);
  --bb-pill: rgba(0, 0, 0, .46);
  --bb-grad: linear-gradient(#000, #00635f);

  --accent: var(--bb-teal-ink);
  --ink: #000;
  --body: #3d4142;
  --line: var(--bb-line);
  --radius-card: 26px;
  --stage: #e6f9f8;
  --ph-bg: #eefbfa;
  --ph-dot: rgba(0, 150, 144, .18);
  --ph-fg: #4c6664;
  --ph-strong: #003c39;
  --ph-line: #bdebe8;
  --fg-bg: var(--bb-grad);
  font-family: "FiraGO", "Fira Sans", var(--font-sans);
  color: #000;
}

/* --------------------------------------------------------------------------
   Hero: copy left, teal panel with the app mark + phones right
   -------------------------------------------------------------------------- */
.bb-hero { position: relative; height: 746px; overflow: hidden; background: #fff; }
.bb-hero-inner { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; }
.bb-hero-text { position: absolute; left: 120px; top: 128px; width: min(600px, calc(100% - 780px)); display: flex; flex-direction: column; gap: 32px; z-index: 1; }
.bb-hero-titles { display: flex; flex-direction: column; gap: 18px; }
.bb-hero h1 { font-family: inherit; font-size: 48px; font-weight: 500; line-height: 1.15; color: #000; text-wrap: balance; }
.bb-kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-kicker span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border: 1px solid var(--bb-pill); border-radius: 30px;
  font-size: 15px; font-weight: 500; color: #000;
}
.bb-lead { font-size: 17px; line-height: 1.55; color: var(--body); }
.page-borbalo .cs-meta { gap: 20px; font-size: 14px; line-height: 1.45; }
.page-borbalo .cs-meta dt { color: rgba(0, 0, 0, .62); }

/* panel = 590 x 512, ends 72px above the facts card; children placed in % so it scales as one piece */
.bb-art { position: absolute; right: 30px; top: 80px; width: 590px; }
/* Brand panel: lit teal surface + faint oversized mark, three phones with the middle one raised,
   and two real UI fragments (a speeding fine, a train result) floating over them. Static only. */
.bb-art-in {
  position: relative; height: 0; padding-bottom: 86.78%; border-radius: 30px; overflow: hidden;
  background:
    radial-gradient(60% 55% at 10% 0%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 70%),
    radial-gradient(75% 65% at 100% 100%, #00978f, rgba(0, 151, 143, 0) 72%),
    #00c6be;
}
.bb-art-in::after { /* fine grain so the teal isn't a flat fill */
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bb-watermark { position: absolute; left: 47%; top: -26%; width: 80%; height: auto; opacity: .13; pointer-events: none; }
/* three whole phones on an even grid (no overlap, nothing cut), bottom-aligned; the middle one larger */
.bb-art .shot-phone { position: absolute; width: 27%; z-index: 1; filter: drop-shadow(0 26px 28px rgba(0, 72, 68, .38)); }
.bb-art .p-left  { left: 4%;  top: 29%; }
.bb-art .p-right { left: 69%; top: 29%; }
.bb-art .p-mid   { left: 34%; top: 17.4%; width: 32%; z-index: 2; }
/* 2x UI cards with transparent rounded corners, sized close to the phones' UI scale */
.bb-frag { position: absolute; z-index: 4; height: auto; border-radius: 10px; box-shadow: 0 16px 34px -10px rgba(0, 62, 58, .55); }
.bb-frag.is-post  { left: 68%; top: 8.2%; width: 28%; border-radius: 12px; }
.bb-frag.is-fine  { left: 4%;  top: 11.7%; width: 28%; }
.bb-art .ph { --ph-bg: #f7fffe; }

/* --------------------------------------------------------------------------
   Shared sections, in Borbalo style
   -------------------------------------------------------------------------- */
.page-borbalo .cs-title { font-size: 44px; line-height: 1.2; font-weight: 500; letter-spacing: 0; text-transform: none; color: #000; }
.page-borbalo .hero-card { border-radius: 26px; border-color: var(--bb-line); box-shadow: 0 10px 40px rgba(0, 0, 0, .06); }
.page-borbalo .hc-item { border: 0; border-radius: 20px; background: var(--bb-gray); }
.page-borbalo .hc-label { color: rgba(0, 0, 0, .62); }
.page-borbalo .tool { border-radius: 20px; border-color: var(--bb-line); }
.page-borbalo .tool h3 { font-family: inherit; font-weight: 500; font-size: 19px; color: #000; }
.page-borbalo .tool p { color: rgba(0, 0, 0, .62); }

.page-borbalo .band { --band: var(--bb-gray); }

.page-borbalo .cs-challenge p { font-size: 17px; line-height: 1.6; color: var(--body); }

.page-borbalo .sf-media { border-radius: 26px; border-color: var(--bb-line); box-shadow: none; }
.page-borbalo .sf-box { border-radius: 7px; }   /* concentric: 26 - 19.5 padding */
.page-borbalo .sf-h { font-weight: 500; font-size: 26px; color: #000; }
.page-borbalo .sf-row dt { font-weight: 500; }
.page-borbalo .sf-row dd { color: var(--body); border-left-color: var(--bb-line); }

.page-borbalo .fp-media { border-radius: 26px; border-color: var(--bb-line); box-shadow: none; }
.page-borbalo .fp-box { border-radius: 14px; }  /* 26 - 12 padding */
.page-borbalo .fp-pill { border-radius: 30px; border-color: var(--bb-pill); box-shadow: none; font-weight: 500; background: transparent; }
.page-borbalo .fp-item h3 { font-weight: 500; }
.page-borbalo .fp-desc { color: var(--body); }
.page-borbalo .fp-link a { font-weight: 500; }

.page-borbalo .dz-h { font-weight: 500; font-size: 24px; color: #000; }
.page-borbalo .dz-card { border-radius: 26px; border-color: var(--bb-line); box-shadow: none; }
.page-borbalo .dz-box { border-radius: 6px; }   /* 26 - 20 padding */

.page-borbalo .fg-box { border-radius: 18px; }

/* Branding */
.page-borbalo .br2-h { font-weight: 500; }
.page-borbalo .br2-font { font-weight: 500; }
.bb-logo-tile.is-light { background: #fff; }
.bb-logo-tile.is-light img { width: 120px; height: 120px; border-radius: 28px; }
.bb-logo-tile.is-brand { background: var(--bb-teal); border-color: transparent; gap: 16px; }
.bb-logo-tile.is-brand img { width: 84px; height: 84px; }
.bb-logo-tile.is-brand span { font-size: 40px; font-weight: 500; color: #fff; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .bb-hero { height: auto; }
  .bb-hero-inner { display: flex; flex-direction: column; padding-bottom: 96px; }
  .bb-hero-text { position: relative; left: auto; top: auto; width: auto; max-width: 640px; padding: 110px 40px 0; }
  .bb-art { position: relative; right: auto; top: auto; width: calc(100% - 80px); max-width: 590px; margin: 48px auto 0; }
}
@media (max-width: 809px) {
  .bb-hero-inner { padding-bottom: 56px; }
  .bb-hero-text { padding: 80px 20px 0; gap: 24px; }
  .bb-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .bb-lead { font-size: 16px; }
  .bb-art { width: calc(100% - 40px); margin-top: 40px; }
  .bb-art-in { border-radius: 24px; }
  .bb-frag { border-radius: 8px; }
  .page-borbalo .cs-title { font-size: 30px; }
  .page-borbalo .cs-challenge p { font-size: 16px; }
  .page-borbalo .sf-h { font-size: 22px; }
  .page-borbalo .sf-box { border-radius: 14px; }
  .page-borbalo .dz-box { border-radius: 16px; }
  .bb-logo-tile.is-light img { width: 96px; height: 96px; border-radius: 22px; }
  .bb-logo-tile.is-brand img { width: 64px; height: 64px; }
  .bb-logo-tile.is-brand span { font-size: 30px; }
}
