/* longrtail homepage base (concept A, chosen 2026-11-13), scoped under .home-a so it never touches the site header or footer. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 100 700; font-display: swap; src: url('/fonts/ibm-plex-sans-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url('/fonts/space-grotesk-var-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); }
.home-a {
  --paper: #F7F6F2; --raised: #EEF1F5; --hair: #D5DCE6; --ctl: #7E8BA0; --ink: #16233F; --muted: #5B6B82;
  --navy: #16233F; --navy-2: #24375E; --on-navy: #F7F6F2; --sky: #0E95D2; --sky-2: #55C6F7; --link: #0A6FA0;
  --tang: #FF7A2F; --mari: #F2B33D; --pine: #1F6F5C; --pine-2: #4FB394;
  --display: 'Space Grotesk', system-ui, sans-serif; --text: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sky-depth: linear-gradient(135deg, var(--navy) 0%, var(--navy) 35%, var(--sky) 100%);
  --tail-fade: linear-gradient(100deg, var(--paper) 30%, #DCEEF8 100%);
  --bands: linear-gradient(90deg, var(--sky) 0 25%, var(--pine) 25% 50%, var(--tang) 50% 75%, var(--mari) 75% 100%);
}
.home-a *, .home-a *::before, .home-a *::after { box-sizing: border-box; }
html, .home-a { overflow-x: clip; }
.home-a { margin: 0; font: 17px/1.6 var(--text); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
.home-a h1, .home-a h2, .home-a h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
.home-a h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 700; }
.home-a h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; }
.home-a h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.home-a p { margin: 0; }
.home-a a { color: var(--link); }
.home-a img { max-width: 100%; }
.home-a .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.home-a .mono { font-family: var(--mono); font-weight: 500; }
.home-a .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home-a .lede { font-size: 19px; color: var(--muted); max-width: 600px; }
.home-a .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--text); letter-spacing: .02em; padding: 15px 24px; border-radius: 8px; border: 1.5px solid var(--navy); background: var(--navy); color: var(--on-navy); text-decoration: none; transition: transform .15s, background .15s; cursor: pointer; }
.home-a .btn:hover { transform: translateY(-1px); background: var(--navy-2); }
.home-a .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ctl); }
.home-a .btn-ghost:hover { background: #fff; }
.home-a .btn-tang { background: var(--tang); border-color: var(--tang); color: var(--ink); }
.home-a .btn-tang:hover { background: #FF9455; }
.home-a .btn-light { background: var(--on-navy); border-color: var(--on-navy); color: var(--ink); }
.home-a .btn-light:hover { background: #fff; }
.home-a .tag { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 6px 8px; border-radius: 4px; background: var(--raised); color: var(--muted); white-space: nowrap; }
.home-a .tag-new { background: var(--tang); color: var(--ink); } .home-a .tag-review { background: var(--mari); color: var(--ink); } .home-a .tag-gain { background: var(--pine); color: #fff; } .home-a .tag-sky { background: var(--sky); color: var(--ink); }
.home-a .sample { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.home-a :focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* concept switcher */
.home-a .switch { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(22, 35, 63, .92); box-shadow: 0 10px 30px rgba(0,0,0,.25); font: 600 13px var(--text); }
.home-a .switch span { color: #9FB0CC; padding: 8px 10px; }
.home-a .switch a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.home-a .switch a[aria-current] { background: var(--sky); color: var(--ink); }

/* header + footer */
.home-a .hdr { position: sticky; top: 0; z-index: 40; }
.home-a .hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.home-a .hdr img { height: 30px; display: block; }
/* site menu, same as every other page (Header.astro): dropdowns open on hover and keyboard focus */
.home-a .hdr .desktop { display: flex; align-items: center; gap: 28px; }
.home-a .hdr .top { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.home-a .hdr .top > li { position: relative; }
.home-a .hdr .top-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 6px; }
.home-a .hdr .top-link:hover, .home-a .hdr .has-menu:hover > .top-link, .home-a .hdr .has-menu:focus-within > .top-link { background: var(--raised); color: var(--ink); }
.home-a .hdr .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
/* a panel never runs past the bottom of the window: if one is ever taller than the screen, its list scrolls, not the page */
.home-a .hdr .panel { position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 340px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .12s, transform .12s, visibility .12s; z-index: 50; }
.home-a .hdr .has-menu:hover .panel, .home-a .hdr .has-menu:focus-within .panel { visibility: visible; opacity: 1; transform: none; }
.home-a .hdr .panel > ul { min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--hair); border-radius: 16px 16px 0 0; box-shadow: 0 16px 40px rgba(22, 35, 63, .12); }
.home-a .hdr .panel li a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.home-a .hdr .panel li a:hover, .home-a .hdr .panel li a:focus-visible { background: var(--raised); }
.home-a .hdr .item-label { display: block; font-weight: 600; color: var(--ink); }
.home-a .hdr .item-desc { display: block; font-size: 13px; color: var(--muted); }
.home-a .hdr .panel-all { flex: none; display: block; padding: 12px 20px; background: var(--raised); border: 1px solid var(--hair); border-top: 0; border-radius: 0 0 16px 16px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--link); box-shadow: 0 16px 40px rgba(22, 35, 63, .12); }
/* long lists (Industries) sit in two columns, centred under their menu item, so the panel stays short */
.home-a .hdr .panel-wide { width: 620px; max-width: calc(100vw - 32px); left: calc(50% - 310px); }
.home-a .hdr .panel-wide > ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px; }
.home-a .hdr .btn { padding: 10px 16px; font-size: 15px; }
.home-a .hdr .mobile { display: none; position: static; }
.home-a .hdr summary { list-style: none; cursor: pointer; font-weight: 600; padding: 8px 14px; border: 1.5px solid var(--ctl); border-radius: 10px; }
.home-a .hdr summary::-webkit-details-marker { display: none; }
.home-a .hdr .mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--hair); padding: 8px 20px 24px; display: grid; gap: 4px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
.home-a .hdr .m-group { border-bottom: 1px solid var(--hair); padding: 10px 0; }
.home-a .hdr .m-top { font-weight: 600; text-decoration: none; font-size: 17px; color: var(--ink); }
.home-a .hdr .m-group ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; display: grid; gap: 6px; }
.home-a .hdr .m-group ul a { text-decoration: none; color: var(--muted); }
.home-a .hdr .mobile .btn { margin-top: 16px; text-align: center; }
@media (max-width: 900px) { .home-a .hdr .desktop { display: none; } .home-a .hdr .mobile { display: block; } }
.home-a .ftr { position: relative; background: var(--navy); color: var(--on-navy); padding: 64px 0 32px; }
.home-a .ftr::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bands); }
.home-a .ftr-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.home-a .ftr img { display: block; height: 32px; width: auto; margin-left: -3.2px; } /* ink of the "l" lines up with the email below */
.home-a .ftr p { font-size: 14px; opacity: .75; margin-top: 10px; }
.home-a .ftr nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.home-a .ftr nav a { color: var(--on-navy); opacity: .8; text-decoration: none; }

/* bars that grow in */
.home-a .grow > * { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .home-a .grow > * { animation: grow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 45ms + 150ms); }
  @keyframes grow { from { transform: scaleY(0); } }
  .home-a .rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* the real AI Readiness Check (public/js/ai-readiness.js) on light grounds */
.home-a .air-light .air-pill { box-shadow: 0 18px 50px rgba(22, 35, 63, .14); border-color: var(--hair); }
.home-a .air-light .air-hero > div:not(.air-start) { box-shadow: 0 24px 60px rgba(22, 35, 63, .16); border: 1px solid var(--hair); }
.home-a .air-left .air-hero { margin: 0; }
.home-a .air-left .air-hero > div:not(.air-start) { margin: 0; }
.home-a .air-report-host { background: #fff; border-bottom: 1px solid var(--hair); }

.home-a .shot .switch { display: none; }
.home-a h1 + [data-air], .home-a h1 + .air-light, .home-a h1 + .air-left, .home-a h1 + .f-air, .home-a h1 + div > [data-air] { margin-top: 36px; }

/* legal links under the footer, as on the site footer */
.home-a .ftr-legal { margin-top: 40px; font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.home-a .ftr-legal span { opacity: .6; }
.home-a .ftr-legal a { color: var(--on-navy); opacity: .75; }
.home-a .ftr-legal a:hover { opacity: 1; }

/* touch screens: a hover note shows only for the item tapped (/js/tap-away.js), never from sticky hover */
/* double-tapping a chart bar or button should not zoom the page on phones; pinch zoom still works */
.home-a * { touch-action: manipulation; }
.touch-tips .home-a [data-tip]:not(.tip-on)::after { display: none !important; }
.touch-tips .home-a [data-tip].tip-on::after { display: block !important; }
.touch-tips .home-a [data-tip].tip-edge-l::after { left: var(--tip-pl, 0px) !important; right: auto !important; translate: 0 0 !important; max-width: calc(100vw - 24px); }
.touch-tips .home-a [data-tip].tip-edge-r::after { left: auto !important; right: var(--tip-pr, 0px) !important; translate: 0 0 !important; max-width: calc(100vw - 24px); }
