/* AVERLYQ: targeted refinements of the existing site components. */
.brand { min-width: 0; }
.brand-logo { display: block; width: 192px; height: 96px; object-fit: contain; object-position: left center; }
.nav-wrap { min-height: 108px; }
.mobile-panel { inset-block-start: 108px; }
.hero { padding-top: 158px; }
section[id] { scroll-margin-top: 128px; }
.footer .brand { display: inline-flex; background: white; padding: 10px 18px; border-radius: 12px; }
.footer .brand-logo { width: 240px; height: 120px; }
.brand-descriptor { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.footer .brand-descriptor { color: #cbd5e1; }
.brand-logo-wrap { display: block; }
.workflow-canvas--averlyq { min-height: 0; padding: 22px; }
.preview-sources { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 19px; border-bottom: 1px solid var(--border); }
.preview-sources span { padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; background: white; color: var(--muted); font-size: .75rem; }
.preview-pipeline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 20px 0; padding: 0; list-style: none; }
.preview-stage { position: relative; display: grid; align-content: start; gap: 8px; padding: 13px; min-height: 104px; border: 1px solid #dce4f1; border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.preview-stage strong { font: 650 .875rem/1.4 var(--font-display); }
.preview-number { color: var(--blue); font-size: .75rem; font-weight: 700; }
.preview-number::after { content: ' →'; }
.preview-stage--review { border-color: #b9ccfa; }
.preview-review { color: #2459d9; font-size: .75rem; }
.preview-stage:last-child { grid-column: 1 / -1; }
.preview-human-note { margin: 0; padding: 12px; color: #234fc2; border: 1px solid #cbd9fa; border-radius: 10px; background: var(--blue-soft); font-size: .875rem; }
.flow-example-label { margin: 0 0 20px; color: var(--blue); font-size: .875rem; font-weight: 700; }
.lead-flow-track { min-width: 0; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 16px; align-items: start; }
.lead-flow-scroll { padding-bottom: 0; overflow: visible; }
.flow-step { min-width: 0; min-height: 250px; padding: 15px 12px; }
.flow-step h3 { min-height: 44px; font-size: .95rem; overflow-wrap: anywhere; }
.flow-step p { font-size: .875rem; }
.flow-step-number { font-size: .75rem; }
.flow-step:not(:last-child)::after { right: -12px; width: 7px; height: 7px; }
.flow-review-branch { margin-top: 18px; padding-top: 13px; border-top: 1px dashed #9fb6e5; color: #2459d9; font-size: .875rem; font-weight: 650; }
.flow-review-branch small { display: block; margin-top: 6px; font-size: .75rem; line-height: 1.4; font-weight: 400; color: var(--muted); }
.demo-videos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.demo-screens { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.demo-slot { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.demo-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f1f4f9; border-bottom: 1px solid var(--border); }
.demo-neutral { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; border: 1px dashed #c6d1e3; border-radius: 10px; color: #586982; font-size: .875rem; }
.demo-media-symbol { font-size: 1.7rem; line-height: 1; color: var(--blue); }
.demo-slot-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px; }
.demo-slot-caption h3 { margin: 0; font-size: .95rem; }
.demo-slot .placeholder-badge { margin: 0; font-size: .75rem; }
.demo-media > img, .demo-media > video { display: block; width: 100%; height: 100%; object-fit: contain; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-photo--ready { padding: 0; border-style: solid; aspect-ratio: 4 / 5; min-height: 0; }
.optional-fields { margin: 20px 0; border: 1px solid var(--border); border-radius: 10px; }
.optional-fields summary { padding: 13px 15px; cursor: pointer; font-size: .875rem; font-weight: 650; }
.optional-fields > .form-grid { padding: 6px 15px 16px; }
.form-label, .form-legend, .check-option, .radio-option, .consent-row { font-size: .875rem; }
.preview-notice a, .thank-you-state a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
[data-delivery-notice][hidden] { display: none; }
.footer-contact { display: grid; gap: 9px; margin-top: 23px; }
.footer-contact h3 { color: #e2e8f0; font-size: .875rem; margin: 0 0 3px; }
.footer-contact a { width: fit-content; max-width: 100%; color: #cbd5e1; font-size: .875rem; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #fff; }
.footer-links a, .footer-links button { font-size: .875rem; }
.thank-you-state h3 { line-height: 1.5; }
@media (max-width: 1100px) and (min-width: 761px) {
  .lead-flow-scroll { overflow-x: auto; padding-bottom: 15px; }
  .lead-flow-track { min-width: 1100px; }
}
/* The header background must contain the taller original brand mark. */
.site-header { height: auto; }
.nav-wrap { height: auto; }
.legal-card p, .legal-card li { font-size: 1rem; line-height: 1.75; }
@media (max-width: 760px) {
  .lead-flow-track { min-width: 0; grid-template-columns: 1fr; gap: 20px; }
  .flow-step { min-height: 0; padding: 20px; }
  .flow-step h3 { min-height: 0; font-size: 1.05rem; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -13px; right: auto; left: 50%; }
  .flow-step-number { margin-bottom: 14px; }
  .flow-review-branch { border-left: 2px solid #a8bfee; border-top: 0; padding: 6px 0 6px 13px; }
  .demo-screens { grid-template-columns: 1fr; }
  .demo-videos { grid-template-columns: 1fr; }
  .demo-neutral { font-size: 1rem; }
}
@media (max-width: 600px) {
  .workflow-shell { min-height: 0; }
  .workflow-canvas--averlyq { min-height: 0; padding: 16px; }
  .preview-pipeline { grid-template-columns: 1fr; }
  .preview-stage { grid-template-columns: 25px 1fr; align-items: center; min-height: 0; gap: 8px; }
  .preview-stage:last-child { grid-column: auto; }
  .preview-number::after { content: ''; }
  .preview-review { grid-column: 2; }
  .brand-logo { width: 160px; height: 80px; }
  .nav-wrap { min-height: 92px; }
  .mobile-panel { inset-block-start: 92px; }
  .hero { padding-top: 132px; }
  section[id] { scroll-margin-top: 112px; }
  .brand-descriptor { font-size: .67rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .preview-number { animation: step-pulse 7s ease-in-out infinite; }
  .preview-stage:nth-child(2) .preview-number { animation-delay: 1s; }
  .preview-stage:nth-child(3) .preview-number { animation-delay: 2s; }
  .preview-stage:nth-child(4) .preview-number { animation-delay: 3s; }
  .preview-stage:nth-child(5) .preview-number { animation-delay: 4s; }
  .preview-stage:nth-child(6) .preview-number { animation-delay: 5s; }
  .preview-stage:nth-child(7) .preview-number { animation-delay: 6s; }
  @keyframes step-pulse { 0%, 14%, 100% { opacity: .45; } 4%, 10% { opacity: 1; } }
}

/* Connectors use the same measured coordinate space as the responsive cards. */
.systems-map--connected { min-height: 0; padding: 26px; }
.systems-map--connected .systems-map-label { display: block; font-size: .75rem; }
.systems-map-canvas { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px 24px; margin-top: 30px; }
.systems-map--connected .system-node { position: relative; inset: auto; min-width: 0; max-width: none; width: 100%; min-height: 80px; font-size: .875rem; padding: 14px; }
.systems-map--connected .system-node strong { font-weight: 650; overflow-wrap: anywhere; }
.systems-map--connected .system-node span { flex: 0 0 30px; }
.systems-map--connected .system-node svg { width: 20px; height: 20px; }
.systems-map--connected .system-node--crm { grid-column: 1 / -1; justify-self: center; width: min(250px,100%); justify-content: center; }
.system-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: #91aadd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.systems-map-note { margin: 24px 0 0; font-size: .875rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 600px) {
  .systems-map--connected { padding: 20px 14px; }
  .systems-map-canvas { column-gap: 14px; row-gap: 56px; }
  .systems-map--connected .system-node { flex-direction: column; align-items: flex-start; padding: 12px; gap: 8px; min-height: 106px; }
  .systems-map--connected .system-node--crm { flex-direction: row; align-items: center; min-height: 74px; width: min(225px,90%); }
}
.form-privacy-summary, .cookie-platform-note { font-size: .875rem; line-height: 1.65; color: var(--muted); }
.cookie-platform-note { margin-top: 18px; }
.form-privacy-summary a, .cookie-platform-note a { color: var(--blue); text-decoration: underline; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.legal-nav a { padding: 10px 15px; border: 1px solid var(--border); border-radius: 10px; background: white; font-size: .875rem; }
.legal-card ul { padding-left: 22px; color: var(--muted); line-height: 1.8; }
.legal-card li + li { margin-top: 8px; }
.legal-card a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.legal-pending { padding: 14px 16px; border-left: 3px solid #94a3b8; background: #f7f8fa; }
.legal-data { display: grid; grid-template-columns: minmax(130px,1fr) 2fr; gap: 12px 24px; margin: 20px 0; font-size: .9375rem; line-height: 1.65; }
.legal-data dt { font-weight: 650; }
.legal-data dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.legal-header .desktop-nav { display: flex; }
.legal-header .desktop-nav .language-switch { display: flex !important; }
@media (max-width: 600px) {
 .legal-header .nav-wrap { flex-wrap: wrap; justify-content: center; padding-bottom: 12px; }
 .legal-header .brand-logo { width: 130px; height: 65px; }
 .legal-header .desktop-nav { gap: 12px; }
 .legal-page { padding-top: 195px; }
 .legal-page section[id] { scroll-margin-top: 180px; }
 .legal-data { grid-template-columns: 1fr; gap: 4px; }
 .legal-data dd { margin-bottom: 12px; }
 .legal-nav a { flex: 1 1 auto; text-align: center; }
}

/* Direct-contact fallback reuses the approved form card; dormant features stay hidden. */
.spam-field { display: none !important; }
.direct-contact-actions { display: grid; gap: 12px; margin: 24px 0; }
.direct-contact-actions .btn { white-space: normal; text-align: center; }
.direct-contact-address { line-height: 1.9; overflow-wrap: anywhere; }
.direct-contact-address a { color: var(--blue); }
