/* Home page: hero price strip and the live Hong Kong rack widget (2026-10-26) */
.hero-side{display:flex; flex-direction:column; gap:16px; min-width:0}

.hero-price{display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-top:26px;
  padding:16px 20px; background:var(--surface); border:1px solid var(--line); border-radius:12px}
.hero-price > div{display:flex; align-items:baseline; gap:4px}
.hp-n{font-family:var(--f-display); font-weight:800; font-size:26px; letter-spacing:-.02em; font-variant-numeric:tabular-nums}
.hp-u{font-size:13.5px; color:var(--muted)}
.hp-sep{width:1px; height:26px; background:var(--line)}
@media (max-width:560px){ .hero-price > .hp-sep{display:none} }

.rack{background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px; box-shadow:var(--shadow)}
.rack-head{display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-bottom:18px; border-bottom:1px solid var(--line)}
.rack-avail-n{color:var(--accent)}
.rack-soldout .rack-avail-n{color:var(--warm)}

.rack-grid{display:grid; grid-template-columns:repeat(20,minmax(0,1fr)); gap:4px; margin-top:18px}
.cell{display:block; aspect-ratio:1; border-radius:3px; max-width:100%}
.cell-rented{background:var(--ink-2)}
.cell-free{background:var(--accent); animation:rack-pulse 2.4s ease-in-out infinite}
.cell-build{background:var(--accent-wash); box-shadow:inset 0 0 0 1px var(--accent)}
.cell-planned{background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--line)}
@keyframes rack-pulse{0%,100%{opacity:1} 50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){ .cell-free{animation:none} }

.rack-legend{display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:16px; font-size:13px; color:var(--muted)}
.rack-legend span{display:inline-flex; align-items:center; gap:6px}
.rack-legend b{color:var(--ink); font-variant-numeric:tabular-nums}
.sw{display:inline-block; width:10px; height:10px; border-radius:2px}
.sw-rented{background:var(--ink-2)}
.sw-free{background:var(--accent)}
.sw-build{background:var(--accent-wash); box-shadow:inset 0 0 0 1px var(--accent)}
.sw-planned{background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--line)}
.rack-cta{margin-top:16px; width:100%; justify-content:center}

/* Dedicated machine price table: five plans */
.price-grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:1100px){ .price-grid.five{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:720px){ .price-grid.five{grid-template-columns:1fr} }
.plan-save{display:inline-block; margin-top:8px; font-size:12px; font-weight:600; color:var(--accent-ink);
  background:var(--accent-wash); border-radius:999px; padding:2px 9px}
.spec-row{display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:22px; font-size:14px; color:var(--ink-2)}
.spec-row b{font-family:var(--f-display)}
.price-grid.five .plan{padding:22px}
.price-grid.five .plan-price{font-size:30px; white-space:nowrap}
.price-grid.five .plan-price small{font-size:13px}

/* Pricing page: live availability above the price table */
.avail{display:inline-flex; align-items:center; gap:8px; margin-top:18px; padding:6px 12px; font-size:13.5px;
  color:var(--accent-ink); background:var(--accent-wash); border-radius:999px}
.avail-dot{width:8px; height:8px; border-radius:50%; background:var(--accent); animation:rack-pulse 2.4s ease-in-out infinite}
.avail-out{color:var(--ink-2); background:var(--surface-2)}
.avail-out .avail-dot{background:var(--warm); animation:none}
.avail a{color:inherit; text-decoration:underline; text-underline-offset:3px}

/* Keep nav button labels on one line ("Sign in" used to wrap on phones) */
.nav-right a{white-space:nowrap}
/* Small screens (320-380px, e.g. iPhone SE): tighten the nav so the right-hand buttons fit */
@media (max-width:380px){
  .nav-in{gap:12px}
  .nav .wrap{padding-left:16px; padding-right:16px}
  .nav-right{gap:10px}
  .brand{font-size:15.5px; gap:7px}
  .nav-right .btn-sm{padding-left:12px; padding-right:12px}
}
