/* Home-only presentation. Shared branding, tokens, starfield, cards and intake stay in style.css.
   Convention: DriverLanding's own UI is dark; screens that belong to someone else (the carrier's
   website, the driver's phone, the recruiter's Tenstreet) are light, so they read as "their" screens. */
#home-page { font-size: 16px; line-height: 1.6; }
#home-page [hidden] { display: none !important; }
#home-page p { color: var(--text-muted); }
#home-page p + p { margin-top: 12px; }
#home-page strong { color: var(--text); }
#home-page h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 22px; }
#home-page h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.22; letter-spacing: -.02em; margin: 0 0 12px; }
#home-page h3 { font-size: 19px; line-height: 1.35; margin: 0; }
#home-page .home-section { padding: 64px 0; }
#home-page .home-small { font-size: 12.5px; line-height: 1.55; color: var(--text-faint); }
#home-page :is(a, button):focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

#home-page .home-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent-text); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
#home-page .home-section-heading { max-width: 760px; margin-bottom: 28px; }
#home-page .home-centered { margin-left: auto; margin-right: auto; text-align: center; }
#home-page .home-centered .home-eyebrow { justify-content: center; }
#home-page .home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
#home-page .home-actions .btn { font-size: 13px; }

/* ---------- Hero ---------- */
#home-page .home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 32px; }
#home-page .home-hero + #products { padding-top: 32px; }
#home-page .home-lead { font-size: 19px; max-width: 540px; }
#home-page .home-hero-map { margin: 0; padding: 12px; border-radius: var(--radius-lg); }
#home-page .home-map-canvas { border-radius: var(--radius-md); overflow: hidden; background: var(--surface-ground); }
#home-page .home-map-svg { display: block; width: 100%; height: auto; }
#home-page .home-map-svg .state { fill: var(--surface-raised); stroke: var(--border); stroke-width: .8; vector-effect: non-scaling-stroke; }
#home-page .home-map-svg .coverage { fill: var(--viz-area); fill-opacity: .07; stroke: var(--viz-area); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
/* Same encoding as Launchpad's live applicant map (launchpad-analytics.js): gold inside the
   advertised area, --viz-poor outside it, green Hire/Almost Hire on top. */
#home-page .home-map-svg .applicant { fill: var(--action-hover); fill-opacity: .5; stroke: var(--action-hover); stroke-opacity: .75; stroke-width: 1; vector-effect: non-scaling-stroke; }
#home-page .home-map-svg .applicant.outside { fill: var(--viz-poor); stroke: var(--viz-poor); }
#home-page .home-map-svg .applicant.hired { fill: var(--viz-good); fill-opacity: .7; stroke: var(--viz-good); stroke-opacity: .95; stroke-width: 1.5; }
#home-page .home-map-svg .city { fill: var(--text-muted); font-size: 14px; paint-order: stroke; stroke: var(--surface-ground); stroke-width: 3px; stroke-linejoin: round; }
#home-page .home-hero-map figcaption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 4px 0; font-size: 12px; color: var(--text-faint); }
#home-page .home-map-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-muted); }
#home-page .home-map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
#home-page .home-map-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#home-page .home-key-in { background: var(--action-hover); }
#home-page .home-key-out { background: var(--viz-poor); }
#home-page .home-key-hired { background: var(--viz-good); }
#home-page .home-map-legend .home-key-area { width: 14px; border-radius: 2px; background: color-mix(in srgb, var(--viz-area) 12%, transparent); border: 1px dashed var(--viz-area); }

/* ---------- Dead ends: one problem at a time, split-flap ---------- */
#home-page .home-dead-ends { max-width: 640px; margin: 0 auto; }
#home-page .home-dead-static { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
#home-page .home-dead-static li { display: flex; align-items: center; gap: 12px; color: var(--text); text-align: left; }
#home-page .home-flap { display: none; }
#home-page .home-flap-enabled .home-dead-static { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
#home-page .home-flap-enabled .home-flap { display: block; position: relative; width: 100%; height: 76px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-raised); font: inherit; font-size: 19px; font-weight: 600; color: var(--text); perspective: 800px; cursor: default; }
#home-page .home-flap-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; border-radius: inherit; background: var(--surface-raised); backface-visibility: hidden; text-align: left; }
#home-page .home-flap-top, #home-page .home-flap-bottom, #home-page .home-flap-old-bottom { visibility: hidden; }
#home-page .home-flap-top { clip-path: inset(0 0 50% 0); transform-origin: 50% 50%; z-index: 2; }
#home-page .home-flap-bottom, #home-page .home-flap-old-bottom { clip-path: inset(50% 0 0 0); transform-origin: 50% 50%; z-index: 1; }
#home-page .home-flap-turn .home-flap-old-bottom { visibility: visible; }
#home-page .home-flap-turn .home-flap-top { animation: home-flap-top 420ms ease-in forwards; }
#home-page .home-flap-turn .home-flap-bottom { animation: home-flap-bottom 420ms ease-out forwards; z-index: 2; }
#home-page .home-flap-paused .home-flap-face { animation-play-state: paused; }
@keyframes home-flap-top { 0% { visibility: visible; transform: rotateX(0); } 49% { visibility: visible; transform: rotateX(-90deg); } 50%, 100% { visibility: hidden; transform: rotateX(-90deg); } }
@keyframes home-flap-bottom { 0%, 49% { visibility: hidden; transform: rotateX(90deg); } 50% { visibility: visible; transform: rotateX(90deg); } 100% { visibility: visible; transform: rotateX(0); } }
#home-page .home-bridge { max-width: 640px; margin: 36px auto 40px; text-align: center; font-size: 18px; }

/* ---------- Product blocks ---------- */
#home-page .home-product { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; padding: 36px; border-radius: var(--radius-lg); margin-bottom: 28px; }
#home-page .home-product-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
#home-page .home-product-label h3 { font-size: 24px; }
#home-page .home-product-pitch { font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--text) !important; margin-bottom: 14px; }
#home-page .home-checks { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 16px; }
#home-page .home-checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 15px; }
#home-page .home-checks .demo-icon { width: 32px; height: 32px; font-size: 18px; }


/* Landing pages: the featured block. */
#home-page .home-product-landing { display: block; }
#home-page .home-landing-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 40px; align-items: center; margin-bottom: 32px; }
#home-page .home-rate { border-left: 2px solid var(--action-border); padding-left: 24px; }
#home-page .home-rate strong { display: block; font-size: 64px; line-height: 1; letter-spacing: -.04em; color: var(--action-text); }
#home-page .home-rate span { display: block; font-weight: 600; color: var(--text); margin: 6px 0; }
#home-page .home-rate small { display: block; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }



#home-page .home-landing-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 32px; }
#home-page .home-scope { margin-top: 14px; }

/* Works with what you have. */
#home-page .home-fit { margin-top: 44px; }
#home-page .home-fit-title { text-align: center; font-size: 20px; margin-bottom: 20px; }

/* ---------- Analytics tiles ---------- */
#home-page .home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
#home-page .home-pipe-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; }
#home-page .home-pipe ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
#home-page .home-pipe li { display: flex; align-items: baseline; gap: 8px; color: var(--text-muted); font-size: 14px; }
#home-page .home-pipe li b { font-size: 22px; color: var(--text); min-width: 30px; }
#home-page .home-pipe li::before { content: ''; width: 9px; height: 9px; border-radius: 2px; flex: none; align-self: center; }
#home-page .home-pipe-bar .is-fresh, #home-page .home-pipe li.is-fresh::before { background: var(--accent); }
#home-page .home-pipe-bar .is-process, #home-page .home-pipe li.is-process::before { background: var(--action); }
#home-page .home-pipe-bar .is-hire, #home-page .home-pipe li.is-hire::before { background: var(--success); }
#home-page .home-pipe-bar .is-dropped, #home-page .home-pipe li.is-dropped::before { background: var(--border); }
#home-page .home-score .is-flag td:nth-child(2), #home-page .home-score .is-flag td:nth-child(3) { color: var(--danger-text); font-weight: 600; }
#home-page .home-potential { display: flex; align-items: center; gap: 18px; }
#home-page .home-potential strong { font-size: 64px; line-height: 1; letter-spacing: -.03em; color: var(--success-text); }
#home-page .home-potential span { font-size: 16px; color: var(--text); max-width: 260px; }
#home-page .home-demo-note { text-align: right; margin-top: 10px; }
#home-page .home-share { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
#home-page .home-share h3 { margin-bottom: 6px; }
#home-page .home-data-note { margin-top: 14px; }

/* ---------- Closing sections ---------- */
#home-page .home-ad-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 36px; padding: 36px; border-radius: var(--radius-lg); }
#home-page .home-ad-card .btn { margin-top: 14px; }
#home-page .home-blueprint { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-radius: var(--radius-lg); margin: 0 0 8px; }
#home-page .home-blueprint p { display: flex; align-items: center; gap: 12px; margin: 0; }
#home-page .home-text-link { color: var(--accent-text); font-weight: 600; font-size: 14px; }
#home-page .home-closing { text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); margin: 56px 0 72px; }
#home-page .home-closing p { max-width: 600px; margin: 0 auto; }
#home-page .home-closing .home-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  #home-page .home-hero { grid-template-columns: 1fr; gap: 32px; }
  #home-page .home-product { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  #home-page .home-landing-head { grid-template-columns: 1fr; gap: 20px; }
  #home-page .home-rate { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
  #home-page .home-rate strong { grid-row: span 2; font-size: 52px; }
  #home-page .home-rate span { margin: 0; }
  #home-page .home-tiles { grid-template-columns: 1fr; }
  #home-page .home-ad-card { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  #home-page { font-size: 15px; }
  #home-page .home-section { padding: 40px 0; }
  #home-page .home-hero { padding-top: 28px; padding-bottom: 24px; }
  #home-page .home-hero + #products { padding-top: 24px; }
  #home-page .home-lead { font-size: 17px; }
  #home-page .home-actions .btn { width: 100%; justify-content: center; text-align: center; }
  #home-page .home-flap-enabled .home-flap { height: 84px; font-size: 16px; }
  #home-page .home-flap-face { padding: 0 14px; gap: 12px; }
  #home-page .home-bridge { font-size: 16px; margin: 28px auto; }
  #home-page .home-product, #home-page .home-ad-card { padding: 20px; }
  #home-page .home-product-pitch { font-size: 19px; }
  #home-page .home-potential strong { font-size: 52px; }
  #home-page .home-share { padding: 18px; }
  #home-page .home-blueprint p { align-items: flex-start; }
  #home-page .home-closing { padding: 40px 20px; margin-bottom: 48px; }
  #home-page .home-demo-note { text-align: left; }
  /* Phones: the four report tiles become a swipeable row, with the next tile peeking in. */
  #home-page .home-tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; scrollbar-width: thin; }
  #home-page .demo-tile { scroll-snap-align: start; }
  #home-page .home-demo-note::before { content: 'Swipe for more  ·  '; color: var(--text-muted); }
  #home-page .home-product-landing .home-landing-head p:not(.home-product-pitch) { font-size: 14.5px; }
  #home-page .home-checks { gap: 12px; margin: 14px 0 20px; }
  #home-page .home-checks li { font-size: 14px; }
  #home-page .home-potential strong { font-size: 48px; }
}
@media (max-width: 360px) {
  #home-page .home-dead-static { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  #home-page .home-flap { display: none !important; }
  #home-page .home-dead-static { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }
}

/* Interactive hero: all geometry and applicant details stay in the demo. */
#home-page .home-map-canvas { position: relative; }
#home-page .home-map-ready .home-map-svg { cursor: grab; touch-action: pan-y pinch-zoom; }
#home-page .home-map-ready .home-map-svg:active { cursor: grabbing; }
#home-page .home-map-svg .city { pointer-events: none; }
#home-page .home-map-hit { fill: transparent; }
#home-page .home-map-dot { cursor: pointer; }
#home-page .home-map-dot:focus { outline: none; }
#home-page .home-map-dot:focus .applicant, #home-page .home-map-dot:hover .applicant { stroke: var(--text); stroke-width: 3; fill-opacity: 1; }
#home-page .home-map-handle { fill: var(--surface-ground); stroke: var(--viz-area); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: move; touch-action: none; }
#home-page .home-map-handle.midpoint { fill: var(--viz-area); fill-opacity: .65; opacity: .35; cursor: copy; }
#home-page .home-map-handle:focus { outline: none; stroke: var(--text); stroke-width: 2; opacity: 1; }
#home-page .home-map-svg:focus-visible { outline: 2px solid var(--action-hover); outline-offset: -2px; }
#home-page .home-map-tooltip { position: absolute; z-index: 1; max-width: min(240px, calc(100% - 16px)); padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-ground); color: var(--text); box-shadow: 0 4px 18px #0005; font-size: 12px; line-height: 1.5; pointer-events: none; }
#home-page .home-map-handles { opacity: 0; }
#home-page .is-map-active .home-map-handles, #home-page .home-map-handles:focus-within { opacity: 1; }
#home-page .home-map-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
