/* ==========================================================================
   Business Data Engine website theme.

   Bootstrap 5.3 (static/vendor/bootstrap) does the layout, grid and
   components.  This file only:
     1. sets the brand tokens and maps them onto Bootstrap's --bs-* variables
     2. styles the handful of site-specific components (hero, module panel,
        feature cards, CTA band ...)
   To restyle the site, start with the tokens in section 1.
   ========================================================================== */

/* ---- Fonts (Lato, self-hosted, OFL licence) ---------------------------- */
@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: 400; font-style: italic; font-display: swap;
  src: url("../fonts/lato-italic.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"); }

/* ---- 1. Brand tokens ---------------------------------------------------- */
:root {
  /* The BDE palette (shared with the logo and app icons). */
  --brand-dark: #262626;
  --brand-darker: #1b1b1b;
  --brand-orange: #F4AB62;        /* lit face */
  --brand-orange-shade: #D98753;  /* shaded face */
  --brand-orange-ink: #9C5220;    /* orange dark enough for text on white */
  --brand-pale: #E0E9EA;
  --brand-pale-soft: #F3F6F6;
  --brand-slate: #6E8087;
  --brand-mist: #A9B7BB;

  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(38, 38, 38, .06), 0 2px 8px rgba(38, 38, 38, .06);
  --shadow-md: 0 8px 28px rgba(38, 38, 38, .12);

  /* Bootstrap mappings. */
  --bs-font-sans-serif: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--brand-dark);
  --bs-body-color-rgb: 38, 38, 38;
  --bs-emphasis-color: var(--brand-dark);
  --bs-secondary-color: #55636a;
  --bs-primary: var(--brand-orange);
  --bs-primary-rgb: 244, 171, 98;
  --bs-link-color: var(--brand-orange-ink);
  --bs-link-color-rgb: 156, 82, 32;
  --bs-link-hover-color: #7a3f17;
  --bs-link-hover-color-rgb: 122, 63, 23;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-lg: var(--radius);
  --bs-border-color: #d8e0e2;
  --bs-focus-ring-color: rgba(244, 171, 98, .45);
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--brand-dark);
  --bs-body-color: #eef2f3;
  --bs-body-color-rgb: 238, 242, 243;
  --bs-emphasis-color: #fff;
  --bs-secondary-color: var(--brand-mist);
  --bs-link-color: var(--brand-orange);
  --bs-link-color-rgb: 244, 171, 98;
  --bs-link-hover-color: #ffd1a1;
  --bs-link-hover-color-rgb: 255, 209, 161;
  --bs-border-color: rgba(255, 255, 255, .14);
}

body { background: #fff; text-rendering: optimizeLegibility; }
.fw-black { font-weight: 900 !important; letter-spacing: -0.02em; }
h1, h2, h3, .display-3, .display-5, .display-6 { text-wrap: balance; }
.lead { font-weight: 400; }

/* Buttons: dark text on orange passes contrast; white on orange doesn't. */
.btn { font-weight: 700; border-radius: 999px; padding-inline: 1.25rem; }
.btn-lg { padding-inline: 1.75rem; }
.btn-primary {
  --bs-btn-color: var(--brand-dark);
  --bs-btn-bg: var(--brand-orange);
  --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-hover-bg: #f7bd83;
  --bs-btn-hover-border-color: #f7bd83;
  --bs-btn-active-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-orange-shade);
  --bs-btn-active-border-color: var(--brand-orange-shade);
  --bs-btn-focus-shadow-rgb: 244, 171, 98;
}
.btn-outline-dark { --bs-btn-color: var(--brand-dark); --bs-btn-border-color: var(--brand-dark);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); }

.skip-link { position: absolute; z-index: 2000; top: .5rem; left: .5rem; padding: .5rem 1rem;
  background: var(--brand-orange); color: var(--brand-dark); border-radius: .5rem; }

/* ---- Navigation and footer --------------------------------------------- */
.site-nav { background: var(--brand-dark); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav .navbar-brand img { height: 40px; width: auto; display: block; }
.site-nav .nav-link { font-weight: 700; color: #d7dfe1; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-orange); }

.site-footer { background: var(--brand-darker); color: var(--bs-body-color); padding: 4rem 0 2rem; }
.site-footer img { height: 36px; width: auto; }
.site-footer a { color: #d7dfe1; text-decoration: none; }
.site-footer a:hover { color: var(--brand-orange); }
.site-footer li { margin-bottom: .35rem; }
.footer-heading { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-mist); margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--bs-border-color);
  font-size: .875rem; color: var(--bs-secondary-color); }
.footer-bottom a + a { margin-left: 1.25rem; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-compact { padding: 3rem 0; }
.section-tint { background: var(--brand-pale-soft); }
.section-dark { background: var(--brand-dark); color: var(--bs-body-color); }
.section-heading { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-heading.text-start { margin-left: 0; }
.eyebrow { font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-orange); margin-bottom: 1rem; }

/* Dark header on inner pages, echoing the hero. */
.page-header { background: var(--brand-dark); color: var(--bs-body-color); padding: 4rem 0 3.5rem;
  background-image: radial-gradient(60rem 20rem at 85% -10%, rgba(244,171,98,.16), transparent 70%); }
.page-header .lead { color: #d7dfe1; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: var(--brand-mist); font-size: .875rem; }
.page-header .breadcrumb a { text-decoration: none; }

/* ---- Hero --------------------------------------------------------------- */
.hero { background: var(--brand-dark); color: var(--bs-body-color); padding: 6rem 0 6.5rem;
  background-image:
    radial-gradient(50rem 28rem at 90% 10%, rgba(244,171,98,.20), transparent 70%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(110,128,135,.35), transparent 70%); }
.hero .lead { color: #d7dfe1; max-width: 38rem; }
.hero h1 { line-height: 1.05; }

/* The "your modules" panel: a picture of the subscription model. */
.module-panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 1.25rem; padding: 1.25rem; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(4px); }
.module-panel-head { display: flex; align-items: center; gap: .75rem; padding: .25rem .5rem 1rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--brand-mist); }
.module-row { display: flex; align-items: center; gap: .85rem; padding: .7rem .75rem;
  border-radius: .75rem; color: var(--brand-mist); font-weight: 700; }
.module-row + .module-row { margin-top: .25rem; }
.module-row.is-on { background: rgba(255,255,255,.06); color: #fff; }
.module-icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem;
  background: rgba(255,255,255,.06); }
.module-row.is-on .module-icon { background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-shade));
  color: var(--brand-dark); }
.module-icon svg { width: 1.15rem; height: 1.15rem; }
.module-switch { position: relative; width: 2.4rem; height: 1.35rem; border-radius: 999px; background: rgba(255,255,255,.14); }
.module-switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: .95rem; height: .95rem;
  border-radius: 50%; background: var(--brand-mist); transition: transform .2s; }
.module-row.is-on .module-switch { background: var(--brand-orange); }
.module-row.is-on .module-switch::after { transform: translateX(1.05rem); background: var(--brand-dark); }

/* ---- Before / after comparison ----------------------------------------- */
.compare { border-radius: var(--radius); padding: 1.5rem; }
.compare h3 { font-weight: 900; letter-spacing: .08em; margin-bottom: 1rem; }
.compare li { position: relative; padding-left: 1.75rem; margin-bottom: .65rem; }
.compare li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.compare-before { background: var(--brand-pale-soft); color: #4a575c; }
.compare-before h3 { color: var(--brand-slate); }
.compare-before li::before { content: "\00d7"; color: var(--brand-slate); font-size: 1.2rem; line-height: 1.2; }
.compare-after { background: var(--brand-dark); color: #eef2f3; box-shadow: var(--shadow-md); }
.compare-after h3 { color: var(--brand-orange); }
.compare-after li::before { content: "\2713"; color: var(--brand-orange); }

/* ---- Icons -------------------------------------------------------------- */
.icon-tile { display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: .85rem;
  color: var(--brand-dark); background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-shade) 100%); }
.icon-tile svg { width: 1.5rem; height: 1.5rem; }
.icon-tile-sm { width: 2.5rem; height: 2.5rem; border-radius: .7rem; }
.icon-tile-sm svg { width: 1.25rem; height: 1.25rem; }
.icon-tile-lg { width: 4rem; height: 4rem; border-radius: 1rem; }
.icon-tile-lg svg { width: 2rem; height: 2rem; }

/* ---- Cards -------------------------------------------------------------- */
.feature-card, .integration-card { border: 1px solid var(--bs-border-color); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.feature-card .card-body { padding: 1.5rem; display: flex; flex-direction: column; }
.feature-card .card-text { color: var(--bs-secondary-color); flex-grow: 1; }
.feature-card .more-link { font-weight: 700; color: var(--brand-orange-ink); }
a.feature-card:hover, a.integration-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--brand-orange); color: inherit; }
a.feature-card:focus-visible, a.integration-card:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.category-block + .category-block { margin-top: 3.5rem; }
.category-intro { max-width: 36rem; }

.category-jump { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 0 0; }
.category-jump a { padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--bs-border-color);
  text-decoration: none; font-weight: 700; color: var(--brand-dark); font-size: .9rem; }
.category-jump a:hover { border-color: var(--brand-orange); background: var(--brand-pale-soft); }

/* ---- Steps -------------------------------------------------------------- */
.step { height: 100%; padding: 2rem; border-radius: var(--radius); background: var(--brand-pale-soft); }
.step-number { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  margin-bottom: 1rem; font-weight: 900; background: var(--brand-dark); color: var(--brand-orange); }

/* ---- Integrations "logo cloud" (names, until real logos are added) ----- */
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; max-width: 60rem; margin: 0 auto; }
.logo-cloud li { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); font-weight: 700; color: #e6ecee; }

/* ---- Reasons ------------------------------------------------------------ */
.reason { display: flex; gap: 1rem; align-items: flex-start; height: 100%; }
.reason p { color: var(--bs-secondary-color); }

/* ---- Feature page ------------------------------------------------------- */
.prose { font-size: 1.075rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { font-weight: 900; margin-top: 2.25rem; margin-bottom: .75rem; }
.prose h3 { font-size: 1.35rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--brand-orange-shade); }
.prose strong { font-weight: 700; }

.highlights { top: 6rem; padding: 1.75rem; border-radius: var(--radius); background: var(--brand-pale-soft);
  border: 1px solid var(--bs-border-color); }
.highlights h2 { font-weight: 900; letter-spacing: .08em; color: var(--brand-slate); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.25rem; height: 1.25rem;
  border-radius: 50%; background: var(--brand-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262626' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .8rem no-repeat; }

/* ---- Why subscribe ------------------------------------------------------ */
.replaces { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--bs-border-color); }
.replaces .table { --bs-table-bg: transparent; }
.replaces th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-slate);
  font-weight: 900; padding: 1rem 1.25rem; }
.replaces td { padding: 1rem 1.25rem; }
.replaces td:first-child { color: var(--bs-secondary-color); text-decoration: line-through;
  text-decoration-color: rgba(110,128,135,.5); }
.replaces td a { font-weight: 700; text-decoration: none; }
.replaces tbody tr:last-child td { border-bottom: 0; }

.faq { --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius);
  --bs-accordion-active-bg: var(--brand-pale-soft); --bs-accordion-active-color: var(--brand-dark);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.faq .accordion-button { font-weight: 700; }

/* ---- Contact ------------------------------------------------------------ */
.contact-card { padding: 2rem; border-radius: var(--radius); background: var(--brand-pale-soft); border: 1px solid var(--bs-border-color); }
.contact-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-slate); }
.contact-card dd { font-size: 1.1rem; font-weight: 700; }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { padding: 4rem 0; color: var(--bs-body-color);
  background: linear-gradient(120deg, var(--brand-dark) 0%, #33302c 60%, #4a3a2b 100%); }
.cta-band .lead { color: #d7dfe1; }

/* ---- Small screens ------------------------------------------------------ */
@media (max-width: 991.98px) {
  .hero { padding: 4rem 0; }
  .section { padding: 3.5rem 0; }
  .site-nav .navbar-collapse { padding-bottom: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---- Pricing note (features page and feature asides) ------------------ */
.pricing-note { padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px solid var(--bs-border-color);
  background: var(--brand-pale-soft); color: var(--bs-secondary-color); }
.pricing-note .fw-bold { color: var(--bs-body-color); }
.pricing-aside { color: var(--bs-secondary-color); border-top: 1px solid var(--bs-border-color); padding-top: 1rem; }

/* ---- Screenshots (feature pages; images in static/screenshots/) -------- */
/* Handheld shots sit side by side; browser shots take a full row each. */
.screenshot-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; justify-content: center; }
.screenshot { margin: 0; }
.screenshot figcaption { margin-top: .75rem; font-size: .9rem; color: var(--bs-secondary-color); text-align: center; }
.screenshot-frame { display: block; overflow: hidden; background: var(--brand-dark); box-shadow: var(--shadow-md); }
.screenshot-frame img { display: block; width: 100%; height: auto; }
.screenshot-handheld { flex: 0 1 15rem; }
.screenshot-handheld .screenshot-frame { padding: .9rem .55rem 1.6rem; border-radius: 1.6rem; }
.screenshot-handheld img { border-radius: .35rem; }
.screenshot-browser { flex: 1 1 100%; max-width: 64rem; }
.screenshot-browser .screenshot-frame { border-radius: .6rem; border: 1px solid var(--bs-border-color); }
.screenshot-bar { display: flex; gap: .4rem; padding: .55rem .8rem; background: var(--brand-darker); }
.screenshot-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--brand-slate); }
.screenshot-bar i:first-child { background: var(--brand-orange); }
@media (max-width: 575.98px) {
  .screenshot-handheld { flex-basis: 70%; }
}
