.page-head {
  padding-block: clamp(36px, 6vw, 68px) clamp(22px, 3vw, 32px);
}

.page-head h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.page-head__lead {
  max-width: 620px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 22px;
  color: var(--muted-deep);
  font-size: 11.5px;
}

.page-head__meta .mono {
  font-size: 11px;
}

.page-head__meta a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.page-head__meta a:hover {
  color: var(--text);
}

.dash {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stat {
  padding: 17px 19px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat__num small {
  color: var(--muted-deep);
  font-size: 0.55em;
  letter-spacing: 0;
}

.stat__label {
  display: block;
  margin-top: 9px;
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.servers {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.server:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

.server__main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.server__code {
  display: grid;
  flex: none;
  width: 34px;
  height: 26px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg-section);
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.server__body {
  min-width: 0;
}

.server h3 {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.server__host {
  margin-top: 4px;
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.server .chips {
  margin-top: 9px;
}

.server__state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}

.server__ping {
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.server__ping b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.server__ping.is-empty b {
  color: var(--muted-deep);
}

.notes {
  margin-top: clamp(30px, 5vw, 52px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.notes h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.notes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.notes__grid b {
  color: var(--text);
  font-weight: 600;
}

.notes__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.notes__cta p {
  color: var(--muted-deep);
  font-size: 12px;
}

.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
  align-items: start;
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card .traffic {
  margin-top: auto;
  padding-top: 16px;
}

.plan-card__name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.kv > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.kv > div:last-child {
  border-bottom: 0;
}

.kv dt {
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kv dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.traffic {
  margin-top: 16px;
}

.traffic__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.traffic__head b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.meter {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-raised);
}

.meter__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.8s var(--ease);
}

.qr-wrap {
  display: grid;
  place-items: center;
  width: fit-content;
  margin: 18px auto 0;
  padding: 11px;
  border-radius: 16px;
  background: #fff;
}

.qr-wrap svg {
  display: block;
  width: 158px;
  height: 158px;
}

.sub-url {
  display: block;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-section);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.hint {
  margin-top: 12px;
  color: var(--muted-deep);
  font-size: 11.5px;
  line-height: 1.6;
}

.hint--after {
  margin-top: 18px;
}

.sub-servers {
  margin-top: clamp(26px, 4vw, 40px);
}

.guide {
  margin-top: clamp(28px, 4vw, 44px);
}

.guide__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.guide h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: -0.04em;
}

.guide__note {
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.apps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.app {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.app summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
}

.app summary::-webkit-details-marker {
  display: none;
}

.app summary::after {
  color: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  content: "+";
  transition: transform 0.25s var(--ease);
}

.app[open] summary::after {
  content: "−";
}

.app summary span {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.app summary em {
  color: var(--muted-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app ol {
  padding: 0 18px 16px 36px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  list-style: decimal;
}

.app ol li {
  margin-bottom: 6px;
}

.app ol li:last-child {
  margin-bottom: 0;
}

.watermark {
  position: fixed;
  right: -0.12em;
  bottom: -0.24em;
  z-index: 0;
  color: rgba(255, 131, 189, 0.045);
  font-family: var(--font-jp);
  font-size: clamp(180px, 26vw, 380px);
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

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

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

@media (max-width: 620px) {
  .dash {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .stat {
    padding: 13px 13px 12px;
  }

  .stat__num {
    font-size: 1.45rem;
  }

  .stat__label {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .server {
    flex-wrap: wrap;
    padding: 14px 15px;
    gap: 12px;
  }

  .server__state {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 11px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
  }

  .server h3 {
    font-size: 14.5px;
  }

  .server__ping b {
    font-size: 13px;
  }

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

  .qr-wrap svg {
    width: 142px;
    height: 142px;
  }

  .head-nav .btn--sm {
    display: none;
  }
}
