/* Self-hosted fonts — Inter (body) + Inter Tight (display), latin subset */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-tight-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-tight-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-tight-latin-700-normal.woff2') format('woff2');
}

:root {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Inter', sans-serif;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-warm: #FAF7F2;
  --border: #dbe4ef;
  --text-strong: #0f172a;
  --text-muted: #5b6472;
  --brand: #123a63;
  --brand-strong: #0e2e4f;
  --accent: #B8956A;
  --accent-strong: #9A7B52;
  --accent-contrast: #7E603C; /* AA-compliant bronze for text/buttons: 5.4:1 on warm, 5.8:1 white-on */
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px rgba(18, 58, 99, .12);
}

html {
  font-size: 16px;
}

body {
  color: var(--text-strong);
  background: #f4f7fb;
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
.display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--accent-contrast);
}

/* Nav logomark (favicon.svg reused as the brand device) */
.brand-logo {
  width: 38px;
  height: 38px;
  margin-right: .65rem;
  flex-shrink: 0;
}

.hero-section,
.page-header {
  background: var(--surface-warm);
}

.bg-warm {
  background: var(--surface-warm);
}

.hero-panel,
.feature-card,
.service-card,
.cta-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

.feature-card,
.service-card {
  height: 100%;
  transition: all .15s ease;
}

.feature-card:hover,
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.offer-card--featured {
  border-left: 4px solid var(--accent);
}

/* Card iconography (R58) — inline line icons, bronze on a warm chip */
.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .75rem;
  background: var(--surface-warm);
  color: var(--accent-contrast);
  margin-bottom: .85rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.cta-banner {
  background: var(--surface-soft);
}

.price-anchor {
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Hero visual — balances the text column with an on-brand automation-flow
   "signature" graphic (R57). Vector SVG (retina-ready); lazy-loaded via <img>.
   On mobile the row stacks and this sits below the text, so the strong mobile
   stack is preserved. */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

/* Founder face — homepage hero byline (small round avatar) + /about hero portrait.
   Asset is a real square photo (R37 / R20 C6); object-fit keeps it undistorted. */
.founder-byline {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  flex-shrink: 0;
}

.founder-portrait {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.stack-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: .75rem;
  color: var(--text-strong);
}

.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--brand);
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.trust-pill {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .9rem;
  box-shadow: var(--shadow-card);
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-strong);
  --bs-btn-hover-border-color: var(--brand-strong);
  --bs-btn-focus-shadow-rgb: 18, 58, 99;
}

.btn-outline-secondary {
  --bs-btn-color: var(--text-strong);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: #eef3f8;
  --bs-btn-hover-border-color: #c7d2df;
  --bs-btn-hover-color: var(--text-strong);
}

.form-control {
  border-radius: .85rem;
  border-color: var(--border);
  min-height: 3rem;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(18, 58, 99, .12);
}

.section-heading {
  max-width: 42rem;
}

/* Footer */
.site-footer {
  background: var(--brand-strong);
  color: #fff;
}

.footer-link {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Cookie banner (R59) — a slim bottom-corner card on a light surface instead
   of the old full-width dark-navy bar, so the first paint of the hero (incl.
   the founder byline) stays visible. Same markup + #cookieBanner id; site.js
   still toggles display:none/flex — flex is the card's column layout. */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 21rem;
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px rgba(15, 23, 42, .14);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .8rem;
  z-index: 9999;
  font-size: .875rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
}

.cookie-banner a {
  color: var(--brand);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: .5rem;
}

.cookie-banner-actions button {
  flex: 1 1 0;
  white-space: nowrap;
}

.btn-cookie-accept {
  background: var(--accent-contrast);
  border: 1px solid var(--accent-contrast);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1.1rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: background .15s;
}

.btn-cookie-accept:hover {
  background: #6c5333;
}

.btn-cookie-reject {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem 1.1rem;
  border-radius: .5rem;
  cursor: pointer;
  transition: border-color .15s;
}

.btn-cookie-reject:hover {
  border-color: var(--text-muted);
}

@media (max-width: 575.98px) {
  .cookie-banner {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    max-width: none;
    padding: .85rem 1rem;
    gap: .65rem;
  }
}

/* Offer-page FAQ — native <details>, no JS. The <summary> carries
   data-event="faq_open" so the R35 delegated click-tracker fires it. */
.faq-list {
  max-width: 46rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .85rem;
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text-strong);
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-contrast);
}

.faq-item[open] > summary::after {
  content: "\2212"; /* minus */
}

.faq-item > summary:hover {
  color: var(--brand);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
}

/* Illustrative automation flow (R24 showcase #1 — generic demo data, no client info) */
.flow-figure {
  max-width: 100%;
  margin: 0;
}

.flow-figure svg {
  width: 100%;
  height: auto;
}

.flow-caption {
  font-size: .82rem;
  color: var(--text-muted);
}

/* Vertical rhythm utilities */
@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  .py-lg-7 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

@media (max-width: 991.98px) {
  .hero-section,
  .page-header {
    padding-top: 3.5rem !important;
  }

  .hero-headline {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .display-5,
  .display-6 {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}
