/* NightVPS — black and white, colour only on buttons (amber). Geist.
   Springs: --sp-* are replaced at runtime by CSS linear() curves simulated from stiffness/damping. */
:root {
  --bg0: #000000;
  --bg: #0a0a0a;
  --card: #121212;
  --raised: #1c1c1c;
  --text: #f2f2f2;
  --text2: #a6a6a6;
  --muted: #808080;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.16);
  --sel: rgba(255, 255, 255, 0.36);
  --accent: #f2b14c;
  --accent-hover: #f6c06b;
  --on-accent: #0a0a0a;
  --ok: #4cc38a;
  --err: #e5484d;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-pop: cubic-bezier(0.34, 1.56, 0.64, 1);    --sp-pop-d: 450ms;
  --sp-settle: cubic-bezier(0.34, 1.3, 0.64, 1);  --sp-settle-d: 450ms;
  --sp-soft: cubic-bezier(0.22, 1, 0.36, 1);      --sp-soft-d: 500ms;
  --sp-fade: cubic-bezier(0.22, 1, 0.36, 1);      --sp-fade-d: 240ms;
  --sp-press: cubic-bezier(0.34, 1.56, 0.64, 1);  --sp-press-d: 320ms;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/22px var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }

.ico { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }

.flag { display: inline-flex; width: 16px; height: 12px; border-radius: 2px; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.flag svg { display: block; width: 16px; height: 12px; }

/* ---------- entrance (one, staggered) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
.ready .enter { animation: rise var(--sp-soft-d) var(--sp-soft) both; animation-delay: calc(var(--i, 0) * 45ms); }

/* ---------- shell ---------- */
.testbar {
  height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px; background: var(--bg0); border-bottom: 1px solid var(--line);
  color: var(--text2); font-size: 13px; line-height: 16px; text-align: center;
}
.top {
  max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; line-height: 1; }
.logo .tail { color: var(--text2); }
.top nav { display: flex; gap: 24px; font-size: 14px; color: var(--text2); }
.top nav a { transition: color 150ms var(--ease); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
.foot {
  max-width: 1200px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 13px;
}
.foot a:hover { color: var(--text); }

/* ---------- LED (signature) ---------- */
.led { position: relative; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.led.amber { background: var(--text); }
.led.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(76, 195, 138, 0.16); }
.led.busy { background: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
  animation: blink 1.2s steps(2, jump-none) infinite; }
.led.err { background: var(--err); }
@keyframes blink { 50% { opacity: 0.35; } }
.burst { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.burst span { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ok); animation: fly 700ms var(--ease) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) scale(0.3); opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease),
    color 150ms var(--ease), transform var(--sp-press-d) var(--sp-press);
}
.btn:active:not(:disabled) { transform: scale(0.96); transition-duration: 80ms; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.ghost { background: var(--raised); border-color: var(--line); color: var(--text); }
.btn.ghost:hover:not(:disabled) { border-color: var(--line2); }
.btn.sm { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn.block { width: 100%; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform var(--sp-press-d) var(--sp-press);
}
.iconbtn:hover { background: var(--raised); color: var(--text); }
.iconbtn:active { transform: scale(0.88); transition-duration: 80ms; }
.iconbtn.copied { color: var(--ok); }
.iconbtn.copied .ico { animation: pop var(--sp-pop-d) var(--sp-pop) both; }

/* ---------- island (notifications) ---------- */
.island {
  position: fixed; top: 12px; left: 50%; z-index: 60; display: none;
  width: 40px; height: 40px; border-radius: 20px; overflow: hidden;
  background: #000; border: 1px solid var(--line2); opacity: 0; pointer-events: none;
  transform: translateX(-50%); will-change: width, height, transform, opacity;
}
.isl-in { height: 100%; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 11px; }
.isl-ico { width: 16px; height: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.isl-ico.ok { color: var(--ok); }
.isl-ico.err { color: var(--err); }
.isl-txt { flex: none; white-space: nowrap; font-size: 14px; line-height: 20px; opacity: 0; transition: opacity 140ms var(--ease); }
.island.open .isl-txt { opacity: 1; transition-delay: 90ms; }

/* ---------- order page ---------- */
.hero-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center;
  min-height: min(calc(100vh - 96px), 720px); }
.hero-sphere { height: min(calc(100vh - 96px), 640px); min-height: 420px; }
.hero-sphere:focus-visible { outline: 2px solid var(--text); outline-offset: -6px; border-radius: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 64px; align-items: start; }
.hero { padding: 0; }
.hero h1 { margin: 0; font-size: 56px; line-height: 1.04; font-weight: 500; letter-spacing: -0.03em; max-width: 12em; }
.hero p { margin: 24px 0 0; font-size: 18px; line-height: 28px; color: var(--text2); max-width: 36rem; }

.step { margin-top: 48px; }
.step-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.step-h .n { font: 400 12px/16px var(--mono); color: var(--muted); }
.step-h h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.step-h .hint { margin-left: auto; font-size: 13px; color: var(--muted); }

.opt {
  position: relative; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), opacity 150ms var(--ease),
    transform var(--sp-press-d) var(--sp-press);
}
.opt:hover:not(:disabled) { border-color: var(--line2); }
.opt:active:not(:disabled) { transform: scale(0.97); transition-duration: 80ms; }
.opt[aria-checked="true"] { background: var(--raised); border-color: var(--sel); }
.opt::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--text); transform: scale(0);
  transition: transform var(--sp-pop-d) var(--sp-pop);
}
.opt[aria-checked="true"]::after { transform: scale(1); }
.opt:disabled { opacity: 0.45; cursor: not-allowed; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan { padding: 16px; will-change: transform; }
.plan .name { font-size: 15px; font-weight: 500; }
.plan .price { margin-top: 12px; font-size: 24px; line-height: 28px; font-weight: 500; }
.plan .price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 12px 0 0; padding: 0; list-style: none; font: 400 12px/20px var(--mono); color: var(--text2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; font-size: 14px; }
.chip .code { font: 400 12px/16px var(--mono); color: var(--muted); }
.chip::after { display: none; }
.loc-note { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }

.seg { position: relative; display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.seg .pill { position: absolute; top: 4px; left: 0; height: 32px; border-radius: 6px; background: var(--raised);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); will-change: transform, width; pointer-events: none; }
.seg button {
  position: relative; z-index: 1; height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  color: var(--text2); font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: color 150ms var(--ease), transform var(--sp-press-d) var(--sp-press);
}
.seg button:hover { color: var(--text); }
.seg button:active { transform: scale(0.95); transition-duration: 80ms; }
.seg button[aria-checked="true"] { color: var(--text); }
.seg .off { font: 400 12px/16px var(--mono); color: var(--muted); transition: color 150ms var(--ease); }
.seg button[aria-checked="true"] .off { color: var(--ok); }

.vpns { display: grid; gap: 8px; }
.vrow { padding: 16px 40px 16px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; width: 100%; }
.vrow .name { font-size: 15px; font-weight: 500; display: flex; align-items: baseline; gap: 8px; }
.vrow .kind { font: 400 12px/16px var(--mono); color: var(--muted); }
.vrow .desc { grid-column: 1; font-size: 14px; line-height: 20px; color: var(--text2); }
.vrow .meta { grid-column: 2; grid-row: 1; font: 400 13px/22px var(--mono); color: var(--muted); text-align: right; }

/* configurator */
.custom-opt { margin-top: 12px; }
.sliders { margin-top: 8px; padding: 20px; display: grid; gap: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; animation: rise var(--sp-soft-d) var(--sp-soft) both; }
.srow { display: grid; gap: 8px; }
.stop { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 20px; }
.slabel { width: 40px; font-size: 13px; color: var(--muted); }
.sval { font-weight: 500; }
.sprice { margin-left: auto; font: 400 12px/16px var(--mono); color: var(--muted); }
.sctl { display: flex; align-items: center; gap: 8px; }

.jslider { position: relative; flex: 1; min-width: 0; height: 28px; touch-action: none; cursor: pointer; }
.jslider:focus-visible { outline: none; }
.jslider:focus-visible .js-thumb { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--text); }
.js-track { position: absolute; left: 8px; right: 8px; top: 12px; height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; }
.js-fill { position: absolute; inset: 0; background: var(--text2); transform-origin: left; transform: scaleX(0); }
.js-thumb { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); will-change: transform; }
.js-bubble { position: absolute; left: 8px; top: 0; padding: 4px 8px; border-radius: 8px;
  background: var(--text); color: var(--bg); font: 500 13px/16px var(--sans);
  opacity: 0; pointer-events: none; white-space: nowrap; will-change: transform, opacity; }

/* rolling digits */
.roll { display: inline-flex; height: 1.15em; line-height: 1.15em; overflow: hidden; vertical-align: bottom; }
.roll .dg { display: inline-block; height: 1.15em; overflow: hidden; }
.roll .col { display: flex; flex-direction: column; will-change: transform; }
.roll .col span { display: block; height: 1.15em; }
.roll .ch { white-space: pre; }

/* ---------- the server card (moment) ---------- */
.rig-col { position: sticky; top: 24px; padding-top: 48px; }
.rig {
  background: linear-gradient(180deg, #181818 0%, var(--card) 120px);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; will-change: transform;
}
.rig-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text2); }
.rig-head .id { margin-left: auto; font: 400 12px/16px var(--mono); color: var(--muted); }
.rig-body { padding: 20px; }
.rig-title { font-size: 20px; line-height: 28px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.spec { margin: 16px 0 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; line-height: 20px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-family: var(--mono); color: var(--text); overflow-wrap: anywhere; }

.term {
  margin-top: 20px; padding: 12px 16px; border-radius: 8px; background: var(--bg0); border: 1px solid var(--line);
  font: 400 12px/20px var(--mono); color: var(--text2); overflow: hidden;
}
.term div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .p { color: var(--muted); }
.term .caret { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--text); }

.bill { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.bill .r { display: flex; justify-content: space-between; gap: 16px; color: var(--text2); }
.bill .r > span:last-child { font-family: var(--mono); font-size: 13px; }
.bill .total { margin-top: 8px; color: var(--text); align-items: baseline; }
.bill .total > span:first-child { font-size: 15px; }
.bill .total > span:last-child { font-family: var(--sans); font-size: 28px; line-height: 32px; font-weight: 500; }
.rig-foot { padding: 0 20px 20px; }
.rig-foot .fine { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); text-align: center; }

.mbar { display: none; }

/* ---------- dialog ---------- */
dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0;
  background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 16px;
}
dialog::backdrop { background: rgba(4, 5, 8, 0.72); }
dialog[open] { animation: dlg var(--sp-settle-d) var(--sp-settle); }
@keyframes dlg { from { opacity: 0; transform: translateY(16px) scale(0.94); } }
.dlg-h { padding: 20px 24px 0; }
.dlg-h h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.dlg-h p { margin: 4px 0 0; color: var(--text2); font-size: 14px; }
.dlg-b { padding: 16px 24px; overflow: auto; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 20px; color: var(--text2); }
.rules b { font-weight: 500; color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 12px; border-radius: 10px;
  background: var(--raised); font-size: 14px; line-height: 20px; cursor: pointer; }
.check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--text); flex: none; }
.dlg-f { padding: 16px 24px 24px; display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- pay ---------- */
.narrow { max-width: 480px; margin: 0 auto; padding: 64px 0 96px; }
.page-title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.page-sub { margin: 8px 0 0; color: var(--text2); }
.panel { margin-top: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.methods { display: grid; gap: 8px; margin-top: 16px; }
.method { padding: 12px 40px 12px 16px; display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; }
.method .t { font-size: 15px; font-weight: 500; }
.method .s { font-size: 13px; color: var(--muted); }
.label { font-size: 13px; color: var(--muted); margin: 24px 0 0; }
.hold-wrap { display: flex; justify-content: center; margin-top: 20px; }
.btn.hold { position: relative; overflow: hidden; width: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.btn.hold .fill { position: absolute; inset: 0; background: rgba(11, 13, 20, 0.18); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.btn.hold .lbl { position: relative; display: inline-flex; align-items: center; gap: 8px; transition: opacity 120ms var(--ease); }
.btn.hold.morph { padding: 0; }
.btn.hold.success { background: var(--ok); }
.btn.hold.success .ico svg { stroke-width: 2.2; }
.btn.hold.success .ico { animation: pop var(--sp-pop-d) var(--sp-pop) both; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(11, 13, 20, 0.22);
  border-top-color: var(--on-accent); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- cabinet ---------- */
.cab-head { padding: 64px 0 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.servers { display: grid; gap: 16px; margin-top: 32px; }
.srv { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color 300ms var(--ease); }
.srv.enter-now { animation: rise var(--sp-settle-d) var(--sp-settle) both; }
.srv.focus { border-color: var(--sel); }
.srv-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.srv-head .title { font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.srv-head .st { color: var(--text2); }
.srv-head .id { margin-left: auto; font: 400 12px/16px var(--mono); color: var(--muted); }
.srv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.srv-body.single { grid-template-columns: minmax(0, 1fr); }
.srv-body.single .srv-sec { max-width: 560px; }
.srv-sec { padding: 20px; }
.srv-sec + .srv-sec { border-left: 1px solid var(--line); }
.srv-sec h4 { margin: 0 0 12px; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--muted); }
.kv { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 36px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { font-family: var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv .acts { display: flex; gap: 4px; }
.sub-box { display: flex; gap: 16px; align-items: flex-start; }
.sub-box img { width: 120px; height: 120px; border-radius: 8px; background: #fff; flex: none; }
.sub-box .rest { min-width: 0; flex: 1; display: grid; gap: 12px; }
.linkfield { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 10px;
  background: var(--bg0); border: 1px solid var(--line); }
.linkfield .v { flex: 1; min-width: 0; font: 400 12px/20px var(--mono); color: var(--text2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imports { display: flex; gap: 8px; flex-wrap: wrap; }
.note { font-size: 13px; line-height: 20px; color: var(--muted); margin: 0; }
.srv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.srv-wait { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--text2); font-size: 14px; flex-wrap: wrap; }

/* provisioning: steps + thinking sphere */
.srv-prov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.sphere { display: block; width: 100%; height: 220px; color: var(--text); touch-action: none; cursor: grab; }
.sphere:active { cursor: grabbing; }
.steps { list-style: none; margin: 0; padding: 20px; display: grid; gap: 12px; font-size: 14px; line-height: 20px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color 200ms var(--ease); }
.steps li.active { color: var(--text); }
.steps li.done { color: var(--text2); }
.steps .mark { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line2); flex: none;
  display: inline-flex; align-items: center; justify-content: center; }
.steps .mark .ico, .steps .mark svg { width: 12px; height: 12px; stroke-width: 2.2; }
.steps li.done .mark { border-color: transparent; background: rgba(76, 195, 138, 0.14); color: var(--ok);
  animation: pop var(--sp-pop-d) var(--sp-pop) both; }
.steps li.active .mark { border-top-color: var(--text); animation: spin 800ms linear infinite; }

.empty { margin-top: 32px; padding: 48px 24px; border: 1px dashed var(--line2); border-radius: 16px; text-align: center; color: var(--text2); }
.empty .btn { margin-top: 16px; }

.access { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.access .panel { margin: 0; }
.access h3 { margin: 0; font-size: 15px; font-weight: 500; }
.access p { margin: 4px 0 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.input { height: 40px; width: 100%; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg0); color: var(--text); font: 400 13px/20px var(--mono);
  transition: border-color 150ms var(--ease); }
.input:focus { outline: none; border-color: var(--sel); }
.row { display: flex; gap: 8px; }


/* ================= motion components ================= */

/* Weight wave on the logo */
.lw { display: inline-flex; }
.lw span { display: inline-block; font-weight: 500; }
.lw .tail { color: var(--text2); }
.logo.waving .lw span { animation: wave 620ms var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes wave { 45% { font-weight: 850; transform: translateY(-2px); } }

/* Roll links */
.rl { display: inline-flex; overflow: hidden; height: 20px; line-height: 20px; }
.rl span { position: relative; display: inline-block; transition: transform var(--sp-settle-d) var(--sp-settle); }
.rl span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--text); }
.rl:hover span { transform: translateY(-100%); }

/* Word roll + marker in the headline */
.wroll { position: relative; display: inline-flex; overflow: hidden; vertical-align: bottom;
  height: 1.12em; padding-bottom: 0.08em; white-space: nowrap; }
.wr-w { display: inline-block; white-space: nowrap; will-change: transform, opacity; }
.marker { background-image: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16));
  background-repeat: no-repeat; background-position: 0 86%; background-size: 0% 0.3em; }
.ready .marker { animation: mark 1s var(--sp-soft) 600ms forwards; }
@keyframes mark { to { background-size: 100% 0.3em; } }

/* Morph tooltip on kind tags */
.kind[data-tip] { position: relative; cursor: help; }
.kind[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5;
  width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px;
  background: var(--text); color: var(--bg); font: 400 13px/18px var(--sans); white-space: normal; text-align: left;
  pointer-events: none; opacity: 0; transform: translateX(-50%) translateY(4px) scale(0.85); transform-origin: 50% 100%;
  transition: opacity 120ms var(--ease), transform var(--sp-pop-d) var(--sp-pop);
}
.kind[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* Expand card */
.vx { grid-column: 1 / -1; height: 0; opacity: 0; }
.vx-in { padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--muted); }

/* Island action (Undo) */
.isl-act { flex: none; height: 28px; padding: 0 12px; margin-left: 4px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 500;
  transition: transform var(--sp-press-d) var(--sp-press); }
.isl-act:active { transform: scale(0.94); transition-duration: 80ms; }

/* Thinking text on the active provisioning step */
.steps li.active .lbl {
  background: linear-gradient(90deg, var(--muted) 0%, var(--text) 45%, var(--muted) 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: think 1.6s linear infinite;
}
@keyframes think { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Pull to refresh */
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text2); }
.ptr-ico { display: inline-flex; }
.ptr.spin .ptr-ico { animation: spin 700ms linear infinite; }

/* Boarding pass */
.tk-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.tk-head small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.tk-head b { display: inline-flex; align-items: center; gap: 8px; font: 500 22px/28px var(--mono); }
.tk-head .tk-to { text-align: right; }
.tk-line { flex: 1; height: 1px; margin-bottom: 14px; border-top: 1px dashed var(--line2); position: relative; }
.tk-line::after { content: ""; position: absolute; right: -2px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.tk-cut { position: relative; margin: 20px -21px; border-top: 1px dashed var(--line2); }
.tk-cut::before, .tk-cut::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); }
.tk-cut::before { left: -11px; clip-path: inset(0 0 0 50%); }
.tk-cut::after { right: -11px; clip-path: inset(0 50% 0 0); }
.tk-bill { margin-top: 0; padding-top: 0; border-top: 0; }
#payPanel { will-change: transform; }

/* More plans (Expand card) */
.more-wrap { height: 0; opacity: 0; }
.plans-more { padding-top: 12px; }
.more-btn { margin-top: 12px; width: 100%; height: 40px; border-radius: 10px; border: 1px dashed var(--line2);
  background: none; color: var(--text2); font-size: 14px; cursor: pointer;
  transition: color 150ms var(--ease), border-color 150ms var(--ease), transform var(--sp-press-d) var(--sp-press); }
.more-btn:hover { color: var(--text); border-color: var(--sel); }
.more-btn:active { transform: scale(0.98); transition-duration: 80ms; }

/* Toggle switch (backups) */
.toggle-row { width: 100%; margin-bottom: 8px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 16px; }
.toggle-row::after { display: none; }
.toggle-row .name { font-size: 15px; font-weight: 500; }
.toggle-row .desc { font-size: 14px; line-height: 20px; color: var(--text2); }
.toggle-row .meta { font: 400 13px/22px var(--mono); color: var(--muted); }
.sw { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--raised);
  border: 1px solid var(--line2); transition: background-color 150ms var(--ease), border-color 150ms var(--ease); }
.knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted);
  transition: transform var(--sp-pop-d) var(--sp-pop), background-color 150ms var(--ease), width 120ms var(--ease); }
.toggle-row:active .knob { width: 22px; }
.toggle-row[aria-checked="true"] .sw { background: var(--accent); border-color: var(--accent); }
.toggle-row[aria-checked="true"] .knob { transform: translateX(18px); background: var(--on-accent); }
.toggle-row[aria-checked="true"]:active .knob { transform: translateX(14px); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding-top: 48px; }
  .hero-sphere { height: 380px; min-height: 0; }
  .rig-col { position: static; padding-top: 48px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top { padding: 0 16px; }
  .wrap { padding: 0 16px 120px; }
  .foot { padding: 24px 16px 104px; flex-direction: column; }
  .hero-wrap { padding-top: 32px; }
  .hero-sphere { height: 320px; }
  .hero h1 { font-size: 36px; line-height: 1.08; letter-spacing: -0.02em; }
  .hero p { font-size: 16px; line-height: 24px; margin-top: 16px; }
  .step { margin-top: 40px; }
  .step-h .hint { display: none; }
  .seg { display: flex; }
  .seg button { flex: 1; justify-content: center; padding: 0 4px; gap: 4px; font-size: 13px; }
  .srv-body, .srv-prov { grid-template-columns: minmax(0, 1fr); }
  .srv-sec + .srv-sec { border-left: 0; border-top: 1px solid var(--line); }
  .srv-prov .sphere { height: 180px; }
  .access { grid-template-columns: minmax(0, 1fr); }
  .rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .narrow { padding-top: 40px; }
  .page-title { font-size: 28px; }
  .rig-foot .btn { display: none; }
  .rig-foot .fine { margin-top: 0; }
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg0); border-top: 1px solid var(--line);
  }
  .mbar .sum { flex: 1; min-width: 0; }
  .mbar .sum small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
  .mbar .sum b { font-size: 20px; line-height: 24px; font-weight: 500; }
  .sub-box img { width: 96px; height: 96px; }
}
/* Reduced motion: keep small spring feedback, calm only looping and large motion */
@media (prefers-reduced-motion: reduce) {
  .led.busy, .steps li.active .lbl, .logo.waving .lw span, .ready .enter { animation: none !important; }
  .steps li.active .lbl { color: var(--text); background: none; }
}

.plan .cpu-m { display: block; color: var(--muted); }
