/* Jibbaan UI refinement. Loaded after the distributed styles; no build needed. */
:root {
  --jb-ui-card-radius: var(--jb-radius-xl);
  --jb-ui-card-padding: var(--jb-space-300);
  --jb-ui-card-surface: var(--jb-color-surface);
  --jb-ui-card-shadow: 0 8px 24px rgb(19 10 78 / 4%);
  --jb-ui-heading-mobile: clamp(1.5rem, 5.8vw, 1.875rem);
  --jb-ui-body-leading: 1.95;
}
.landing-root :where(.hero-copy, .section-copy, .release-copy, .faq-section) { text-align: start; }
.landing-root :where(.section-copy, .release-copy, .section-intro) > p { line-height: var(--jb-ui-body-leading); }
.benefit-grid > div,
.steps-grid article {
  min-width: 0;
  padding: var(--jb-ui-card-padding);
  background: var(--jb-ui-card-surface);
  border: 0;
  border-radius: var(--jb-ui-card-radius);
  box-shadow: var(--jb-ui-card-shadow);
}
.benefit-grid > div > .icon {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.steps-grid article { border-block-start: 0; }
.steps-grid h3 { font-size: 18px; }
.sms-demo { border-radius: var(--jb-ui-card-radius); }
.sms-demo :where(input, select, textarea) { min-height: 48px; font-size: 16px; }
.pill-control { text-align: start; white-space: normal; }
.pill-control[aria-pressed=true] { background: var(--jb-color-primary-subtle); color: var(--jb-color-link); }
.faq-list { border: 0; border-radius: var(--jb-ui-card-radius); background: var(--jb-ui-card-surface); padding-inline: var(--jb-ui-card-padding); box-shadow: var(--jb-ui-card-shadow); }
.faq-item { padding-inline: 0; }
.faq-item:last-child { border-block-end: 0; }
.faq-button { text-align: start; line-height: 1.8; gap: 16px; }
.faq-item:has(.faq-button[aria-expanded=true]) { background: transparent; }
.faq-panel p { line-height: var(--jb-ui-body-leading); }
.jb-button { white-space: normal; text-align: center; }
.site-header .jb-button { white-space: nowrap; }
.jb-button:focus-visible, .pill-control:focus-visible, .faq-button:focus-visible { outline: 3px solid var(--jb-color-focus); outline-offset: 3px; }
.hero-meta span + span::before { content: none; }
.hero-meta span { padding: 0; background: transparent; border: 0; border-radius: 0; }
.hero-meta { column-gap: 20px; }
.site-header { border: 0; border-radius: 16px; }
.site-header.scrolled { box-shadow: none; }
.floating-note { border: 0; box-shadow: var(--jb-ui-card-shadow); }
.problem-rows > div, .security-list > div, .scenario-list a { border: 0; }
.steps-grid .step-number { background: var(--jb-color-primary-subtle); color: var(--jb-color-link); border-radius: var(--jb-radius-lg); justify-content: center; font-size: 24px; }
.android-release { border: 0; border-radius: 0; background: transparent; padding-inline: 0; }
.release-details, .security-list { border: 0; border-radius: var(--jb-ui-card-radius); background: var(--jb-ui-card-surface); padding: var(--jb-ui-card-padding); box-shadow: var(--jb-ui-card-shadow); }
.security-list > div:first-child { padding-block-start: 0; }
.security-list > div:last-child { padding-block-end: 0; }
.release-platform { padding: 0; background: transparent; border-radius: 0; }
.android-flow li + li { border: 0; }
.release-pwa-note { border: 0; }
.split > div > h2 + .text-link { margin-block-start: 20px; }
.final-section h2 + .jb-button { margin-block-start: 24px; }
.hero-copy .assurance { display: block; margin-block-start: 16px; }
.hero-copy > p { line-height: var(--jb-ui-body-leading); }
.site-header nav.open { max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
.site-header nav.open a { width: 100%; justify-content: space-between; padding-inline: 12px; border-radius: 8px; }
.site-header nav.open a:hover { background: var(--jb-color-surface-subtle); }
#install-dialog h2 { padding-inline-end: 44px; line-height: 1.6; }
/* Mint surfaces need their own readable foreground in both color modes. */
[data-color-mode=dark] { --jb-ui-card-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
[data-color-mode=dark] .pill-control[aria-pressed=true] { background: #19382f; color: #b8e7d2; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .section-intro { text-align: start; }
  .hero-actions, .hero-meta { justify-content: flex-start; }
  .hero-copy > p { margin-inline: 0; }
  .section-intro { max-width: none; }
}
@media (max-width: 767px) {
  :root { --jb-section-space: 56px; --jb-ui-card-padding: 20px; }
  .landing-root :where(h2), .final-section h2 { font-size: var(--jb-ui-heading-mobile); line-height: 1.65; }
  .hero-copy h1 { font-size: clamp(2rem, 8.3vw, 2.5rem); line-height: 1.55; }
  .hero-copy > p { font-size: 16px; margin-block-start: 16px; }
  .hero-copy .motion-line-mask, .landing-root h2 .motion-line-mask { display: inline; overflow: visible; margin: 0; padding: 0; }
  .hero-copy .motion-line, .landing-root h2 .motion-line { display: inline; }
  .hero-copy .motion-line-mask + .motion-line-mask::before, .landing-root h2 .motion-line-mask + .motion-line-mask::before { content: ' '; }
  .hero { gap: 32px; padding-block-start: 36px; padding-block-end: 32px; }
  .hero-actions { align-items: stretch; gap: 12px; }
  .hero-actions .jb-button { min-height: 48px; }
  .hero-actions .text-link { justify-content: center; }
  .hero-meta { gap: 8px 16px; margin-block-start: 20px; font-size: 12px; }
  .hero-product { padding-block-end: 64px; }
  .hero-mascot { width: 96px; inset-inline-start: auto; inset-inline-end: 0; }
  .floating-note { inset-inline-start: 0; inset-inline-end: auto; max-width: calc(100% - 104px); padding: 12px; gap: 8px; }
  .floating-note b { font-size: 13px; }
  .floating-note small { font-size: 11px; }
  .trust-strip > div, .trust-strip > div:last-child { justify-content: flex-start; }
  .section-intro { margin-block-end: 24px; }
  .dashboard-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .dashboard-controls > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dashboard-controls .pill-control { min-width: 0; justify-content: flex-start; padding: 10px 12px; font-size: 13px; }
  .dashboard-controls .pill-control:last-child { grid-column: 1 / -1; }
  .benefit-grid { gap: 16px; }
  .benefit-grid h3 { font-size: 17px; }
  .benefit-grid p { font-size: 14px; line-height: 1.9; }
  .benefit-grid > div { padding: 16px; }
  .steps-grid article { gap: 8px 16px; padding: var(--jb-ui-card-padding); }
  .steps-grid .step-number { grid-column: 1; grid-row: 1 / span 2; }
  .steps-grid h3, .steps-grid p { grid-column: 2; }
  .steps-grid p { font-size: 14px; line-height: 1.9; }
  .goals .split > div:first-child { order: 2; }
  .goals .split > div:last-child { order: 1; }
  .mobile-section > div:first-child, .mobile-section > div:last-child { order: initial; }
  .mobile-section > div:first-child:has(.preview-mobile) { order: 2; }
  .mobile-section > div:last-child:has(h2) { order: 1; }
  .security-list > div { align-items: flex-start; }
  .security-list b { font-size: 17px; }
  .final-section > div { text-align: start; }
  .final-section { padding: 24px; gap: 24px; }
  .final-section .jb-button, .release-copy .jb-button, .mobile-section .jb-button { width: 100%; }
  .final-section img { width: 128px; }
  .android-release { padding: 40px 0; }
  .android-release .release-details { min-width: 0; }
  .faq-item { padding-inline: 0; }
  .faq-button { font-size: 15px; min-height: 64px; }
  .faq-panel p { font-size: 14px; }
  #install-dialog h2 { font-size: 22px; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 359px) {
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .site-header .brand { font-size: 18px; gap: 4px; }
  .site-header .brand-icon, .site-header .brand-icon img { width: 28px; height: 28px; }
  .header-actions .jb-button { padding-inline: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-root *, .landing-root *::before, .landing-root *::after { animation: none !important; transition: none !important; }
}
