/*
  Vesper Securities styling (Brand Guidelines V2.0 tokens).
  No web fonts are loaded on purpose: Google Fonts is blocked in mainland China
  and would slow every page and skew the test. Inter is used if the device has it.
*/
:root {
  --surface: #F8FAFC;
  --panel: #F8FAFC;
  --line: #DCE4EE;
  --control-line: #8291A5;
  --ink: #0A1220;
  --muted: #526175;
  --navy: #081223;
  --frost: #F8FAFC;
  --pewter: #B9C5D4;
  --steel: #27344B;
  --silver: #DCE4EE;
  --ice: #79A7FF;
  --status-warm: #E7B65C;
  --ok: #1E6B3A;
  --bad: #A4281E;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-logo-serif: Tinos, "Times New Roman", serif;
  --font-logo-mono: "DejaVu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 400 16px/1.55 var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header and hero: constant Navy band */
.band { background: var(--navy); color: var(--frost); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--steel); }
.back { font-size: 14px; color: var(--pewter); text-decoration: none; }
.back:hover { color: var(--frost); }
.back:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; border-radius: 4px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--frost); text-decoration: none; }
.lockup svg { height: 36px; width: auto; display: block; }
.lockup__word { display: flex; flex-direction: column; gap: 6px; }
.lockup__vesper { font: 400 22px/1 var(--font-logo-serif); letter-spacing: .16em; }
.lockup__sec { font: 400 9.5px/1 var(--font-logo-mono); letter-spacing: .42em; }

.hero { padding: 56px 0 64px; }
.eyebrow { font: 500 12.5px/1.4 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.band .eyebrow { color: var(--pewter); }
h1 { font-weight: 500; font-size: clamp(36px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 12px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--pewter); margin: 0; max-width: 60ch; }
.zh { color: var(--muted); font-size: .92em; }
.band .zh { color: var(--pewter); }

.loaded {
  margin-top: 32px;
  border: 1px solid var(--steel);
  border-radius: 22px;
  padding: 18px 22px;
  font-weight: 500;
  color: var(--frost);
  background: #0A1527;
}
.loaded::before { content: "\2713"; display: inline-block; margin-right: 10px; color: var(--ice); }

/* Content on Frost */
.content { padding: 56px 0 96px; }
h2 { font-weight: 500; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 48px 0 16px; }
h2:first-child { margin-top: 0; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
}
.small { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }

table { width: 100%; border-collapse: collapse; }
td { padding: 14px 4px; border-top: 1px solid var(--line); vertical-align: top; }
tr:first-child td { border-top: none; }
td:first-child { width: 55%; padding-right: 16px; }

.status { font-weight: 500; font-variant-numeric: tabular-nums; }
.status.ok { color: var(--ok); }
.status.ok::before { content: "\2713  "; white-space: pre; }
.status.bad { color: var(--bad); }
.status.bad::before { content: "\2715  "; white-space: pre; }
.status.wait { color: var(--muted); }

.verdict { margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 500; border-left: 4px solid var(--status-warm); background: #FBF4E6; }
.verdict.ok { border-left-color: var(--ok); background: #EDF5EF; }
.verdict.bad { border-left-color: var(--bad); background: #FBEFEE; }

/* Form controls */
label { display: block; margin: 0 0 16px; }
label:last-child { margin-bottom: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: none; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.field-label { display: block; font-weight: 500; margin-bottom: 8px; }
select, input[type=text], textarea {
  font: 400 16px/1.4 var(--font-sans);
  color: var(--ink);
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--control-line);
  border-radius: 12px;
  background: #FFFFFF;
}
textarea { min-height: 96px; resize: vertical; }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--ink); color: var(--frost);
  font: 500 15px/1.2 var(--font-sans); letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(8, 18, 35, .12); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
#copy-msg { color: var(--ok); font-weight: 500; }

/* Start page tool list */
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 8px 0; }
.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tools a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; padding: 0 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  text-decoration: none; color: var(--ink);
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tools a:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(8, 18, 35, .12); }
.tools a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tools a span { color: var(--muted); transition: transform .4s var(--ease); }
.tools a:hover span { transform: translateX(3px); }

/* Footer: constant Navy band */
.footer { padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--pewter); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 0 48px; }
  .content { padding: 40px 0 72px; }
  td { display: block; width: 100% !important; padding: 4px 0; border-top: none; }
  tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  tr:first-child { border-top: none; }
}
