/*
 * BizDiscovery custom overrides
 *
 * This file is the last stylesheet in every browser layout. A rule here
 * wins over earlier stylesheets and inline <style> blocks of the same
 * specificity, so you do not need !important.
 *
 * The page URL includes this file's modification time. Uploading a new
 * copy is enough for visitors to load it.
 */

/* Landing, compare, terms, and privacy
   -------------------------------------------------------------- */

/* === Landing === */
#estimates {
  background: #f8fafc;
  color: #0f172a;
}
#estimates h2,
#estimates .estimate-copy h3,
#estimates .estimate-points strong,
#estimates .est-q b,
#estimates .est-mat-row b,
#estimates .est-total {
  color: #0f172a;
}
#estimates .lead,
#estimates .estimate-copy > p,
#estimates .estimate-points span,
#estimates .est-q,
#estimates .est-mat-row,
#estimates .est-src {
  color: #475569;
}
#estimates .estimate-points b {
  background: #eff6ff;
  color: #2563eb;
}
#estimates .estimate-mock {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}
#estimates .estimate-mock:before {
  display: none;
}
#estimates .est-step-label {
  color: #1d4ed8;
}
#estimates .est-q {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
#estimates .est-chip {
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}
#estimates .est-chip.active {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  border-color: transparent;
}
#estimates .est-materials {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
#estimates .est-mat-row {
  border-bottom-color: #e2e8f0;
}
#estimates .est-mat-row .src {
  color: #475569;
}
#estimates .est-total {
  border-top-color: #0f172a;
}
#estimates .est-total b {
  color: #1d4ed8;
}
#estimates .est-src i {
  color: #1d4ed8;
}
.nav-signin-mobile {
  display: none;
}

/* Responsive layout. A few landing blocks set columns in a style attribute,
   so those rules use !important to win over that attribute. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
.wrap,
.section,
.hero,
.hero-grid,
.hero-visual,
.ring-first-grid,
.estimate-grid,
.estimate-mock,
.publish-mock,
.nocontrol-grid,
.ncard,
.chat-visual,
.expense-visual,
.receipt-shot,
.crm-connect-card,
.crm-connect-visual,
.flywheel,
.single-price,
.compare,
.allow-grid,
.value-calc,
.scenario-layout,
.leak-grid,
.lifecycle {
  min-width: 0;
  max-width: 100%;
}
.hero-grid > *,
.ring-first-grid > *,
.estimate-grid > *,
.crm-connect-card > *,
.nocontrol-grid > *,
.publish-grid > *,
.single-price > *,
.value-calc > *,
.leak-grid > * {
  min-width: 0;
}
.lifecycle {
  overflow-x: auto;
}
@media (max-width: 960px) {
  .lifecycle {
    overflow-x: visible;
  }
  .life-row {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    scroll-padding-inline: 12px;
    padding-bottom: 30px;
    scrollbar-width: thin;
    scrollbar-color: #c5d0e0 transparent;
  }
  .life-row .life-step,
  .life-row .life-arrow {
    flex-shrink: 0;
  }
  .life-row::-webkit-scrollbar {
    height: 5px;
  }
  .life-row::-webkit-scrollbar-track {
    background: transparent;
  }
  .life-row::-webkit-scrollbar-thumb {
    background: #c5d0e0;
    border-radius: 999px;
  }
}
.contractor-pill {
  max-width: 100%;
  white-space: normal;
  flex-wrap: wrap;
  line-height: 1.45;
}
.allow {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.est-mat-row,
.crm-source-row,
.est-chip,
.tab,
.scenario-tab,
.wheel {
  min-width: 0;
}
.est-mat-row {
  align-items: flex-start;
}
.est-mat-row span,
.receipt-shot .r-line span,
.chat-msg {
  min-width: 0;
  overflow-wrap: anywhere;
}
.est-chips,
.types,
.value-badges,
.single-price-badges {
  max-width: 100%;
}

@media (min-width: 769px) {
  .section {
    padding: 88px 0;
  }
}
@media (min-width: 1280px) {
  .allow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1001px) and (max-width: 1200px) {
  .navin {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .links {
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 12.5px;
  }
  .brand-logo-img {
    height: 36px;
    max-width: 180px;
  }
  .nav-actions .btn {
    padding: 10px 12px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero h1 {
    font-size: clamp(32px, 6.4vw, 48px);
    line-height: 1.05;
  }
  .hero-copy {
    font-size: 16px;
  }
  .hero-visual {
    padding: 4px 0 20px !important;
  }
  .ring-first-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 32px !important;
  }
  .hero-visual div[style*="padding:18px 0"],
  .hero-visual div[style*="background:#f0fdf7"] {
    flex-wrap: wrap !important;
  }
  .hero-visual div[style*="right:-14px"] {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 14px;
    display: inline-block;
  }
  .estimate-grid,
  .publish-grid,
  .value-calc,
  .single-price,
  .leak-grid,
  .scenario-layout,
  .nocontrol-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .crm-connect-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 16px;
  }
  .crm-connect-card.reverse .crm-connect-copy {
    order: 1;
  }
  .crm-connect-card.reverse .crm-connect-visual {
    order: 2;
  }
  .tabs,
  .scenario-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tab,
  .scenario-tab,
  .wheel,
  .faq-q {
    min-height: 44px;
  }
  .tab,
  .scenario-tab {
    flex: 1 1 100%;
  }
  .est-chip {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  .flywheel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wheel {
    padding: 16px 8px;
  }
  .wheel b {
    overflow-wrap: anywhere;
  }
  .allow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-switch {
    width: 100%;
    box-sizing: border-box;
  }
  .market-switch select {
    min-width: 0;
    flex: 1 1 180px;
    width: auto;
    max-width: 100%;
  }
  .compare-row .c-value {
    white-space: normal;
  }
  .single-price-number {
    font-size: clamp(48px, 16vw, 64px);
  }
  .single-price-card {
    padding: 28px 18px;
  }
  .crm-source-row {
    flex-wrap: wrap;
  }
  .crm-source-row em {
    margin-left: 48px;
  }
  .accounting-brand-row {
    grid-template-columns: 1fr;
  }
  .expense-visual,
  .pub-row,
  .ai-reception-stages {
    grid-template-columns: 1fr;
  }
  .ncard,
  .estimate-mock,
  .publish-mock,
  .chat-visual,
  .receipt-shot {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 1000px) {
  .ring-first-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .ring-benefits {
    grid-template-columns: 1fr !important;
  }
  .hero-visual div[style*="grid-template-columns:1fr 22px 1fr 22px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    justify-items: center;
  }
  .hero-visual div[style*="grid-template-columns:1fr 22px 1fr 22px 1fr"] > span {
    width: 28px !important;
    height: 1px !important;
    transform: rotate(90deg);
  }
}

@media (max-width: 1000px) {
  .nav-actions .ghost {
    display: none;
  }
  .navin {
    gap: 8px;
  }
  .brand {
    min-width: 0;
  }
  .brand-logo-img {
    height: 34px;
    max-width: 148px;
  }
  .nav-actions .btn.primary {
    padding: 0 10px;
    min-height: 44px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
    flex: 0 0 auto;
  }
  .links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #dfe7f2;
    box-shadow: 0 16px 40px rgba(7, 18, 37, .08);
    z-index: 120;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease, visibility 0s linear .28s;
  }
  .links.mobile-open {
    max-height: 440px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding: 8px 12px 12px;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease, visibility 0s;
  }
  .links a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 15px;
    box-sizing: border-box;
  }
  .links a.nav-signin-mobile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 12px 16px;
    border: 1px solid #1d4ed8;
    border-radius: 10px;
    background: #fff;
    color: #1e3a8a;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
  }
  .links a.nav-signin-mobile::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    height: 1px;
    background: #e2e8f0;
  }
  .links a.nav-signin-mobile:hover {
    background: #1d4ed8;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .links {
    transition: none;
  }
}


/* App
   -------------------------------------------------------------- */


/* Admin
   -------------------------------------------------------------- */


/* Auth and growth audit
   -------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line, var(--border-color, #e2e8f0));
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, var(--text-primary, #0f172a));
  background: var(--bg-input, #fff);
}
.password-field-wrap {
  position: relative;
}
.password-field-wrap input[type="password"],
.password-field-wrap input[type="text"] {
  padding-right: 42px;
}
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}
.password-toggle-btn:hover {
  color: #1e3a8a;
  background: #eff6ff;
}
.password-toggle-btn .icon-eye {
  display: block;
}
.password-toggle-btn .icon-eye-off,
.password-toggle-btn[aria-pressed="true"] .icon-eye {
  display: none;
}
.password-toggle-btn[aria-pressed="true"] .icon-eye-off {
  display: block;
}


/* Public quotes and invoices
   -------------------------------------------------------------- */


/* Proposals and agreements
   -------------------------------------------------------------- */


/* Forms and booking
   -------------------------------------------------------------- */


/* Reviews
   -------------------------------------------------------------- */
