:root {
  --navy-950: #101832;
  --navy-900: #172448;
  --navy-800: #233766;
  --teal-700: #405fc6;
  --teal-600: #6f8fe9;
  --teal-100: #e7edff;
  --blue-600: #4d6edd;
  --slate-950: #151d36;
  --slate-700: #34405f;
  --slate-600: #586582;
  --slate-300: #bdc8e3;
  --slate-200: #dde4f2;
  --slate-100: #edf1f9;
  --slate-50: #f6f8fc;
  --white: #ffffff;
  --success-700: #15803d;
  --warning-700: #a16207;
  --danger-700: #b91c1c;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 80px;
  --section-space: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--slate-700); background: var(--white); font-family: var(--font); font-size: 17px; line-height: 1.65; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-700); text-underline-offset: 0.18em; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 200; left: 18px; top: 12px; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--white); color: var(--navy-900); font-weight: 800; box-shadow: 0 8px 24px rgb(16 24 50 / 0.2); transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
.configuration-warning { padding: 9px 18px; border-bottom: 1px solid #facc15; background: #fef9c3; color: #713f12; text-align: center; font-size: 14px; font-weight: 700; }
.container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.section { padding-block: var(--section-space); scroll-margin-top: calc(var(--header-height) + 24px); }
.muted-section { background: #f5f7ff; border-block: 1px solid var(--slate-200); }
.narrow-heading { max-width: 820px; margin-bottom: 46px; }
.narrow-heading > :last-child { margin-bottom: 0; }
.eyebrow { margin: 0 0 12px; color: var(--teal-700); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.13em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy-950); font-weight: 770; letter-spacing: -0.035em; line-height: 1.08; }
h1 { max-width: 760px; margin: 0 0 26px; font-size: clamp(2.35rem, 5vw, 4.25rem); }
h2 { max-width: 860px; margin: 0 0 22px; font-size: clamp(1.85rem, 3.5vw, 3rem); }
h3 { margin: 0 0 10px; font-size: 1.18rem; letter-spacing: -0.018em; line-height: 1.25; }
p { max-width: 68ch; margin: 0 0 20px; }

.header-shell { min-height: var(--header-height); }
.site-header { z-index: 100; width: 100%; min-height: var(--header-height); background: var(--navy-900); }
.site-header.is-sticky { position: fixed; inset: 0 0 auto; border-bottom: 1px solid rgb(137 166 249 / 0.28); box-shadow: 0 10px 30px rgb(16 24 50 / 0.18); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
.brand-link img { width: 208px; }
.primary-navigation { display: flex; align-items: center; gap: 26px; }
.primary-navigation > a { min-height: 44px; display: inline-flex; align-items: center; color: #e6ebfb; font-size: 0.91rem; font-weight: 700; text-decoration: none; }
.primary-navigation > a:hover { color: #a9bcff; }
.menu-button { display: none; min-width: 44px; min-height: 44px; border: 1px solid rgb(137 166 249 / 0.55); border-radius: 9px; background: transparent; color: var(--white); align-items: center; gap: 8px; justify-content: center; font-weight: 750; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid var(--teal-700); border-radius: 9px; background: var(--teal-700); color: var(--white); cursor: pointer; font-weight: 780; line-height: 1.2; text-align: center; text-decoration: none; transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease, transform 170ms ease; }
.button:hover { border-color: var(--navy-900); background: var(--navy-900); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 44px; padding: 9px 15px; font-size: 0.88rem; }
.button-secondary { border-color: var(--slate-300); background: var(--white); color: var(--navy-900); }
.button-secondary:hover { border-color: var(--navy-900); background: var(--slate-50); color: var(--navy-900); }
.site-header .button { border-color: #89a6f9; background: #89a6f9; color: var(--navy-950); }
.site-header .button:hover { border-color: var(--white); background: var(--white); color: var(--navy-950); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-button { min-height: 44px; padding: 4px 2px; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--teal-700); cursor: pointer; font-weight: 780; text-decoration: none; }
.text-button:hover { color: var(--navy-900); }

.hero { padding-top: 80px; overflow: clip; color: #dbe4ff; background: radial-gradient(circle at 82% 22%, rgb(137 166 249 / 0.20), transparent 32%), linear-gradient(135deg, #172448 0%, #1d2f60 100%); border-bottom: 1px solid rgb(137 166 249 / 0.30); }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: #a9bcff; }
.hero-body { color: #dbe4ff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr); align-items: center; column-gap: 58px; row-gap: 0; }
.hero-copy { display: contents; }
.hero-copy .eyebrow { grid-column: 1 / -1; grid-row: 1; }
.hero-copy h1 { grid-column: 1 / -1; grid-row: 2; max-width: 1120px; }
.hero-body { grid-column: 1; grid-row: 3; max-width: 62ch; margin-top: 14px; font-size: 1.1rem; }
.hero-copy .button-row { grid-column: 1; grid-row: 4; }
.hero-copy .microcopy { grid-column: 1; grid-row: 5; }
.microcopy { margin-top: 14px; color: var(--slate-600); font-size: 0.88rem; line-height: 1.5; }
.hero .microcopy { color: #adb9d8; }
.hero .button { border-color: #89a6f9; background: #89a6f9; color: var(--navy-950); }
.hero .button:hover { border-color: var(--white); background: var(--white); color: var(--navy-950); }
.hero .button-secondary { border-color: rgb(255 255 255 / 0.56); background: transparent; color: var(--white); }
.hero .button-secondary:hover { border-color: #89a6f9; background: rgb(137 166 249 / 0.12); color: var(--white); }
.hero-figure { grid-column: 2; grid-row: 3 / span 3; transform: translateX(14px); }
.capability-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 58px; border-block: 1px solid rgb(137 166 249 / 0.30); }
.capability-rail span { position: relative; padding: 20px 18px 20px 27px; color: #eef2ff; font-size: 0.88rem; font-weight: 750; }
.capability-rail span::before { content: ""; position: absolute; left: 8px; top: 28px; width: 8px; height: 8px; border-radius: 50%; background: #89a6f9; }

.browser-frame { overflow: hidden; border: 1px solid rgb(137 166 249 / 0.46); border-radius: 16px; background: var(--white); box-shadow: 0 22px 56px rgb(5 12 34 / 0.32); }
.browser-bar { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }
.browser-bar b { margin-left: 6px; color: var(--slate-600); font-size: 0.69rem; letter-spacing: 0.02em; }
.screenshot-button { display: block; width: 100%; padding: 0; border: 0; background: var(--white); cursor: zoom-in; }
.screenshot-button img { width: 100%; }
.product-figure { margin: 0; min-width: 0; }
.product-figure figcaption { margin-top: 12px; color: var(--slate-600); font-size: 0.81rem; line-height: 1.5; }
.hero .product-figure figcaption { color: #adb9d8; }
.screenshot-mobile-link { display: none; min-height: 44px; align-items: center; justify-content: center; margin-top: 8px; font-size: 0.9rem; font-weight: 750; }

.card-grid { display: grid; gap: 18px; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.four-up { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); box-shadow: 0 12px 30px rgb(23 36 72 / 0.06); }
.card p { margin: 0; font-size: 0.94rem; }
.card-number { display: inline-flex; margin-bottom: 32px; color: var(--teal-700); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.1em; }
.closing-statement { max-width: 900px; margin-top: 36px; margin-bottom: 0; padding-left: 20px; border-left: 3px solid var(--teal-600); color: var(--navy-900); font-size: 1.08rem; font-weight: 680; }
.outcome-card { border-top: 3px solid var(--teal-600); }

.story-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr); align-items: center; gap: 64px; }
.story-grid-reverse .story-copy { grid-column: 2; grid-row: 1; }
.story-grid-reverse .product-figure { grid-column: 1; grid-row: 1; }
.check-list { display: grid; gap: 11px; margin: 28px 0 24px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal-700); font-weight: 900; }
.note { max-width: 84ch; margin-top: 28px; margin-bottom: 0; color: var(--slate-600); font-size: 0.86rem; }

.progression-list { display: grid; grid-template-columns: repeat(7, 1fr); margin-block: 42px 0; padding: 0; list-style: none; }
.progression-list li { position: relative; display: grid; justify-items: center; gap: 10px; color: var(--navy-900); font-size: 0.78rem; font-weight: 780; text-align: center; }
.progression-list li:not(:last-child)::after { content: ""; position: absolute; z-index: -1; left: 55%; right: -45%; top: 20px; height: 2px; background: var(--slate-300); }
.progression-list span { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--teal-600); border-radius: 50%; background: var(--white); color: var(--teal-700); font-weight: 850; }

.capability-grid { grid-template-columns: repeat(4, 1fr); }
.capability-card svg { width: 34px; height: 34px; margin-bottom: 24px; fill: none; stroke: var(--teal-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.comparison-wrap { overflow: hidden; border: 1px solid var(--slate-200); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 20px 24px; border-bottom: 1px solid var(--slate-200); vertical-align: top; text-align: left; }
thead th { background: var(--navy-900); color: var(--white); font-size: 0.84rem; letter-spacing: 0.03em; }
tbody th { width: 40%; color: var(--navy-900); font-weight: 750; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.deployment-path { display: grid; grid-template-columns: 1fr 1fr 88px 1fr 88px 1fr; align-items: stretch; gap: 14px; margin-block: 52px 34px; padding: 0; list-style: none; }
.phase-card { padding: 24px 20px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); }
.phase-card > span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); font-size: 0.82rem; font-weight: 850; }
.phase-card p { margin: 0; font-size: 0.82rem; line-height: 1.55; }
.approval-gate { position: relative; display: flex; align-items: center; justify-content: center; }
.approval-gate::before { content: ""; position: absolute; inset: 0 50%; width: 1px; background: var(--slate-300); }
.approval-gate span { z-index: 1; padding: 8px 5px; border: 1px solid var(--slate-300); border-radius: 6px; background: var(--slate-100); color: var(--navy-900); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.05em; text-align: center; text-transform: uppercase; }
.deployment-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.deployment-notes p { max-width: none; margin: 0; padding: 22px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); font-size: 0.84rem; }
.centered-cta { display: flex; justify-content: center; margin-top: 34px; }

.faq-layout { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); gap: 70px; align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-height) + 28px); }
.faq-list { border-top: 1px solid var(--slate-300); }
details { border-bottom: 1px solid var(--slate-300); }
summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy-900); cursor: pointer; font-weight: 780; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--slate-300); border-radius: 50%; color: var(--teal-700); font-size: 1.2rem; }
details[open] summary::after { content: "−"; }
details p { padding: 0 44px 22px 0; margin: 0; }

.final-cta { background: radial-gradient(circle at 50% 0%, rgb(137 166 249 / 0.18), transparent 42%), var(--navy-900); color: #dbe4ff; text-align: center; }
.final-cta .eyebrow { color: #a9bcff; }
.final-cta h2 { margin-inline: auto; color: var(--white); }
.final-cta p { margin-inline: auto; }
.final-cta .button { margin-top: 14px; border-color: #89a6f9; background: #89a6f9; color: var(--navy-950); }
.final-cta .button:hover { border-color: var(--white); background: var(--white); }
.supporting-text { margin-top: 18px; font-size: 0.86rem; }
.email-fallback { font-size: 0.9rem; }
.email-fallback a { color: #a9bcff; }

.site-footer { padding: 58px 0 24px; background: var(--navy-900); color: #b8c2df; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.65fr; gap: 48px; }
.footer-logo { width: 208px; }
.footer-grid p { margin-top: 18px; font-size: 0.88rem; }
.footer-grid nav, .footer-links { display: grid; align-content: start; justify-items: start; gap: 8px; }
.footer-grid a { min-height: 36px; display: inline-flex; align-items: center; color: #dbe4ff; font-size: 0.88rem; text-decoration: none; }
.footer-grid a:hover { color: #a9bcff; text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(137 166 249 / 0.20); }
.footer-bottom p { margin: 0; font-size: 0.79rem; }

.modal { width: min(100% - 30px, 1120px); max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 14px; background: transparent; }
.modal::backdrop { background: rgb(16 24 50 / 0.78); }
.modal-panel { overflow: auto; max-height: calc(100dvh - 30px); padding: 24px; border-radius: 14px; background: var(--white); }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.modal-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.15rem); }
.icon-button { min-width: 44px; min-height: 44px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--slate-300); border-radius: 50%; background: var(--white); color: var(--navy-900); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.icon-button:hover { background: var(--slate-100); }
.screenshot-modal-panel img { width: 100%; border: 1px solid var(--slate-200); border-radius: 8px; }
.screenshot-modal-panel > p { max-width: none; margin: 14px 0 0; }
.calendly-dialog { width: min(100% - 30px, 860px); }
.calendly-panel { min-height: min(850px, calc(100dvh - 30px)); }
.scheduler-intro { font-size: 0.92rem; }
.calendly-inline-widget { min-width: 280px; height: 610px; overflow: hidden; }
.calendly-status { padding: 18px; border-radius: 8px; background: var(--slate-100); color: var(--navy-900); text-align: center; }
.calendly-fallback { padding: 22px; border: 1px solid var(--slate-300); border-radius: 10px; background: var(--slate-50); }
.calendly-fallback .button { margin-right: 14px; }
.privacy-note { margin: 18px 0 0; color: var(--slate-600); font-size: 0.78rem; }

.legal-page { background: #f5f7ff; }
.legal-header { border-bottom: 1px solid rgb(137 166 249 / 0.28); }
.legal-back-link { min-height: 44px; display: inline-flex; align-items: center; color: #e6ebfb; font-size: 0.91rem; font-weight: 750; text-decoration: none; }
.legal-back-link:hover { color: #a9bcff; }
.legal-main { padding-block: 76px 96px; }
.legal-content { max-width: 880px; }
.legal-content h1 { margin-bottom: 10px; }
.legal-updated { color: var(--slate-600); font-size: 0.9rem; }
.legal-intro { margin-top: 30px; font-size: 1.08rem; }
.legal-content section { margin-top: 42px; padding-top: 2px; }
.legal-content h2 { margin-bottom: 14px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.legal-content p, .legal-content li { max-width: 78ch; }
.legal-content ul { display: grid; gap: 12px; padding-left: 24px; }
.legal-footer { padding-top: 1px; }
.legal-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer-inner a { color: #dbe4ff; font-size: 0.86rem; text-decoration: none; }
.legal-footer-inner a:hover { color: #a9bcff; text-decoration: underline; }

@media (max-width: 1080px) {
  :root { --section-space: 80px; }
  .primary-navigation { gap: 17px; }
  .primary-navigation > a { font-size: 0.83rem; }
  .hero-grid { grid-template-columns: minmax(0, 0.84fr) minmax(430px, 1.16fr); column-gap: 38px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .deployment-path { grid-template-columns: 1fr 1fr; }
  .approval-gate { min-height: 46px; grid-column: 1 / -1; }
  .approval-gate::before { inset: 0 50%; }
}

@media (max-width: 959px) {
  .hero { padding-top: 62px; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 32px; }
  .hero-copy { display: block; }
  .hero-copy { max-width: 790px; }
  .hero-figure { grid-column: auto; grid-row: auto; transform: none; }
  .story-grid, .story-grid-reverse { grid-template-columns: 1fr; gap: 38px; }
  .story-grid-reverse .story-copy, .story-grid-reverse .product-figure { grid-column: 1; }
  .story-grid-reverse .story-copy { grid-row: 1; }
  .story-grid-reverse .product-figure { grid-row: 2; }
  .four-up { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 839px) {
  .menu-button { display: inline-flex; }
  .menu-label { font-size: 0.85rem; }
  .primary-navigation { position: absolute; z-index: 20; inset: var(--header-height) 0 auto; display: none; padding: 12px 24px 24px; border-bottom: 1px solid rgb(137 166 249 / 0.28); background: var(--navy-900); box-shadow: 0 18px 34px rgb(16 24 50 / 0.24); }
  .primary-navigation.is-open { display: grid; }
  .primary-navigation > a { min-height: 46px; border-bottom: 1px solid rgb(137 166 249 / 0.20); font-size: 1rem; }
  .primary-navigation .button { margin-top: 8px; }
  .capability-rail { grid-template-columns: repeat(2, 1fr); }
  .three-up { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .faq-heading { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --section-space: 64px; }
  .container { width: min(100% - 36px, 1200px); }
  .narrow-heading { margin-bottom: 34px; }
  .screenshot-button { pointer-events: none; cursor: default; }
  .screenshot-mobile-link { display: inline-flex; }
  .progression-list { grid-template-columns: 1fr; gap: 0; margin-left: 18px; }
  .progression-list li { min-height: 66px; grid-template-columns: 40px 1fr; align-items: start; justify-items: start; gap: 16px; text-align: left; }
  .progression-list li:not(:last-child)::after { left: 19px; right: auto; top: 40px; bottom: 0; width: 2px; height: auto; }
  .comparison-wrap { border: 0; overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody { display: grid; gap: 12px; }
  tbody tr { padding: 18px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); }
  tbody th, tbody td { width: auto; padding: 0; border: 0; }
  tbody th::before { content: "Operational question"; display: block; margin-bottom: 4px; color: var(--teal-700); font-size: 0.69rem; letter-spacing: 0.08em; text-transform: uppercase; }
  tbody td { margin-top: 13px; }
  tbody td::before { content: "How LeadFly addresses it"; display: block; margin-bottom: 4px; color: var(--teal-700); font-size: 0.69rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
  .deployment-path, .deployment-notes { grid-template-columns: 1fr; }
  .approval-gate { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .modal { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .modal-panel { max-height: calc(100dvh - 18px); padding: 18px; }
  .calendly-inline-widget { height: 570px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .capability-rail, .four-up, .capability-grid { grid-template-columns: 1fr; }
  .capability-rail span { border-bottom: 1px solid var(--slate-200); }
  .capability-rail span:last-child { border-bottom: 0; }
  .card { padding: 24px; }
  .legal-main { padding-block: 54px 72px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 479px) {
  .button-row { display: grid; }
  .button-row .button, .centered-cta .button, .final-cta .button { width: 100%; }
  .menu-button .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .browser-bar b { overflow: hidden; max-width: 170px; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
