/* ==========================================================================
   BNB AI — campaign landing page (reference layout)
   Direction: exchange-style dark UI after the reference page's layout. Near-black #0B0E11
   canvas, #181A20 panels on #2B313A hairlines, 1216px content width, 64px section rhythm,
   yellow (#FCD535) for the banner, key figures and the tier-table head, chat-app green
   (#25D366) for every chat contact (top bar, hero, calculator, FAQ, floating button) and the
   exchange green (#0ECB81) for small accents. Order: sticky bar (Binance | SafePal as plain
   text + site name, anchors, language, chat) → hero (yellow competition banner · title, text,
   three fact cards, CTAs | original illustration) → wallet notes → tier table → calculation
   example → strategy log → safety notes → FAQ → contact → footer + floating chat button.
   Third-party names are plain text (no logos, official marks or partner badges). Tokens first;
   every component consumes them. No inline styles anywhere (CSP style-src 'self').
   ========================================================================== */

:root {
  color-scheme: dark;

  /* canvas & surfaces */
  --bg: #0b0e11;
  --surface: #181a20;
  --surface-2: #1e2026;
  --surface-3: #2b313a;
  --tint: rgba(24, 26, 32, 0.28);

  /* ink ladder (all ≥ 4.5:1 on --bg, --surface and --surface-2) */
  --ink: #eaecef;
  --ink-2: #b7bdc6;
  --ink-3: #848e9c;
  --white: #fff;

  /* yellow — banner, key figures, primary form action */
  --yellow: #fcd535;
  --yellow-hi: #ffe169;
  --yellow-soft: rgba(252, 213, 53, 0.12);
  --yellow-line: rgba(252, 213, 53, 0.4);
  --on-yellow: #0b0e11;

  /* chat green — every "talk to the team" control */
  --chat: #25d366;
  --chat-hi: #20bd5a;
  --chat-soft: rgba(37, 211, 102, 0.1);
  --chat-line: rgba(37, 211, 102, 0.42);
  --on-chat: #0b0e11;

  /* exchange green — small positive accents and states */
  --green: #0ecb81;
  --green-soft: rgba(14, 203, 129, 0.12);
  --green-line: rgba(14, 203, 129, 0.45);

  /* card accents (wallet notes, log modules) */
  --blue: #60a5fa;
  --blue-soft: rgba(59, 130, 246, 0.1);
  --blue-line: rgba(59, 130, 246, 0.5);
  --purple: #c084fc;
  --purple-soft: rgba(168, 85, 247, 0.1);
  --leaf: #4ade80;
  --leaf-soft: rgba(34, 197, 94, 0.1);

  /* hairlines (--line-field keeps form controls ≥ 3:1 against their panel) */
  --line: #2b313a;
  --line-soft: rgba(43, 49, 58, 0.6);
  --line-strong: #3a414b;
  --line-field: #5e6673;

  /* states */
  --focus: #fcd535;
  --danger: #f6465d;
  --danger-ink: #ff8d99;
  --danger-bg: rgba(246, 70, 93, 0.1);
  --danger-line: rgba(246, 70, 93, 0.5);
  --info-bg: rgba(252, 213, 53, 0.07);

  /* type: one sans family for text, system display face for titles, mono for figures */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", Roboto,
    "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI",
    "Helvetica Neue", Roboto, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui,
    sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Fira Code", Menlo, Consolas,
    "Liberation Mono", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", monospace;

  /* shape & rhythm (4px grid) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --gutter: clamp(16px, 4vw, 32px);
  --content: 1216px;
  --section-y: clamp(48px, 7vw, 64px);
  --header-h: 60px;
  --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
}

@media (min-width: 960px) {
  :root { --header-h: 64px; }
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable; /* no layout jump when a dialog locks page scroll */
  scrollbar-color: var(--line) var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html.has-modal { overflow: hidden; }
html:not(.js):has(.modal:target) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { flex: none; }

::selection { background: rgba(252, 213, 53, 0.32); color: var(--white); }

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm { width: 14px; height: 14px; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
}

.skip-link:focus { transform: none; }

/* ---------- buttons & links ---------- */

.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn .icon { width: 18px; height: 18px; }
.btn--sm { --btn-h: 40px; padding: 0 14px; font-size: 14px; }
.btn--lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }

/* Yellow: competition enquiry and the form's submit button. */
.btn--primary {
  color: var(--on-yellow);
  background: var(--yellow);
  font-weight: 800;
  box-shadow: 0 12px 30px -16px rgba(252, 213, 53, 0.7);
}

.btn--primary:hover { background: var(--yellow-hi); }

/* Chat green: talk to the team on the configured chat app. */
.btn--chat {
  color: var(--on-chat);
  background: var(--chat);
  font-weight: 800;
  box-shadow: 0 12px 30px -16px rgba(37, 211, 102, 0.75);
}

.btn--chat:hover { background: var(--chat-hi); }

/* Dark card button beside a coloured one. */
.btn--secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.btn--secondary .icon { color: var(--yellow); }
.btn--secondary:hover { background: var(--surface-2); border-color: var(--line-strong); }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-field);
}

.btn--ghost .icon { color: var(--yellow); }
.btn--ghost:hover { border-color: var(--yellow); background: rgba(252, 213, 53, 0.06); }

.btn:disabled,
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn:disabled:not(.is-loading) { opacity: 0.55; filter: saturate(0.6); }
.btn.is-loading { cursor: progress; filter: saturate(0.85); }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(11, 14, 17, 0.25);
  border-top-color: var(--on-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__icon { display: none; }

/* Inline text link: padding grows the hit area to ~44px without moving the line box. */
.link-btn {
  display: inline-block;
  margin: -12px -4px;
  padding: 12px 4px;
  color: var(--yellow);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(252, 213, 53, 0.45);
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover { color: var(--yellow-hi); text-decoration-color: currentColor; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.text-link:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sticky top bar (platform names + site name · anchors · language · chat) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 14, 17, 0.96);
  border-bottom: 1px solid rgba(43, 49, 58, 0.8);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(11, 14, 17, 0.9);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
  }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-h);
}

/* Platform names as plain text, with this site's own name in a small chip beneath them (phones)
   or beside them. No logos, marks or partner badge: the names say which platforms the strategy
   concerns, never who runs the page. */
.brand {
  display: grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
  line-height: 1;
  white-space: nowrap;
}

.brand__pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(13px, 3.8vw, 16px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__pair > :first-child { letter-spacing: 0.01em; text-transform: uppercase; }
.brand__pair > :last-child { font-size: 0.92em; font-weight: 700; color: var(--ink); }
.brand__sep { color: var(--line-field); font-weight: 400; }

.brand__site {
  max-width: 100%;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid var(--yellow-line);
  border-radius: 4px;
  background: var(--yellow-soft);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
}

/* The footer keeps the site's own mark beside its name. */
.brand__mark { width: 26px; height: 26px; }

@media (min-width: 720px) {
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand__pair { font-size: 19px; }
  .brand__site { padding: 3px 8px; font-size: 11px; }
}

/* Section anchors: plain in-page links where the bar has room (no menu script needed). */
.site-nav { display: none; }

@media (min-width: 1080px) {
  .site-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); }
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.site-nav__link:hover { color: var(--yellow); }

.bar__end {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

/* No glow in the bar: it would bleed below the header's bottom edge. */
.header-cta { box-shadow: none; }

/* Phones: platform names, three language links and the chat button share one row, so the header
   button shows its chat icon only; the label stays in its accessible name. */
@media (max-width: 479px) {
  .bar__end { gap: 6px; }
  .header-cta { width: 40px; padding: 0; }

  .header-cta__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 399px) {
  .bar { gap: 8px; }
  .bar__end { gap: 4px; }
}

/* Language: a segmented row of real links. The current one is marked. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
}

.lang__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.lang__opt:hover { background: var(--surface-3); color: var(--ink); }
.lang__opt:focus-visible { outline-offset: 1px; }

.lang__opt[aria-current] {
  background: var(--yellow-soft);
  box-shadow: inset 0 0 0 1px var(--yellow-line);
  color: var(--yellow);
}

.lang__long { display: none; }

@media (max-width: 399px) {
  .lang__opt { min-width: 30px; padding: 0 6px; }
}

@media (max-width: 359px) {
  .lang { padding: 2px; }
  .lang__opt { min-width: 28px; padding: 0 4px; font-size: 12.5px; }
}

@media (min-width: 720px) {
  .lang__short { display: none; }
  .lang__long { display: inline; }
  .lang__opt { padding: 0 10px; }
}

@media (min-width: 1080px) and (max-width: 1279px) {
  .lang__short { display: inline; }
  .lang__long { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: 40px 64px;
  border-bottom: 1px solid var(--line-soft);
}

/* Ambient yellow glow at the top centre. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  left: 50%;
  width: min(900px, 140%);
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(252, 213, 53, 0.11), rgba(252, 213, 53, 0.04) 55%, transparent);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero { padding-block: 64px 96px; }
}

/* Competition banner: badge · tag, configured pool, conditions · yellow enquiry CTA + rules link. */
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, rgba(252, 213, 53, 0.2) 0%, var(--surface) 52%, var(--surface) 100%);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.9);
}

@media (min-width: 720px) {
  .banner { flex-wrap: nowrap; padding: 20px; }
}

.banner__badge {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--yellow);
  color: var(--on-yellow);
}

.banner__badge .icon { width: 24px; height: 24px; stroke-width: 2; }

.banner__body {
  display: grid;
  flex: 1 1 0;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.banner__tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner__title {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.banner__value { color: var(--yellow); font-weight: 800; white-space: nowrap; }
.prize__amount { font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.prize__unit { font-size: 0.86em; letter-spacing: 0.04em; }
.banner__note { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

@media (min-width: 640px) {
  .banner__title { font-size: 18px; }
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  width: 100%;
}

.banner__cta { flex: 1 1 auto; min-height: 48px; padding: 0 22px; border-radius: var(--r-md); font-size: 14.5px; }
.banner__cta .icon { width: 16px; height: 16px; stroke-width: 2.4; transition: transform 0.15s; }
.banner__cta:hover .icon { transform: translateX(2px); }

.banner__rules {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: rgba(183, 189, 198, 0.4);
  text-underline-offset: 3px;
}

.banner__rules:hover { color: var(--yellow); }

@media (min-width: 720px) {
  .banner__actions { flex: none; flex-direction: column; align-items: flex-end; width: auto; gap: 0; }
  .banner__cta { flex: none; }
  .banner__rules { min-height: 32px; }
}

.hero__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
  }
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 24px;
  min-width: 0;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid rgba(252, 213, 53, 0.3);
  border-radius: 999px;
  background: var(--surface);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.hero__pill-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.16);
}

/* One compact title line ("AI量化智能挖掘 BNB"), the asset in yellow; long languages wrap into
   balanced lines. 30px on phones, 48px from 640px. */
.hero__title {
  max-width: 100%;
  color: var(--white);
  font-size: clamp(30px, 4.6vw + 12px, 48px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

:lang(en) .hero__title { letter-spacing: -0.025em; }

.hero__asset {
  font-family: var(--font-display);
  color: var(--yellow);
  white-space: nowrap;
}

.hero__sub {
  max-width: 42rem;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .hero__sub { font-size: 17.5px; }
}

/* Three fact cards (editable copy). Phones: two columns with the pool across the full width. */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.stat {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(24, 26, 32, 0.8);
}

.stat--pool { grid-column: 1 / -1; }

.stat__label { font-size: 12px; line-height: 1.45; color: var(--ink-3); }

.stat__value {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.stat--green .stat__value { color: var(--green); }
.stat--pool .stat__value { color: var(--yellow); }

/* Short "a · b · c" lists: wrap at the separators, not inside a word such as 手机. */
.stat__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stat--pool { grid-column: auto; }
}

@media (min-width: 640px) {
  .stat__value { font-size: 24px; }
}

/* Contact CTAs: chat-green first, then the dark "learn more" (same routing). */
.hero__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding-top: 8px;
}

.hero__actions .btn { min-height: 54px; border-radius: var(--r-md); }
.hero__actions .btn--chat { padding-inline: 32px; font-size: 16px; box-shadow: 0 16px 36px -16px rgba(37, 211, 102, 0.8); }
.hero__actions .btn--secondary { padding-inline: 24px; font-size: 14.5px; font-weight: 700; }

@media (min-width: 640px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: 16px; width: auto; }
}

.hero__risk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 46em;
  margin-top: -8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.hero__risk .icon { width: 15px; height: 15px; margin-top: 2px; }

/* ---------- hero illustration card (original SVG; no market, trade or account data) ---------- */

.promo {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--yellow-line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px -5px rgba(252, 213, 53, 0.3);
}

.promo--image {
  padding: 0;
  overflow: hidden;
  align-self: center;
}

.promo__image {
  display: block;
  width: 100%;
  height: auto;
}

.promo__screen {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--bg);
}

@media (min-width: 480px) {
  .promo__screen { padding: 20px; }
}

.promo__caption {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-3);
}

.promo__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
}

.strategy__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strategy__mark { width: 40px; height: 40px; }

.strategy__name {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}

.strategy__name strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.strategy__name span { font-size: 13px; color: var(--ink-3); }

.strategy__tag {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.strategy__chart {
  margin-top: 16px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(24, 26, 32, 0.6);
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__grid {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.chart__band {
  fill: rgba(14, 203, 129, 0.07);
  stroke: rgba(14, 203, 129, 0.5);
  stroke-width: 1;
  stroke-dasharray: 6 5;
}

.chart__line {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart__signals circle {
  fill: var(--bg);
  stroke: var(--yellow);
  stroke-width: 2.5;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
  padding: 0 2px;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend__item::before { content: ""; flex: none; }

.legend__item--signal::before {
  width: 10px;
  height: 10px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.legend__item--band::before {
  width: 14px;
  height: 9px;
  border: 1px dashed rgba(14, 203, 129, 0.7);
  border-radius: 2px;
  background: rgba(14, 203, 129, 0.12);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.pipeline__step {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(24, 26, 32, 0.6);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.pipeline__step .icon { width: 20px; height: 20px; color: var(--yellow); }

/* Connector between consecutive steps, drawn in the 8px gap. */
.pipeline__step + .pipeline__step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -9px;
  width: 8px;
  height: 1px;
  background: var(--line-field);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line-soft);
}

.section--tint { background: var(--tint); }

.section-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 672px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head--start {
  justify-items: start;
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

.section-title {
  color: var(--white);
  font-size: clamp(24px, 1.5vw + 16px, 30px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

:lang(en) .section-title { letter-spacing: -0.015em; }

.section-sub {
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-3);
  text-wrap: pretty;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker .icon { width: 15px; height: 15px; }
.kicker--blue { border: 1px solid rgba(59, 130, 246, 0.25); background: var(--blue-soft); color: var(--blue); }

/* wallet notes: four cards */
.features {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.feature {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.2s;
}

.feature:hover { border-color: var(--yellow-line); }
.feature--blue:hover,
.feature--purple:hover { border-color: var(--blue-line); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
}

.feature__icon .icon { width: 22px; height: 22px; }
.feature--blue .feature__icon { background: var(--blue-soft); color: var(--blue); }
.feature--yellow .feature__icon { background: rgba(252, 213, 53, 0.1); color: var(--yellow); }
.feature--green .feature__icon { background: var(--leaf-soft); color: var(--leaf); }
.feature--purple .feature__icon { background: var(--purple-soft); color: var(--purple); }

.feature__title { margin-bottom: 8px; color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.45; }
.feature__text { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }

/* tables: tier ladder and strategy log (scroll sideways on phones) */
.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th,
.table td { padding: 16px 24px; vertical-align: middle; }
.table thead th { white-space: nowrap; }
.table tbody tr + tr > * { border-top: 1px solid var(--line-soft); }
.table tbody tr:hover > * { background: rgba(30, 32, 38, 0.7); }
.cell-end { text-align: right; }
.cell-mono { font-family: var(--font-mono); }
.cell-dim { color: var(--ink-3); }
.cell-strong { color: var(--ink); font-weight: 600; }

.ladder { min-width: 640px; font-size: 14px; }

.ladder thead th {
  background: var(--yellow);
  color: var(--on-yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ladder tbody th { color: var(--white); font-weight: 700; white-space: nowrap; }
.ladder td { color: var(--ink-2); }
.ladder td.cell-mono { color: var(--ink); font-weight: 600; }
.ladder td.cell-param { color: var(--yellow); font-weight: 700; }
.ladder td.cell-end { color: var(--ink-3); font-size: 13px; }

.table-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* calculation example */
.calc {
  display: grid;
  gap: 24px;
}

@media (min-width: 1024px) {
  .calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
}

.calc__panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

@media (min-width: 640px) {
  .calc__panel { padding: 32px; }
}

.calc__inputs {
  display: grid;
  align-content: start;
  gap: 22px;
}

.calc__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.calc__label {
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.calc__tag {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(252, 213, 53, 0.15);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.calc__field { position: relative; }

.calc__input {
  display: block;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 88px 0 20px;
  border: 1px solid var(--line-field);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  -moz-appearance: textfield;
  appearance: textfield;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calc__input::-webkit-outer-spin-button,
.calc__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.calc__input::placeholder { color: var(--ink-3); font-size: 17px; font-weight: 600; opacity: 1; }
.calc__input:hover { border-color: var(--ink-3); }

.calc__input:focus,
.calc__input:focus-visible {
  outline: 2px solid transparent;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.2);
}

.calc__input[aria-invalid="true"] { border-color: var(--danger); }
.calc__field--sm .calc__input { height: 54px; padding-right: 52px; font-size: 20px; }

.calc__unit {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-50%);
  pointer-events: none;
}

.calc__hint { margin-top: -14px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

.calc__quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.calc__pill {
  min-height: 40px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.calc__pill:hover { background: var(--surface-2); color: var(--white); }
.calc__pill[aria-pressed="true"] { border-color: var(--yellow-line); color: var(--yellow); }

.calc__slider { display: grid; gap: 8px; }

.calc__slider-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.calc__slider-val { color: var(--white); font-weight: 700; white-space: nowrap; }

.calc__range {
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.calc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--line); }

.calc__range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(252, 213, 53, 0.5);
  -webkit-appearance: none;
  appearance: none;
}

.calc__range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.calc__range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--yellow); }
.calc__range:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.calc__term { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc__term legend { margin-bottom: 10px; }

.calc__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.calc__tab { position: relative; display: block; cursor: pointer; }

.calc__tab input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.calc__tab span {
  display: block;
  margin-bottom: -1px;
  padding: 11px 2px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.calc__tab:hover span { color: var(--white); }
.calc__tab input:checked + span { border-bottom-color: var(--yellow); color: var(--yellow); font-weight: 700; }
.calc__tab input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 4px; }

.calc__rate { display: grid; gap: 10px; }
.calc__rate .calc__hint { margin-top: 0; }

.calc__cta {
  min-height: 56px;
  border-radius: var(--r-md);
  font-size: 16px;
  white-space: normal;
  text-align: center;
}

.calc__result {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc__result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-3);
}

.calc__rate-val { color: var(--green); font-family: var(--font-mono); font-size: 20px; font-weight: 800; }

.calc__box {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.calc__box--total { border-color: rgba(252, 213, 53, 0.3); }

.calc__box-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.calc__days {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.calc__big {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.calc__big--yellow { color: var(--yellow); }

@media (min-width: 640px) {
  .calc__box--total .calc__big { font-size: 28px; }
}

.calc__formula { font-size: 12px; line-height: 1.55; color: var(--ink-3); }

.calc__bar { display: grid; gap: 8px; margin-top: auto; }

.calc__bar-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-3);
}

.calc__bar-key { display: inline-flex; align-items: center; gap: 6px; }
.calc__bar-key::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.calc__bar-key--p::before { background: var(--line-field); }
.calc__bar-key--e::before { background: var(--yellow); }

.calc__bar-track {
  --share: 100;
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg);
}

.calc__bar-p { flex: none; width: calc(var(--share) * 1%); background: var(--line-field); transition: width 0.3s var(--ease-out); }
.calc__bar-e { flex: 1 1 auto; background: var(--yellow); }

/* One message at a time; reference.js sets data-state (nojs until it runs). */
.calc__state {
  display: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
}

.calc__result[data-state="nojs"] [data-calc-state="nojs"],
.calc__result[data-state="empty"] [data-calc-state="empty"],
.calc__result[data-state="invalid"] [data-calc-state="invalid"],
.calc__result[data-state="ready"] [data-calc-state="ready"] { display: block; }

.calc__result[data-state="invalid"] [data-calc-state="invalid"] { border-color: var(--danger-line); background: var(--danger-bg); color: var(--ink); }
.calc__state--ready { border-color: var(--yellow-line); background: var(--info-bg); }

html:not(.js) [data-calc-js] { display: none; }

/* strategy log */
.feed-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .feed-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.feed-head__text { display: grid; gap: 6px; min-width: 0; }
.feed-head .section-sub { font-size: 13.5px; }

.section-title--icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
}

.section-title--icon .icon { width: 24px; height: 24px; color: var(--yellow); }

.feed-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.feed-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }

.log { min-width: 760px; font-size: 13px; }

.log thead th {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 17, 0.6);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.log th,
.log td { padding-inline: 16px; }
.log td { padding-block: 14px; color: var(--ink-2); }

.log__mod {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

.log__mod--data { background: var(--blue-soft); color: var(--blue); }
.log__mod--model { background: rgba(252, 213, 53, 0.12); color: var(--yellow); }
.log__mod--risk { background: var(--danger-bg); color: var(--danger-ink); }
.log__mod--review { background: var(--purple-soft); color: var(--purple); }

.log__tag {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

/* safety notes: three numbered cards */
.numbered {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .numbered { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.numbered__card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.numbered__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgba(252, 213, 53, 0.1);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
}

.numbered__card--green .numbered__num { background: var(--green-soft); color: var(--green); }
.numbered__title { color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.4; }
.numbered__text { font-size: 13.5px; line-height: 1.75; color: var(--ink-3); }

/* ---------- panels ("widgets": contact, form, confirmation page) ---------- */

.widget {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
}

.widget__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.widget__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.widget__dot--green { background: var(--chat); box-shadow: 0 0 0 3px var(--chat-soft); }

.widget__label {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}

:lang(zh) .widget__label { letter-spacing: 0.06em; }

.widget__title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.widget__body { padding: 20px; }

@media (min-width: 480px) {
  .widget__head { padding-inline: 24px; }
  .widget__body { padding: 24px; }
}

/* ---------- contact: direct channels + form ---------- */

.section--contact { border-bottom: 0; }

.contact-grid {
  display: grid;
  gap: 16px;
  width: min(100% - 2 * var(--gutter), 640px);
  margin-inline: auto;
}

@media (min-width: 960px) {
  .contact-grid--split {
    width: min(100% - 2 * var(--gutter), 1100px);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 24px;
  }

  .contact-grid--split .direct-contact {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.direct-contact { border-color: var(--chat-line); }

.channel-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channel { display: grid; justify-items: start; }

.channel-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.channel-opt:hover { border-color: var(--chat); background: rgba(37, 211, 102, 0.06); }

.channel-opt__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--chat-soft);
  color: var(--chat);
}

.channel-opt__text { display: grid; flex: 1 1 auto; min-width: 0; text-align: left; }
.channel-opt__name { font-size: 16px; font-weight: 600; line-height: 1.35; }

.channel-opt__value {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.channel-opt__go { color: var(--chat); }
.channel-web { padding-inline: 4px; font-size: 13px; }

/* form panel */
.entry__title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.entry__intro { margin-top: 8px; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.entry__view { margin-top: 22px; }

.form {
  container-type: inline-size;
  display: grid;
  gap: 20px;
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.field__optional { margin-left: 2px; font-weight: 400; color: var(--ink-3); }
:lang(en) .field__optional { margin-left: 6px; }

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

@container (min-width: 360px) {
  .contact-row { grid-template-columns: 8.75rem minmax(0, 1fr); }
}

.input {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--line-field);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.input::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover { border-color: var(--ink-3); }

.input:focus,
.input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(252, 213, 53, 0.2);
}

.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(246, 70, 93, 0.22); }

.input:-webkit-autofill,
.input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-out 0s;
}

.input:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px var(--bg) inset, 0 0 0 3px rgba(252, 213, 53, 0.2);
}

.select { position: relative; }
.select .input { padding-right: 40px; cursor: pointer; text-overflow: ellipsis; }
.select option { background-color: var(--surface); color: var(--ink); }

.select__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--ink-2);
  pointer-events: none;
}

/* Contact label/hint per method. Email is the default; form[data-method] (JavaScript) or the
   selected <option> (no JavaScript, where :has() is supported) shows the matching text. Rules
   with :has() stand alone so older browsers drop only them. */
[data-m] { display: none; }
[data-m="email"] { display: inline; }
.form[data-method]:not([data-method="email"]) [data-m="email"] { display: none; }
.form[data-method="whatsapp"] [data-m="whatsapp"],
.form[data-method="telegram"] [data-m="telegram"],
.form[data-method="phone"] [data-m="phone"] { display: inline; }
.form:not([data-method]):has(#contact-type option:checked:not([value="email"])) [data-m="email"] { display: none; }
.form:not([data-method]):has(#contact-type option[value="whatsapp"]:checked) [data-m="whatsapp"] { display: inline; }
.form:not([data-method]):has(#contact-type option[value="telegram"]:checked) [data-m="telegram"] { display: inline; }
.form:not([data-method]):has(#contact-type option[value="phone"]:checked) [data-m="phone"] { display: inline; }

.field__hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--danger-ink);
}

.field__error .icon { width: 15px; height: 15px; margin-top: 2px; }
.field__error--consent { margin-left: 34px; }

/* consent checkbox: the native input stays the hit target (44×44); the span draws the box */
.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}

.check {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.check input {
  position: absolute;
  z-index: 1;
  top: -11px;
  left: -11px;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check__box {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-field);
  border-radius: 6px;
  background: var(--bg);
  transition: background-color 0.15s, border-color 0.15s;
}

.check__box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
  color: var(--on-yellow);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s var(--ease-out);
}

.check input:hover + .check__box { border-color: var(--yellow); }
.check input:checked + .check__box { background: var(--yellow); border-color: var(--yellow); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--danger); }

.consent__label {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}

.consent__more { margin: 4px 0 0 34px; font-size: 13px; }

/* honeypot: off-canvas, not display:none so naive bots still see it */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { display: grid; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--danger-line);
  border-radius: var(--r-sm);
  background: var(--danger-bg);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

.alert .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--danger-ink); }
.alert--info { border-color: var(--yellow-line); background: var(--info-bg); }
.alert--info .icon { color: var(--yellow); }

/* success state */
.success { padding: 4px 2px 2px; text-align: center; }

.success__badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border: 1px solid var(--green-line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.22), rgba(14, 203, 129, 0.04) 70%);
  color: var(--green);
}

.success__badge .icon { width: 28px; height: 28px; stroke-width: 2; }
.success__title { font-size: 22px; font-weight: 700; line-height: 1.35; }
.success__text { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

.success__contact {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.success__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.success .btn { margin-top: 22px; }

/* ---------- faq: one centred column of native details ---------- */

.faq {
  width: min(100% - 2 * var(--gutter), 768px);
  margin-inline: auto;
}

.faq__title { margin-bottom: 40px; text-align: center; }
.faq__list { display: grid; gap: 16px; }

.faq__item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 0.15s;
}

.faq__item[open] { border-color: var(--line-strong); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
  transition: color 0.15s;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--yellow); }
.faq__q:focus-visible { outline-offset: -3px; border-radius: var(--r-md); }
.faq__q .icon { color: var(--ink-3); transition: transform 0.2s var(--ease-out), color 0.15s; }
.faq__item[open] > .faq__q .icon { transform: rotate(180deg); color: var(--yellow); }

.faq__a {
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(43, 49, 58, 0.5);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

@media (min-width: 480px) {
  .faq__q,
  .faq__a { padding-inline: 24px; }
}

.faq__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--chat-line);
  border-radius: var(--r-md);
  background: linear-gradient(90deg, rgba(37, 211, 102, 0.1), var(--surface) 62%);
}

@media (min-width: 480px) {
  .faq__more { padding: 20px 24px; }
}

.faq__more-text { min-width: 0; }
.faq__more-title { color: var(--white); font-size: 16px; font-weight: 700; }
.faq__more-sub { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.faq__more-cta { min-height: 48px; padding-inline: 24px; border-radius: var(--r-md); }

/* ---------- footer ---------- */

.site-footer {
  padding-block: 40px calc(96px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--ink-3);
}

@media (min-width: 640px) {
  .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}

@media (min-width: 900px) {
  .footer__top { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer__brand .brand__mark { width: 28px; height: 28px; }
.footer__names { display: grid; gap: 2px; text-align: left; }
.footer__name { color: var(--white); font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.footer__tagline { font-size: 12px; line-height: 1.5; color: var(--ink-3); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 900px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; gap: 24px; text-align: left; }
}

.footer__legal { line-height: 1.6; }
.footer__note { flex: none; font-family: var(--font-mono); font-size: 12px; }

/* ---------- floating chat button ---------- */

.fab {
  position: fixed;
  z-index: 40;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--chat);
  color: var(--on-chat);
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.55), 0 8px 22px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background-color 0.15s, opacity 0.2s, visibility 0.2s;
}

@media (min-width: 640px) {
  .fab { right: calc(24px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.fab:hover { background: var(--chat-hi); transform: scale(1.06); }
.fab .icon { width: 26px; height: 26px; stroke-width: 2; }

.fab__tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  display: none;
  padding: 6px 12px;
  border: 1px solid var(--chat-line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .fab:hover .fab__tip,
  .fab:focus-visible .fab__tip { display: block; }
}

/* reference.js: out of the way while the contact section or the footer is on screen. */
.fab.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* ---------- dialogs ----------
   Hidden by default. .is-open is set by dialogs.js; before/without JavaScript a #m-… link
   shows the dialog through :target ("#close" dismisses it). */

.modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  place-items: center;
  padding: 16px;
}

.modal.is-open { display: grid; }
html:not(.js) .modal:target { display: grid; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  touch-action: none;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(86vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

@supports (height: 1dvh) {
  .modal__panel { max-height: min(86dvh, 760px); }
}

.modal--sm .modal__panel { max-width: 460px; }

.modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 10px 24px;
  background: var(--surface);
}

.modal__title { font-size: 18px; font-weight: 700; line-height: 1.4; }

.modal__body {
  padding: 4px 24px 16px;
  font-size: 15px;
  color: var(--ink-2);
}

.modal__intro { margin-bottom: 14px; font-size: 14px; color: var(--ink-3); }
.modal__lead { margin-bottom: 16px; font-size: 15.5px; color: var(--ink-2); }

.modal__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 24px 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Small screens: bottom sheet, thumb-reachable, clear of the home indicator. */
@media (max-width: 559px) {
  .modal { place-items: end center; padding: 0; }

  .modal__panel,
  .modal--sm .modal__panel {
    max-width: none;
    max-height: 88vh;
    border-bottom: 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  @supports (height: 1dvh) {
    .modal__panel,
    .modal--sm .modal__panel { max-height: 88dvh; }
  }

  .modal__head { padding-left: 20px; }
  .modal__body { padding-inline: 20px; }
  .modal__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1 1 auto; }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

.cm-safety {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.cm-safety .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--yellow); }

/* rules / privacy lists */
.terms { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.terms__item {
  padding-left: 14px;
  border-left: 2px solid var(--yellow-line);
}

.terms__title {
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.terms__item a {
  color: var(--yellow);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.terms__item strong { color: var(--ink); overflow-wrap: anywhere; }

/* ---------- no-JavaScript confirmation page (server.mjs nativeResult) ---------- */

.result-page {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(252, 213, 53, 0.08), transparent 70%),
    var(--bg);
}

.result {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px var(--gutter);
}

@supports (min-height: 100dvh) {
  .result { min-height: 100dvh; }
}

.result__panel { width: min(100%, 560px); text-align: center; }
.result__panel > .widget__body { padding: 32px clamp(20px, 5vw, 32px); }

.result__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border: 1px solid var(--green-line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.22), rgba(14, 203, 129, 0.04) 70%);
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.result__badge--error { border-color: var(--danger-line); background: var(--danger-bg); color: var(--danger-ink); }
.result__title { font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.3; text-wrap: balance; }
.result__text { margin-top: 10px; color: var(--ink-2); }
.result__sub { margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.result .channel-list { margin-top: 12px; }
.result__actions { margin-top: 28px; }

/* ---------- motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.86); } }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.8s var(--ease-out) both; }
  .reveal--1 { animation-delay: 0.06s; }
  .reveal--2 { animation-delay: 0.14s; }
  .reveal--3 { animation-delay: 0.22s; }

  /* The illustration's line draws in once; nothing loops or ticks (it is not live data). */
  .chart__line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.6s 0.35s var(--ease-out) forwards;
  }

  .chart__area,
  .chart__signals { animation: fade-in 0.8s 1.1s both; }

  /* Only dialogs opened by dialogs.js animate; the no-JavaScript :target fallback appears at once. */
  .modal.is-open .modal__backdrop { animation: fade-in 0.2s ease-out; }
  .modal.is-open .modal__panel { animation: modal-in 0.22s var(--ease-out); }
  .success:not([hidden]) .success__badge { animation: pop 0.35s var(--ease-out) both; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 559px) {
  .modal.is-open .modal__panel { animation-name: sheet-in; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; }

  .spinner { animation-duration: 2.4s; }
  .fab:hover { transform: none; }
}

/* ---------- forced colors (Windows high contrast) ---------- */

@media (forced-colors: active) {
  .hero::before { display: none; }

  .btn,
  .lang,
  .banner,
  .stat,
  .feature,
  .numbered__card,
  .table-card,
  .calc__panel,
  .calc__box,
  .calc__state,
  .promo,
  .channel-opt,
  .faq__item,
  .faq__more,
  .fab,
  .widget { border: 1px solid ButtonText; }

  .chart__line,
  .chart__signals circle { stroke: CanvasText; }

  .lang__opt[aria-current],
  .calc__tab input:checked + span { outline: 2px solid Highlight; }
  .calc__bar-p,
  .calc__bar-e { forced-color-adjust: none; }
  .modal__panel { border: 1px solid CanvasText; }
  .check__box { border-color: CanvasText; }
  .check input:checked + .check__box { background: Highlight; border-color: Highlight; }
  .input:focus,
  .calc__input:focus { outline: 2px solid Highlight; }
}

/* Yield tier controls retain the table typography. */
.tier-select { font: inherit; color: inherit; background: transparent; border: 0; padding: 8px 10px; margin: -8px -10px; cursor: pointer; border-radius: 6px; }
.tier-select:hover, .tier-select:focus-visible { color: var(--yellow); outline: 2px solid var(--yellow); }
.ladder tr.is-selected { background: rgba(252, 213, 53, .06); }
