/* Homepage below the hero: area explorer with live routes, audience switcher, animated how-it-works.
   Reuses product.css for the proof strip and ecosystem marquee. Brand 2026.3. */

.hp-sec{padding:104px 0}
.hp-sec.tight{padding-top:0}

/* ── Segmented tabs (shared by both explorers) ── */
.hp-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:var(--sl-cream-deep);border-radius:999px;width:max-content;max-width:100%;margin-bottom:28px}
.hp-tab{display:inline-flex;align-items:center;gap:8px;font:600 14.5px 'Schibsted Grotesk',Arial,sans-serif;color:var(--sl-forest);background:transparent;border:0;border-radius:999px;padding:10px 16px;cursor:pointer;transition:background .25s}
.hp-tab svg{width:16px;height:16px}
.hp-tab:hover{background:rgba(255,255,255,.6)}
.hp-tab[aria-selected="true"]{background:var(--sl-forest);color:#fff}
.hp-tab:focus-visible{outline:2px solid var(--sl-mint-ink);outline-offset:2px}

/* ── Area explorer ── */
.hp-area{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px;align-items:stretch}
.hp-area-copy{background:#fff;border:1px solid var(--sl-stone);border-radius:16px;padding:32px;display:flex;flex-direction:column}
.hp-area-copy .k{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--sl-mint-ink)}
.hp-area-copy h3{font-size:30px!important;line-height:36px;font-weight:800!important;letter-spacing:-.02em;color:var(--sl-forest);margin:8px 0 12px}
.hp-area-copy p{font-size:16.5px;line-height:1.6;color:var(--sl-slate);margin:0 0 20px}
.hp-docs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:24px}
.hp-docs span{font:600 11px 'JetBrains Mono',monospace;color:var(--sl-forest);background:var(--sl-mint-wash);border-radius:999px;padding:4px 10px}
.hp-go{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--sl-mint-ink);text-decoration:none}
.hp-go svg{width:16px;height:16px;transition:transform .2s}
.hp-go:hover svg{transform:translateX(4px)}
.hp-stage{background:var(--sl-forest-700);border:1px solid var(--sl-forest-600);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.hp-stage-top{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--sl-forest-600);font-size:13px;color:var(--sl-sage-text)}
.hp-stage-top strong{color:var(--sl-cream-ink);font-weight:600}
.hp-stage-top .ill{margin-left:auto;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.hp-stage-top .ill i{width:7px;height:7px;border-radius:50%;background:var(--sl-mint);animation:hpBlink 1.6s ease-in-out infinite}
@keyframes hpBlink{50%{opacity:.25}}
.hp-route{display:block;width:100%;height:auto;flex:1}
.hp-route .ln{fill:none;stroke:var(--sl-forest-600);stroke-width:2;stroke-dasharray:4 6}
.hp-route .nd rect{fill:var(--sl-forest);stroke:var(--sl-forest-600);stroke-width:1.5}
.hp-route .nd text{fill:var(--sl-cream-ink);font:600 15px 'Schibsted Grotesk',Arial,sans-serif}
.hp-route .nd text.k{fill:var(--sl-mint);font:600 10.5px 'Schibsted Grotesk',Arial,sans-serif;letter-spacing:.12em}
.hp-route .core{fill:var(--sl-forest);stroke:var(--sl-mint);stroke-width:2}
.hp-route .ring{fill:none;stroke:var(--sl-mint);stroke-width:1.5;transform-box:fill-box;transform-origin:center;animation:hpRing 2.4s ease-out infinite}
@keyframes hpRing{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.7)}}
.hp-route .pk rect{fill:var(--sl-mint)}
.hp-route .pk.back rect{fill:var(--sl-cream-ink)}
.hp-route .pk text{fill:var(--sl-forest);font:700 10px 'JetBrains Mono',monospace}
.hp-swap{animation:hpSwap .4s cubic-bezier(.2,.8,.2,1)}
@keyframes hpSwap{from{opacity:0;transform:translateY(8px)}}

/* ── Audience switcher ── */
.hp-aud{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hp-aud-card{text-align:left;background:#fff;border:1px solid var(--sl-stone);border-radius:16px;padding:24px;cursor:pointer;font:inherit;color:inherit;display:flex;flex-direction:column;gap:10px;transition:border-color .3s,transform .3s,box-shadow .3s,background .3s}
.hp-aud-card .ic{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--sl-mint-wash);color:var(--sl-forest);transition:background .3s,color .3s}
.hp-aud-card .ic svg{width:22px;height:22px}
.hp-aud-card h3{font-size:18px!important;font-weight:600!important;color:var(--sl-forest);margin:6px 0 0}
.hp-aud-card p{font-size:14.5px;line-height:1.55;color:var(--sl-slate);margin:0}
.hp-aud-card:hover{border-color:var(--sl-leaf)}
.hp-aud-card[aria-pressed="true"]{border-color:var(--sl-forest);transform:translateY(-4px);box-shadow:0 1px 2px rgba(15,58,46,.06),0 14px 32px rgba(15,58,46,.10)}
.hp-aud-card[aria-pressed="true"] .ic{background:var(--sl-forest);color:var(--sl-mint)}
.hp-aud-card:focus-visible{outline:2px solid var(--sl-mint-ink);outline-offset:2px}
.hp-aud-out{margin-top:12px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 22px;border-radius:16px;background:var(--sl-mint-wash);color:var(--sl-forest);font-size:15.5px}
.hp-aud-out .chips{display:flex;gap:6px;flex-wrap:wrap}
.hp-aud-out .chips span{font-size:12.5px;font-weight:600;background:#fff;border-radius:999px;padding:4px 10px}
.hp-aud-out a{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--sl-forest)}
.hp-aud-out a svg{width:16px;height:16px}

/* ── How it works: brand pass and motion ── */
.hiw-section h2 i{font-style:normal!important;font-weight:800!important}
.hiw-flow-row{transition:background .4s,border-color .4s}
.hiw-flow-row.hp-on{background:var(--sl-mint-wash)!important;border-color:var(--sl-leaf)!important}
.hiw-flow-row.hp-on .hiw-flow-dot{background:var(--sl-leaf)!important;box-shadow:0 0 0 4px rgba(46,158,117,.18)}
.hiw-pill-more{background:var(--sl-forest)!important;color:var(--sl-mint)!important;border-color:var(--sl-forest)!important}

@media (max-width:1000px){
  .hp-area{grid-template-columns:minmax(0,1fr)}
  .hp-aud{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .hp-sec{padding:72px 0}
  .hp-aud{grid-template-columns:minmax(0,1fr)}
  .hp-tabs{border-radius:16px}
  .hp-route .nd text{font-size:17px}
  .hp-aud-out a{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .hp-stage-top .ill i,.hp-route .ring{animation:none}
  .hp-route .pk{display:none}
}
