/* ==========================================================================
   Landing Stylesheet - Server Host Public Page
   Built on Kumo tokens (surfaces, text, lines, brand blue) so the page
   matches the panel in light and dark mode. Buttons are Kumo buttons from
   Ui::buttonClass(); the logo keeps its own colours.
   ========================================================================== */

/* ─── Design Tokens ─────────────────────────────────────────────────────── */

.sh-page {
  /* Surfaces */
  --paper: var(--color-kumo-canvas);
  --white: var(--color-kumo-base);
  --linen: var(--color-kumo-tint);
  --console: #0d0e11;
  /* Text Scale */
  --ink: var(--text-color-kumo-strong);
  --ink-2: var(--text-color-kumo-default);
  --muted: var(--text-color-kumo-subtle);
  --faint: var(--text-color-kumo-subtle);
  /* Border */
  --line: var(--color-kumo-hairline);
  --line-2: var(--color-kumo-line);
  /* Accent (Kumo brand blue) */
  --accent: var(--color-kumo-brand);
  --accent-h: color-mix(in srgb, var(--color-kumo-brand) 85%, #000);
  --accent-tint: color-mix(in srgb, var(--color-kumo-brand) 9%, var(--color-kumo-base));
  --accent-line: color-mix(in srgb, var(--color-kumo-brand) 28%, var(--color-kumo-base));
  --accent-text: var(--color-kumo-brand);
  --ok: #16a34a;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  min-height: 100vh;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sh-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sh-page a:focus-visible,
.sh-page button:focus-visible,
.sh-page summary:focus-visible,
.sh-page input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Brand Mark ────────────────────────────────────────────────────────── */

.sh-mark {
  display: block;
  overflow: visible;
}

/* Dark mode: surfaces switch to the colours of server-host-logo-dark.svg */
[data-mode="dark"] .sh-s-deck-lo { fill: #23262c; }
[data-mode="dark"] .sh-s-deck-hi { fill: #1b1d22; }
[data-mode="dark"] .sh-s-bevel { fill: #434852; }
[data-mode="dark"] .sh-s-wall { fill: #15171a; }
[data-mode="dark"] .sh-s-side { fill: #32363e; }

.sh-unit {
  transform-box: view-box;
  transition: transform 0.45s var(--ease, ease);
}

/* Build: the bottom server rises, the top one drops onto it, then LEDs wake */
.sh-build .sh-unit-bottom {
  animation: sh-rise 0.7s var(--ease) 0.05s both;
}

.sh-build .sh-unit-top {
  animation: sh-drop 0.95s cubic-bezier(0.34, 1.45, 0.64, 1) 0.25s both;
}

.sh-build .sh-led {
  animation: sh-led-on 0.3s ease 1s both, sh-led-pulse 2.8s ease-in-out 1.4s infinite;
}

.sh-build .sh-unit-bottom .sh-led {
  animation-delay: 1.15s, 2.1s;
}

.sh-build:not(.is-built) .sh-unit,
.sh-build:not(.is-built) .sh-led {
  animation-play-state: paused;
}

@keyframes sh-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes sh-drop {
  0% { opacity: 0; transform: translateY(-46px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

@keyframes sh-led-on {
  from { opacity: 0.15; }
  to { opacity: 1; }
}

@keyframes sh-led-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Hover: the stack lifts apart slightly, like pulling a unit out */
.sh-brand:hover .sh-unit-top,
.sh-final-mark:hover .sh-unit-top {
  transform: translateY(-5px);
}

.sh-brand:hover .sh-unit-bottom,
.sh-final-mark:hover .sh-unit-bottom {
  transform: translateY(2px);
}

.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.sh-mark-nav {
  width: 30px;
  height: 34px;
}

.sh-word {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sh-word-muted {
  color: var(--text-color-kumo-subtle);
}

/* ─── Navigation: Floating Liquid Glass Capsule ────────────────────────── */

.sh-glass-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sh-nav-shell {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  padding: 0.85rem 1.5rem 0;
  pointer-events: none;
}

.sh-nav {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.5rem 0.6rem 0.5rem 0.75rem;
  border: 1px solid rgb(21 20 15 / 0.08);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.42);
  box-shadow: inset 0 0 2px 1px rgb(255 255 255 / 0.55), inset 0 0 10px 4px rgb(255 255 255 / 0.22), 0 6px 24px rgb(17 17 26 / 0.06), 0 12px 40px rgb(17 17 26 / 0.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  pointer-events: auto;
  transition: max-width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.4s cubic-bezier(0.22, 0.61, 0.36, 1), background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Refraction only where the browser supports SVG backdrop filters */
@supports (backdrop-filter: url(#sh-liquid-glass)) {
  .sh-nav {
    backdrop-filter: url(#sh-liquid-glass) blur(7px) saturate(1.4);
  }
}

.sh-nav.is-condensed {
  max-width: 1120px;
}

[data-mode="dark"] .sh-nav {
  border-color: rgb(255 255 255 / 0.12);
  background: rgb(12 13 16 / 0.65);
  box-shadow: inset 0 0 2px 1px rgb(255 255 255 / 0.18), inset 0 0 12px 2px rgb(255 255 255 / 0.05), 0 16px 36px -6px rgb(0 0 0 / 0.55);
}

.sh-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

/* Brand lockup: mark tile, name, and caption */
.sh-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  color: var(--ink);
  text-decoration: none;
}

.sh-brand-tile {
  position: relative;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  place-items: center;
  border: 1px solid rgb(0 0 0 / 0.12);
  border-radius: 9999px;
  background: var(--color-kumo-base);
  transition: transform 0.3s var(--ease);
}

.sh-brand:hover .sh-brand-tile {
  transform: scale(1.05);
}

[data-mode="dark"] .sh-brand-tile {
  border-color: rgb(255 255 255 / 0.2);
}

.sh-brand-tile .sh-mark-nav {
  width: 20px;
  height: 26px;
}

.sh-brand-status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #10b981;
  box-shadow: 0 0 0 2px var(--color-kumo-base);
}

.sh-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.sh-brand-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sh-brand:hover .sh-brand-name {
  color: var(--accent);
}

.sh-brand-dot {
  margin-left: 1px;
  color: var(--accent);
}

/* Center links */
.sh-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-self: center;
}

.sh-nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sh-nav-links a:hover {
  background: rgb(0 0 0 / 0.04);
  color: var(--ink);
}

.sh-nav-links a:active {
  transform: scale(0.95);
}

[data-mode="dark"] .sh-nav-links a:hover {
  background: rgb(255 255 255 / 0.08);
}

/* Actions */
.sh-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: end;
}

.sh-nav-chip,
.sh-nav-round {
  display: inline-flex;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(0 0 0 / 0.1);
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.7);
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sh-nav-chip {
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.sh-nav-round {
  width: 2rem;
  padding: 0;
  cursor: pointer;
}

.sh-nav-chip:hover,
.sh-nav-round:hover {
  border-color: rgb(0 0 0 / 0.2);
  background: #fff;
}

.sh-nav-round:active {
  transform: scale(0.9);
}

[data-mode="dark"] .sh-nav-chip,
[data-mode="dark"] .sh-nav-round {
  border-color: rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

[data-mode="dark"] .sh-nav-chip:hover,
[data-mode="dark"] .sh-nav-round:hover {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.15);
}

.sh-nav-cta {
  border-radius: 9999px;
}

/* Theme toggle: sun in light mode, moon in dark mode, rotating swap */
.sh-theme-btn {
  position: relative;
  overflow: hidden;
  color: #f59e0b;
}

[data-mode="dark"] .sh-theme-btn {
  color: #fcd34d;
}

.sh-theme-btn svg {
  position: absolute;
  transition: transform 0.26s var(--ease), opacity 0.26s ease;
}

.sh-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-mode="dark"] .sh-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-mode="dark"] .sh-icon-moon {
  opacity: 1;
  transform: none;
}

/* Burger: three bars that fold into a cross */
.sh-burger {
  display: none;
  flex-direction: column;
  gap: 3px;
}

.sh-burger span {
  display: block;
  width: 1rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.sh-nav-shell.is-open .sh-burger span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.sh-nav-shell.is-open .sh-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.sh-nav-shell.is-open .sh-burger span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* Mobile menu card */
.sh-nav-menu {
  display: none;
  max-width: 1240px;
  max-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), margin 0.3s ease;
}

.sh-nav-shell.is-open .sh-nav-menu {
  max-height: 85vh;
  margin-top: 0.5rem;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.sh-nav-menu-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgb(0 0 0 / 0.08);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

[data-mode="dark"] .sh-nav-menu-card {
  border-color: rgb(255 255 255 / 0.1);
  background: rgb(14 15 19 / 0.95);
}

.sh-nav-menu-card > a {
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.sh-nav-menu-card > a:hover {
  background: rgb(0 0 0 / 0.04);
}

[data-mode="dark"] .sh-nav-menu-card > a:hover {
  background: rgb(255 255 255 / 0.06);
}

.sh-nav-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.sh-nav-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.25rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.sh-nav-menu-btn {
  justify-content: center;
  border-radius: 9999px;
}

.sh-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgb(0 0 0 / 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.sh-nav-scrim[hidden] {
  display: none;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.sh-hero {
  position: relative;
  overflow: hidden;
  padding: 8.5rem 0 5rem;
}

/* Dot grid floor behind the rack, faded at the edges */
.sh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--color-kumo-fill) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}

.sh-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 3rem;
}

.sh-h1 {
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.036em;
  line-height: 1.04;
}

.sh-h1-muted,
.sh-h2-muted {
  color: #9a9b9b;
}

.sh-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.65;
}

.sh-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.sh-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.sh-facts > div {
  padding: 1rem 1.5rem 0 0;
  margin-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.sh-facts > div:last-child {
  border-right: 0;
}

.sh-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sh-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sh-facts dd span {
  color: var(--muted);
  font-weight: 500;
}

/* ─── Interactive Server Stage ──────────────────────────────────────────── */

.sh-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sh-stage-rack {
  width: min(100%, 470px);
}

.rk {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Rack surfaces */
.rk-top { fill: #2b2d31; }
.rk-left { fill: #111214; }
.rk-right { fill: #050505; }
.rk-base-top { fill: var(--color-kumo-fill); }
.rk-base-left { fill: color-mix(in srgb, var(--color-kumo-fill) 80%, #000); }
.rk-base-right { fill: color-mix(in srgb, var(--color-kumo-fill) 65%, #000); }
.rk-panel { fill: #f4f4f5; }
.rk-vent { fill: #0a0a0a; }
.rk-bay { fill: #e7e7ea; stroke: #0a0a0a; stroke-width: 0.03; }
.rk-label { fill: #0a0a0a; font: 700 0.3px var(--mono); letter-spacing: 0.02px; }
/* Two-line unit names (VPS page rack) sit in the space left of the drive bays */
.rk-label-2l { font-size: 0.27px; letter-spacing: 0; }
.rk-led-ok { fill: var(--ok); }
.rk-led-act,
.rk-led-act2 { fill: var(--accent); }
.rk-bus { stroke: var(--line-2); stroke-width: 2; stroke-linecap: round; }
.rk-packet { fill: var(--accent); opacity: 0; }
.rk-glow { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: 0; transition: opacity 0.3s ease; }

.rk-unit {
  cursor: pointer;
}

.rk-slide {
  transition: transform 0.55s var(--ease);
}

/* Active unit slides out of the rack toward the viewer */
.rk-unit.is-active .rk-slide {
  transform: translate(-30px, 17px);
}

.rk-unit.is-active .rk-glow {
  opacity: 1;
}

.rk-unit:not(.is-active):hover .rk-slide {
  transform: translate(-6px, 3px);
}

/* Status LEDs: steady green, blue activity with per-unit rhythm */
.rk-led-act {
  animation: rk-blink 1.7s steps(2, jump-none) infinite;
}

.rk-led-act2 {
  animation: rk-blink 2.3s steps(2, jump-none) 0.6s infinite;
}

.rk-unit:nth-of-type(3) .rk-led-act { animation-duration: 1.3s; }
.rk-unit:nth-of-type(4) .rk-led-act { animation-duration: 2.1s; animation-delay: 0.3s; }
.rk-unit:nth-of-type(5) .rk-led-act { animation-duration: 1.5s; animation-delay: 0.8s; }
.rk-unit:nth-of-type(6) .rk-led-act { animation-duration: 2.6s; animation-delay: 0.4s; }

/* Infrastructure head unit: brand label and caption, not a selectable service */
.rk-unit-core {
  cursor: default;
}

.rk-label-core {
  font-size: 0.46px;
  font-weight: 800;
  letter-spacing: 0.02px;
}

.rk-caption {
  fill: #6b6e75;
  font: 700 0.24px var(--mono);
  letter-spacing: 0.05px;
}

.rk-slot {
  fill: #0a0a0a;
}

.rk-unit.is-active .rk-led-act,
.rk-unit.is-active .rk-led-act2 {
  animation-duration: 0.28s;
}

@keyframes rk-blink {
  0% { opacity: 1; }
  100% { opacity: 0.15; }
}

/* Packets travel up the data bus */
.rk-packet-1 { animation: rk-packet 2.6s linear infinite; }
.rk-packet-2 { animation: rk-packet 2.6s linear 0.87s infinite; }
.rk-packet-3 { animation: rk-packet 2.6s linear 1.74s infinite; }

@keyframes rk-packet {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-168px); }
}

/* Service switch */
.sh-switch {
  display: inline-flex;
  gap: 2px;
  margin-top: 1.25rem;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: var(--white);
}

.sh-switch-btn {
  position: relative;
  height: 2.1rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sh-switch-btn:hover {
  color: var(--ink);
}

.sh-switch-btn[aria-pressed="true"] {
  background: var(--color-kumo-contrast);
  color: var(--text-color-kumo-inverse);
}

/* ─── Sections ──────────────────────────────────────────────────────────── */

.sh-section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.sh-section-alt {
  background: var(--white);
}

.sh-head {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.sh-head-split {
  display: flex;
  max-width: none;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.sh-head-split .sh-sub {
  max-width: 26rem;
}

.sh-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sh-h2 {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sh-sub {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sh-empty {
  padding: 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--muted);
}

/* Services */
.sh-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sh-svc {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}

.sh-svc:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.sh-svc-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 8px;
  background: var(--color-kumo-contrast);
  color: var(--text-color-kumo-inverse);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.sh-svc-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sh-svc:hover .sh-svc-icon {
  background: var(--accent);
}

.sh-svc-name {
  margin-top: 0.4rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.sh-svc-desc {
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sh-svc-price {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Domains */
.sh-domain-grid,
.sh-ai-grid,
.sh-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 4rem;
}

/* Domain search: Kumo input and button side by side */
.sh-domain-form {
  display: flex;
  max-width: 30rem;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.sh-domain-form input {
  min-width: 0;
  flex: 1;
}

.sh-tlds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-tlds li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.15s ease;
}

.sh-tlds li:hover {
  border-color: var(--accent-line);
}

.sh-tlds b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.125rem;
}

.sh-tlds span {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sh-tlds small {
  color: var(--muted);
  font-weight: 500;
}

.sh-tlds em {
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
}

/* AI API */
.sh-code {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid #1f2126;
  border-radius: 10px;
  background: var(--console);
}

.sh-code-tabs {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.sh-code-tab,
.sh-code-copy {
  height: 1.9rem;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 50px;
  background: transparent;
  color: rgb(255 255 255 / 0.55);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.sh-code-tab[aria-selected="true"] {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

.sh-code-copy {
  margin-left: auto;
}

.sh-code-copy:hover,
.sh-code-tab:hover {
  color: #fff;
}

.sh-code-pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  color: rgb(255 255 255 / 0.85);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* Narrow screens: long code lines wrap like a terminal, filling each row to the edge of the
   block (so indentation never breaks off on its own); the copied text keeps the original lines */
@media (max-width: 639px) {
  .sh-code-pre {
    padding: 1rem;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-all;
  }
}

.sh-models {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.sh-model {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.sh-model-head {
  border-top: 0;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sh-model > :not(:first-child) {
  text-align: right;
}

.sh-model-name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-models-note {
  margin: 0;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Steps */
.sh-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  list-style: none;
}

.sh-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem 1.75rem;
  border-left: 1px solid var(--line);
}

.sh-step:first-child {
  border-left: 0;
}

.sh-step-n {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
}

.sh-step b {
  color: var(--ink);
  font-size: 1.125rem;
}

.sh-step > span:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* FAQ */
.sh-faq {
  border-top: 1px solid var(--line);
}

.sh-faq-item {
  border-bottom: 1px solid var(--line);
}

.sh-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.sh-faq-item summary::-webkit-details-marker {
  display: none;
}

.sh-faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.sh-faq-icon::before,
.sh-faq-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.sh-faq-icon::after {
  transform: rotate(90deg);
}

.sh-faq-item[open] .sh-faq-icon::after {
  transform: rotate(0deg);
}

.sh-faq-body {
  overflow: hidden;
}

.sh-faq-body p {
  margin: 0;
  padding: 0 2rem 1.25rem 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Final CTA */
.sh-final {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.sh-final-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}

.sh-final-mark .sh-mark-lg {
  width: clamp(150px, 20vw, 230px);
  height: auto;
}

/* Footer */
.sh-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.sh-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.sh-footer-tagline {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Contact list */
.sh-footer-contact {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.sh-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-2);
}

.sh-footer-contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sh-footer-contact a,
.sh-footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sh-footer-contact a:hover,
.sh-footer-col a:hover {
  color: var(--accent-text);
}

/* Link columns */
.sh-footer-title {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sh-footer-col ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.sh-footer-note {
  width: 100%;
  margin: 1.5rem 0 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .sh-nav-links {
    display: none;
  }
  .sh-nav-inner {
    display: flex;
    justify-content: space-between;
  }
  .sh-burger {
    display: inline-flex;
  }
  .sh-nav-menu {
    display: block;
  }
  .sh-hero-grid,
  .sh-domain-grid,
  .sh-ai-grid,
  .sh-faq-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .sh-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Stacked hero: the rack comes first, above the headline */
  .sh-hero-grid > .sh-stage {
    order: -1;
  }
}

@media (max-width: 760px) {
  .sh-wrap {
    padding: 0 1rem;
  }
  .sh-hero {
    padding: 6.5rem 0 3.5rem;
  }
  .sh-nav-shell {
    padding: 0.75rem 0.875rem 0;
  }
  .sh-section,
  .sh-final {
    padding: 4rem 0;
  }
  .sh-services,
  .sh-steps,
  .sh-tlds {
    grid-template-columns: minmax(0, 1fr);
  }
  .sh-step {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .sh-step:first-child {
    border-top: 0;
  }
  /* Label always on its own line above the price, whatever the price length */
  .sh-model [data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .sh-final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    justify-items: start;
  }
  .sh-facts > div {
    margin-right: 1rem;
    padding-right: 1rem;
  }
  .sh-switch-btn {
    padding: 0 0.75rem;
  }
}

@media (max-width: 639px) {
  /* Sign in and theme move into the menu card on phones */
  .sh-nav-actions > .sh-nav-chip,
  .sh-nav-actions > .sh-theme-btn {
    display: none;
  }
  .sh-nav-actions .sh-nav-cta {
    height: 2rem;
    padding: 0 0.85rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-page *,
  .sh-page *::before,
  .sh-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .sh-stage-rack {
    transform: none;
  }
  .rk-packet {
    display: none;
  }
}

/* Hero facts: one row of equal cells on wide screens */
.sh-facts {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  max-width: 34rem;
}

.sh-facts > div {
  min-width: 0;
  margin-right: 0;
  padding: 1rem 1rem 0 0;
}

.sh-facts > div + div {
  padding-left: 1rem;
}

.sh-facts dd {
  white-space: nowrap;
}

/* Phones: "mulai" sits on its own small line so each price fits its column */
@media (max-width: 760px) {
  .sh-facts > div {
    padding: 0.85rem 0.6rem 0 0;
  }
  .sh-facts > div + div {
    padding-left: 0.6rem;
  }
  .sh-facts dt {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }
  .sh-facts dd {
    font-size: 0.8125rem;
    line-height: 1.3;
    white-space: normal;
  }
  .sh-fact-from {
    display: block;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 500;
  }
  .sh-facts dd > span:not(.sh-fact-from) {
    font-size: 0.75rem;
  }
}

/* Very narrow screens: one fact per row */
@media (max-width: 340px) {
  .sh-facts {
    grid-auto-flow: row;
  }
  .sh-facts > div {
    border-right: 0;
  }
  .sh-facts > div + div {
    padding-left: 0;
  }
}

/* Rack in dark mode: lighter blade surfaces, as in server-host-logo-dark.svg */
[data-mode="dark"] .rk-top { fill: #32363e; }
[data-mode="dark"] .rk-left { fill: #23262c; }
[data-mode="dark"] .rk-right { fill: #1b1d22; }

/* Revealed elements keep their own colour transitions (the shared reveal rule
   in app.css only lists opacity and transform) */
html.js .sh-page [data-reveal=""] {
  transition: opacity 0.6s ease, transform 0.5s var(--ease), border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

/* Navbar mark tile stays white in dark mode, so the mark keeps its light colours */
[data-mode="dark"] .sh-brand-tile {
  border-color: rgb(255 255 255 / 0.35);
  background: #fff;
}

[data-mode="dark"] .sh-brand-tile .sh-s-deck-lo { fill: #1f2226; }
[data-mode="dark"] .sh-brand-tile .sh-s-deck-hi { fill: #0f1012; }
[data-mode="dark"] .sh-brand-tile .sh-s-bevel { fill: #3a3e45; }
[data-mode="dark"] .sh-brand-tile .sh-s-wall { fill: #0a0a0a; }
[data-mode="dark"] .sh-brand-tile .sh-s-side { fill: #2b2e33; }

.sh-brand-tile .sh-brand-status {
  box-shadow: 0 0 0 2px #fff;
}

/* ─── Unofficial Copy Notice ────────────────────────────────────────────── */

.sh-unofficial-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #b91c1c;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.sh-unofficial-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A copy keeps no working demo */
.sh-unofficial .sh-stage {
  opacity: 0.35;
  filter: grayscale(1);
  pointer-events: none;
}

/* ─── Hero Rack Figure: power toggle per unit ───────────────────────────── */

.sh-rackfig {
  width: min(100%, 540px);
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

/* The rack figure never carries a CSS transform and does not follow the pointer,
   so the SVG is always drawn as sharp vectors */
/* A copy on another host: plain grey drawing, nothing to click */
.sh-rackfig.is-copy .rk {
  filter: grayscale(1);
  opacity: 0.35;
  pointer-events: none;
}

.sh-rackfig.is-copy .rk-led { animation: none; }

.sh-rackfig .sh-stage-rack {
  width: 100%;
  transform: none;
  will-change: auto;
}

.sh-rackfig .rk:focus {
  outline: none;
}

.sh-rackfig .rk:focus-visible {
  outline: 1px dashed var(--line-2);
  outline-offset: 6px;
  border-radius: 8px;
}

/* Status screen on the head unit */
.rk-scr {
  fill: #5b5e66;
  font: 700 0.17px var(--mono);
  letter-spacing: 0.01px;
  transition: fill 0.3s;
}

.rk-bar-track { fill: #26282d; }

.rk-bar {
  fill: var(--accent);
  transition: width 0.4s;
}

.sh-rackfig.is-on .rk-scr { fill: #8fb8ff; }

/* The live rack replaces the looping packets with pulses per unit */
.sh-rackfig.is-live .rk-packet { display: none; }

/* Usage bars inside the drive bays: they swing with the unit load while it runs */
.rk-bay-bar {
  fill: var(--accent);
  transition: width 0.5s ease-out;
}

/* Power button on each service unit: grey when off, accent when on */
.rk-pbtn-base { fill: #0a0a0a; }

.rk-pbtn-face {
  fill: #e7e7ea;
  stroke: #0a0a0a;
  stroke-width: 0.03;
  transition: fill 0.25s;
}

.rk-pbtn-glyph {
  fill: none;
  stroke: #0a0a0a;
  stroke-width: 0.035;
  stroke-linecap: round;
  transition: stroke 0.25s;
}

.rk-pbtn-cap { transition: transform 60ms ease-out; }
.rk-pbtn.is-down .rk-pbtn-cap { transform: translate(0.03px, 0.04px); }
.rk-pbtn.is-on .rk-pbtn-face { fill: var(--accent); stroke: #0a3d99; }
.rk-pbtn.is-on .rk-pbtn-glyph { stroke: #fff; }
[data-mode="dark"] .rk-pbtn.is-on .rk-pbtn-face {
  fill: #3b8bff;
  filter: drop-shadow(0 0 0.06px #5aa2ff);
}

/* Patch cables from each unit to the head unit, hanging in front of the rack */
.rk-cables { pointer-events: none; }

.rk-cable {
  fill: none;
  stroke: #8e9397;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s;
}

.rk-cable.is-hot { stroke: var(--accent); }
[data-mode="dark"] .rk-cable { stroke: #4b5058; }
[data-mode="dark"] .rk-cable.is-hot {
  stroke: #5aa2ff;
  filter: drop-shadow(0 0 2px #2f7dff);
}

.rk-cable-pulse {
  fill: none;
  stroke: #9cc4ff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 70 1200;
  stroke-dashoffset: 70;
  opacity: 0;
}

.rk-cable-pulse.is-go { animation: rk-cable-flow 0.6s linear; }
[data-mode="dark"] .rk-cable-pulse { filter: drop-shadow(0 0 3px #5aa2ff); }

@keyframes rk-cable-flow {
  0% { stroke-dashoffset: 70; opacity: 1; }
  90% { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}

.rk-port {
  fill: #d4d6da;
  stroke: #0a0a0a;
  stroke-width: 0.02;
  transition: fill 0.25s;
}

.rk-port.is-hot { stroke: var(--accent); }

.rk-port.is-rx {
  fill: var(--accent);
  transition: none;
}

/* Unit power states: a stopped unit goes grey, a running one blinks */
.sh-rackfig .rk-unit.is-off .rk-led {
  fill: #9ca3af;
  animation: none;
}

.sh-rackfig .rk-unit.is-off .rk-panel { fill: #dcdde0; }
.sh-rackfig .rk-unit.is-off .rk-label { fill: #6b6e75; }

/* Pressing a unit nudges it out and lights its edge for a moment */
.sh-rackfig .rk-unit.is-press .rk-slide { transform: translate(-12px, 7px); }
.sh-rackfig .rk-unit.is-press.is-on .rk-glow { opacity: 1; }
.sh-rackfig .rk-glow { stroke-linecap: butt; }

@media (prefers-reduced-motion: reduce) {
  .sh-rackfig .rk-unit.is-press .rk-slide { transform: none; }
  .rk-scr,
  .rk-bar,
  .rk-cable,
  .rk-port,
  .rk-pbtn-face,
  .rk-pbtn-glyph,
  .rk-pbtn-cap,
  .rk-bay-bar { transition: none; }
  .rk-cable-pulse.is-go { animation: none; }
}

/* ─── VPS Selector: Provider, Region, Plans ─────────────────────────────── */

.sh-vps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
}

@media (max-width: 639px) {
  .sh-vps {
    padding: 1rem;
  }
}

.sh-vps-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Shared selectable card */
.sh-provider,
.sh-region {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.sh-provider:hover,
.sh-region:hover {
  border-color: var(--accent-line);
}

.sh-provider[aria-checked="true"],
.sh-region[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.sh-provider:focus-visible,
.sh-region:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Provider cards */
.sh-providers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.sh-provider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
}

.sh-provider-logo {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sh-provider-logo .vo-logo {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.sh-mark-provider {
  width: 20px;
  height: 26px;
}

/* The mark sits on a white tile, so it keeps its light colours in dark mode */
[data-mode="dark"] .sh-provider-logo .sh-s-deck-lo { fill: #1f2226; }
[data-mode="dark"] .sh-provider-logo .sh-s-deck-hi { fill: #0f1012; }
[data-mode="dark"] .sh-provider-logo .sh-s-bevel { fill: #3a3e45; }
[data-mode="dark"] .sh-provider-logo .sh-s-wall { fill: #0a0a0a; }
[data-mode="dark"] .sh-provider-logo .sh-s-side { fill: #2b2e33; }

.sh-provider-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.sh-provider-name {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.sh-provider-sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Region cards */
.sh-vps-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sh-vps-panel[hidden],
.sh-vplans[hidden] {
  display: none;
}

.sh-vps-panel.is-entering,
.sh-vplans.is-entering {
  animation: sh-panel-in 0.35s var(--ease);
}

@keyframes sh-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.sh-regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sh-region {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
}

.sh-region-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sh-region-code {
  display: grid;
  min-width: 1.85rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sh-region-name {
  flex: 1;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.sh-region-stock {
  padding: 0.1rem 0.55rem;
  border: 1px solid #fecaca;
  border-radius: 9999px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.sh-region-desc {
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.sh-region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sh-region-tags span {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 500;
}

/* Plan table */
.sh-vplans {
  display: flex;
  flex-direction: column;
}

.sh-vplan {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1fr) minmax(7.5rem, auto);
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.sh-vplan-head {
  padding: 0.5rem 0 0.65rem;
  border-bottom: 1px dashed var(--line-2);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sh-vplan-price {
  text-align: right;
}

.sh-vplan:not(.sh-vplan-head) .sh-vplan-price {
  color: var(--ink);
}

.sh-vplan-act {
  display: flex;
  justify-content: flex-end;
}

.sh-vplan-btn,
.sh-vplan-na {
  display: inline-flex;
  height: 1.85rem;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sh-vplan-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sh-vplan-btn:hover {
  border-color: var(--accent-h);
  background: var(--accent-h);
}

.sh-vplan-na {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

[data-mode="dark"] .sh-region-stock,
[data-mode="dark"] .sh-vplan-na {
  border-color: rgb(239 68 68 / 0.35);
  background: rgb(239 68 68 / 0.12);
  color: #fca5a5;
}

.sh-vplan.is-off {
  color: var(--muted);
}

@media (max-width: 860px) {
  .sh-providers,
  .sh-regions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .sh-vplan-head {
    display: none;
  }
  .sh-vplan {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    padding: 0.9rem 0;
  }
  .sh-vplan [data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .sh-vplan-price {
    align-self: end;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
  }
  .sh-vplan-act {
    align-self: end;
  }
}

/* ─── Daily API Pass ────────────────────────────────────────────────────── */

/* Duration cards */
.sh-pass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.sh-pass {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}

.sh-pass:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.sh-pass.is-best {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.sh-pass-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
}

/* Duration stays on one line; the badge wraps below it on narrow cards */
.sh-pass-days {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Status badge on card */
.sh-pass-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Card out of stock: still listed, muted */
.sh-pass.is-soldout {
  background: var(--paper);
}

.sh-pass.is-soldout:hover {
  border-color: var(--line);
  transform: none;
}

.sh-pass.is-soldout .sh-pass-price,
.sh-pass.is-soldout .sh-pass-per {
  opacity: 0.5;
}

.sh-pass-badge.is-soldout {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
}

.sh-pass-price {
  margin-top: 0.5rem;
  white-space: nowrap;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sh-pass-per {
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.sh-pass-cta {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.sh-pass-cta span {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.35s var(--ease);
}

.sh-pass:hover .sh-pass-cta span {
  transform: translateX(3px);
}

/* Perks and model list */
.sh-pass-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.sh-pass-perks {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.sh-pass-perks li {
  position: relative;
  padding-left: 1.6rem;
}

.sh-pass-perks li::before {
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  background: var(--ok);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sh-pass-models-label {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sh-pass-models ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-pass-models li {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.sh-pass-models li.is-more {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
}

.sh-pass-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Pass grid columns follow the number of plans (class set in harian.php) */
@media (min-width: 861px) {
  .sh-pass-cols-1 { grid-template-columns: minmax(0, 1fr); }
  .sh-pass-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-pass-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-pass-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tablet: four columns fold into two; three stay three only while the price fits on one line */
@media (min-width: 521px) and (max-width: 860px) {
  .sh-pass-cols-2,
  .sh-pass-cols-3,
  .sh-pass-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 700px) and (max-width: 860px) {
  .sh-pass-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .sh-pass-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .sh-pass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .sh-pass {
    padding: 1.1rem;
  }

  .sh-pass-top {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
}

/* Footer columns on small screens */
@media (max-width: 760px) {
  .sh-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
  }

  .sh-footer-brand {
    grid-column: 1 / -1;
  }
}

/* ─── Service Pages ─────────────────────────────────────────────────────── */

/* Service grid sized to the number of cards on wide screens */
@media (min-width: 1024px) {
  .sh-services-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sh-services-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Current page in the navbar */
.sh-nav-links a[aria-current="page"] {
  background: rgb(0 0 0 / 0.05);
  color: var(--ink);
}

[data-mode="dark"] .sh-nav-links a[aria-current="page"] {
  background: rgb(255 255 255 / 0.1);
}

.sh-nav-menu-card a[aria-current="page"] {
  color: var(--accent-text);
}

/* Page hero */
.sh-page-hero {
  padding: 9rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.sh-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
}

.sh-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.sh-crumbs a:hover {
  color: var(--ink);
}

.sh-crumbs li + li::before {
  margin-right: 0.4rem;
  content: "/";
  opacity: 0.5;
}

.sh-page-hero .sh-h1 {
  max-width: 48rem;
}

.sh-page-hero .sh-lead {
  max-width: 40rem;
}

.sh-page-hero .sh-facts {
  margin-top: 2.5rem;
}

/* Feature grid */
.sh-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.sh-feature {
  padding: 1.5rem;
  background: var(--white);
}

.sh-feature-name {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.sh-feature-desc {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sh-features-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Notice when an offer is not on sale */
.sh-notice {
  padding: 2rem;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.sh-notice a {
  color: var(--accent-text);
}

@media (max-width: 1023px) {
  .sh-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sh-page-hero {
    padding: 7rem 0 3rem;
  }

  .sh-features,
  .sh-features-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Legal Pages ───────────────────────────────────────────────────────── */

.sh-legal-hero {
  padding-bottom: 3rem;
}

.sh-legal-updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.sh-legal-section {
  padding-top: 3.5rem;
}

.sh-legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  align-items: start;
  gap: 4rem;
}

/* Section index */
.sh-legal-toc {
  position: sticky;
  top: 6.5rem;
}

.sh-legal-toc ol {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.sh-legal-toc li {
  counter-increment: toc;
}

.sh-legal-toc ol a {
  display: flex;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0 6px 6px 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.sh-legal-toc ol a::before {
  /* Number in its own column so wrapped titles align with the first word */
  flex: none;
  min-width: 1.25rem;
  color: var(--faint);
  content: counter(toc) ".";
  font-variant-numeric: tabular-nums;
}

.sh-legal-toc ol a:hover {
  background: var(--linen);
  color: var(--ink);
}

/* Sections already read, and the one at the reading position */
.sh-legal-toc ol a.is-read {
  color: var(--ink-2);
}

.sh-legal-toc ol a.is-active {
  border-left-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-text);
  font-weight: 600;
}

.sh-legal-toc ol a.is-active::before {
  color: var(--accent-text);
}

.sh-legal-docs {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.sh-legal-docs a {
  color: var(--ink-2);
  font-size: 0.8125rem;
  text-decoration: none;
}

.sh-legal-docs a:hover,
.sh-legal-docs a[aria-current="page"] {
  color: var(--accent-text);
}

/* Document text */
.sh-legal {
  max-width: 46rem;
  color: var(--ink-2);
  font-size: 0.975rem;
  line-height: 1.75;
}

.sh-legal-intro {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.0625rem;
}

.sh-legal-block {
  margin-bottom: 1rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  scroll-margin-top: 6rem;
}

.sh-legal-block > :last-child {
  margin-bottom: 0;
}

.sh-legal-block h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sh-legal-n {
  display: grid;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sh-legal-block h3 {
  margin: 1.25rem 0 0.5rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.sh-legal-block p {
  margin: 0 0 0.85rem;
}

.sh-legal-block ul {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.sh-legal-block li::marker {
  color: var(--faint);
}

/* Highlighted note */
.sh-legal-note {
  margin: 0.5rem 0 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: var(--accent-tint);
}

.sh-legal-note-label {
  margin: 0 0 0.5rem !important;
  color: var(--ink);
  font-weight: 700;
}

.sh-legal-note ul {
  margin-bottom: 0;
}

.sh-legal-contact {
  margin-top: 1rem;
  padding: 1.25rem 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.9375rem;
}

.sh-legal-contact p {
  margin: 0;
}

.sh-legal-contact a {
  color: var(--accent-text);
}

@media (min-width: 761px) and (max-width: 1023px) {
  .sh-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sh-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .sh-legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .sh-legal-block,
  .sh-legal-contact {
    padding: 1.25rem;
  }

  .sh-legal-toc {
    position: static;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
  }
}

/* ─── Service Scenes ────────────────────────────────────────────────────── */

/* Hero layout: copy on the left, interactive scene on the right */
.sh-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 3rem;
}

.sv-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The scene never carries a CSS transform and does not follow the pointer,
   so it is always drawn as sharp vectors */
.sv-art {
  width: min(100%, 440px);
}

.sv-controls {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.sv-readout {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: center;
}

.sv-readout-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
}

/* Shared item motion */
.sv-item {
  cursor: pointer;
}

.sv-lift {
  transition: transform 0.55s var(--ease);
}

/* Domain plates */
.sv-plate-top { fill: #2b2d31; transition: fill 0.35s ease; }
.sv-plate-left { fill: #111214; }
.sv-plate-right { fill: #050505; }
.sv-plate-label { fill: #a1a4ab; font: 600 0.28px var(--mono); }
.sv-plate-tld { fill: #f4f4f5; font-weight: 800; }
.sv-link { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; }
.sv-pkt { fill: var(--accent); opacity: 0; }

.sv-plate:nth-of-type(odd) .sv-lift { animation: sv-bob 4.2s ease-in-out infinite; }
.sv-plate:nth-of-type(even) .sv-lift { animation: sv-bob 4.2s ease-in-out 1.4s infinite; }

.sv-plate.is-active .sv-lift { animation: none; transform: translateY(-8px); }
.sv-plate.is-active .sv-plate-top { fill: var(--accent); }
.sv-plate.is-active .sv-plate-label { fill: rgb(255 255 255 / 0.75); }
.sv-plate.is-active .sv-plate-tld { fill: #fff; }
.sv-plate.is-active .sv-link { stroke: var(--accent); }
.sv-plate.is-active .sv-pkt-0 { animation: sv-drop-0 1.4s linear infinite; }
.sv-plate.is-active .sv-pkt-1 { animation: sv-drop-1 1.4s linear infinite; }
.sv-plate.is-active .sv-pkt-2 { animation: sv-drop-2 1.4s linear infinite; }

@keyframes sv-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes sv-drop-0 { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(49.5px); } }
@keyframes sv-drop-1 { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(36px); } }
@keyframes sv-drop-2 { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(22.5px); } }

/* Daily pass tiles: rise one after another for the chosen duration */
.sv-tile-top { fill: #3a3d44; transition: fill 0.35s ease; }
.sv-tile-left { fill: #16171a; }
.sv-tile-right { fill: #0a0a0a; }
.sv-tile-n { fill: #a1a4ab; font: 800 0.42px var(--mono); }
.sv-tile .sv-lift { transition-duration: 0.45s; }

.sv-tile.is-active .sv-lift { transform: translateY(-10px); }
.sv-tile.is-active .sv-tile-top { fill: var(--accent); }
.sv-tile.is-active .sv-tile-n { fill: #fff; }
.sv-tile:nth-of-type(3) .sv-lift, .sv-tile:nth-of-type(3) .sv-tile-top { transition-delay: 0.06s; }
.sv-tile:nth-of-type(4) .sv-lift, .sv-tile:nth-of-type(4) .sv-tile-top { transition-delay: 0.12s; }
.sv-tile:nth-of-type(5) .sv-lift, .sv-tile:nth-of-type(5) .sv-tile-top { transition-delay: 0.18s; }
.sv-tile:nth-of-type(6) .sv-lift, .sv-tile:nth-of-type(6) .sv-tile-top { transition-delay: 0.24s; }
.sv-tile:nth-of-type(7) .sv-lift, .sv-tile:nth-of-type(7) .sv-tile-top { transition-delay: 0.3s; }
.sv-tile:nth-of-type(8) .sv-lift, .sv-tile:nth-of-type(8) .sv-tile-top { transition-delay: 0.36s; }
.sv-tile:nth-of-type(9) .sv-lift, .sv-tile:nth-of-type(9) .sv-tile-top { transition-delay: 0.42s; }

/* Hosting browser window */
.sv-screen-top { fill: #2b2d31; }
.sv-screen-left { fill: #111214; }
.sv-screen-right { fill: #050505; }
.sv-win { fill: #fff; }
.sv-chrome { fill: #e7e7ea; }
.sv-dot { fill: #b4b6bc; }
.sv-url { fill: #fff; }
.sv-url-text { fill: #6b6e75; font: 600 0.19px var(--mono); }
.sv-block { fill: #eef0f3; transition: fill 0.45s ease; }
.sv-bar { fill: #eef0f3; }
.sv-bar-fill { fill: var(--accent); transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform 1s var(--ease), fill 0.3s ease; }
.sv-screen-wrap { animation: sv-bob 5s ease-in-out infinite; }

/* Hosting unit bay bars: idle before a deploy, busy while uploading, settling once online */
.sv-host-bar {
  transform: scaleX(0.3);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.5s ease-out;
}

[data-sv-phase="1"] .sv-host-bar { animation: sv-host-busy 0.9s ease-in-out infinite alternate; }
[data-sv-phase="1"] .sv-host-bar[x="3.43"] { animation-delay: -0.3s; }
[data-sv-phase="1"] .sv-host-bar[x="4.05"] { animation-delay: -0.6s; }
[data-sv-phase="2"] .sv-host-bar { transform: scaleX(0.85); }
[data-sv-phase="3"] .sv-host-bar { transform: scaleX(0.6); }
[data-sv-phase="4"] .sv-host-bar { transform: scaleX(0.4); }

@keyframes sv-host-busy {
  from { transform: scaleX(0.45); }
  to { transform: scaleX(1); }
}

/* Pay as you go meter: tokens count up per simulated request and the credit goes down */
.ai-screen { animation: sv-bob 5s ease-in-out infinite; }
.ai-title { fill: #6b6e75; font: 600 0.17px var(--mono); }
.ai-model { fill: #0a0a0a; font: 700 0.22px var(--mono); }
.ai-key { fill: #6b6e75; font: 600 0.18px var(--mono); }
.ai-val { fill: #0a0a0a; font: 700 0.18px var(--mono); }
.ai-credit { fill: var(--accent); font-size: 0.22px; }
.ai-rule { fill: #e4e4e7; }
.ai-track { fill: #e7e7ea; }
.ai-fill {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: left center;
}
.ai-bar {
  transform: scaleX(0.35);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.4s ease-out;
}
.is-streaming .ai-bar { animation: sv-host-busy 0.5s ease-in-out infinite alternate; }
.is-streaming .ai-bar:nth-of-type(2n) { animation-delay: -0.25s; }

/* Token pack tank: the quota counts up when a package is added and stacks with what is left */
.tk-quota { fill: #0a0a0a; font: 800 0.3px var(--mono); }
.tk-unit { fill: #6b6e75; font: 600 0.18px var(--mono); }
.tk-ok { fill: var(--ok); }
.tk-bar {
  transform: scaleX(0.12);
  transform-box: fill-box;
  transform-origin: left center;
}
.is-streaming .tk-bar { animation: mg-pulse 0.5s ease-in-out infinite alternate; }

/* Premium order screen: the delivery steps tick off one by one for the chosen app */
.po-price { fill: var(--accent); font: 800 0.24px var(--mono); }
.po-dot { fill: #e7e7ea; stroke: #c9cbd0; stroke-width: 0.02; transition: fill 0.3s ease; }
.po-tick { fill: none; stroke: #fff; stroke-width: 0.035; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.2s ease; }
.po-step { fill: #9a9da4; font: 600 0.17px var(--mono); transition: fill 0.3s ease; }
.po-row.is-active .po-dot { fill: var(--accent); stroke: none; animation: mg-pulse 0.7s ease-in-out infinite alternate; }
.po-row.is-active .po-step { fill: #0a0a0a; }
.po-row.is-done .po-dot { fill: var(--ok); stroke: none; }
.po-row.is-done .po-tick { opacity: 1; }
.po-row.is-done .po-step { fill: #3c3e44; }
.po-bar {
  transform: scaleX(0.12);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.5s ease-out;
}

/* Daily pass unit bay bars: they fill with the chosen duration (7 days or more is full) */
.sv-day-bar {
  transform: scaleX(1);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.5s ease-out;
}
[data-sv-active="1"] .sv-day-bar { transform: scaleX(0.18); }
[data-sv-active="2"] .sv-day-bar { transform: scaleX(0.3); }
[data-sv-active="3"] .sv-day-bar { transform: scaleX(0.43); }
[data-sv-active="4"] .sv-day-bar { transform: scaleX(0.57); }
[data-sv-active="5"] .sv-day-bar { transform: scaleX(0.71); }
[data-sv-active="6"] .sv-day-bar { transform: scaleX(0.86); }

/* DNS unit bay bars: each bay pairs with one extension plate and pulses while it is selected */
.sv-dns-bar {
  transform: scaleX(0.3);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.5s ease-out;
}

.sv-domain-scene:has(.sv-plate[data-sv-item="0"].is-active) .sv-dns-bar[data-bay="0"],
.sv-domain-scene:has(.sv-plate[data-sv-item="1"].is-active) .sv-dns-bar[data-bay="1"],
.sv-domain-scene:has(.sv-plate[data-sv-item="2"].is-active) .sv-dns-bar[data-bay="2"] {
  animation: sv-host-busy 0.9s ease-in-out infinite alternate;
}

[data-sv-phase="1"] .sv-bar-fill { transform: scaleX(0.35); }
[data-sv-phase="2"] .sv-bar-fill { transform: scaleX(0.7); }
[data-sv-phase="3"] .sv-bar-fill { transform: scaleX(0.9); }
[data-sv-phase="4"] .sv-bar-fill { transform: scaleX(1); fill: var(--ok); }
[data-sv-phase="2"] .sv-block[data-sv-step="0"],
[data-sv-phase="3"] .sv-block[data-sv-step="0"],
[data-sv-phase="4"] .sv-block[data-sv-step="0"] { fill: #1f2126; }
[data-sv-phase="3"] .sv-block[data-sv-step="1"],
[data-sv-phase="4"] .sv-block[data-sv-step="1"] { fill: var(--accent-line); }
[data-sv-phase="4"] .sv-url-text { fill: var(--ok); }

/* Dark mode surfaces follow the landing rack */
[data-mode="dark"] .sv-plate-top,
[data-mode="dark"] .sv-screen-top { fill: #32363e; }
[data-mode="dark"] .sv-plate-left,
[data-mode="dark"] .sv-screen-left,
[data-mode="dark"] .sv-tile-left { fill: #23262c; }
[data-mode="dark"] .sv-plate-right,
[data-mode="dark"] .sv-screen-right,
[data-mode="dark"] .sv-tile-right { fill: #1b1d22; }
[data-mode="dark"] .sv-tile-top { fill: #444851; }

@media (max-width: 1023px) {
  .sh-page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Stacked service and application page heroes (VPS, hosting, domain, managed, daily pass, pay as you go, uncensored, premium, n8n and the other apps): the picture comes first, above the headline */
  .sh-page-hero-grid > .sh-app-art,
  .sh-page-hero-grid > .sv-rack-stage,
  .sh-page-hero-grid > .sv-stage[data-sv="hosting"],
  .sh-page-hero-grid > .sv-stage[data-sv="domain"],
  .sh-page-hero-grid > .sv-stage[data-sv="managed"],
  .sh-page-hero-grid > .sv-stage[data-sv="api-harian"],
  .sh-page-hero-grid > .sv-stage[data-sv="api-ai"],
  .sh-page-hero-grid > .sv-stage[data-sv="uncensored"],
  .sh-page-hero-grid > .sv-stage[data-sv="premium"] {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sv-host-bar { transition: none; }
  [data-sv-phase="1"] .sv-host-bar { animation: none; transform: scaleX(0.9); }
  .sv-dns-bar { transition: none; animation: none !important; }
  .sv-day-bar { transition: none; }
  .ai-screen,
  .is-streaming .ai-bar,
  .is-streaming .tk-bar,
  .po-row.is-active .po-dot { animation: none; }
  .po-bar { transition: none; }
  .sv-domain-scene:has(.sv-plate[data-sv-item="0"].is-active) .sv-dns-bar[data-bay="0"],
  .sv-domain-scene:has(.sv-plate[data-sv-item="1"].is-active) .sv-dns-bar[data-bay="1"],
  .sv-domain-scene:has(.sv-plate[data-sv-item="2"].is-active) .sv-dns-bar[data-bay="2"] { transform: scaleX(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .sv-lift,
  .sv-screen-wrap,
  .sv-pkt,
  .sv-bar-fill {
    animation: none !important;
    transition: none !important;
  }
}

/* Language toggle in the public navbar; moves into the menu card on phones */
@media (max-width: 639px) {
  .sh-nav-actions > .lang-toggle-nav {
    display: none;
  }
}

/* Navbar preferences sit before the account actions, sized like the other controls */
.sh-nav-actions > .lang-toggle-nav {
  box-sizing: border-box;
  height: 2rem;
}

.sh-nav-actions > .lang-toggle-nav .lang-toggle-opt {
  height: 1.625rem;
}

.sh-nav-actions > .sh-theme-btn + .sh-nav-chip {
  margin-left: 0.35rem;
}

.sh-nav-actions > .sh-nav-chip,
.sh-nav-actions > .sh-nav-cta {
  flex: none;
  white-space: nowrap;
}

/* ─── Domain Hero Search ────────────────────────────────────────────────── */

.sh-hero-search {
  position: relative;
  display: flex;
  max-width: 36rem;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.4rem;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  background: var(--color-kumo-base);
  transition: border-color 0.15s ease;
}

.sh-hero-search:focus-within {
  border-color: var(--accent);
}

.sh-hero-search-icon {
  flex: none;
  margin-left: 0.85rem;
  color: var(--muted);
}

.sh-hero-search input {
  min-width: 0;
  flex: 1;
  height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
}

.sh-hero-search button {
  flex: none;
  border-radius: 9999px;
}

.sh-hero-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sh-hero-tlds li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--color-kumo-base);
  font-size: 0.8125rem;
}

.sh-hero-tlds b {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
}

.sh-hero-tlds span {
  color: var(--muted);
}

@media (max-width: 520px) {
  .sh-hero-search {
    flex-wrap: wrap;
    border-radius: 14px;
  }

  .sh-hero-search input {
    flex-basis: calc(100% - 3rem);
  }

  .sh-hero-search button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-hero-search {
    transition: none;
  }
}

/* Lead under the domain search: secondary to the form */
.sh-lead-after {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.sh-page-hero .sh-hero-search {
  margin-top: 1.5rem;
}

/* Domain check result (landing) */
.sh-domain-result {
  display: grid;
  gap: 0.6rem;
  max-width: 36rem;
  margin-top: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--color-kumo-base);
}

.sh-dr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.sh-dr-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.6rem;
}

.sh-dr-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-dr-status {
  flex: none;
  padding: 0.1rem 0.55rem;
  border-radius: 9999px;
  background: var(--linen);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

[data-state="available"] .sh-dr-status {
  background: color-mix(in srgb, var(--color-kumo-success) 12%, var(--color-kumo-base));
  color: var(--color-kumo-success);
}

[data-state="taken"] .sh-dr-status {
  background: color-mix(in srgb, var(--color-kumo-danger) 10%, var(--color-kumo-base));
  color: var(--color-kumo-danger);
}

.sh-dr-buy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-dr-pricebox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.sh-dr-price {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.sh-dr-renew {
  color: var(--muted);
  font-size: 0.72rem;
}

.sh-dr-btn {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.sh-dr-btn:hover {
  background: var(--accent-h);
}

.sh-dr-msg {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* One quiet line of alternatives */
.sh-dr-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.9rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

.sh-dr-suggest-label {
  color: var(--muted);
}

.sh-dr-alt {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.sh-dr-alt b {
  color: var(--accent-text);
  font-weight: 600;
}

.sh-dr-alt span {
  color: var(--muted);
}

.sh-dr-alt:hover b {
  text-decoration: underline;
}

/* Domain search: the pill shows focus, not the inner input */
.sh-hero-search input:focus,
.sh-hero-search input:focus-visible {
  outline: none;
  box-shadow: none;
}

.sh-hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Domain hero: lighter result card */
.sh-domain-result {
  border-color: var(--line);
}

.sh-dr-suggest {
  padding-top: 0;
  border-top: 0;
}

/* Domain prices on the service page: uniform tiles, full width */
.sh-tld-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-tld-grid li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.15s ease;
}

.sh-tld-grid li:hover {
  border-color: var(--accent-line);
}

.sh-tld-grid b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.05rem;
}

.sh-tld-price {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sh-tld-price small {
  color: var(--muted);
  font-weight: 500;
}

.sh-tld-grid em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

@media (max-width: 1023px) {
  .sh-tld-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .sh-tld-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-tld-grid li {
    transition: none;
  }
}

/* ─── Hosting Plans ─────────────────────────────────────────────────────── */

.sh-hgroup + .sh-hgroup {
  margin-top: 3rem;
}

.sh-hgroup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: 1rem;
}

.sh-hgroup-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sh-hgroup-loc {
  color: var(--muted);
  font-size: 0.875rem;
}

.sh-hplans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.sh-hplan {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.15s ease;
}

.sh-hplan:hover {
  border-color: var(--accent-line);
}

.sh-hplan-name {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.sh-hplan-price {
  margin: 0.35rem 0 0;
  color: var(--ink);
}

.sh-hplan-price b {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sh-hplan-price small {
  color: var(--muted);
  font-weight: 500;
}

.sh-hplan-alt {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.sh-hplan-save {
  color: var(--color-kumo-success);
  font-weight: 600;
}

.sh-hplan-specs {
  display: grid;
  flex: 1;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.sh-hplan-specs li {
  position: relative;
  padding-left: 1.3rem;
}

.sh-hplan-specs li::before {
  position: absolute;
  top: 0.32rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sh-hplan-btn {
  justify-content: center;
  border-radius: 9999px;
}

@media (max-width: 1023px) {
  .sh-hplans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .sh-hplans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── AI API: steps, model catalog, use cases ───────────────────────────── */

.sh-ai-steps {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.sh-ai-steps li {
  display: flex;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.sh-ai-steps b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.sh-ai-step-n {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.sh-aicat-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sh-aicat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sh-aicat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.sh-aicat-chip span {
  color: var(--muted);
  font-size: 0.75rem;
}

.sh-aicat-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.sh-aicat-chip[aria-pressed="true"] span {
  color: inherit;
  opacity: 0.7;
}

.sh-aicat-search input {
  width: 15rem;
  max-width: 100%;
  height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  outline: none;
}

.sh-aicat-search input:focus {
  border-color: var(--accent);
}

.sh-aicat-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.sh-aicat-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
}

.sh-aicat-row + .sh-aicat-row {
  border-top: 1px solid var(--line);
}

.sh-aicat-head {
  background: var(--linen);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sh-aicat-model {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.1rem;
}

.sh-aicat-model b {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.sh-aicat-model code {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-aicat-badge {
  margin-left: 0.3rem;
  padding: 0.05rem 0.45rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--color-kumo-success) 12%, var(--white));
  color: var(--color-kumo-success);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
}

.sh-aicat-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.sh-aicat-caps i {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--ink-2);
  font-size: 0.72rem;
  font-style: normal;
}

.sh-aicat-num {
  color: var(--ink);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sh-aicat-head .sh-aicat-num {
  color: var(--muted);
  font-size: 0.75rem;
}

.sh-aicat-empty {
  margin: 0;
  padding: 1.5rem;
  color: var(--muted);
  text-align: center;
}

.sh-uses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.sh-use {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.sh-use-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.sh-use-text {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sh-use-model {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.sh-use-model code {
  color: var(--accent-text);
  font-family: var(--mono);
}

@media (max-width: 1023px) {
  .sh-uses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .sh-aicat-head {
    display: none;
  }

  .sh-aicat-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
  }

  .sh-aicat-model,
  .sh-aicat-caps {
    grid-column: 1 / -1;
  }

  .sh-aicat-num {
    text-align: left;
  }

  .sh-aicat-num::before {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    content: attr(data-label);
  }
}

@media (max-width: 520px) {
  .sh-uses {
    grid-template-columns: minmax(0, 1fr);
  }

  .sh-aicat-search,
  .sh-aicat-search input {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh-hplan {
    transition: none;
  }
}

/* Elements toggled with the hidden attribute keep their layout display otherwise */
.sh-domain-result[hidden],
.sh-hero-tlds[hidden],
.sh-aicat-row[hidden],
.sh-aicat-empty[hidden] {
  display: none;
}

/* ─── Managed Service ───────────────────────────────────────────────────── */

/* Service cards grid with six entries */
@media (min-width: 761px) {
  .sh-services-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Steps with four columns */
.sh-steps-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) and (min-width: 761px) {
  .sh-steps-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sh-steps-4 .sh-step:nth-child(3) {
    border-left: 0;
  }
  .sh-steps-4 .sh-step:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}

/* Managed scene: MANAGED unit with a ticket screen; its power button boots the server or shuts it down */
.mg-screen { animation: sv-bob 5s ease-in-out infinite; }
.mg-glass { fill: #0a0a0a; }
.mg-display {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.4, 1), opacity 0.45s ease;
}
.mg-title { fill: #6b6e75; font: 600 0.17px var(--mono); }
.mg-dot { fill: #e7e7ea; stroke: #c9cbd0; stroke-width: 0.02; transition: fill 0.3s ease; }
.mg-tick { fill: none; stroke: #fff; stroke-width: 0.035; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.2s ease; }
.mg-step { fill: #9a9da4; font: 600 0.17px var(--mono); transition: fill 0.3s ease; }
.mg-time { fill: #b4b6bb; font: 500 0.15px var(--mono); text-anchor: end; opacity: 0; transition: opacity 0.3s ease; }

/* Running step pulses; finished steps (and every step without JavaScript) show a tick and a time */
.mg-row.is-active .mg-dot { fill: var(--accent); stroke: none; animation: mg-pulse 0.8s ease-in-out infinite alternate; }
.mg-row.is-active .mg-step { fill: #0a0a0a; }
.mg-row.is-done .mg-dot,
.sv-stage:not([data-sv-power-state]) .mg-dot { fill: var(--ok); stroke: none; }
.mg-row.is-done .mg-tick,
.sv-stage:not([data-sv-power-state]) .mg-tick { opacity: 1; }
.mg-row.is-done .mg-step,
.sv-stage:not([data-sv-power-state]) .mg-step { fill: #3c3e44; }
.mg-row.is-done .mg-time,
.sv-stage:not([data-sv-power-state]) .mg-time { opacity: 1; }

/* Drive bay bars fill with the finished steps and pulse while the server boots */
.mg-bar {
  transform: scaleX(var(--mg-fill, 1));
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.6s ease-out;
}
[data-sv-power-state="boot"] .mg-bar { animation: mg-pulse 0.9s ease-in-out infinite alternate; }

/* Power button on the unit works like the button below the scene */
.sv-stage[data-sv="managed"] .rk-pbtn { cursor: pointer; }

/* Switched off: LEDs dark, the screen collapses to a line and fades like a monitor turning off */
[data-sv-power-state="off"] .mg-scene .rk-led,
[data-sv-power-state="halt"] .mg-scene .rk-led-act,
[data-sv-power-state="halt"] .mg-scene .rk-led-act2 { fill: #3a3d44; animation: none; }
[data-sv-power-state="off"] .mg-display { transform: scale(1, 0.02); opacity: 0; }
[data-sv-power-state="off"] .mg-screen { animation-play-state: paused; }
/* Readout dot follows the power state, like the VPS scene: grey when off, amber while it changes */
[data-sv-power-state="off"] .sv-readout-dot { background: #9ca3af; }
[data-sv-power-state="boot"] .sv-readout-dot,
[data-sv-power-state="halt"] .sv-readout-dot { background: #f59e0b; }
.sv-stage.is-instant .mg-display,
.sv-stage.is-instant .mg-bar { transition: none; }

@keyframes mg-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-screen,
  .mg-row.is-active .mg-dot,
  [data-sv-power-state="boot"] .mg-bar { animation: none; }
  .mg-display,
  .mg-bar { transition: none; }
}

/* Offer and migration cards */
.mg-offers,
.mg-migrate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.mg-offer,
.mg-urgent {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.mg-urgent {
  border-color: var(--accent-line);
  background: var(--accent-tint);
}

.mg-urgent .sh-hplan-btn {
  align-self: flex-start;
  margin-top: auto;
}

.mg-scope {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mg-offer-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.mg-offer-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.mg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.mg-tags li {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.mg-offer-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.mg-offer-price {
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mg-link {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.mg-link:hover {
  text-decoration: underline;
}

/* Comparison table */
.mg-compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.mg-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.mg-compare th,
.mg-compare td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.mg-compare thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-compare tbody th {
  color: var(--ink);
  font-weight: 600;
}

.mg-compare td {
  color: var(--muted);
}

.mg-compare .mg-col-on {
  background: var(--accent-tint);
  color: var(--ink);
}

.mg-compare thead .mg-col-on {
  color: var(--accent-text);
}

.mg-compare tr:last-child th,
.mg-compare tr:last-child td {
  border-bottom: 0;
}

.mg-compare-focus th,
.mg-compare-focus td {
  font-weight: 700;
}

.mg-yes {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.5rem;
  background: var(--ok);
  vertical-align: -0.05rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Scale-out call to action under the packages */
.mg-scale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.mg-scale-title {
  margin: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.mg-scale-text {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (max-width: 1023px) {
  .mg-offers,
  .mg-migrate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .mg-offers,
  .mg-migrate {
    grid-template-columns: minmax(0, 1fr);
  }
  .mg-offer,
  .mg-urgent,
  .mg-scale {
    padding: 1.25rem;
  }
  .mg-compare table {
    font-size: 0.8125rem;
  }
  .mg-compare th,
  .mg-compare td {
    padding: 0.7rem 0.75rem;
  }
  .mg-yes {
    display: none;
  }
}

@media (max-width: 760px) {
  .sh-steps-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Public Announcements ──────────────────────────────────────────────── */
.sh-ann-wrap {
  max-width: 48rem;
}

.sh-ann-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-ann-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ann-c, var(--accent));
  border-radius: 0.75rem;
  background: var(--color-kumo-base);
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.sh-ann-link:hover {
  background: var(--linen);
}

.sh-ann-meta {
  color: var(--muted);
  font-size: 0.8125rem;
}

.sh-ann-sev {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--ann-c, var(--accent)) 10%, transparent);
  color: var(--ann-c, var(--accent));
  font-size: 0.75rem;
  font-weight: 600;
}

.sh-ann-title {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 600;
}

.sh-ann-excerpt {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sh-ann-empty,
.sh-ann-back {
  color: var(--muted);
}

.sh-ann-back {
  margin: 2.5rem 0 0;
}

.sh-ann-back a {
  color: var(--accent-text);
}

.sh-ann-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
}

.sh-ann-body table {
  width: 100%;
  border-collapse: collapse;
}

.sh-ann-body th,
.sh-ann-body td {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line-2);
  text-align: left;
}

.sh-ann-body blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--line-2);
  color: var(--muted);
}

/* ─── Public Blog ───────────────────────────────────────────────────────── */
.sh-blog-wrap {
  max-width: 46rem;
}

.sh-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--color-kumo-base);
  transition: border-color 150ms ease;
}

.sh-blog-card:hover {
  border-color: var(--accent);
}

.sh-blog-card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sh-blog-card-title a {
  color: var(--ink);
  text-decoration: none;
}

.sh-blog-card-title a:hover {
  color: var(--accent-text);
}

.sh-blog-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.sh-blog-title {
  margin-bottom: 1rem;
}

.sh-blog-excerpt {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sh-blog-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
}

.sh-blog-pages a {
  display: grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  color: var(--ink-2);
  text-decoration: none;
}

.sh-blog-pages a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

/* Article body */
.sh-blog-body {
  color: var(--ink-2);
  font-size: 1.0125rem;
  line-height: 1.8;
}

.sh-blog-body h2 {
  margin: 2.5rem 0 0.85rem;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.sh-blog-body h3 {
  margin: 1.75rem 0 0.6rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 650;
}

.sh-blog-body p,
.sh-blog-body ul,
.sh-blog-body ol {
  margin: 0 0 1.1rem;
}

.sh-blog-body ul,
.sh-blog-body ol {
  padding-left: 1.4rem;
}

.sh-blog-body ul {
  list-style: disc;
}

.sh-blog-body ol {
  list-style: decimal;
}

.sh-blog-body li {
  margin-bottom: 0.35rem;
  padding-left: 0.2rem;
}

.sh-blog-body li::marker {
  color: var(--muted);
}

.sh-blog-body a {
  color: var(--accent-text);
}

.sh-blog-body code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--linen);
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.sh-blog-body pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--linen);
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre;
}

.sh-blog-body pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  overflow-wrap: normal;
}

.sh-blog-body table {
  display: block;
  margin: 0 0 1.25rem;
  overflow-x: auto;
  font-size: 0.9375rem;
}

.sh-blog-body th {
  background: var(--linen);
  color: var(--ink);
}

/* Call to action and read next */
.sh-blog-cta {
  margin-top: 2.5rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.sh-blog-cta p {
  margin: 0 0 0.6rem;
  color: var(--ink-2);
}

.sh-blog-cta .sh-blog-cta-title {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
}

.sh-blog-cta-link {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.sh-blog-next {
  padding-top: 0;
}

.sh-blog-next-title {
  margin: 0 0 1rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ─── Public Help Center ────────────────────────────────────────────────── */
.sh-kb-search {
  display: block;
  max-width: 34rem;
  margin-top: 1.5rem;
}

.sh-kb-search input {
  width: 100%;
  height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--line-2);
  border-radius: 9999px;
  background: var(--color-kumo-base);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.sh-kb-search input:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  outline-offset: 1px;
}

.sh-kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.sh-kb-group {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--color-kumo-base);
  scroll-margin-top: 6rem;
}

.sh-kb-group[hidden],
.sh-kb-links li[hidden],
.sh-ann-empty[hidden] {
  display: none;
}

.sh-kb-group-title {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.sh-kb-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-kb-links a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-decoration: none;
}

.sh-kb-links a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.sh-kb-help {
  max-width: 46rem;
}

.sh-kb-more {
  margin-bottom: 1.5rem;
}

.sh-kb-ticket {
  margin: 0;
  color: var(--muted);
}

.sh-kb-ticket a {
  color: var(--accent-text);
}

.sh-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Navbar Dropdown Menus ─────────────────────────────────────────────── */

/* Trigger: same pill as the plain links, with a caret */
.sh-dd {
  position: relative;
}

.sh-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem 0.4rem 0.9rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sh-dd-btn svg {
  transition: transform 0.2s ease;
}

.sh-dd-btn:hover,
.sh-dd.is-open .sh-dd-btn,
.sh-dd-btn.is-current {
  background: rgb(0 0 0 / 0.04);
  color: var(--ink);
}

[data-mode="dark"] .sh-dd-btn:hover,
[data-mode="dark"] .sh-dd.is-open .sh-dd-btn,
[data-mode="dark"] .sh-dd-btn.is-current {
  background: rgb(255 255 255 / 0.08);
}

.sh-dd.is-open .sh-dd-btn svg {
  transform: rotate(180deg);
}

.sh-dd-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Panel: solid card under the trigger (a nested backdrop filter would not blur) */
.sh-dd-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  display: grid;
  width: max-content;
  min-width: 13rem;
  gap: 0.15rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--color-kumo-base);
  box-shadow: 0 16px 40px rgb(17 17 26 / 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

/* Hover bridge so the pointer can travel from the trigger to the panel */
.sh-dd-panel::before {
  position: absolute;
  top: -0.7rem;
  right: 0;
  left: 0;
  height: 0.7rem;
  content: "";
}

.sh-dd.is-open .sh-dd-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}

@media (hover: hover) and (pointer: fine) {
  .sh-dd:hover .sh-dd-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
  }

  .sh-dd:hover .sh-dd-btn svg {
    transform: rotate(180deg);
  }
}

/* Entry: icon tile, name, one-line text */
.sh-nav-links .sh-dd-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.65rem;
  border-radius: 0.65rem;
  color: var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
}

.sh-nav-links .sh-dd-item:hover,
.sh-nav-links .sh-dd-item:focus-visible,
.sh-nav-links .sh-dd-item[aria-current="page"] {
  background: rgb(0 0 0 / 0.04);
}

[data-mode="dark"] .sh-nav-links .sh-dd-item:hover,
[data-mode="dark"] .sh-nav-links .sh-dd-item:focus-visible,
[data-mode="dark"] .sh-nav-links .sh-dd-item[aria-current="page"] {
  background: rgb(255 255 255 / 0.06);
}

.sh-dd-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-kumo-contrast);
  color: var(--text-color-kumo-inverse);
  font-size: 0.8125rem;
  font-weight: 700;
}

.sh-dd-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* App logos sit on a light tile in both modes */
.sh-dd-icon:has(img) {
  border: 1px solid var(--line);
  background: #fff;
}

.sh-dd-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sh-dd-name {
  font-weight: 600;
  white-space: nowrap;
}

/* Mobile menu: group headings between the links */
.sh-nav-menu-head {
  margin: 0.6rem 0 0.1rem;
  padding: 0 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sh-nav-menu-head:first-child {
  margin-top: 0;
}

.sh-nav-menu {
  overflow-y: auto;
}

@media (prefers-reduced-motion: reduce) {
  .sh-dd-panel,
  .sh-dd-btn svg {
    transition: none;
  }
}

/* ─── Application Pages ─────────────────────────────────────────────────── */

/* Hero art: the app logo on a console-style card */
.sh-app-art {
  display: flex;
  justify-content: center;
}

.sh-app-card {
  width: min(100%, 380px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--color-kumo-base);
}

.sh-app-card-head {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.sh-app-card-head span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: var(--line);
}

.sh-app-card-body {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem 2.25rem;
}

.sh-app-logo {
  display: grid;
  width: 6rem;
  height: 6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fff;
  color: #111;
  font-size: 2rem;
  font-weight: 700;
}

.sh-app-logo img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.sh-app-name {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}

.sh-app-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.sh-app-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--text-color-kumo-success);
}

/* Application index hero: every app logo on the console card */
.sh-apps-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 1.75rem;
}

/* Three tiles per row; an incomplete last row is centred */
.sh-apps-tile {
  display: grid;
  flex: 0 0 calc((100% - 1.5rem) / 3);
  justify-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.sh-apps-logo {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.sh-apps-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Application index catalog: one card per app */
.sh-appx-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

/* Each card spans two tracks; a lone last card (or a last pair) moves to the middle */
.sh-appx-grid > .sh-appx { grid-column: span 2; }
.sh-appx-grid > .sh-appx:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
.sh-appx-grid > .sh-appx:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }

.sh-appx {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}

.sh-appx:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

.sh-appx-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-appx-logo {
  display: grid;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.sh-appx-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sh-appx-name {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.sh-appx-cat {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.sh-appx-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sh-appx-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.sh-appx-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sh-appx-list svg {
  flex: none;
  color: var(--text-color-kumo-success);
}

.sh-appx-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.sh-appx-price {
  color: var(--ink);
  font-weight: 600;
}

.sh-appx-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-text);
  font-weight: 600;
}

@media (max-width: 1023px) {
  .sh-appx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sh-appx-grid > .sh-appx,
  .sh-appx-grid > .sh-appx:nth-last-child(2):nth-child(3n+1) { grid-column: span 2; }
  .sh-appx-grid > .sh-appx:last-child:nth-child(3n+1) { grid-column: span 2; }
  .sh-appx-grid > .sh-appx:last-child:nth-child(2n+1) { grid-column: 2 / span 2; }
}

@media (max-width: 639px) {
  .sh-appx-grid { grid-template-columns: 1fr; }
  .sh-appx-grid > .sh-appx,
  .sh-appx-grid > .sh-appx:last-child:nth-child(3n+1),
  .sh-appx-grid > .sh-appx:last-child:nth-child(2n+1),
  .sh-appx-grid > .sh-appx:nth-last-child(2):nth-child(3n+1) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-appx { transition: none; }
  .sh-appx:hover { transform: none; }
}

/* Other apps grid: logos on a light tile */
.sh-svc-icon.sh-app-mini {
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  font-weight: 700;
}

.sh-svc-icon.sh-app-mini img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (min-width: 761px) {
  .sh-services-7 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* App logos keep their light tile on hover (the service card hover fills the tile with the accent, which hides logos) */
.sh-svc:hover .sh-svc-icon.sh-app-mini {
  border-color: var(--accent);
  background: #fff;
}

/* App logos fill their whole tile (logos with their own background, e.g. WAHA, no longer sit in a frame) */
.sh-app-logo,
.sh-apps-logo,
.sh-appx-logo,
.sh-svc-icon.sh-app-mini,
.sh-dd-icon:has(img) {
  overflow: hidden;
  padding: 0;
}

.sh-app-logo img,
.sh-apps-logo img,
.sh-appx-logo img,
.sh-svc-icon.sh-app-mini img,
.sh-dd-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

/* ─── Premium Apps ──────────────────────────────────────────────────────── */

/* Product card: name, description, variant rows, order link */
.sh-prem {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.35s ease, transform 0.35s var(--ease);
}

.sh-prem:hover {
  border-color: var(--accent-line);
  transform: translateY(-3px);
}

/* Product photo at the top of the card */
.sh-prem-photo {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  object-fit: cover;
}

.sh-prem-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sh-prem-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Variant rows */
.sh-prem-vars {
  display: flex;
  flex-direction: column;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.sh-prem-vars li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.sh-prem-var {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sh-prem-var b {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.sh-prem-var span {
  color: var(--muted);
  font-size: 0.75rem;
}

.sh-prem-price {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Phone: premium cards carry variant lists, so they take the full width */
@media (max-width: 520px) {
  .sh-pass-grid:has(.sh-prem) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Variant specification checklist */
.sh-prem-feats {
  display: flex;
  flex: 1 0 100%;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0 0 0.1rem;
  padding: 0;
  list-style: none;
}

/* Product description list: in the card's column it keeps its own height
   (the variant list rule flex: 1 0 100% would stretch it over the card) */
.sh-prem-about {
  flex: 0 0 auto;
  margin: 0;
}

.sh-prem-about li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sh-prem-vars .sh-prem-feats li {
  position: relative;
  display: block;
  padding: 0 0 0 1.35rem;
  border-top: 0;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.sh-prem-feats li::before {
  position: absolute;
  top: 0.18rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--ok);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sh-prem-vars li:has(.sh-prem-feats) {
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 0.5rem;
}

/* Name and price stay on the first line; the list wraps below them */
.sh-prem-vars li:has(.sh-prem-feats) .sh-prem-var {
  flex: 1 1 0;
}

.sh-prem-vars li.is-out .sh-prem-feats li {
  color: var(--muted);
}

/* Out-of-stock variant: still listed and labelled, name and price greyed out */
.sh-prem-vars li.is-out .sh-prem-price {
  color: var(--muted);
  font-weight: 600;
}

.sh-prem-vars li.is-out .sh-prem-var b {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  color: var(--muted);
}

.sh-prem-out {
  display: inline-flex;
  align-items: center;
  height: 1.25rem;
  padding: 0 0.5rem;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

[data-mode="dark"] .sh-prem-out {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.sh-prem-cta {
  margin-top: auto;
  color: var(--accent-text);
  text-decoration: none;
}

.sh-prem-cta:hover span {
  transform: translateX(3px);
}

.sh-prem-info {
  grid-template-columns: minmax(0, 1fr);
}

/* ─── Premium App Request ───────────────────────────────────────────────── */
.pr-form {
  display: grid;
  max-width: 44rem;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.pr-wide {
  grid-column: 1 / -1;
}

.pr-textarea {
  min-height: 5.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  resize: vertical;
}

.pr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pr-hint {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.875rem;
}

.pr-alert {
  max-width: 44rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.9375rem;
}

.pr-alert-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.pr-alert-err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 640px) {
  .pr-form {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ─── VPS Selector: Flexible Cloud Line ─────────────────────────────────── */

/* Mark inside the provider badge, with dark-mode colours */
.fc-mark {
  display: block;
  width: 100%;
  height: 100%;
}

[data-mode="dark"] .fc-mark .fc-cloud { fill: #FFFFFF; }
[data-mode="dark"] .fc-mark .fc-track { stroke: #0A0A0A; stroke-opacity: 0.22; }
[data-mode="dark"] .fc-mark .fc-knob { fill: #0A0A0A; }

/* Billing cycle switch above the server type cards */
.sh-vps-cycle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.sh-vps-cycle .sh-vps-label {
  margin: 0;
}

.sh-vps-cycle .ov-seg-item {
  cursor: pointer;
}

[data-cycle][hidden] {
  display: none;
}

/* Four providers fit one row on wide screens */
@media (min-width: 1024px) {
  .sh-providers:has(> :nth-child(4)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
