/* Home hero for Five Tool Files. Depends on tokens.css. */

.wrap { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }

/* Nav */
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1; }
.wordmark svg, .wordmark .mark { display: block; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 16px; line-height: 1.4; color: var(--ink); }

/* Hero stack */
.hero { text-align: center; padding-top: 72px; }
.hero h1 { color: var(--ink); white-space: nowrap; }
.hero .sub { max-width: 720px; margin: 24px auto 0; color: var(--graphite); }
.hero .actions { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }
.hero .player-line { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; }
.hero .player-line .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--graphite); display: inline-block; }

/* Dashboard frame */
.frame { margin-top: 48px; margin-bottom: 64px; }
.frame-label { color: var(--graphite); margin-bottom: 12px; }
.frame-head { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.frame-head .who { display: flex; align-items: center; gap: 16px; }
.frame-head .name { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.frame-head .pos { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.frame-head .live { display: inline-flex; align-items: center; }
.frame-head .meta { display: flex; gap: 24px; }

.tabs { display: flex; align-items: center; gap: 4px; margin-top: 16px; list-style: none; padding: 0; }
.tabs li a { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid transparent; font-size: 16px; line-height: 1.4; color: var(--graphite); }
.tabs li a svg { display: block; stroke: currentColor; }
.tabs li.on a { color: var(--ink); border-color: var(--signal); }

.range { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; height: 20px; }
.range .grp { display: inline-flex; align-items: center; gap: 8px; }
.range .grp svg { stroke: var(--graphite); display: block; }
.range .k { color: var(--graphite); }
.range .v { color: var(--ink); }

.board { margin-top: 20px; }

/* Stat tiles */
.tiles { display: flex; gap: 0; align-items: flex-start; list-style: none; margin: 0; padding: 0; }
.tile { width: 208px; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; }
.tile.on { border-color: var(--signal); background: var(--panel); }
.tile .label { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.tile .value { margin-top: 4px; display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.tile .unit { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.tile .delta { margin-top: 4px; height: 20px; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; }
.tile .delta .d { display: inline-flex; align-items: center; gap: 3px; color: var(--signal); font-variant-numeric: tabular-nums; }
.tile .delta .d.down { color: var(--down); }
.tile .delta .d svg { display: block; }
.tile .delta .prior { color: var(--graphite); font-variant-numeric: tabular-nums; }
.tile .stamp { margin-top: 2px; }

/* Chart */
.chart { margin-top: 24px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--hairline-on-white); stroke-width: 1; }
.chart .axis { fill: var(--graphite); font-size: 14px; font-family: var(--font); }
.chart .cur { fill: url(#barfade); stroke: #9a9a9a; stroke-width: 1; }
.chart .cmp { fill: var(--panel); stroke: var(--signal); stroke-width: 1; }
.chart-key { display: flex; gap: 24px; margin-top: 12px; }
.chart-key span { display: inline-flex; align-items: center; gap: 8px; }
.chart-key i { width: 12px; height: 12px; display: inline-block; border: 1px solid #9a9a9a; background: var(--panel); }
.chart-key i.cmp { border-color: var(--signal); }

@media (max-width: 1240px) {
  .hero h1 { white-space: normal; }
  .tiles { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .nav { height: 72px; }
  .nav-links { display: none; }
  .nav-right { gap: 0; }
  .wordmark { min-height: 44px; }
  .hero { padding-top: 32px; }
  .hero .sub { margin-top: 16px; }
  .hero .actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
  .hero .actions .btn { width: 100%; max-width: 320px; height: 48px; }
  .hero { padding-bottom: 32px; }
  .hero .player-line { display: block; margin-top: 16px; }
  .hero .player-line .sep, .hero .player-line span:last-child { display: none; }
  .frame { margin-top: 0; margin-bottom: 0; }
  .frame-head { height: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .frame-head .who { flex-direction: column; align-items: flex-start; gap: 4px; }
  .frame-head .meta { display: none; }
  .tabs { margin: 0; padding: 0; }
  .tabs-wrap { margin-top: 16px; }
  .tabs li a { height: 44px; padding: 0 12px; gap: 8px; }
  .range { height: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
  .board { margin-top: 16px; }
  .chart { display: none; }
  .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile { width: auto; min-width: 0; padding: 14px 16px; }
  .tile .label { font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; }
  .tile .value { flex-wrap: nowrap; white-space: nowrap; }
  .tile .unit { font-size: 14px; }
  .tile .delta { font-size: 13px; white-space: nowrap; }
  .tile .stamp { margin-top: 2px; }
}
