/* ==========================================================================
   Hostboi — home page layer (loaded after main.css on index.html only)
   Sizer-in-hero, rack motif from the logo, art game cards, RAM ladder,
   checkout timeline. Class names are unique to this file so nothing here
   collides with main.css components used on other pages.
   ========================================================================== */

/* rack motif: three stacked units with status lights, as in the logo */
.rack { display: inline-grid; gap: 3px; vertical-align: middle; }
.rack i { display: block; width: 22px; height: 5px; border-radius: 1.5px; background: var(--navy); position: relative; }
.rack i::after {
  content: ""; position: absolute; right: 2px; top: 1px; width: 3px; height: 3px;
  border-radius: 50%; background: #fff; opacity: .85;
}
.rack i:nth-child(2)::after { background: var(--magenta); opacity: 1; }
.rack--lg { transform: scale(1.6); margin-bottom: 1.2rem; }
.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem;
  font: 500 .68rem/1 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--magenta);
}

/* hero */
.home-hero { padding-block: clamp(2.4rem, 5vw, 4.2rem) clamp(2rem, 4vw, 3rem); scroll-margin-top: 74px; }
.sizer, #games, #pricing, #how { scroll-margin-top: 90px; }
.home-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.home-hero h1 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); max-width: none; }
.home-hero h1 em { font-style: normal; color: var(--magenta); }
.home-hero .lede { font-size: 1.06rem; max-width: 44ch; color: var(--text); }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.8rem; }
.facts { display: grid; grid-template-columns: repeat(4, auto); gap: 1.6rem; justify-content: start; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.facts b { display: block; font: 500 1.45rem/1 var(--font-mono); color: var(--text-hi); }
.facts span { font-size: .74rem; letter-spacing: .06em; color: var(--text-mu); }

/* sizer */
.sizer {
  border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255,255,255,.07), rgba(255,255,255,.015));
  box-shadow: 0 40px 90px -46px rgba(0,0,0,.95), 0 0 90px -40px rgba(45,92,175,.7);
}
.sizer__top {
  display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.2rem;
  border-bottom: 1px solid var(--line); font: 500 .66rem/1 var(--font-mono); letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-mu);
}
.lights { display: flex; gap: 5px; }
.lights i { width: 7px; height: 7px; border-radius: 50%; background: #2a3d72; }
.lights i:first-child { background: var(--magenta); box-shadow: 0 0 8px var(--magenta); animation: hb-blink 2.4s infinite; }
@keyframes hb-blink { 50% { opacity: .35; } }
.sizer__body { padding: 1.2rem 1.2rem 1.3rem; display: grid; gap: 1.05rem; }
.sizer__label {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .55rem;
  font: 500 .66rem/1 var(--font-heading); letter-spacing: .16em; text-transform: uppercase; color: var(--text-mu);
}
.sizer__label label { display: inline; margin: 0; font: inherit; color: inherit; }
.sizer__label output { font: 500 .95rem/1 var(--font-mono); color: var(--text-hi); letter-spacing: 0; }
.sizer__mods { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .6rem .38rem .38rem;
  border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text);
  font: 500 .78rem/1 var(--font-body); cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.chip img { width: 20px; height: 20px; border-radius: 5px; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { border-color: var(--magenta); background: var(--magenta-soft); color: #ffd2e7; }
.toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.toggle button { padding: .45rem .85rem; border: 0; background: transparent; color: var(--text); font: 500 .76rem/1 var(--font-body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--magenta-soft); color: #ffd2e7; }

.receipt { border-top: 1px dashed var(--line-strong); padding-top: 1rem; font-family: var(--font-mono); font-size: .82rem; }
.receipt__row { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; color: var(--text); }
.receipt__row span:last-child { color: var(--text-hi); }
.receipt__row.is-muted span { color: var(--text-mu); }
.receipt__row--total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .5rem; }
.meter { display: grid; grid-template-columns: repeat(32, 1fr); gap: 2px; margin: .9rem 0 .35rem; }
.meter i { height: 12px; border-radius: 2px; background: rgba(255,255,255,.07); transition: background .25s ease; }
.meter i.need { background: var(--magenta); }
.meter i.plan { background: rgba(255,44,156,.28); }
.meter__legend { display: flex; justify-content: space-between; font-size: .66rem; color: var(--text-mu); letter-spacing: .06em; }
.verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem;
  padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.verdict__tier { font: 600 1.8rem/1 var(--font-heading); color: var(--text-hi); letter-spacing: .03em; }
.verdict__price { font: 500 .85rem/1.3 var(--font-mono); color: var(--text-mu); }
.verdict__price b { color: var(--text-hi); font-weight: 500; }
.verdict__boost {
  display: inline-block; margin-top: .4rem; padding: .28rem .55rem; border-radius: 999px;
  font: 500 .6rem/1 var(--font-heading); letter-spacing: .12em; text-transform: uppercase;
  color: #ffc2de; background: var(--magenta-soft); border: 1px solid rgba(255,44,156,.45);
}
.verdict__boost[hidden], .receipt__row[hidden] { display: none; }
.why { font: 400 .84rem/1.5 var(--font-body); color: var(--text-mu); margin: .9rem 0 0; }
.btn--sm { padding: .55rem .95rem; font-size: .68rem; }

/* game cards with real art + boot floor */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.game {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); isolation: isolate; transition: border-color .2s;
}
.game__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.game::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,16,38,.05) 25%, rgba(8,16,38,.94) 92%); }
.game__link { position: absolute; inset: 0; z-index: 1; }
.game__meta { position: absolute; left: 0; right: 0; bottom: 0; padding: .85rem .95rem; display: flex; justify-content: space-between; align-items: flex-end; gap: .5rem; pointer-events: none; }
.game h3 { font-size: .86rem; letter-spacing: .08em; margin: 0 0 .2rem; }
.game small { font: 400 .74rem/1.3 var(--font-body); color: var(--text); }
.game__floor {
  flex: none; font: 500 .66rem/1 var(--font-mono); letter-spacing: .06em; color: var(--text-hi);
  padding: .35rem .5rem; border-radius: 6px; background: rgba(8,16,38,.7); border: 1px solid var(--line-strong);
}
.game__size {
  position: absolute; top: .7rem; right: .7rem; z-index: 2; border: 0; cursor: pointer;
  font: 600 .62rem/1 var(--font-heading); letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-accent); background: var(--magenta); padding: .45rem .6rem; border-radius: 6px;
  opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s;
}
.game:hover { border-color: var(--line-strong); }
.game:hover .game__art { transform: scale(1.06); }
.game:hover .game__size, .game:focus-within .game__size { opacity: 1; transform: none; }
html:not(.js) .game__size, html:not(.js) .terms { display: none; }

/* RAM ladder */
.ladder-tools { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.terms { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.terms button { padding: .5rem .9rem; border: 0; background: transparent; color: var(--text); font: 500 .74rem/1 var(--font-body); cursor: pointer; }
.terms button[aria-pressed="true"] { background: var(--magenta-soft); color: #ffd2e7; }
.terms button small { color: var(--text-mu); margin-left: .3rem; }
.ladder-hint { font: 400 .74rem/1 var(--font-mono); color: var(--text-mu); }
.ladder { display: grid; grid-template-columns: repeat(9, 1fr); gap: .55rem; align-items: end; height: 300px; }
.rung { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; color: inherit; }
.rung:hover { color: inherit; }
.rung__bar {
  border-radius: 10px 10px 4px 4px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  transition: background .25s, border-color .25s, transform .25s;
  display: grid; align-content: end; justify-items: center; padding-bottom: .6rem; gap: 3px;
}
.rung__bar i { width: 56%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.rung__gb { font: 600 .95rem/1 var(--font-heading); color: var(--text-hi); margin-top: .55rem; text-align: center; letter-spacing: .03em; }
.rung__price { font: 400 .74rem/1.2 var(--font-mono); color: var(--text-mu); text-align: center; margin-top: .25rem; }
.rung:hover .rung__bar { border-color: var(--line-strong); transform: translateY(-3px); }
.rung.is-pick .rung__bar { border-color: var(--magenta); background: linear-gradient(180deg, rgba(255,44,156,.35), rgba(255,44,156,.06)); }
.rung.is-pick .rung__bar i { background: rgba(255,255,255,.5); }
.rung.is-pick .rung__price { color: var(--text-hi); }
.rung.is-pick::before {
  content: "Your pick"; position: absolute; top: -1.4rem; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font: 500 .6rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta);
}
.ladder-note { margin-top: 1.2rem; font-size: .86rem; color: var(--text-mu); }

/* checkout timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; counter-reset: tl; }
.timeline::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 15px; height: 1px;
  background: linear-gradient(90deg, var(--magenta), var(--line-strong) 40%, var(--line));
}
.timeline__step { position: relative; padding-right: 1.2rem; }
.timeline__step::before {
  counter-increment: tl; content: counter(tl); position: relative; display: grid; place-items: center;
  width: 31px; height: 31px; border-radius: 50%; background: var(--bg); border: 2px solid var(--magenta);
  font: 500 .78rem/1 var(--font-mono); color: var(--text-hi); margin-bottom: 1rem;
}
.timeline__step h3 { font-size: .86rem; letter-spacing: .1em; margin-bottom: .4rem; }
.timeline__step p { font-size: .9rem; color: var(--text-mu); margin: 0; }

@media (max-width: 1040px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .home-hero__grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, auto); gap: 1rem 2rem; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .ladder { height: 220px; gap: .3rem; }
  .rung__gb { font-size: .74rem; } .rung__price { font-size: .6rem; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .timeline::before { display: none; }
}
@media (max-width: 520px) {
  .games, .timeline { grid-template-columns: 1fr; }
  .ladder {
    overflow-x: auto; overflow-y: hidden; grid-template-columns: repeat(9, 58px);
    padding: 1.6rem 0 1rem; height: 250px; scroll-snap-type: x proximity;
  }
  .rung { scroll-snap-align: center; }
}
