/* YunZheng LAB — yunzheng.space
   Shared visual system: tokens, nav, buttons, home hero, document pages. */

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #1a1a1a;
  --dim: #5b6368;
  --blue: #006cd2;
  --blue-dark: #0053a3;
  --headline-muted: #6b7378;
  --glass: rgba(0, 0, 0, 0.13);
  --glass-blur: 18px;
  --glass-light: rgba(255, 255, 255, 0.28);
  --line: rgba(10, 10, 10, 0.12);
  --surface: #f4f6f8;
  --ok: #0b7a3b;
  --err: #b42318;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad-x: clamp(20px, 3.52vw, 64px);
  --nav-top: clamp(16px, 2.05vw, 28px);
  --btn-icon: 36px;
  --btn-pad-y: 12px;
  --btn-pad-x: 22px;
  --radius: 0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
html[lang^="zh"] {
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 500;
}
.skip:focus { top: 12px; }

/* ---------- page frame ---------- */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--nav-top) var(--pad-x) clamp(28px, 4.9vw, 48px);
}
html.home .page { height: 100vh; height: 100dvh; min-height: 560px; }
.page > * { position: relative; z-index: 1; }

.bg { position: absolute; inset: 0; z-index: 0; background: #fff; pointer-events: none; overflow: hidden; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- nav ---------- */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__links {
  display: flex; align-items: center; justify-self: start;
  gap: clamp(22px, 2.6vw, 32px);
  padding: 24px 34px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius);
}
.nav__link {
  position: relative;
  font-size: clamp(13px, 1.37vw, 15px); font-weight: 500; letter-spacing: -0.01em;
  color: var(--text); line-height: 1; white-space: nowrap; padding-bottom: 2px;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
  animation: link-in 0.55s var(--ease) backwards;
}
.nav__link:hover { color: var(--blue); transform: translateY(-2px); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:nth-child(1) { animation-delay: 0.02s; }
.nav__link:nth-child(2) { animation-delay: 0.08s; }
.nav__link:nth-child(3) { animation-delay: 0.14s; }
.nav__link:nth-child(4) { animation-delay: 0.2s; }

.logo {
  display: block; justify-self: center;
  width: clamp(68px, 6.4vw, 88px);
  transition: transform 0.35s var(--ease);
}
.logo:hover { transform: scale(1.06); }
.logo img { width: 100%; height: auto; animation: mark-in 0.6s var(--ease) 0.08s backwards; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 58px; border-radius: var(--radius);
  padding: var(--btn-pad-y) 10px var(--btn-pad-y) var(--btn-pad-x); gap: 18px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.015em; line-height: 1; white-space: nowrap;
  overflow: hidden; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease); pointer-events: none;
}
.btn:hover::before { transform: scaleX(1); }
.btn__label, .btn__icon { position: relative; z-index: 1; }
.btn__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--btn-icon); height: var(--btn-icon);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn--nav { background: var(--blue); color: #fff; justify-self: end; animation: wipe-right 0.65s var(--ease) 0.16s backwards; }
.btn--nav::before { background: #004a96; }
.btn--nav .btn__icon { background: var(--blue-dark); color: #fff; }
.btn--nav:hover .btn__icon { background: #fff; color: var(--blue); }

.btn--light { background: #fff; color: var(--blue); }
.btn--light::before { background: #e8f2fb; }
.btn--light .btn__icon { background: var(--blue); color: #fff; }

.btn--ghost {
  padding: var(--btn-pad-y) 26px; color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.btn--ghost::before { background: rgba(255, 255, 255, 0.78); z-index: 0; }

/* document-page variants (white ground) */
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary::before { background: #004a96; }
.btn--primary .btn__icon { background: var(--blue-dark); color: #fff; }
.btn--primary:hover .btn__icon { background: #fff; color: var(--blue); }
.btn--outline { padding: var(--btn-pad-y) 26px; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #fff; }
.btn--outline::before { background: #e8f2fb; }
.btn--sm { height: 46px; font-size: 15px; }
.btn--sm .btn__icon { width: 28px; height: 28px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- burger + mobile menu ---------- */
.burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 36px; height: 36px; justify-self: end;
  transition: transform 0.3s var(--ease);
  animation: link-in 0.5s var(--ease) 0.16s backwards;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.burger:hover { transform: scale(1.08); }
.burger:hover span { background: var(--blue); }
.burger:hover span:first-child, .burger:hover span:last-child { width: 14px; }

.mobile-menu { display: none; flex-direction: column; gap: 1.25rem; padding: 1.25rem 0 0.5rem; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.9rem; }
.mobile-menu__links a {
  padding: 16px 20px; font-size: 1.05rem; font-weight: 500;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.mobile-menu__links a[aria-current="page"] { color: var(--blue); }
.mobile-menu .btn { align-self: flex-start; }

/* ---------- home hero ---------- */
.hero { margin-top: clamp(52px, 10.15vh, 92px); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: clamp(34px, 3.6vw, 42px); padding: 0 18px 0 14px;
  background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(0, 108, 210, 0.2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  color: var(--muted); font-size: clamp(13px, 1.35vw, 15px); font-weight: 500; letter-spacing: -0.01em;
  border-radius: var(--radius); white-space: nowrap;
}
.badge::before { content: ""; width: 14px; height: 14px; flex: none; background: #fff; border: 2px solid var(--blue); }

.headline {
  margin-top: clamp(22px, 2.8vw, 36px);
  font-size: calc(clamp(2.9rem, 5.9vw, 5rem) + 3px); font-weight: 600;
  line-height: 1.18; letter-spacing: -0.038em; color: var(--text);
}
.headline__mask { display: block; overflow: hidden; padding: 0 0.1em 0.08em 0; margin: 0 -0.1em -0.08em 0; }
.headline__rise { display: block; animation: type-rise 0.85s var(--ease) var(--d, 0s) backwards; }
.headline__mask--2 .headline__rise { white-space: nowrap; }
.headline__muted { color: var(--headline-muted); font-weight: 600; }
.headline__accent { position: relative; display: inline-block; color: var(--headline-muted); }
.headline__accent::before, .headline__accent::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 72px), transparent 100%);
  -webkit-mask-size: 0% 100%; mask-size: 0% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: accent-fill 1.05s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.headline__accent::before { color: #7eb6ee; animation-delay: 0.7s; }
.headline__accent::after { color: var(--blue); animation-delay: 1.08s; }

.actions { display: flex; gap: 12px; margin-top: clamp(28px, 3.4vw, 42px); }
.wipe { animation: wipe-left 0.7s var(--ease) var(--d, 0s) backwards; }

.foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lede {
  max-width: 700px; overflow: hidden; color: #fff;
  font-size: clamp(17px, 1.8vw, 20px); font-weight: 300; line-height: 1.5; letter-spacing: -0.01em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.lede__rise { display: block; animation: type-rise 0.9s var(--ease) var(--d, 0s) backwards; }
.lang {
  flex: none; padding: 10px 14px; font-size: 13px; font-weight: 500; line-height: 1;
  color: var(--text); background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: link-in 0.5s var(--ease) 0.9s backwards;
}
.lang:hover { color: var(--blue); }

/* ---------- keyframes ---------- */
@keyframes link-in { from { opacity: 0; transform: translate3d(-16px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes mark-in { from { opacity: 0; transform: translate3d(-12px, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes wipe-right { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes wipe-left { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes type-rise { from { transform: translate3d(0, 118%, 0); } to { transform: none; } }
@keyframes accent-fill { to { -webkit-mask-size: calc(100% + 72px) 100%; mask-size: calc(100% + 72px) 100%; } }

/* ---------- document pages ---------- */
.doc { margin-top: clamp(40px, 6vh, 72px); width: 100%; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); row-gap: 28px; align-items: start; }
.doc__main { min-width: 0; max-width: 780px; }
.doc__head { margin-bottom: clamp(24px, 3.5vw, 40px); }

/* side panel: page index, quick links, language */
.side { font-size: 14px; }
.side__mark { width: 68px; margin-bottom: 20px; }
.side__mark img { width: 100%; height: auto; }
.side__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.side__label:first-child { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side__index a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--muted); line-height: 1.35; transition: color 0.2s, border-color 0.2s; }
.side__index a:hover { color: var(--blue); border-color: var(--blue); }
.side__links a { display: block; padding: 5px 0; color: var(--dim); line-height: 1.35; transition: color 0.2s; }
.side__links a:hover { color: var(--blue); }
.side__lang { display: inline-block; margin-top: 22px; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); transition: background 0.2s, color 0.2s; }
.side__lang:hover { background: var(--blue); color: #fff; }
@media (min-width: 1100px) {
  .doc { grid-template-columns: minmax(0, 1fr) 232px; }
  .side { position: sticky; top: 24px; align-self: start; padding-top: 6px; }
}
@media (max-width: 1099px) {
  .side { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .side__mark, .side__label { display: none; }
  .side ul { display: contents; }
  .side__index a, .side__links a { border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; }
  .side__index a:hover { border-color: var(--blue); }
  .side__links a { border-style: dashed; }
  .side__lang { margin: 0 0 0 auto; }
}
.doc__title {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: calc(clamp(2.2rem, 4.4vw, 3.6rem) + 2px); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.035em;
}
.doc__lead { margin-top: 18px; max-width: 720px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 300; line-height: 1.55; color: var(--muted); }
.doc__lead strong { font-weight: 500; }
.doc__meta { margin-top: 14px; font-size: 13px; color: var(--dim); }

.sec { padding: clamp(28px, 3.5vw, 44px) 0; border-top: 1px solid var(--line); }
.sec:last-of-type { padding-bottom: 0; }
.sec h2 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 16px; }
.sec h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 10px; }
.sec h2 + h3 { margin-top: 0; }
.sec p { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; max-width: 760px; }
.sec p:last-child { margin-bottom: 0; }
.sec ul, .sec ol { padding-left: 1.2em; color: var(--muted); line-height: 1.6; margin-bottom: 12px; max-width: 760px; }
.sec li { margin: 4px 0; }
.sec a:not(.btn) { color: var(--blue); }
.sec a:not(.btn):hover { text-decoration: underline; }
.sec .btn { margin-top: 8px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec__aside { font-size: 14px; color: var(--dim); font-weight: 500; }
.small { font-size: 14px; color: var(--dim); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 15px; line-height: 1.5; margin: 16px 0; }
.kv dt { color: var(--dim); font-weight: 500; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; padding-top: 3px; }
.kv dd { color: var(--text); }
.kv strong { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); background: #fff; }
.card h3 { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.card h3 small { font-size: 13px; font-weight: 400; color: var(--dim); }
.card__meta { font-size: 13px; color: var(--dim); }
.card__price { font-size: 15px; font-weight: 600; color: var(--blue); }
.card p { font-size: 14.5px; margin: 0; line-height: 1.55; }
.card__spec { font-size: 13px; color: var(--dim); background: var(--surface); padding: 8px 12px; font-variant-numeric: tabular-nums; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.card__foot a { color: var(--blue); font-weight: 500; display: inline-block; padding: 4px 0; }
.list-grid a, .kv a, .legend a { display: inline-block; padding: 3px 0; }
.card--wide { grid-column: 1 / -1; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); color: var(--dim); line-height: 1.3; }

.status { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; line-height: 1.3; background: var(--blue); color: #fff; vertical-align: middle; }
.status--soon { background: none; box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.status--dim { background: var(--surface); color: var(--dim); }

.note { border-left: 3px solid var(--blue); background: var(--surface); padding: 16px 20px; margin: 16px 0; font-size: 15px; color: var(--muted); max-width: 760px; }
.note--warn { border-left-color: var(--err); }
.note ol, .note ul { margin-bottom: 0; }

.tbl-wrap { overflow-x: auto; margin: 12px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); font-weight: 500; }
.tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .sponsored { color: var(--blue); font-weight: 500; }

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; font-size: 15px; }
.list-grid > div { display: flex; align-items: baseline; gap: 10px; padding: 6px 12px; background: var(--surface); min-height: 40px; }
.list-grid .code { font-size: 12px; font-weight: 600; color: var(--blue); min-width: 34px; font-variant-numeric: tabular-nums; }
.list-grid .rr { margin-left: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--dim); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; }
.legend i.dot-rr { background: var(--blue); }
.legend i.dot-node { background: var(--text); }
.legend i.line-solid { width: 20px; height: 0; border-top: 2px solid var(--blue); }
.legend i.line-dash { width: 20px; height: 0; border-top: 2px dashed var(--blue); opacity: 0.5; }

.map { height: 380px; border: 1px solid var(--line); background: var(--surface); }
.leaflet-container { font-family: var(--font); }
.leaflet-tooltip.node-label { background: transparent; border: 0; box-shadow: none; font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--text); padding: 0; }
.leaflet-tooltip.node-label::before { display: none; }
.latency-label { font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--blue); text-align: center; background: rgba(255, 255, 255, 0.85); padding: 0 3px; }

details.fold summary { cursor: pointer; font-weight: 500; color: var(--blue); padding: 6px 0; list-style: none; font-size: 15px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before { content: "+ "; }
details.fold[open] summary::before { content: "\2212  "; }

/* forms */
.form { max-width: 600px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-size: 12px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.input {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 0; outline: none;
  transition: border-color 0.2s;
}
.input:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%230a0a0a' stroke-width='1.5' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field__error { display: none; font-size: 13px; color: var(--err); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input { border-color: var(--err); }
.form-status { margin-top: 14px; font-size: 15px; line-height: 1.5; min-height: 1.5em; }
.form-status--ok { color: var(--ok); }
.form-status--err { color: var(--err); }
.turnstile { min-height: 65px; margin-bottom: 18px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.choice {
  padding: 12px 10px; text-align: center; font-size: 15px; font-weight: 500;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.choice small { display: block; font-size: 11px; font-weight: 400; color: var(--dim); margin-top: 2px; }
.choice:hover { border-color: var(--blue); color: var(--blue); }
.choice.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.choice.is-active small { color: rgba(255, 255, 255, 0.85); }
.row { display: flex; align-items: center; gap: 10px; }
.row .input { flex: 1; min-width: 0; }
.row .unit { font-size: 14px; font-weight: 600; color: var(--dim); min-width: 40px; }

.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { padding: 12px 18px; font-size: 15px; font-weight: 500; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.tab:hover { color: var(--blue); }
.tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.panel[hidden] { display: none; }

.plan { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); margin-bottom: 8px; width: 100%; text-align: left; transition: border-color 0.2s, background 0.2s; }
.plan:hover { border-color: var(--blue); }
.plan.is-selected { border-color: var(--blue); background: #e8f2fb; }
.plan__radio { width: 16px; height: 16px; border: 2px solid var(--line); flex: none; position: relative; }
.plan.is-selected .plan__radio { border-color: var(--blue); }
.plan.is-selected .plan__radio::after { content: ""; position: absolute; inset: 2px; background: var(--blue); }
.plan__info { flex: 1; min-width: 0; }
.plan__name { font-size: 15px; font-weight: 600; }
.plan__desc { font-size: 13px; color: var(--dim); line-height: 1.5; }
.plan__price { font-size: 16px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.plan__price small { font-size: 11px; font-weight: 400; color: var(--dim); }

.copy { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; }
.copy code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); word-break: break-all; }
.copy .btn { margin-top: 0; }

.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sponsor { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px; border: 1px solid var(--line); transition: border-color 0.2s; }
a.sponsor:hover { border-color: var(--blue); }
.sponsor__avatar { width: 56px; height: 56px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; color: var(--dim); background: var(--surface); overflow: hidden; }
.sponsor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.sponsor__name { font-size: 14px; font-weight: 600; word-break: break-word; }
.sponsor__since { font-size: 12px; color: var(--dim); }
.empty { padding: 20px; border: 1px dashed var(--line); font-size: 14px; color: var(--dim); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); font-size: 14px; }
.chip--anon { border-style: dashed; color: var(--dim); }
.chip b { font-weight: 600; }
.chip .amt { font-size: 12px; color: var(--blue); font-weight: 600; }
.banner { padding: 12px 16px; margin-bottom: 20px; font-size: 14px; border: 1px solid #a5d6a7; background: #edf7ee; color: var(--ok); }
.loading { padding: 32px; color: var(--dim); font-size: 14px; text-align: center; }

/* site footer (all pages, sits below the hero on the home page) */
.foot-wrap { padding: 0 var(--pad-x) 40px; background: var(--bg); }
.foot-site {
  margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px;
}
html.home .foot-site { margin-top: 0; border-top: 0; }
.foot-site__brand img { width: 88px; height: auto; margin-bottom: 14px; }
.foot-site__cap { font-size: 14px; font-weight: 500; color: var(--text); }
.foot-site__note { font-size: 13px; color: var(--dim); margin-top: 8px; max-width: 340px; line-height: 1.5; }
.foot-site__h { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.foot-site ul { list-style: none; }
.foot-site li a { display: inline-block; padding: 5px 0; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.foot-site li a:hover { color: var(--blue); }
.foot-site__bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px;
  padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim);
}
.foot-site__bottom a { color: var(--blue); font-weight: 500; }
@media (max-width: 820px) {
  .foot-site { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-site__brand { grid-column: 1 / -1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .headline__rise, .lede__rise, .nav__link, .burger, .logo img, .lang { opacity: 1; transform: none; }
  .wipe, .btn--nav { clip-path: none; }
  .headline__accent { color: var(--blue); }
  .headline__accent::before, .headline__accent::after { content: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  html.home .page { height: auto; min-height: 100vh; min-height: 100dvh; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav > .btn--nav { display: none; }
  .logo { justify-self: start; grid-column: 1; }
  .burger { display: flex; grid-column: 3; }
  .mobile-menu { display: flex; }
  .hero { margin-top: 48px; }
  .headline { font-size: calc(clamp(2.75rem, 10vw, 3.85rem) + 3px); }
  .headline__mask--2 .headline__rise { white-space: normal; }
  .actions { flex-wrap: wrap; }
  .foot { flex-direction: column; align-items: flex-start; margin-top: 64px; gap: 20px; }
  .lede { width: 100%; max-width: 700px; }
  .badge { white-space: normal; height: auto; min-height: 34px; padding: 6px 14px 6px 12px; line-height: 1.3; }
  .doc { margin-top: 28px; row-gap: 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { padding-top: 10px; }
  .kv dd { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .map { height: 280px; }
}
@media (max-height: 700px) and (min-width: 821px) {
  .hero { margin-top: 36px; }
  .headline { font-size: calc(clamp(2.75rem, 7.2vh, 4.15rem) + 3px); }
}
