/* SDCN SYSTEM public site. Tokens follow the console (sdcn-light / sdcn-dark). */
:root {
  --bg: #EDF0F3; --surface: #FFFFFF; --surface-2: #F5F7F9; --ink: #14202E; --ink-2: #48566A; --ink-3: #5F6C7E;
  --line: #D8DEE5; --line-2: #E6EAEF;
  --accent: #0B6E78; --accent-ink: #FFFFFF; --accent-soft: #DCEFF0;
  --vpop: #0B6E78; --ix: #6A4CC2; --dia: #AD6812;
  --vpop-soft: #DCEFF0; --ix-soft: #ECE6FA; --dia-soft: #F7EAD8;
  --ok: #22905A; --ok-soft: #DDF2E6; --warn: #BF7D00; --crit: #C93C34;
  --code-bg: #F2F5F8;
  --shadow: 0 10px 40px rgba(20, 32, 46, .12);
  --radius: 10px;
  --sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1118; --surface: #111A23; --surface-2: #16212C; --ink: #E3E9EF; --ink-2: #A5B1BE; --ink-3: #8D9AA8;
    --line: #233040; --line-2: #1B2733;
    --accent: #3DB3BD; --accent-ink: #06191B; --accent-soft: #12343A;
    --vpop: #3DB3BD; --ix: #A08AF2; --dia: #E3A452;
    --vpop-soft: #12343A; --ix-soft: #251F3F; --dia-soft: #3A2A14;
    --ok: #46C487; --ok-soft: #133224; --warn: #E5B04A; --crit: #EF6A60;
    --code-bg: #0A1016;
    --shadow: 0 10px 40px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1118; --surface: #111A23; --surface-2: #16212C; --ink: #E3E9EF; --ink-2: #A5B1BE; --ink-3: #8D9AA8;
  --line: #233040; --line-2: #1B2733;
  --accent: #3DB3BD; --accent-ink: #06191B; --accent-soft: #12343A;
  --vpop: #3DB3BD; --ix: #A08AF2; --dia: #E3A452;
  --vpop-soft: #12343A; --ix-soft: #251F3F; --dia-soft: #3A2A14;
  --ok: #46C487; --ok-soft: #133224; --warn: #E5B04A; --crit: #EF6A60;
  --code-bg: #0A1016;
  --shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
/* Always-dark zones (hero, CTA band) */
.on-dark {
  --surface: #111A23; --surface-2: #16212C; --ink: #E3E9EF; --ink-2: #A5B1BE; --ink-3: #8D9AA8;
  --line: #2A3848; --line-2: #1B2733;
  --accent: #3DB3BD; --accent-ink: #06191B; --accent-soft: #12343A;
  --vpop: #3DB3BD; --ix: #A08AF2; --dia: #E3A452;
  --vpop-soft: #12343A; --ix-soft: #251F3F; --dia-soft: #3A2A14;
  --ok: #46C487;
  background: #0B1118; color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--cond); font-weight: 600; letter-spacing: .01em; line-height: 1.2; margin: 0; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--ink); }
.brand-mark .m-v { fill: var(--vpop); } .brand-mark .m-i { fill: var(--ix); } .brand-mark .m-d { fill: var(--dia); }
.brand b { display: block; font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-size: 11px; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; line-height: 1.3; }
.site-nav { display: flex; gap: 4px; margin-left: 12px; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: 6px; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); font-weight: 600; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 6px; height: 36px; min-width: 48px; padding: 0 10px; cursor: pointer; font: 500 13px/1 var(--sans); }
.lang-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 6px; width: 38px; height: 36px; padding: 0; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; order: 3; }
  .head-actions { order: 2; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; margin: 0; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .head-in { gap: 10px; }
}
@media (max-width: 640px) { .brand small { display: none; } }
@media (max-width: 520px) {
  .brand b { font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
  .head-actions { gap: 6px; }
  .head-actions .btn { padding: 0 10px; }
  .head-actions .btn svg { display: none; }
  .lang-btn { min-width: 40px; padding: 0 8px; }
}
@media (max-width: 370px) { .brand b { font-size: 15px; letter-spacing: .02em; } .head-in { gap: 6px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 8px; }
.btn.ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 76px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(61, 179, 189, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(61, 179, 189, .07) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); margin: 16px 0 18px; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-2); max-width: 620px; }
.hero .btn-row { margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; padding: 0; list-style: none; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font: 600 26px/1.1 var(--cond); color: var(--ink); }
.hero-facts li > span { font-size: 13px; color: var(--ink-3); }
.hero-art { width: 100%; }
.hero.sub { padding: 64px 0 56px; }
.hero.sub h1 { font-size: clamp(30px, 4.4vw, 46px); }
.hero .tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .05em; padding: 5px 9px; border-radius: 4px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 56px 0 52px; } }

/* ---------- sections ---------- */
.sec { padding: 80px 0; }
.sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.tight { padding: 56px 0; }
@media (max-width: 700px) { .sec { padding: 56px 0; } }
.sec-h { max-width: 760px; margin-bottom: 40px; }
.sec-h.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 12px; }
.sec-h p { color: var(--ink-2); font-size: 17px; }
.muted { color: var(--ink-3); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sec.alt .card { background: var(--surface-2); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* why: compare */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.compare li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.compare li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
.compare .old li svg { color: var(--crit); }
.compare .new { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.compare .new li svg { color: var(--ok); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 44px; }
.story p + p { margin-top: 14px; }
.story p { color: var(--ink-2); font-size: 16.5px; }
.story .pull { font: 600 clamp(22px, 2.6vw, 28px)/1.35 var(--cond); color: var(--ink); border-left: 3px solid var(--accent); padding-left: 18px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 20px; } }

/* service cards */
.svc { display: flex; flex-direction: column; gap: 12px; border-top: 4px solid var(--c, var(--accent)); text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.svc .tag { align-self: flex-start; }
.svc h3 { font-size: 22px; margin: 0; }
.svc ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.svc .more { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--c, var(--accent)); font-size: 15px; }
.svc .more .from { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.tag { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .05em; padding: 5px 9px; border-radius: 4px; }
.t-vpop { --c: var(--vpop); } .t-dia { --c: var(--dia); } .t-ix { --c: var(--ix); }
.tag.t-vpop { color: var(--vpop); background: var(--vpop-soft); }
.tag.t-dia { color: var(--dia); background: var(--dia-soft); }
.tag.t-ix { color: var(--ix); background: var(--ix-soft); }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.sec.alt .steps li { background: var(--surface-2); }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--cond); margin-bottom: 12px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { font-size: 14.5px; color: var(--ink-2); }
.steps .time { display: block; margin-top: 10px; font: 500 12px/1.3 var(--mono); color: var(--accent); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* feature list */
.feat { display: flex; gap: 14px; }
.feat .icon { flex: none; margin: 0; }
.feat h3 { font-size: 17px; margin-bottom: 4px; }
.feat p { font-size: 15px; color: var(--ink-2); }

.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-soft); box-shadow: inset 0 0 0 1.5px var(--ok); }
.checks li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 3.5px; border-left: 1.8px solid var(--ok); border-bottom: 1.8px solid var(--ok); transform: rotate(-45deg); }

/* automation timeline */
.auto-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; position: relative; }
.auto-flow li { list-style: none; position: relative; padding: 52px 10px 0; text-align: center; }
.auto-flow li::before { content: ""; position: absolute; top: 19px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); z-index: 1; }
.auto-flow li::after { content: ""; position: absolute; top: 25px; left: 50%; width: 100%; height: 2px; background: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.auto-flow li:last-child::after { display: none; }
.auto-flow b { display: block; font: 600 16px/1.3 var(--cond); }
.auto-flow span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.auto-flow { padding: 0; margin: 0; }
@media (max-width: 860px) {
  .auto-flow { grid-template-columns: 1fr; }
  .auto-flow li { text-align: left; padding: 0 0 22px 36px; }
  .auto-flow li::before { top: 4px; left: 0; margin: 0; }
  .auto-flow li::after { top: 18px; left: 6px; width: 2px; height: 100%; }
}

/* map */
.map-card { background: #0B1118; border-radius: 14px; padding: 18px; border: 1px solid #233040; }
.map-card svg { display: block; width: 100%; height: auto; }
.pop-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.pop-list li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 20px; font-size: 14px; }
.pop-list code { font-size: 12.5px; color: var(--accent); font-weight: 500; }

/* devices */
.devices { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.devices li { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 14px; font: 500 14px/1.2 var(--sans); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.sec.alt .devices li { background: var(--surface-2); }
.devices li svg { width: 16px; height: 16px; color: var(--ink-3); }
.devices .qr { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

/* diagrams */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.sec.alt .diagram { background: var(--surface-2); }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram svg { display: block; width: 100%; min-width: 640px; height: auto; font-family: var(--sans); }
.diagram figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.diagram .swipe { display: none; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 700px) { .diagram .swipe { display: block; } }
.dg-box { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.sec.alt .dg-box { fill: var(--surface); }
.dg-pop { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.dg-bb { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.dg-bbfill { fill: color-mix(in srgb, var(--accent) 6%, transparent); }
.dg-t { fill: var(--ink); font-size: 14px; font-weight: 600; }
.dg-s { fill: var(--ink-3); font-size: 11.5px; }
.dg-m { fill: var(--accent); font-size: 11px; font-family: var(--mono); }
.dg-line { stroke: var(--ink-3); stroke-width: 1.6; fill: none; }
.dg-tun { stroke: var(--c, var(--accent)); stroke-width: 3; fill: none; stroke-linecap: round; }
.dg-flow { stroke: var(--c, var(--accent)); stroke-width: 3; fill: none; stroke-dasharray: 2 10; stroke-linecap: round; animation: flow 1.2s linear infinite; opacity: .9; }
.dg-ic { fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes flow { to { stroke-dashoffset: -24; } }

/* use cases */
.case { border-left: 3px solid var(--c, var(--accent)); }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 500 12px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; }
td .num { font-size: 18px; font-weight: 500; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) {
  .price-tbl thead { display: none; }
  .price-tbl tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .price-tbl tr:last-child { border-bottom: none; }
  .price-tbl td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: none; text-align: right; }
  .price-tbl td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; text-align: left; }
  .price-tbl td.r { text-align: right; }
}

/* pricing teaser / plans */
.plan { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--c, var(--accent)); }
.plan .price { font: 600 40px/1 var(--cond); color: var(--ink); margin-top: 6px; }
.plan .price small { font: 400 15px/1 var(--sans); color: var(--ink-3); margin-left: 4px; }
.plan .note { font-size: 13.5px; color: var(--ink-3); }
.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.price-box .price { font: 600 36px/1 var(--cond); color: var(--ink); }
.price-box .price small { font: 400 15px var(--sans); color: var(--ink-2); margin-left: 4px; }
.price-box p { color: var(--ink-2); font-size: 14.5px; flex-basis: 100%; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.pills li { font-size: 13.5px; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; color: var(--ink-2); background: var(--surface); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.calc-row:last-of-type { border-bottom: none; }
.calc-row label { font-weight: 600; font-size: 15px; }
.calc-row label small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.calc-row .out { text-align: right; font-family: var(--mono); font-size: 15px; }
.inp { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); overflow: hidden; }
.inp:focus-within { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.inp input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 9px 10px; font: 500 15px var(--mono); color: var(--ink); outline: none; }
.inp span { padding: 0 10px; color: var(--ink-3); font-size: 13px; border-left: 1px solid var(--line-2); }
@media (max-width: 520px) { .calc-row { grid-template-columns: minmax(0, 1fr) 120px; } .calc-row .out { grid-column: 1 / -1; text-align: left; font-size: 14px; color: var(--ink-2); } }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 16px; padding: 5px 12px; font: 13px/1.2 var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.calc-total { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.calc-total .big { font: 600 48px/1 var(--cond); color: var(--ink); }
.calc-total dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-size: 14.5px; }
.calc-total dt { color: var(--ink-3); }
.calc-total dd { margin: 0; text-align: right; font-family: var(--mono); }

/* billing cycle */
.cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cycle li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.sec.alt .cycle li { background: var(--surface-2); }
.cycle li:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); }
.cycle h3 { font-size: 17px; margin: 8px 0 6px; }
.cycle p { font-size: 14.5px; color: var(--ink-2); }
.cycle .icon { margin: 0; }
@media (max-width: 900px) { .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cycle li::after { display: none; } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq.center { margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sec.alt .faq details { background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }
.faq .a p + p { margin-top: 8px; }

/* CTA band */
.cta { padding: 64px 0; position: relative; overflow: hidden; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); }
.cta p { color: var(--ink-2); margin-top: 8px; max-width: 620px; }

/* callouts */
.note-box { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 420px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }

/* footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-foot h2 { font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot .brand { margin-bottom: 12px; }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Hide the Chinese source text until site.js has applied the visitor's language (English by default). */
html.i18n-pending body { visibility: hidden; }

/* Live network figures under the POP map heading (filled by site.js). */
.net-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.net-stats > div { display: flex; align-items: baseline; gap: 6px; }
.net-stats b { font-family: "IBM Plex Mono", monospace; font-size: 1.35rem; color: var(--accent); }
.net-stats span { font-size: .85rem; color: var(--ink-3); }
.net-stats .net-carriers { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--ink-3); }
.pop-list li small { display: block; font-size: .72rem; color: var(--ink-3); margin-top: 2px; }

/* Volume tiers under the price table (filled by site.js from /api/pricing). */
#price-tiers { margin-top: 28px; }
#price-tiers h3 { margin: 0 0 10px; font-size: 1.05rem; }
#price-tiers .note { margin-top: 8px; font-size: .85rem; color: var(--ink-3); }

/* ---------- legal pages (terms, privacy, sla) and about ---------- */
.legal-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.legal-toc h2 { font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a { display: flex; gap: 6px; padding: 5px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { background: var(--surface); color: var(--ink); }
.legal-toc .n { color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; min-width: 22px; }
.legal-doc { max-width: 760px; color: var(--ink-2); font-size: 16px; }
.legal-doc .legal-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin: 0 0 6px; }
.legal-doc .legal-lang { font-size: 13.5px; color: var(--ink-3); margin: 0 0 20px; }
.legal-doc > .note-box { margin-bottom: 8px; }
.legal-doc section { padding-top: 34px; scroll-margin-top: 80px; }
.legal-doc h2 { font-size: 23px; color: var(--ink); margin-bottom: 12px; }
.legal-doc h2 .n { color: var(--accent); margin-right: 2px; }
.legal-doc h3 { font-size: 17px; color: var(--ink); margin: 0 0 10px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal-doc b { color: var(--ink); font-weight: 600; }
.legal-doc a { color: var(--accent); }
.legal-doc .legal-caps { color: var(--ink); font-weight: 500; text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; }
html[lang^="zh"] .legal-doc .legal-caps { text-transform: none; font-weight: 600; }
.legal-tbl { margin: 6px 0 20px; }
.legal-tbl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-tbl caption { text-align: left; padding: 12px 16px 0; font-weight: 600; color: var(--ink); }
.legal-tbl th, .legal-tbl td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.legal-tbl th { white-space: normal; }
.legal-tbl tr:last-child td { border-bottom: 0; }
.legal-tbl td.r { text-align: right; font-family: var(--mono); }
.legal-tbl th.r { text-align: right; }
.legal-example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.legal-example dd { font-family: var(--mono); font-size: 14.5px; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
}
.about-text p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 14px; }
.about-text a, .about-money a, .about-feats a, .note-box a { color: var(--accent); }
.about-money h3 { font-size: 20px; margin-bottom: 10px; }
.about-money p { color: var(--ink-2); margin: 0 0 10px; }
.about-feats { gap: 28px 40px; }

/* Page and scroll entrance */
@keyframes site-fade { from { opacity: 0; } to { opacity: 1; } }
body { animation: site-fade .4s ease-out both; }
.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.reveal-on .reveal.revealed { opacity: 1; transform: none; }
.card { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(20,32,46,.12); }
.btn { transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .card, .btn, a.card:hover { transition: none; transform: none; }
}

/* A product the operator paused: shown, greyed out, not orderable. */
.card.sold-out { filter: grayscale(1); opacity: .6; }
.card.sold-out:hover { transform: none; box-shadow: none; }
.sold-out-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font: 600 12px/1.6 var(--sans); background: var(--line); color: var(--ink); vertical-align: middle; }
.btn.sold-out { filter: grayscale(1); opacity: .55; pointer-events: none; cursor: not-allowed; }

/* Public status page */
.status-root { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.status-banner { padding: 16px 20px; border-radius: var(--radius); font: 600 18px/1.4 var(--sans); border: 1px solid var(--line); }
.status-banner.st-operational { background: color-mix(in srgb, #16a34a 12%, var(--surface)); color: #15803d; }
.status-banner.st-maintenance { background: color-mix(in srgb, #2563eb 12%, var(--surface)); color: #1d4ed8; }
.status-banner.st-outage { background: color-mix(in srgb, #dc2626 12%, var(--surface)); color: #b91c1c; }
.status-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.status-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.status-row:first-child { border-top: 0; }
.status-name { font-weight: 600; }
.status-uptime { font: 400 13px/1 var(--mono); color: var(--ink-3); }
.status-pill { padding: 3px 10px; border-radius: 999px; font: 600 12px/1.6 var(--sans); }
.status-pill.st-operational { background: #dcfce7; color: #15803d; }
.status-pill.st-maintenance { background: #dbeafe; color: #1d4ed8; }
.status-pill.st-outage { background: #fee2e2; color: #b91c1c; }
.status-h { font-size: 18px; margin: 8px 0 0; }
.status-incidents { margin: 0; padding-left: 18px; color: var(--ink-3); }
.status-none, .status-updated, .status-loading { color: var(--ink-3); font-size: 14px; }
@media (max-width: 560px) { .status-row { grid-template-columns: 1fr auto; } .status-uptime { grid-column: 1 / -1; } }
