/* OffRails — local demo site. Shared design system. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --bg-soft: #fafaf8;
  --ink: #111111;
  --ink-2: #2b2b2b;
  --muted: #666661;
  --muted-2: #9b9b95;
  --line: #e7e7e4;
  --line-2: #f0f0ed;
  --dark: #0a0a0f;
  --dark-2: #13131b;
  --dark-line: rgba(255, 255, 255, .09);
  --accent: #6c5cff;
  --accent-2: #19c9b6;
  --accent-soft: #efedff;
  --brand-blue: #0055fd;
  --live: #22c55e;
  --live-soft: #e8f8ee;
  --warn: #f59e0b;
  --red: #ef4444;
  --tp: #00b67a;
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 12px 32px -16px rgba(17, 17, 17, .14);
  --shadow-lg: 0 1px 2px rgba(17, 17, 17, .05), 0 40px 80px -40px rgba(17, 17, 17, .30);
  --cjk: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei";
  --font: Inter, var(--cjk), ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: Prompt, Inter, var(--cjk), ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bar-h: 72px;
  --announce-h: 34px;   /* measured by app.js */
  --nav-h: calc(var(--bar-h) + var(--announce-h));
}
html[lang="zh-Hans"] { --cjk: "PingFang SC", "Noto Sans SC", "Microsoft YaHei"; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang^="zh"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: #111; color: #fff; }
code, kbd, pre { font-family: var(--mono); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0;
}
.h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.02em; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.h4 { font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0; }
html[lang^="zh"] :is(.display, .h1, .h2, .h3) { letter-spacing: 0; line-height: 1.18; font-weight: 600; }
.soft { color: var(--muted-2); }
.on-dark .soft { color: var(--muted-2); }
.grad-text {
  background: linear-gradient(92deg, var(--accent) 0%, #a855f7 45%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.on-dark .eyebrow { color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); margin: 0; }
.lead b, .lead strong { color: var(--ink); font-weight: 500; }
.on-dark .lead { color: var(--muted); }
.on-dark .lead b { color: var(--ink); }
.small { font-size: 13px; color: var(--muted-2); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mono { font-family: var(--mono); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { border-color: #cfcfca; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #ececec; }
.on-dark .btn-white { background: var(--ink); color: #fff; }
.on-dark .btn-white:hover { background: #2b2b2e; }
.btn-glass { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-glass:hover { border-color: #cfcfca; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow);
}
.pill b { font-weight: 600; }
.pill:hover { border-color: #d6d6d1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; background: var(--bg-alt); color: var(--ink-2);
}
.chip-live { background: var(--live-soft); color: #15803d; }
.chip-accent { background: var(--accent-soft); color: #4a3bd6; }
.chip-dark { background: var(--ink); color: #fff; }
.chip-glass { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); display: inline-block; flex: none; }
.dot-red { background: var(--red); }
.dot-live { position: relative; }
.dot-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; color: var(--live); opacity: .35; animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Announcement + nav ---------- */
.announce {
  position: sticky; top: 0; z-index: 51;
  background: var(--bg-alt); border-bottom: 1px solid var(--line-2);
  font-size: 13px; color: var(--muted); text-align: center; padding: 8px 16px;
}
.announce .ann-short { display: none; }
@media (max-width: 720px) {
  .announce { font-size: 12px; padding: 6px 12px; }
  .announce .ann-long { display: none; }
  .announce .ann-short { display: inline; }
}
.announce a { color: var(--ink); font-weight: 500; }
.announce a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: var(--announce-h); z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: var(--bar-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; font-family: var(--font); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.logo:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 7px; border-radius: 4px; }
.logo-mark { width: 44px; height: 36px; object-fit: contain; flex: none; }
.footer .logo { gap: 12px; font-size: 25px; }
.footer .logo-mark { width: 48px; height: 40px; }
@media (max-width: 480px) {
  .nav .logo { gap: 9px; font-size: 22px; }
  .nav .logo-mark { width: 39px; height: 33px; }
}
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); white-space: nowrap; transition: background .15s;
}
.nav-link:hover { background: var(--bg-alt); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.nav-home { width: 38px; padding: 0; justify-content: center; color: var(--muted); }
.nav-link.nav-home:hover, .nav-link.nav-home.active { color: var(--ink); background: var(--bg-alt); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .16s ease;
}
.nav-dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a, .dd-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ink-2);
}
.dd-menu a:hover, .dd-menu button:hover, .dd-menu a.active { background: var(--bg-alt); }
.dd-menu a.active { color: var(--ink); font-weight: 600; }
.dd-menu .sub { display: block; font-size: 12.5px; color: var(--muted-2); line-height: 1.4; }
.nav-links .dd-menu .sub { white-space: nowrap; }
.dd-menu button.current { background: var(--bg-alt); font-weight: 600; }
.dd-menu .check { margin-left: auto; opacity: 0; }
.dd-menu button.current .check { opacity: 1; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.lang-btn:hover { background: var(--bg-alt); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; }
.menu-toggle:hover { background: var(--bg-alt); }
.mobile-sheet {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: #fff;
  padding: 16px 16px 40px; overflow-y: auto;
}
.mobile-sheet.open { display: block; }
.mobile-sheet .m-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line-2); font-size: 18px; font-family: var(--font-display); }
.mobile-sheet .active { color: var(--ink); font-weight: 600; }
.m-group summary { list-style: none; cursor: pointer; }
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary svg { transition: transform .15s; }
.m-group[open] summary svg { transform: rotate(180deg); }
.m-submenu { padding: 4px 12px 10px; border-bottom: 1px solid var(--line-2); }
.m-sub-link { display: block; padding: 12px; border-radius: 10px; font-size: 16px; color: var(--ink-2); }
.m-sub-link:hover, .m-sub-link.active { background: var(--bg-alt); }
.nav-link:focus-visible, .lang-btn:focus-visible, .m-link:focus-visible, .m-sub-link:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* ---------- Tab bar for pages that belong together (owner, 2026-10-28) ----------
   Pricing + Payments, Money map + Ledger, Board seats + Buy + Holder console, Live GPUs + Speed tests + Uptime:
   one menu entry each, and this bar under the nav moves between them. It scrolls away with the page. */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; }
.subnav-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.subnav-tabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.subnav-tabs::-webkit-scrollbar { display: none; }
.subnav-tabs a { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.subnav-tabs a:hover { color: var(--ink); background: var(--bg-alt); }
.subnav-tabs a.active { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
.subnav-tabs a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.subnav ~ main > .page-hero:first-child { padding-top: 64px; }
@media (max-width: 640px) {
  .subnav-inner { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 0 8px; }
  .subnav-title { font-size: 16px; }
  .subnav-tabs a { padding: 6px 12px; }
  .subnav ~ main > .page-hero:first-child { padding-top: 48px; }
}
.mobile-sheet .m-langs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.mobile-sheet .m-langs button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.mobile-sheet .m-langs button.current { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 1180px) {
  .nav-links, .nav-right .hide-m { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-right { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { color: var(--ink);   /* light since 2026-10-28: no dark bands */
  background: radial-gradient(900px 420px at 10% 0%, rgba(108, 92, 255, .07), transparent 65%),
    radial-gradient(800px 380px at 92% 100%, rgba(25, 201, 182, .06), transparent 65%), #f7f7fa; }
.section-head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 22px; }
.section-head.left { margin-left: 0; text-align: left; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-head { margin-bottom: 44px; } }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 32px; position: relative;
}
.card-flat { box-shadow: none; }
.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-dark { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.card .h4 + p, .card .h3 + p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.card-dark .h4 + p, .card-dark .h3 + p { color: var(--muted); }
@media (max-width: 720px) { .card { padding: 24px; border-radius: 24px; } }

.icon-box {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-alt); color: var(--ink); margin-bottom: 22px;
}
.icon-box svg { width: 22px; height: 22px; }
.card-dark .icon-box { background: var(--bg-alt); color: var(--ink); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.page-hero .pill { margin-bottom: 28px; }
.page-hero .lead { max-width: 720px; margin: 26px auto 0; }
.page-hero .hero-ctas { margin-top: 36px; }
.glow {
  position: absolute; pointer-events: none; z-index: -1; inset: -200px 0 auto 0; height: 700px;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(0, 85, 253, .075), transparent 70%),
    radial-gradient(500px 260px at 72% 20%, rgba(25, 201, 182, .08), transparent 70%);
}

/* ---------- Home hero ---------- */
.hero { padding: 72px 0 0; text-align: center; position: relative; isolation: isolate; }
.hero .pill { margin-bottom: 30px; }
.hero .lead { max-width: 760px; margin: 28px auto 0; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.hero-trust { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.hero-trust b { color: var(--ink); font-weight: 600; }

/* Showcase (dark streaming demo) */
.showcase {
  margin: 72px auto 0; max-width: 1180px; border-radius: 36px; overflow: hidden; position: relative;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(108, 92, 255, .45), transparent 60%),
    radial-gradient(700px 380px at 100% 110%, rgba(25, 201, 182, .30), transparent 60%),
    linear-gradient(180deg, #14122b 0%, #0b0b12 100%);
  color: #fff; text-align: left; box-shadow: 0 50px 100px -50px rgba(40, 30, 120, .55);
}
.showcase-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; gap: 12px; flex-wrap: wrap; }
.showcase-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; padding: 0 24px 24px; }
@media (max-width: 900px) { .showcase-body { grid-template-columns: minmax(0, 1fr); } }
.term {
  background: rgba(5, 5, 10, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  overflow: hidden; min-height: 420px; display: flex; flex-direction: column;
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: inline-block; }
.term-bar .t-title { margin-left: 8px; font-family: var(--mono); }
.term-bar .t-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.term-body { padding: 18px 20px 22px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #d8d8e6; flex: 1; overflow: hidden; position: relative; }
.term-body .prompt { color: #9d93ff; }
.term-body .user { color: #fff; }
.term-out { white-space: pre-wrap; word-break: break-word; margin-top: 12px; color: #c9f5ee; max-height: 300px; overflow: hidden; }
.term-out.overflow { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px); mask-image: linear-gradient(180deg, transparent 0, #000 28px); }
.term-out .kw { color: #c4b5fd; }
.term-out .cm { color: rgba(255, 255, 255, .38); }
.caret { display: inline-block; width: 8px; height: 15px; background: #fff; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.meter-col { display: flex; flex-direction: column; gap: 16px; }
.meter {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px;
}
.meter-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.meter-value { font-family: var(--font-display); font-size: 60px; line-height: 1; margin-top: 14px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter-value small { font-size: 18px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.spark { height: 46px; margin-top: 16px; display: flex; align-items: flex-end; gap: 3px; }
.spark span { flex: 1; background: linear-gradient(180deg, #8b7dff, rgba(139, 125, 255, .25)); border-radius: 3px 3px 0 0; transition: height .3s ease; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-stats .meter { padding: 18px; }
.mini-stats .meter-value { font-size: 30px; margin-top: 10px; }
.showcase-foot {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 0 24px 24px;
}

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 56px 0 8px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 10px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }

/* Logo strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; align-items: center; opacity: .78; }
.logos span { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: #8a8a85; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.logos span svg { width: 20px; height: 20px; }

/* ---------- Speed bars ---------- */
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 96px; gap: 18px; align-items: center; }
.bar-name { font-size: 14.5px; font-weight: 500; }
.bar-name .small { display: block; font-weight: 400; }
.bar-track { height: 14px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: #c9c9c4; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.bar-fill.us { background: linear-gradient(90deg, var(--accent), #a855f7 60%, var(--accent-2)); }
.bar-val { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-val b { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
@media (max-width: 720px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 980px) { .bento > *, .bento .span-3, .bento .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: auto; } }

/* ---------- Code window ---------- */
.code {
  background: #0d0d14; color: #e6e6f0; border-radius: 22px; overflow: hidden; border: 1px solid #1d1d28;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; box-shadow: var(--shadow-lg);
}
.code-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid #1d1d28; overflow-x: auto; }
.code-tabs button { height: 32px; padding: 0 14px; border-radius: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); font-family: var(--font); white-space: nowrap; }
.code-tabs button.active { background: rgba(255, 255, 255, .08); color: #fff; }
.code-tabs .copy { margin-left: auto; }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; }
.code .k { color: #c4b5fd; } .code .s { color: #86efac; } .code .c { color: #6b6b80; } .code .n { color: #fcd34d; } .code .f { color: #7dd3fc; }
.code .hl { background: rgba(108, 92, 255, .18); display: inline-block; width: 100%; margin: 0 -22px; padding: 0 22px; box-sizing: content-box; }

/* ---------- Reviews ---------- */
.reviews-section { background: #fff; scroll-margin-top: 32px; padding: 72px 0 52px; overflow: hidden; border-block: 1px solid var(--line-2); }
.reviews-section .section-head { text-align: center; max-width: none; margin-bottom: 28px; }
.reviews-section .h2 { font-size: clamp(36px, 5.3vw, 68px); line-height: 1.08; }
.reviews-brand-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 11px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.reviews-brand-divider { width: 1px; height: 18px; background: var(--line); }
.hero-review-badge { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; width: fit-content; margin: 28px auto 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; background: #fff; transition: border-color .2s; }
.hero-review-badge { cursor: default; }
.hero-review-source { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; letter-spacing: -.03em; }
.hero-review-source svg { width: 20px; height: 20px; color: var(--tp); }
.hero-review-badge + .hero-trust { margin-top: 16px; margin-bottom: 48px; }
.reviews-summary { display: flex; align-items: flex-end; justify-content: center; gap: 20px; margin: 0 auto 42px; }
.reviews-score { font-family: var(--font-display); font-size: clamp(64px, 7vw, 90px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.reviews-score-detail { display: flex; flex-direction: column; gap: 3px; text-align: left; padding-bottom: 8px; font-size: 15px; }
.reviews-score-detail > span:last-child { font-size: 13px; color: var(--muted); }
.tp-mark { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 15px; letter-spacing: -.03em; color: #191919; }
.tp-mark svg { width: 22px; height: 22px; color: var(--tp); }
.review-stars { display: inline-flex; gap: 3px; flex: none; }
.review-stars > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 2px; background: var(--tp); color: #fff; }
.review-stars svg { width: 16px; height: 16px; }
.review-stars .unfilled { background: #dcdce6; }
.reviews-brand-badge .review-stars > span { width: 17px; height: 17px; }
.reviews-brand-badge .review-stars svg { width: 14px; height: 14px; }
.reviews-marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reviews-marquee:focus-within { -webkit-mask-image: none; mask-image: none; }
.reviews-grid { position: relative; display: flex; align-items: stretch; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 12px 20px 24px; }
.reviews-grid::-webkit-scrollbar { display: none; }
.reviews-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.reviews-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px auto 0; }
.reviews-navigation > span { color: var(--muted); font-size: 12px; }
.reviews-navigation > div { display: flex; align-items: center; gap: 8px; }
.reviews-navigation button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; transition: background .2s, border-color .2s; }
.reviews-navigation [data-review-direction="-1"] svg { transform: rotate(180deg); }
.reviews-navigation button:hover { background: var(--bg-alt); border-color: #bdbdb7; }
.reviews-navigation button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reviews-position { font-family: var(--mono); color: var(--muted); font-size: 11px; margin-right: 8px; white-space: nowrap; }
.review-card { display: flex; flex-direction: column; flex: 0 0 380px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 4px 16px -10px rgba(17, 17, 17, .16); transition: box-shadow .2s ease; }
.review-card:hover { box-shadow: var(--shadow); }
.review-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.review-card time { color: var(--muted); font-size: 11px; }
.review-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.4; letter-spacing: -.02em; font-weight: 500; margin: 22px 0 14px; }
.review-body { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.review-author { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.review-author b { display: block; font-size: 13px; font-weight: 600; }
.review-author div > span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.review-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; font-size: 12px; font-weight: 600; }
.review-avatar.lavender { background: #eee9ff; color: #66529a; }
.review-avatar.peach { background: #ffeddf; color: #965d39; }
.review-avatar.mint { background: #e1f3e9; color: #39765b; }
.review-avatar.rose { background: #fbe6ed; color: #9b4e6d; }
.review-avatar.sand { background: #f4efdf; color: #7f6a33; }
.review-avatar.blue { background: #e6efff; color: #4c6b9d; }
@media (max-width: 600px) {
  .reviews-section { padding: 48px 0 32px; }
  .reviews-section .section-head { margin-bottom: 24px; }
  .reviews-brand-badge { margin-bottom: 24px; }
  .reviews-summary { gap: 16px; margin-bottom: 26px; }
  .reviews-score-detail { font-size: 13px; padding-bottom: 4px; }
  .reviews-score-detail > span:last-child { font-size: 11px; }
  .reviews-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
  .review-card { flex-basis: min(300px, 85vw); padding: 24px; }
  .review-card h3 { font-size: 18px; }
  .reviews-navigation > span { display: none; }
  .reviews-navigation { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .review-card { transition: none; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
table.t th, table.t td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t thead th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tr.us td { background: linear-gradient(90deg, rgba(108, 92, 255, .07), rgba(25, 201, 182, .05)); font-weight: 500; }
table.t td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.yes { color: #16a34a; font-weight: 600; } .no { color: #c2410c; } .na { color: var(--muted-2); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; gap: 18px; }
.price-card .tier { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-card .amount { font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.price-card .amount small { font-size: 16px; color: var(--muted); font-family: var(--font); letter-spacing: 0; margin-left: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--live); }
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5); }
.price-card.featured .tier, .price-card.featured .amount small { color: rgba(255, 255, 255, .55); }
.price-card.featured li svg { color: #5eead4; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-more { margin: 28px 0 0; text-align: center; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; text-align: left; font-size: 17px; font-weight: 500; }
.faq-q .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; flex: none; transition: transform .25s ease, background .2s; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.faq-a a, body[data-page="pricing"] .lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Tabs (segmented) ---------- */
.seg { display: inline-flex; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; gap: 4px; box-shadow: var(--shadow); }
.seg button { height: 36px; padding: 0 18px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.seg button.active { background: var(--ink); color: #fff; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 40px; padding: 96px 32px; text-align: center; position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(108, 92, 255, .55), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(25, 201, 182, .35), transparent 60%),
    #0b0b12;
}
.cta .lead { max-width: 620px; margin: 22px auto 0; }
.cta .hero-ctas { margin-top: 36px; }
@media (max-width: 720px) { .cta { padding: 64px 20px; border-radius: 28px; } }
/* The closing card on every page (owner, 2026-10-26): the purple / teal glow on near-black clashed with the light site,
   so it now ends the page the way the hero starts it: a light card, the logo mark, ink headline with a grey second
   word, black primary button. The board's "Join the board" card (.bd-join) went light too (owner, 2026-10-28:
   「這個底下的怎麼還是深色的」); it keeps its eyebrow instead of the logo mark. */
.cta { color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  background: radial-gradient(900px 380px at 50% -12%, rgba(99, 102, 241, .10), transparent 70%),
    radial-gradient(700px 300px at 50% 112%, rgba(13, 148, 136, .07), transparent 70%), linear-gradient(180deg, #fbfbfa, #f4f4f1); }
.cta:not(.bd-join)::before { content: ""; display: block; width: 52px; height: 44px; margin: 0 auto 24px; background: url("brand/offrails-mark.svg") center / contain no-repeat; }
.cta .soft { color: var(--muted-2); }
.cta .lead { color: var(--muted); }
.cta .lead b { color: var(--ink); }
.cta .btn-white { background: var(--ink); color: #fff; }
.cta .btn-white:hover { background: #2b2b2e; }
.cta .btn-glass { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.cta .btn-glass:hover { border-color: #cfcfca; }

/* ---------- Footer ---------- */
.footer { padding: 88px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1180px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid p { color: var(--muted); font-size: 14.5px; max-width: 320px; margin: 16px 0 24px; }
.f-col h5 { font-size: 13.5px; font-weight: 600; margin: 4px 0 16px; }
.f-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.f-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; margin-top: 64px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted-2); }
.footer-bottom .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-word {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.04em; line-height: .8;
  font-size: clamp(120px, 24vw, 340px); text-align: center; margin-bottom: -.12em; user-select: none;
  background: linear-gradient(180deg, #ececea 0%, rgba(236, 236, 234, 0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.x-list li svg { color: var(--red); }
.ok-list li svg { color: var(--live); }
.kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); font-family: var(--mono); font-size: .88em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; transition: all .25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Request flow + uptime strip ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.flow span { padding: 6px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); }
.flow .hot { background: #efedff; border-color: rgba(108, 92, 255, .4); color: #4a3bd6; }
.flow .gone { text-decoration: line-through; color: var(--muted); }
.flow i { font-style: normal; color: var(--muted-2); }
.uptime { min-width: 300px; }
.uptime-bars { display: flex; gap: 3px; height: 40px; }
.uptime-bars span { flex: 1; border-radius: 3px; background: var(--live); }
.uptime-bars span.warn { background: var(--warn); }
.uptime-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.on-dark .uptime-meta, .card-dark .uptime-meta { color: var(--muted); }
.uptime-meta b { color: var(--ink); }
.card-dark .uptime-meta b { color: var(--ink); }
@media (max-width: 720px) { .uptime { min-width: 0; } .bento .card-dark.span-6 { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---------- Showcase on small screens ---------- */
.term-bar .t-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.term-bar .t-right { white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .showcase { border-radius: 26px; margin-top: 48px; }
  .showcase-top, .showcase-body { padding-left: 14px; padding-right: 14px; }
  .term { min-height: 340px; border-radius: 18px; }
  .term-body { font-size: 11.5px; padding: 14px; }
  .term-out { max-height: 240px; }
  .meter-value { font-size: 48px; }
  .mini-stats .meter-value { font-size: 26px; }
}

/* ---------- Nav: Donate + Connect wallet (2026-10-26, assets/wallet.js) ---------- */
.nav-donate { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.nav-donate:hover { background: var(--bg-alt); }
.i-heart { color: #e5487f; flex: none; }
.wallet-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.wallet-btn:hover { border-color: #cfcfca; }
.nav-wallet.connected .wallet-btn { padding: 0 10px 0 4px; gap: 7px; }
.w-ava { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.w-ava.lg { width: 40px; height: 40px; }
.w-addr { font-family: var(--mono); font-size: 13px; }
.dd-menu.wallet-menu { width: 340px; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 100px); overflow-y: auto; }
.wallet-menu .w-head { display: flex; align-items: center; gap: 12px; }
.wallet-menu .w-head > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wallet-menu .w-head b { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.wallet-menu .w-head span { font-size: 12.5px; color: var(--muted-2); }
.dd-menu.wallet-menu button.w-icon { width: 34px; height: 34px; padding: 0; justify-content: center; color: var(--muted); flex: none; }
.w-icon svg, .w-addr-acts svg { width: 15px; height: 15px; }
.dd-menu.wallet-menu .w-switch { justify-content: center; background: #fff4e5; color: #8a4b00; font-weight: 600; }
.wallet-menu .w-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.wallet-menu .w-mini, .w-modal .w-mini { margin: 0; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.wallet-menu .w-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-menu .w-stats div { background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wallet-menu .w-stats span { font-size: 12px; color: var(--muted-2); }
.wallet-menu .w-stats b { font-family: var(--font-display); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dd-menu.wallet-menu a.w-credit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 14px 16px; border-radius: 14px; background: #f5f3ff; border: 1px solid rgba(108, 92, 255, .22); color: var(--ink); }
.dd-menu.wallet-menu a.w-credit:hover { background: #efedff; }
.wallet-menu .w-credit span { grid-column: 1; font-size: 12px; color: var(--muted); }
.wallet-menu .w-credit b { grid-column: 1; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.wallet-menu .w-credit em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; }
.wallet-menu .w-stats .w-nfts { grid-column: 1 / -1; }
.wallet-menu .w-nfts p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wallet-menu .w-cats { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.wallet-menu .w-cats > span:first-child { color: var(--muted-2); margin-right: 4px; }
.dd-menu.wallet-menu a.w-cat { width: auto; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.wallet-menu .w-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dd-menu.wallet-menu .w-acts button { justify-content: center; border: 1px solid var(--line); padding: 9px 8px; font-size: 13px; font-weight: 500; color: var(--ink); }
.dd-menu.wallet-menu .w-acts button:disabled { opacity: .4; cursor: default; background: transparent; }
.wallet-menu .w-acts .w-wide { grid-column: 1 / -1; }
.wallet-menu .w-links { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 6px; }
.dd-menu.wallet-menu .w-links a, .dd-menu.wallet-menu .w-links button { padding: 9px 4px; font-size: 13.5px; }
.dd-menu.wallet-menu .w-links button { color: #b42318; }
.dd-menu.wallet-menu .w-back { width: auto; padding: 4px 0; font-size: 13px; color: var(--muted); }
.dd-menu.wallet-menu .w-back:hover { background: none; color: var(--ink); }
.w-amt { display: flex; gap: 8px; }
.w-amt input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; font-family: var(--mono); }
.dd-menu.wallet-menu .w-amt button { width: auto; padding: 0 14px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.dd-menu.wallet-menu a.w-api { justify-content: center; background: var(--ink); color: #fff; font-weight: 600; }
.dd-menu.wallet-menu a.w-api:hover { background: #2a2a33; }
.dd-menu.wallet-menu button.w-go, .w-modal .w-go { justify-content: center; width: 100%; color: #fff; }
.w-go:disabled { opacity: .5; }
.wallet-menu .w-note { margin: 0; font-size: 12px; color: var(--muted-2); line-height: 1.5; border-top: 1px solid var(--line); padding-top: 10px; }
.dd-menu.wallet-menu .w-list button img { border-radius: 6px; }
/* signed in to the console (owner, 2026-10-29): a Console button, and the wallet shrinks to its avatar */
.nav-console { height: 36px; gap: 6px; padding: 0 14px 0 16px; font-weight: 600; }
.nav-console .arrow { width: 14px; height: 14px; }
.nav-wallet.signed-in .w-addr { display: none; }
.nav-wallet.signed-in .wallet-btn { padding: 0 8px 0 4px; }
/* were style attributes; the console (which shows this nav) allows no inline styles */
#nav-language { min-width: 180px; }
.mobile-sheet .m-cta { width: 100%; }
.mobile-sheet .m-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mobile-sheet .m-extra .btn { justify-content: center; gap: 8px; }
@media (max-width: 1180px) {
  .nav-wallet:not(.connected):not(.open) { display: none; }
  .nav-wallet.connected .w-addr, .nav-wallet.connected .wallet-btn svg { display: none; }
  .nav-wallet.connected .wallet-btn { padding: 0 4px; }
  .nav-console { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .nav-console .arrow { display: none; }
  .dd-menu.wallet-menu { position: fixed; left: 12px; right: 12px; width: auto; max-height: calc(100vh - 120px); }
}

/* Donate modal */
.w-modal { position: fixed; inset: 0; z-index: 200; background: rgba(17, 17, 17, .45); display: grid; place-items: center; padding: 16px; }
.w-modal[hidden] { display: none; }
.w-modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.w-modal-card h3 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.w-modal-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.w-modal-card .w-nothing { font-weight: 600; color: var(--ink); }
.w-don-eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.w-don-eyebrow svg { width: 13px; height: 13px; color: #e5487f; }
.w-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--muted); }
.w-x:hover { background: var(--bg-alt); color: var(--ink); }
.w-modal .w-title { font-size: 13px; font-weight: 600; margin-top: 4px; }
.w-amts { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 8px; }
.w-amts button { height: 42px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.w-amts button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.w-amts input, .w-noteIn { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.w-noteIn { width: 100%; }
.w-addrbox { display: flex; flex-direction: column; gap: 6px; background: var(--bg-alt); border-radius: 14px; padding: 14px; font-size: 13px; color: var(--muted); }
.w-addrbox code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); word-break: break-all; }
.w-addr-acts { display: flex; gap: 16px; align-items: center; }
.w-addr-acts button { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.w-addr-acts a, .w-modal .w-mini a { color: var(--accent); font-weight: 500; }
.w-soon { background: var(--bg-alt); border-radius: 14px; padding: 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 560px) {
  .w-modal-card { padding: 24px 20px; }
  .w-amts { grid-template-columns: repeat(3, 1fr); }
  .w-amts input { grid-column: 1 / -1; }
}

/* ---------- Language: globe icon in the nav, full switch in the footer (2026-10-26) ---------- */
.lang-btn.lang-icon { width: 38px; padding: 0; justify-content: center; }
.f-langs { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.f-langs svg { width: 14px; height: 14px; margin-right: 4px; }
.f-langs button { padding: 2px 8px; border-radius: 999px; font-size: 13px; color: var(--muted-2); }
.f-langs button:hover { color: var(--ink); }
.f-langs button.current { color: var(--ink); font-weight: 600; background: var(--bg-alt); }

/* ---------- Pricing board (pricing page + homepage, owner 2026-10-28): each tier is a lane into the GPUs with its prices ---------- */
.pricing-board { border: 1px solid var(--line); border-radius: 28px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.pricing-benefits { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.pricing-benefits li { display: flex; align-items: center; gap: 8px; }
.pricing-benefits li::before { content: '\2713'; color: #15803d; font-weight: 600; }
/* routing animation: three lanes into the GPUs */
.lanes-cap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13.5px; color: var(--muted); }
.lanes-src { padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-size: 12px; font-weight: 600; }
.lane { --lane: var(--ink); display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 20px; padding: 14px 0; }
.lane + .lane { border-top: 1px dashed var(--line); }
.lane.is-pri { --lane: #6c5cff; } .lane.is-flex { --lane: #12a594; }
.lane-label b { display: block; font-size: 15.5px; color: var(--lane); }
.lane-label small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: nowrap; }
.lane-track { position: relative; height: 40px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.lane-gpu { position: absolute; right: 5px; top: 5px; bottom: 5px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.lane.is-pri .lane-gpu { background: #6c5cff; }
.lane-gate { position: absolute; top: 8px; bottom: 8px; left: var(--gate); width: 0; border-left: 2px dashed rgba(20, 20, 30, .18); }
.lane.is-std { --gate: 52%; } .lane.is-flex { --gate: 36%; }
.lane-track i { position: absolute; top: 50%; left: 10px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--lane); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lane) 18%, transparent); opacity: 0; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-delay: calc(var(--d) * 1s); }
.lane.is-pri i { animation-name: lane-pri; animation-duration: 1.8s; }
.lane.is-std i { animation-name: lane-std; animation-duration: 3.3s; }
.lane.is-flex i { animation-name: lane-flex; animation-duration: 6s; }
@keyframes lane-pri { 0% { left: 10px; opacity: 0; } 10%, 85% { opacity: 1; } 100% { left: calc(100% - 90px); opacity: 0; } }
@keyframes lane-std { 0% { left: 10px; opacity: 0; } 8% { opacity: 1; } 30%, 55% { left: calc(52% - 20px); } 90% { opacity: 1; } 100% { left: calc(100% - 90px); opacity: 0; } }
@keyframes lane-flex { 0% { left: 10px; opacity: 0; } 6% { opacity: 1; } 22%, 76% { left: calc(36% - 20px); } 92% { opacity: 1; } 100% { left: calc(100% - 90px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lane-track i { animation: none; opacity: 1; left: calc(10px + var(--d) * 30px); }
}
/* the board: label | lane | prices */
.board-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 20px 28px 4px; }
.board-top .lanes-cap { margin: 0; }
.board-unit { font-size: 12px; color: var(--muted); }
.lane-rows { padding: 0 28px; }
.pricing-board .lane { grid-template-columns: 220px minmax(0, 1fr) 320px; gap: 24px; padding: 18px 0; }
.lane-chip { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--lane) 14%, #fff); color: var(--lane); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.lane-label .lane-par { margin-top: 4px; font-size: 12px; color: var(--muted-2); }
.lane-price dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.lane-price dt { font-size: 12px; color: var(--muted); }
.lane-price dd { margin: 2px 0 0; font: 500 26px/1.15 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lane.is-flex .lane-price dd { color: #0b7d70; }
.lane-long { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.board-foot { display: grid; gap: 12px; padding: 16px 28px 22px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.board-long { margin: 0; font-size: 13px; color: var(--muted); }
.board-foot .pricing-benefits { margin: 0; }
.board-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) {
  .pricing-board .lane { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; }
  .pricing-board .lane-track { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 640px) {
  .pricing-board .lane { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pricing-board .lane-track { grid-row: auto; }
  .board-top, .lane-rows, .board-foot { padding-left: 18px; padding-right: 18px; }
  .lane-price dd { font-size: 22px; }
}

/* ---------- Phones: shorter pages (owner, 2026-10-28: 「手機版不要太長」「怎麼 Pricing 還顯示出來」) ----------
   Tighter section, hero, closing-card and footer spacing; the hub tab bar drops its title and becomes one slim row. */
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-sm { padding: 44px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head .eyebrow { margin-bottom: 12px; }
  .section-head .lead { margin-top: 14px; }
  .page-hero { padding: 44px 0 40px; }
  .page-hero .pill, .hero .pill { margin-bottom: 18px; }
  .page-hero .lead, .hero .lead { margin-top: 16px; }
  .hero-ctas, .page-hero .hero-ctas, .cta .hero-ctas { margin-top: 24px; }
  .hero { padding-top: 44px; }
  .subnav-title { display: none; }
  .subnav-inner { flex-direction: row; min-height: 0; padding: 6px 16px; }
  .subnav-tabs a { padding: 5px 12px; font-size: 13.5px; }
  .subnav ~ main > .page-hero:first-child { padding-top: 28px; }
  .cta { padding: 44px 20px; }
  .cta:not(.bd-join)::before { width: 40px; height: 34px; margin-bottom: 16px; }
  .footer { padding-top: 48px; }
  .footer-bottom { margin-top: 32px; padding: 20px 0; }
  .footer-word { font-size: 25vw; }
  .card { padding: 20px; border-radius: 20px; }
  .oc-hero-pill { display: none; }
}
/* Phones: a group of 3+ cards that would stack into one long column becomes a single swipeable row instead; the next
   card peeks in from the right so people know to swipe. `main` raises the weight over each page's own grid rules. */
@media (max-width: 640px) {
  main .grid.g-3, main .grid.g-4, main .bento, main .m-swipe {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 16px; scroll-padding-inline: 16px; list-style: none;
  }
  main .grid.g-3::-webkit-scrollbar, main .grid.g-4::-webkit-scrollbar, main .bento::-webkit-scrollbar, main .m-swipe::-webkit-scrollbar { display: none; }
  main .grid.g-3 > *, main .grid.g-4 > *, main .bento > *, main .m-swipe > * { grid-column: auto !important; grid-row: auto !important; min-width: 0; scroll-snap-align: start; }
}
/* Footer columns are <details> (app.js): always open and not clickable on wide screens, folded with a +/− on phones */
.f-col > summary { list-style: none; pointer-events: none; }
.f-col > summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0; }
  .footer-grid > :first-child { margin-bottom: 18px; }
  .footer-grid > :first-child p { margin-bottom: 0; }
  .footer-grid > :first-child .btn { display: none; }
  .f-col { border-top: 1px solid var(--line-2); }
  .f-col:last-child { border-bottom: 1px solid var(--line-2); }
  .f-col > summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
  .f-col > summary h5 { margin: 0; font-size: 14.5px; }
  .f-col > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
  .f-col[open] > summary::after { content: "−"; }
  .f-col[open] { padding-bottom: 10px; }
  /* Home: the four chips repeat the lead and the tool names come again in "Your tools", so phones skip both */
  .hero-v2 .oc-pillars, #metrics .works { display: none; }
  /* Pricing board: the moving GPU-lane picture is decoration; phones keep the prices */
  .lane-track { display: none; }
}
