/* Koi API's site (api.koi.tools: /, /pricing/, /history/).
   Minimal, not plain (Julian 2026-12-05): few sections, short copy, one
   accent; depth from soft surfaces, a top light and one live panel.
   System fonts only: web fonts and CDNs are slow or blocked in China. */

:root {
  --bg: #08090a;
  --surface: rgba(255, 255, 255, .025);
  --surface2: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .075);
  --border2: rgba(255, 255, 255, .13);
  --ink: #eeeff0;
  --dim: #9da3a8;
  --faint: #62686d;
  --gold: #f2b84b;
  --gold-hi: #ffd98a;
  --gold-ink: #1b1204;
  --gold-soft: rgba(242, 184, 75, .1);
  --up: #3dd68c;
  --down: #ff6b5e;
  --teal: #4fd1d9;
  --violet: #a594ff;
  --sans: Inter, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* The footer at the bottom of the window when a page is short. */
  display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .foot { flex-shrink: 0; }
/* A light from above, and a dot grid that fades out under it. */
body::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 320px at 50% -60px, rgba(242, 184, 75, .13), transparent 70%),
    radial-gradient(1100px 520px at 50% -120px, rgba(79, 209, 217, .06), transparent 70%);
}
body::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(700px 420px at 50% 0, #000, transparent 75%);
  mask-image: radial-gradient(700px 420px at 50% 0, #000, transparent 75%);
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img, svg { display: block; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; }
::selection { background: rgba(242, 184, 75, .3); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* ── header ─────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 10, .7); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 24px; height: 24px; }
.brand span { padding: 1px 6px; border-radius: 5px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 6px 11px; border-radius: 7px; color: var(--dim); font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: var(--surface2); }
.nav a[aria-current="page"] { color: var(--ink); }
.top-end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 2px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.lang a { padding: 3px 9px; border-radius: 6px; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.lang a.on { background: var(--surface2); color: var(--ink); }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 9px;
  background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border2);
  font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: background .15s, box-shadow .15s, filter .15s, transform .1s;
}
.btn:hover { background: rgba(255, 255, 255, .07); }
.btn:active { transform: translateY(.5px); }
.btn svg { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn.primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%);
  color: var(--gold-ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(242, 184, 75, .6), 0 8px 24px -10px rgba(242, 184, 75, .65);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn.primary[aria-disabled="true"] { opacity: 1; background: rgba(255, 255, 255, .05); color: var(--faint); text-shadow: none; box-shadow: inset 0 0 0 1px var(--border); }
.link { display: inline-flex; align-items: center; gap: 5px; color: var(--dim); font-size: 14px; transition: color .15s; }
.link:hover { color: var(--ink); }
.link svg { width: 14px; height: 14px; transition: transform .2s; }
.link:hover svg { transform: translateX(2px); }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 96px 0 0; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--dim); font-size: 13px; }
.pill b { padding: 1px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 600; }
h1 {
  margin: 22px auto 0; max-width: 820px;
  font-size: clamp(40px, 6.4vw, 68px); font-weight: 650; line-height: 1.06; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, #a9afb4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
html[lang="zh-CN"] h1 { letter-spacing: -.01em; line-height: 1.14; font-weight: 700; }
.sub { max-width: 560px; margin: 20px auto 0; color: var(--dim); font-size: 17.5px; line-height: 1.6; text-wrap: balance; }
.acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; }

/* ── sections ───────────────────────────────────────────── */
.sec { padding-top: 128px; }
.head { max-width: 560px; margin-bottom: 40px; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 600; }
h2 { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 38px); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
html[lang="zh-CN"] h2 { letter-spacing: 0; font-weight: 700; }
.head p { margin-top: 12px; color: var(--dim); font-size: 16px; }

/* Three cards, each with a small picture on top. */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; transition: box-shadow .2s, background .2s; }
.card:hover { box-shadow: inset 0 0 0 1px var(--border2); background: rgba(255, 255, 255, .032); }
.card .art { height: 132px; margin: -4px -4px 22px; display: flex; align-items: center; justify-content: center; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card p { margin-top: 6px; color: var(--dim); font-size: 14.5px; }
.card .foot-line { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; font-size: 13.5px; color: var(--faint); }
.card .foot-line b { color: var(--ink); font-weight: 600; }

/* card pictures */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 250px; }
.chips span { padding: 4px 9px; border-radius: 7px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--border); font: 12px/1.2 var(--mono); color: var(--dim); }
.chips span.g { background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(242, 184, 75, .35); color: var(--gold-hi); }
.mini-hours { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 4px; width: 100%; max-width: 260px; height: 96px; }
.mini-hours i { border-radius: 3px; background: rgba(255, 255, 255, .09); }
.mini-hours i.g { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 0 16px -4px rgba(242, 184, 75, .7); }
.cities { display: grid; gap: 8px; width: 100%; max-width: 250px; }
.cities div { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 9px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; }
.cities code { color: var(--faint); font-size: 11.5px; }
.cities i { width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(61, 214, 140, .14); display: inline-block; }

/* ── code ───────────────────────────────────────────────── */
.code { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: stretch; }
.code .card { padding: 28px; }
pre { margin: 0; padding: 22px 24px; overflow: auto; border-radius: var(--r); background: rgba(0, 0, 0, .45); box-shadow: inset 0 0 0 1px var(--border); color: #c9cdd1; font-size: 12.8px; line-height: 1.75; }
pre .k { color: #8fd3da; }
pre .s { color: #f1cf87; }
pre .n { color: #f8a98a; }
pre .c { color: var(--faint); }
.checks { margin: 18px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; padding: 6px 0; color: var(--dim); font-size: 14.5px; }
.checks li::before { content: ''; flex: 0 0 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%23f2b84b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks code, .checks b { color: var(--ink); }
.checks b { font-weight: 600; }

.venues { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 128px; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--faint); font-size: 14.5px; font-weight: 500; }

/* ── closing ────────────────────────────────────────────── */
.end { padding: 128px 0 112px; text-align: center; }
.end h2 { margin: 0 auto; max-width: 620px; }
.end p { margin-top: 12px; color: var(--dim); }

/* ── pricing ────────────────────────────────────────────── */
.page { padding: 88px 0 0; text-align: center; }
.page h1 { font-size: clamp(36px, 5.2vw, 56px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 56px auto 0; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.plan.main { background: radial-gradient(420px 220px at 100% 0, rgba(242, 184, 75, .12), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px rgba(242, 184, 75, .32), 0 30px 80px -40px rgba(242, 184, 75, .35); }
.plan.main::before { content: ''; position: absolute; inset: 0 30px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 217, 138, .7), transparent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { margin: 0; font-size: 15px; font-weight: 600; }
.tag { padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 11.5px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 2px; }
.price b { font-size: 46px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--faint); font-size: 14px; }
.plan .desc { color: var(--dim); font-size: 14.5px; }
.plan .checks { flex: 1; margin: 22px 0 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; padding: 4px; border-radius: 11px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border); }
.presets button { height: 34px; border: 0; border-radius: 8px; background: none; color: var(--dim); font: 500 13.5px/1 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.presets button:hover { color: var(--ink); }
.presets button[aria-pressed="true"] { background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border2); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.qty label { color: var(--dim); font-size: 14px; }
.stepper { display: flex; align-items: center; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--border2); }
.stepper button { width: 34px; height: 36px; border: 0; background: none; color: var(--dim); font: 400 17px/1 var(--sans); cursor: pointer; }
.stepper button:hover { color: var(--ink); }
.stepper input { width: 70px; height: 36px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: none; color: var(--ink); font: 600 15px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }
.stepper input:invalid { color: var(--down); }
.sum { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 24px; }
.sum span { color: var(--dim); font-size: 14px; }
.sum b { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.fine { margin: 28px auto 0; color: var(--faint); font-size: 13.5px; text-align: center; }
.faq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 880px; margin: 112px auto 112px; text-align: left; }
.faq h3 { margin: 0; font-size: 15px; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--dim); font-size: 14px; }

/* ── history ────────────────────────────────────────────── */
.box { padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 16px; font-weight: 600; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.icon-btn:hover:not(:disabled) { color: var(--ink); background: var(--surface2); }
.icon-btn:disabled { opacity: .25; cursor: default; }
.icon-btn svg { width: 15px; height: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid .dow { padding: 2px 0 8px; text-align: center; color: var(--faint); font-size: 12.5px; }
.cal-grid button { position: relative; height: 46px; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, .2); font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums; transition: background .12s, box-shadow .12s; }
.cal-grid button.has { color: var(--ink); background: rgba(255, 255, 255, .025); cursor: pointer; }
.cal-grid button.has:hover { background: var(--surface2); }
.cal-grid button.picked::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal-grid button.full { background: linear-gradient(180deg, rgba(242, 184, 75, .3), rgba(242, 184, 75, .14)); color: var(--gold-hi); font-weight: 650; box-shadow: inset 0 0 0 1px rgba(242, 184, 75, .55); }
.cal-grid button.full:hover { background: linear-gradient(180deg, rgba(242, 184, 75, .38), rgba(242, 184, 75, .18)); }
.cal-grid button.on { box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 650; }
.cal-grid button.full.on { box-shadow: inset 0 0 0 1.5px var(--gold-hi), 0 0 18px -6px rgba(242, 184, 75, .6); }
.cal-hint { margin: 14px 0 0; color: var(--faint); font-size: 12.5px; }
.zone { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
.seg { display: flex; padding: 2px; border-radius: 8px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px var(--border); }
.seg button { padding: 4px 10px; border: 0; border-radius: 6px; background: none; color: var(--faint); font: 500 12.5px/1.2 var(--sans); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface2); color: var(--ink); }
.day-acts { display: flex; gap: 6px; }
.chip { height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--surface2); color: var(--dim); font: 500 13px/1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1px var(--border); }
.chip:hover { color: var(--ink); }
.state { padding: 36px 0; text-align: center; color: var(--faint); font-size: 14px; }
.state .btn { margin-top: 14px; }
.faint { color: var(--faint); }

/* ── footer ─────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 36px; color: var(--faint); font-size: 13px; }
.foot .brand { color: var(--dim); font-weight: 500; }
.foot .brand img { width: 18px; height: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a:hover { color: var(--dim); }

/* ── smaller screens ────────────────────────────────────── */
@media (max-width: 900px) {
  .cards, .code { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .top .wrap { gap: 12px; }
  .nav a.hide-sm, .top-end .dash { display: none; }
  .hero { padding-top: 64px; }
  .sub { font-size: 16px; }
  .plans { grid-template-columns: 1fr; }
    .sec { padding-top: 96px; }
}
@media (max-width: 460px) {
  .wrap { padding: 0 16px; }
  .plan { padding: 24px 20px; }
}

/* ── what we sell: a picture and a few lines each ───────── */
.product { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.product.flip { grid-template-columns: 1.15fr 1fr; }
.product.flip .text { order: 2; }
.product .text h2 { margin-top: 12px; }
.product .text > p { margin-top: 14px; color: var(--dim); font-size: 16px; }
.product .checks { margin-top: 22px; }
.product .buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.product .buy .p { font-size: 15px; color: var(--dim); }
.product .buy .p b { color: var(--ink); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 13px; font-weight: 600; }
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 184, 75, .18); }

/* A picture of the product, in a window frame. */
.shot { position: relative; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); box-shadow: inset 0 0 0 1px var(--border), 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 140px -50px rgba(242, 184, 75, .25); overflow: hidden; }
.shot::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 217, 138, .5), transparent); }
.shot-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.shot-bar .dots { display: flex; gap: 6px; }
.shot-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.shot-bar .addr { flex: 1; text-align: center; color: var(--faint); font: 12px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-body { padding: 20px; }
.shot.art { padding: 18px 14px; }
.sec.first { padding-top: 112px; }
.shot pre { padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 12.5px; }
.shot pre + pre { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* the history picker, drawn small: one day's hours */
.m-day { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.m-day b { font-size: 14px; font-weight: 600; }
.m-day span { color: var(--faint); font-size: 12px; }
.m-dock { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 7px 7px 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--border2); font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.m-dock b { color: var(--ink); }
.m-dock b.g { color: var(--gold); }
.m-dock span.btn-m { padding: 6px 10px; border-radius: 7px; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%); color: var(--gold-ink); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .product, .product.flip { grid-template-columns: 1fr; gap: 36px; }
  .product.flip .text { order: 0; }
}
@media (max-width: 460px) {
    .shot-body { padding: 14px; }
}

/* The history picture opens the history page. */
.link-shot { display: block; transition: box-shadow .2s, transform .2s; }
.link-shot:hover { box-shadow: inset 0 0 0 1px var(--border2), 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 160px -40px rgba(242, 184, 75, .35); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .link-shot:hover { transform: none; } }

/* ── the history workspace: calendar · order · sample ───── */
.wrap.wide { max-width: 1440px; }
body.app::before { height: 520px; }
body.app::after { height: 420px; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 52px 0 28px; }
.app-head h1 { margin: 0; max-width: none; font-size: 32px; line-height: 1.2; text-align: left; }
.app-head p { margin-top: 6px; color: var(--dim); font-size: 15px; }
.app-head-end { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "cal order" "sample order"; gap: 20px; align-items: start; padding-bottom: 112px; }
.cal-box { grid-area: cal; }
.order { grid-area: order; position: sticky; top: 80px; }
.year > .state, .year > p { grid-column: 1 / -1; }
.sample { grid-area: sample; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 18px; }
.sample p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--faint); font-size: 13px; }
.sample p b { color: var(--ink); font-size: 14px; font-weight: 600; }
.sample .btn { flex-shrink: 0; gap: 7px; }
.sample .btn:hover svg { transform: translateY(1px); }
.sample .btn small { color: var(--faint); font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.box { padding: 22px; border-radius: 16px; }
.box-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.box-head h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.box-head h2 small { margin-left: 8px; color: var(--faint); font-size: 12.5px; font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.legend .l-full { background: linear-gradient(180deg, rgba(242, 184, 75, .45), rgba(242, 184, 75, .2)); box-shadow: inset 0 0 0 1px rgba(242, 184, 75, .6); }
.legend .l-part { position: relative; background: rgba(255, 255, 255, .05); }
.legend .l-part::after { content: ''; position: absolute; left: 4px; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.legend .cal-hint { margin: 0 0 0 auto; }

/* the year: twelve small months */
.year-nav { display: flex; align-items: center; gap: 6px; }
.year-nav b { min-width: 74px; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.year { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 22px; }
.mon-name { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: 600 13px/1.2 var(--sans); text-align: left; cursor: pointer; }
/* The month's checkbox: empty, a dash for some of it, a tick for all of it. */
.mcheck { position: relative; flex: 0 0 15px; width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--border2); transition: background .12s, box-shadow .12s; }
.mon-name:hover:not(:disabled) .mcheck { box-shadow: inset 0 0 0 1.5px var(--dim); }
.mon-name.part .mcheck { box-shadow: inset 0 0 0 1.5px rgba(242, 184, 75, .7); }
.mon-name.part .mcheck::after { content: ''; position: absolute; left: 4px; right: 4px; top: 7px; height: 1.5px; border-radius: 1px; background: var(--gold); }
.mon-name.full .mcheck { background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3 6.8 11 12 5.2' fill='none' stroke='%231b1204' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: none; }
.mon-name:disabled .mcheck { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06); }
.mon-name:hover:not(:disabled) { background: var(--surface2); }
.mon-name.full { color: var(--gold-hi); }
.mon-name:disabled { color: var(--faint); cursor: default; }
.mon.empty .cal-grid { opacity: .55; }
.year .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.year .cal-grid > * { min-width: 0; }
.year .cal-grid .dow { padding: 0 0 4px; font-size: 10px; }
.year .cal-grid button { height: 26px; padding: 0; border-radius: 6px; font-size: 11.5px; font-weight: 500; }
.year .cal-grid button.today { color: var(--dim); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.legend .l-today { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.now { color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.now b { color: var(--ink); font-weight: 600; }
.year .cal-grid button.picked::after { bottom: 2px; width: 3px; height: 3px; margin-left: -1.5px; }
.workspace 
/* order details */
.o-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 12px 24px; text-align: center; color: var(--faint); font-size: 13.5px; }
.o-empty svg { width: 40px; height: 40px; color: rgba(255, 255, 255, .18); }
.o-list { margin: 0 -6px; padding: 0; list-style: none; max-height: 340px; overflow: auto; }
.o-list:empty { display: none; }
.o-list li { display: grid; grid-template-columns: minmax(0, 1fr) 26px; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid var(--border); }
.o-list li:first-child { border-top: 1px solid var(--border); }
.o-list b { display: block; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.o-list span { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.o-list .o-cost { color: var(--dim); font-size: 13.5px; }
.o-x { width: 26px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--faint); font: 400 17px/1 var(--sans); cursor: pointer; }
.o-x:hover { color: var(--ink); background: var(--surface2); }
.o-sum { display: grid; gap: 9px; margin: 18px 0 0; }
.o-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.o-sum dt { color: var(--faint); }
.o-sum dd { margin: 0; color: var(--dim); }
.o-total { display: flex; align-items: baseline; justify-content: space-between; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.o-total span { color: var(--dim); font-size: 14px; }
.o-total b { font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.o-note { margin: -6px 0 16px; color: var(--faint); font-size: 12.5px; }
.o-foot { margin-top: 14px; color: var(--faint); font-size: 12px; line-height: 1.6; }

@media (max-width: 1360px) {
  .year { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cal" "order" "sample"; }
  .order { position: static; }
}
@media (max-width: 760px) {
  .year { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .app-head { padding-top: 36px; }
  .legend .cal-hint { margin: 0; flex-basis: 100%; }
  .sample { flex-direction: column; align-items: stretch; }
}
@media (max-width: 520px) {
  .year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .box { padding: 18px 16px; }
}

/* ── questions under the workspace ──────────────────────── */
.hfaq { max-width: 960px; padding: 8px 0 120px; }
.hfaq h2 { margin: 0 0 18px; font-size: 26px; }
.qa { border-top: 1px solid var(--border); }
.qa details { border-bottom: 1px solid var(--border); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: 0 0 10px; width: 10px; height: 10px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.qa-body { padding: 0 2px 22px; }
.qa-body p { color: var(--dim); font-size: 14.5px; line-height: 1.7; }
.qa-body p + pre, .qa-body pre + p { margin-top: 14px; }
.qa-body pre { font-size: 12.3px; }
.qa-body code { color: var(--ink); }
.qa-body ul { margin: 12px 0 14px; padding-left: 20px; color: var(--dim); font-size: 14.5px; line-height: 1.7; }
.qa-body li + li { margin-top: 6px; }
.qa-body li b { color: var(--ink); font-weight: 600; }

/* The Full Data Stream's picture: events arriving, newest on top. */
.stack-art { padding: 26px 24px 8px; }
.stack { display: grid; gap: 10px; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
.evc { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 13px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--border); }
.evc:first-child { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)); box-shadow: inset 0 0 0 1px var(--border2), 0 14px 34px -18px rgba(0, 0, 0, .9); }
.evc:nth-child(n + 4) { transform: scale(.97); }
.evc .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; }
.evc .ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.evc .ic.k-buy { background: rgba(61, 214, 140, .12); color: var(--up); }
.evc .ic.k-sell { background: rgba(255, 107, 94, .12); color: var(--down); }
.evc .ic.k-create { background: var(--gold-soft); color: var(--gold); }
.evc .ic.k-migrate { background: rgba(79, 209, 217, .12); color: var(--teal); }
.evc .ic.k-liq { background: rgba(165, 148, 255, .12); color: var(--violet); }
.evc-main, .evc-end { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.evc-end { align-items: flex-end; }
.evc b { font-size: 14.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evc-main b span { margin-right: 4px; color: var(--dim); font-weight: 500; }
.evc-main > span, .evc-end > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--faint); font-size: 12.5px; }
@media (max-width: 460px) { .stack-art { padding: 18px 14px 6px; } .evc { padding: 11px 12px; gap: 10px; grid-template-columns: 32px minmax(0, 1fr) auto; } .evc .ic { width: 32px; height: 32px; } }

/* ── speed and latency (landing page) ───────────────────── */
.speed { padding-top: 88px; }
.speed-box { position: relative; padding: 32px 36px 30px; border-radius: 18px; background: radial-gradient(520px 200px at 0% 0%, rgba(242, 184, 75, .09), transparent 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.speed-box::before { content: ''; position: absolute; inset: 0 40px auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 217, 138, .45), transparent); }
.speed-head h2 { margin-top: 10px; font-size: clamp(22px, 2.6vw, 28px); }
.timeline { position: relative; height: 92px; margin: 34px 8px 8px; }
.tl-line { position: absolute; left: 0; right: 0; top: 40px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, var(--gold), rgba(242, 184, 75, .25) 12%, rgba(255, 255, 255, .1) 40%, rgba(255, 255, 255, .1)); }
.tl-dot { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.tl-dot span { order: -1; height: 30px; white-space: nowrap; font-size: 13px; color: var(--dim); }
.tl-dot span b { margin-right: 6px; color: var(--ink); font-weight: 600; }
.tl-dot i { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; }
.tl-dot.koi { transform: none; align-items: flex-start; }
.tl-dot.koi i { background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 184, 75, .18), 0 0 24px rgba(242, 184, 75, .6); }
.tl-dot.slow { transform: translateX(-100%); align-items: flex-end; }
.tl-dot.slow i { background: #5a6066; box-shadow: 0 0 0 5px rgba(255, 255, 255, .05); }
.tl-scale { position: absolute; left: 0; right: 0; top: 62px; display: flex; justify-content: space-between; color: var(--faint); font: 11.5px/1 var(--mono); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--border); }
.metrics > div { padding: 22px 22px 4px 0; }
.metrics > div + div { padding-left: 22px; border-left: 1px solid var(--border); }
.metrics b { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrics span { display: block; margin-top: 2px; color: var(--gold); font-size: 13px; font-weight: 600; }
.metrics p { margin-top: 6px; color: var(--dim); font-size: 13.5px; line-height: 1.6; }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .metrics > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 520px) {
  .speed-box { padding: 24px 20px 22px; }
  .timeline { margin: 28px 0 4px; }
  .tl-dot span { font-size: 11.5px; }
  .tl-dot span b { display: block; margin: 0; }
  .tl-dot span { height: 38px; }
  .timeline { height: 100px; }
  .tl-line { top: 48px; }
  .tl-scale { top: 70px; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics > div, .metrics > div + div { padding: 18px 0 4px; border-left: 0; }
  .metrics > div + div { border-top: 1px solid var(--border); }
}

.o-sum dd#o-plan { color: var(--ink); text-align: right; }

/* history prices (pricing page) */
.tiers { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.tiers li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.tiers b { font-size: 15px; font-weight: 600; }
.tiers span { color: var(--faint); font-size: 13px; }
.tiers em { font-style: normal; font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tiers .tag { margin-left: 8px; }

/* the history picture: a fortnight, one week picked */
.m-week, .m-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.m-week { margin-bottom: 6px; color: var(--faint); font-size: 11px; text-align: center; }
.m-days span { height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--border); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.m-days span.x { background: none; box-shadow: none; }
.m-days span.g { background: linear-gradient(180deg, rgba(242, 184, 75, .3), rgba(242, 184, 75, .12)); box-shadow: inset 0 0 0 1px rgba(242, 184, 75, .55); color: var(--gold-hi); }

/* The free trial: a quiet link under (or beside) the plan's button. */
.trial { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--gold); font-size: 13.5px; font-weight: 500; }
.trial:hover { color: var(--gold-hi); }
.trial svg { width: 14px; height: 14px; transition: transform .2s; }
.trial:hover svg { transform: translateX(2px); }
.plan .trial { justify-content: center; width: 100%; }
.product .buy .trial { margin-top: 0; }
@media (min-width: 901px) { .faq { grid-template-columns: repeat(2, 1fr); } }
