/* Homepage audience picker: a modal on a drifting mesh gradient that opens 3 s after load
   (once per visit), plus the inline "Choose your path" band and the nav button that reopens it. */
.path-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; color: #e8eef5; background: #13202e; box-shadow: 0 30px 80px rgba(5, 10, 20, 0.55); overflow: auto; }
.path-dialog::backdrop { background: rgba(10, 18, 28, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.path-dialog[open] { animation: pd-in .45s cubic-bezier(.2, 1.2, .4, 1); }
.path-dialog[open]::backdrop { animation: pd-fade .3s ease-out; }
@keyframes pd-in { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pd-fade { from { opacity: 0; } }

.pd-mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.pd-mesh i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; animation: pd-drift 16s ease-in-out infinite alternate; }
.pd-mesh i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -160px; background: #d97706; }
.pd-mesh i:nth-child(2) { width: 380px; height: 380px; right: -120px; top: -80px; background: #2a5b84; animation-duration: 20s; animation-delay: -5s; }
.pd-mesh i:nth-child(3) { width: 360px; height: 360px; left: 30%; bottom: -200px; background: #7a3f9e; animation-duration: 24s; animation-delay: -9s; }
.pd-mesh i:nth-child(4) { width: 260px; height: 260px; right: 18%; bottom: -120px; background: #0f9b8e; animation-duration: 18s; animation-delay: -2s; }
.pd-mesh::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.2px); background-size: 22px 22px; }
@keyframes pd-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.1); } 100% { transform: translate(-30px, 50px) scale(.95); } }

.pd-inner { position: relative; padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; }
.pd-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pd-top .eyebrow { color: #f5b04a; }
.pd-top h2 { font: 800 clamp(26px, 3.6vw, 36px)/1.12 var(--display); color: #ffffff; margin-top: 6px; }
.pd-top p { color: #c9d6e3; margin-top: 8px; max-width: 52ch; }
.pd-close { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #ffffff; font: 400 22px/1 var(--sans); cursor: pointer; }
.pd-close:hover { background: rgba(255, 255, 255, 0.18); }

.pd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-tile { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px; border-radius: 16px; text-decoration: none; color: #dbe5ef; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), background-color .2s, border-color .2s; min-width: 0; }
.pd-tile:hover, .pd-tile:focus-visible { transform: translateY(-4px); background: rgba(255, 255, 255, 0.13); border-color: #f5b04a; }
.pd-tile:focus-visible { outline: 2px solid #f5b04a; outline-offset: 3px; }
.pd-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(245, 176, 74, 0.18); color: #f5b04a; }
.pd-icon svg { width: 26px; height: 26px; }
.pd-tile h3 { font: 700 21px/26px var(--display); color: #ffffff; }
.pd-tile p { font-size: 14px; line-height: 21px; color: #c9d6e3; }
.pd-tile .pd-go { font: 500 13px/18px var(--mono); color: #f5b04a; margin-top: 4px; }
.pd-tile.fun { background: linear-gradient(135deg, rgba(255, 79, 109, 0.35), rgba(255, 176, 32, 0.3) 50%, rgba(18, 184, 154, 0.32)); }
.pd-tile.fun .pd-icon { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.pd-tile.fun:hover { border-color: #ffffff; }
.pd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: #c9d6e3; }
.pd-foot button { background: none; border: 0; padding: 0; color: #ffffff; font: 600 14px/20px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 720px) { .pd-tiles { grid-template-columns: 1fr; } .pd-tile { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; } .pd-tile .pd-icon { grid-row: span 3; } }

/* Nav button that reopens the picker */
.path-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--accent-on-inverse); background: transparent; color: var(--ink-inverse); font: 600 13px/18px var(--sans); cursor: pointer; }
.path-btn svg { width: 16px; height: 16px; }
.path-btn:hover { background: rgba(224, 138, 30, 0.14); }
@media (max-width: 480px) { .path-btn span { display: none; } }

/* Inline band under the metrics */
.paths-band { padding-block: 36px 8px; }
.paths-band .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.paths-band a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink-muted); background: var(--bg); transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.paths-band a:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.paths-band b { font: 700 18px/24px var(--display); color: var(--ink-heading); }
.paths-band span.go { font: 500 13px/18px var(--mono); color: var(--accent); }
.paths-band a.fun-tile { background: linear-gradient(135deg, color-mix(in srgb, #ff4f6d 14%, var(--bg)), color-mix(in srgb, #ffb020 16%, var(--bg)) 55%, color-mix(in srgb, #12b89a 14%, var(--bg))); }
@media (max-width: 720px) { .paths-band .tiles { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .path-dialog[open], .path-dialog[open]::backdrop, .pd-mesh i { animation: none; }
  .pd-tile, .paths-band a { transition: none; }
}
