/* Homepage: "painted floor routes". Data center floors are marked with colored tape that leads
   people to each zone. Three routes start from where you are: blue to technician work, yellow
   to the construction trades, green to facilities. The route colors code the whole page. */
.home {
  --route-tech: var(--accent);
  --route-trades: var(--tag);
  --route-fac: #2f9d64;
  --route-edge: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home { --route-fac: #5fcf93; --route-edge: #0a1116; } }
:root[data-theme="dark"] .home { --route-fac: #5fcf93; --route-edge: #0a1116; }

/* Hero */
.home-hero { padding-block: 44px 28px; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy map" "signup map"; gap: 26px 48px; align-items: center; }
.home-hero .hero-copy { grid-area: copy; }
.home-hero .hero-signup { grid-area: signup; align-self: start; }
.home-hero .floor-map { grid-area: map; }
.home-hero h1 { font-size: clamp(2.75rem, 6.4vw, 5rem); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; }
.home-hero .lede { font-size: 1.1875rem; color: var(--muted); max-width: 46ch; margin-top: 18px; }
.home-hero .hero-actions { margin-top: 24px; }
.home-hero .checked { margin-top: 14px; font-size: var(--step--1); color: var(--muted); }

.floor-map { width: 100%; height: auto; display: block; overflow: visible; }
.floor-map .edge { fill: none; stroke: var(--route-edge); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.floor-map .line { fill: none; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.floor-map .tech { stroke: var(--route-tech); }
.floor-map .trades { stroke: var(--route-trades); }
.floor-map .fac { stroke: var(--route-fac); }
.floor-map .start { fill: var(--surface); stroke: var(--route-edge); stroke-width: 4; }
.floor-map text { fill: var(--ink); font-family: var(--font-body); }
.floor-map .dest { font-family: var(--font-display); font-weight: 700; font-size: 27px; text-transform: uppercase; letter-spacing: 0.01em; }
.floor-map .fact { font-size: 15px; fill: var(--muted); }
.floor-map .you { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.floor-map a:hover .dest, .floor-map a:focus-visible .dest { text-decoration: underline; text-decoration-thickness: 2px; }
.floor-map a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .floor-map .line, .floor-map .edge { stroke-dasharray: 700; stroke-dashoffset: 700; animation: paint 1.1s cubic-bezier(.4,0,.2,1) forwards; }
  .floor-map .trades { animation-delay: .12s; }
  .floor-map .fac { animation-delay: .24s; }
  .floor-map .g-trades .edge { animation-delay: .12s; }
  .floor-map .g-fac .edge { animation-delay: .24s; }
}
@keyframes paint { to { stroke-dashoffset: 0; } }

.home-hero .top-signup { max-width: 520px; }

@media (max-width: 860px) {
  .home-hero .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "map" "signup"; }
  .floor-map .fact { font-size: 19px; }
  .floor-map .dest { font-size: 30px; }
  .home-hero { padding-top: 28px; }
}

/* Path finder: the questions are a real sequence, so they're numbered */
.home-section { padding-block: 40px; }
.home-section > .wrap > h2 { margin-bottom: 8px; }
.home-section .intro { color: var(--muted); max-width: 60ch; }
.finder-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 24px 48px; align-items: start; }
.finder-wrap .finder-intro { position: sticky; top: 120px; display: grid; gap: 12px; }
.finder-wrap .finder-intro p { color: var(--muted); }
.home .finder { border-radius: 8px; border-top: 6px solid var(--route-edge); }
.home .finder form { counter-reset: q; gap: 0; padding: 4px 22px 22px; }
.home .finder .q { counter-increment: q; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.home .finder .q::before { content: counter(q); grid-row: 1 / span 2; font: 700 1.9rem/1 var(--font-display); color: var(--accent); }
.home .finder .q > label, .home .finder .q > legend { grid-column: 2; }
.home .finder fieldset.q { display: grid; }
.home .finder fieldset.q > legend { float: left; width: 100%; }
.home .finder .q > select, .home .finder .q > .opts { grid-column: 2; }
.home .finder .finder-actions { padding-top: 18px; }
@media (max-width: 860px) {
  .finder-wrap { grid-template-columns: 1fr; }
  .finder-wrap .finder-intro { position: static; }
}

/* Routes: one row per route, coded by its floor-line color */
.routes { display: grid; gap: 14px; margin-top: 22px; }
.route {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px 32px;
  background: var(--surface); border: 1px solid var(--line); border-left: 12px solid var(--rc); border-radius: 4px 8px 8px 4px;
  padding: 20px 22px; align-items: start;
}
.route.tech { --rc: var(--route-tech); }
.route.trades { --rc: var(--route-trades); }
.route.fac { --rc: var(--route-fac); }
.route h3 { font-size: 1.75rem; text-transform: uppercase; margin-bottom: 6px; }
.route p { color: var(--muted); }
.route dl { margin: 0; display: grid; gap: 8px; }
.route dt { font-size: var(--step--1); color: var(--muted); }
.route dd { margin: 0; font-weight: 600; }
.route .go { display: grid; gap: 8px; justify-items: start; }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } }

/* Training: a short list, not a card grid */
.picks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.picks li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 8px 28px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.picks h3 { font-size: 1.5rem; }
.picks .who { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.picks p { color: var(--muted); }
.picks .links { display: grid; gap: 6px; justify-items: start; }
@media (max-width: 860px) { .picks li { grid-template-columns: 1fr; } }

/* Questions: heading left, answers right */
.answers { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 16px 48px; align-items: start; }
@media (max-width: 860px) { .answers { grid-template-columns: 1fr; } }
