/* copyx.trade in the CopyX dark look, the same tokens as the extension's extension/tv/welcome.css: a black page, the amber
   accent, BDO Grotesk with Geist Mono eyebrows. */
@font-face { font-family: "BDO Grotesk"; src: url("/fonts/BDOGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BDO Grotesk"; src: url("/fonts/BDOGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --cx-page: #000000;
  --cx-panel: #141210;
  --cx-raised: #1D1A18;
  --cx-hover: #262422;
  --cx-hover-strong: #2E2B28;
  --cx-border: rgba(255, 255, 255, 0.08);
  --cx-border-faint: rgba(255, 255, 255, 0.04);
  --cx-border-strong: rgba(255, 255, 255, 0.16);
  --cx-line: #2E2E2E;
  --cx-fg-1: #FFFFFF;
  --cx-fg-2: #D5D1CD;
  --cx-fg-3: #928D86;
  --cx-fg-4: #726E68;
  --cx-amber: #F4B23A;
  --cx-amber-hover: #F7C25E;
  --cx-amber-press: #E3A12C;
  --cx-ink: #16181D;
  --cx-grad: linear-gradient(90deg, #F4B23A 20%, #FF7A3D);
  --cx-bezel: linear-gradient(#191B1F, #131314 137%);
  --cx-glow: rgba(244, 178, 58, 0.28);
  --cx-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --cx-font: "BDO Grotesk", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --cx-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --cx-text-eyebrow: 13px;
  --cx-line-eyebrow: 20px;
  --cx-text-hero: 40px;
  --cx-line-hero: 48px;
  --cx-text-display: 32px;
  --cx-line-display: 40px;
  --cx-text-lead: 18px;
  --cx-line-lead: 26px;
  --cx-text-title: 20px;
  --cx-line-title: 28px;
  --cx-text-body: 15px;
  --cx-line-body: 22px;
  --cx-text-small: 13px;
  --cx-line-small: 18px;
  --cx-text-button: 15px;
  --cx-line-button: 20px;
  --cx-button-height: 44px;
  --cx-gutter: 16px;
  --cx-pad-y: 64px;
}
@media (min-width: 640px) {
  :root {
    --cx-text-hero: 64px;
    --cx-line-hero: 72px;
    --cx-text-display: 40px;
    --cx-line-display: 48px;
    --cx-text-lead: 20px;
    --cx-line-lead: 28px;
    --cx-text-button: 16px;
    --cx-line-button: 24px;
    --cx-button-height: 48px;
    --cx-gutter: 40px;
    --cx-pad-y: 96px;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cx-page); }
body { min-height: 100dvh; display: flex; flex-direction: column; color: var(--cx-fg-1); font-family: var(--cx-font); font-size: var(--cx-text-body); line-height: var(--cx-line-body); font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cx-amber); outline-offset: 2px; }
main { flex: 1; }

/* Both languages ship in the page; the inline script in <head> picks one before the first paint. */
html:not([lang^="zh"]) [lang^="zh"], html[lang^="zh"] [lang="en"] { display: none !important; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--cx-gutter)); margin: 0 auto; padding: 0 var(--cx-gutter); }
.top { border-bottom: 1px solid var(--cx-border); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.wordmark { display: block; width: auto; height: 28px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 8px 12px; border-radius: 10px; color: var(--cx-fg-3); text-decoration: none; transition: color 200ms var(--cx-ease); }

.eyebrow { font-family: var(--cx-mono); font-size: var(--cx-text-eyebrow); line-height: var(--cx-line-eyebrow); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cx-amber); }
.hero-title { margin-top: 16px; font-size: var(--cx-text-hero); line-height: var(--cx-line-hero); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; word-break: keep-all; }
.display { margin-top: 12px; font-size: var(--cx-text-display); line-height: var(--cx-line-display); font-weight: 500; text-wrap: balance; word-break: keep-all; }
.grad { padding-bottom: 0.16em; background: var(--cx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.lead { margin-top: 16px; max-width: 640px; font-size: var(--cx-text-lead); line-height: var(--cx-line-lead); color: var(--cx-fg-3); text-wrap: pretty; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--cx-button-height); padding: 0 20px; border: 0; border-radius: 12px; font: inherit; font-size: var(--cx-text-button); line-height: var(--cx-line-button); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms var(--cx-ease), color 200ms var(--cx-ease), transform 120ms var(--cx-ease); }
.btn:active { transform: scale(0.97); }
.btn-small { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; line-height: 20px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cx-amber); color: var(--cx-ink); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12); }
.btn-primary:active { background: var(--cx-amber-press); }
.btn-ghost { background: transparent; color: var(--cx-fg-2); box-shadow: inset 0 0 0 1px var(--cx-border-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--cx-amber-hover); }
  .btn-ghost:hover { background: var(--cx-hover); color: var(--cx-fg-1); }
  .nav-link:hover, .foot a:hover { color: var(--cx-fg-1); }
}

.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 12% 8% -6%; border-radius: 50%; background: radial-gradient(closest-side, var(--cx-glow), transparent); filter: blur(40px); pointer-events: none; }
.frame { position: relative; height: 100%; padding: 8px; border-radius: 16px; background: var(--cx-bezel); box-shadow: 0 0 0 1px var(--cx-line), 2px 2px 8px rgba(0, 0, 0, 0.45); }
.panel { display: flex; flex-direction: column; height: 100%; padding: 24px; border-radius: 8px; background: var(--cx-panel); box-shadow: 0 0 0 1px var(--cx-border); }

/* Home */
.hero { padding-block: var(--cx-pad-y) calc(var(--cx-pad-y) / 2); text-align: center; }
.hero .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.section { padding-block: calc(var(--cx-pad-y) / 2); }
.section-head { max-width: 720px; }
.steps { display: grid; gap: 16px; margin-top: 32px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .panel::before { content: "0" counter(step); font-family: var(--cx-mono); font-size: var(--cx-text-eyebrow); line-height: var(--cx-line-eyebrow); font-weight: 600; letter-spacing: 0.22em; color: var(--cx-amber); }
.step-title { margin-top: 16px; font-size: var(--cx-text-title); line-height: var(--cx-line-title); font-weight: 500; }
.step-body { margin-top: 8px; color: var(--cx-fg-3); text-wrap: pretty; }
.plans { display: grid; gap: 16px; margin-top: 32px; }
.plan-name { font-size: var(--cx-text-title); line-height: var(--cx-line-title); font-weight: 500; }
.price { margin-top: 12px; font-size: var(--cx-text-display); line-height: var(--cx-line-display); font-weight: 500; }
.price small { font-size: var(--cx-text-body); line-height: var(--cx-line-body); font-weight: 400; color: var(--cx-fg-3); }
.price-note { margin-top: 4px; color: var(--cx-fg-3); }
.features { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.features li { display: flex; align-items: flex-start; gap: 12px; color: var(--cx-fg-2); }
.features svg { flex: none; width: 18px; height: 22px; color: var(--cx-amber); }
.plan-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 32px; }
.fine { font-size: var(--cx-text-small); line-height: var(--cx-line-small); color: var(--cx-fg-3); text-wrap: pretty; }
.plan-actions .fine { margin-top: 4px; text-align: center; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
}

/* Legal pages */
.prose { max-width: 720px; padding-block: var(--cx-pad-y); }
.prose .updated { margin-top: 12px; color: var(--cx-fg-3); }
.prose h2 { margin-top: 40px; font-size: var(--cx-text-title); line-height: var(--cx-line-title); font-weight: 500; }
.prose p, .prose ul { margin-top: 12px; color: var(--cx-fg-2); text-wrap: pretty; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--cx-amber); text-underline-offset: 3px; }

/* Sign-in */
.stage { padding-block: var(--cx-pad-y); }
.column { width: 100%; max-width: 440px; margin: 0 auto; }
/* Clerk swaps the mount's classes for its own when it renders, so the spacing keys on the id. */
#signin { margin-top: 32px; }
#signin:empty { display: none; }

.foot { border-top: 1px solid var(--cx-border); padding-block: 32px; color: var(--cx-fg-3); font-size: var(--cx-text-small); line-height: var(--cx-line-small); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { color: var(--cx-fg-2); text-decoration: none; transition: color 200ms var(--cx-ease); }
.foot-row + p { margin-top: 16px; }
.foot p + p { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { .btn, .nav-link, .foot a { transition: none; } .btn:active { transform: none; } }
