/* ==========================================================================
   Merlyn — 24/7 automated trading bot
   Mobile-first. One stylesheet, no framework, no runtime deps.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
  font-style: normal;
}

:root {
  --ink: #0b0a09;
  --ink-soft: #100e0c;
  --panel: #16130f;
  --panel-2: #1c1814;
  --panel-3: #241f19;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f0ea;
  --muted: #a89d92;
  --muted-2: #948a7f;
  --rust: #e07a48;
  --rust-2: #c2552b;
  --rust-3: #f3a172;
  --ember: #7a2e12;
  --profit: #4fcb92;
  --loss: #e26659;
  --gold: #e8c17a;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 26px;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-2: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-3: 0 34px 80px -40px rgba(0, 0, 0, 1);

  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(18px, 5vw, 30px);
  --section-y: clamp(56px, 11vw, 108px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -12%, rgba(224, 122, 72, 0.16), transparent 62%),
    radial-gradient(90% 55% at 104% 2%, rgba(243, 161, 114, 0.08), transparent 58%),
    radial-gradient(70% 45% at 0% 32%, rgba(194, 85, 43, 0.07), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
.brand__text strong {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
}

::selection {
  background: rgba(224, 122, 72, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--rust-3);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--rust);
  color: #1a0d06;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 12px;
}

/* ── layout ─────────────────────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.shell--narrow {
  max-width: 780px;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(36px, 7vw, 64px);
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 46px);
}

.section__head h2 {
  font-size: clamp(1.9rem, 6.4vw, 3rem);
  margin: 10px 0 14px;
}

.section__lede {
  color: var(--muted);
  font-size: clamp(0.98rem, 2.6vw, 1.075rem);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-3);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.25s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.975);
}

.btn--primary {
  color: #1a0c05;
  border-color: transparent;
  background: linear-gradient(160deg, #f3a172 0%, #e07a48 45%, #c2552b 100%);
  box-shadow: 0 10px 30px -12px rgba(224, 122, 72, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn--primary:hover {
  box-shadow: 0 14px 38px -12px rgba(224, 122, 72, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.04);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn--quiet {
  color: var(--text);
  border-color: transparent;
  background: transparent;
  padding-inline: 12px;
}

.btn--quiet:hover {
  color: var(--rust-3);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn__price {
  padding-left: 10px;
  border-left: 1px solid rgba(26, 12, 5, 0.24);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.iconbtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.iconbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.iconbtn svg {
  width: 14px;
  height: 14px;
}

.pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--profit);
  box-shadow: 0 0 0 0 rgba(79, 203, 146, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 203, 146, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(79, 203, 146, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 203, 146, 0);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chip--live {
  color: var(--profit);
  border-color: rgba(79, 203, 146, 0.28);
  background: rgba(79, 203, 146, 0.08);
}

.chip--app {
  color: var(--rust-3);
  border-color: rgba(224, 122, 72, 0.3);
  background: rgba(224, 122, 72, 0.08);
}

/* ── top bar ────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(11, 10, 9, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar.is-stuck {
  background: rgba(11, 10, 9, 0.86);
  border-bottom-color: var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
}

.brand__mark {
  width: 32px;
  height: 32px;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.brand__text span {
  margin-top: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav {
  display: none;
  gap: 26px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.status-dot.is-on {
  background: var(--profit);
  box-shadow: 0 0 10px rgba(79, 203, 146, 0.8);
}

.topbar__live {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hide-sm {
  display: none;
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(30px, 6vw, 60px);
  padding-bottom: clamp(20px, 4vw, 34px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset-inline: 0;
  top: -30vw;
  height: 90vw;
  max-height: 760px;
  background: radial-gradient(closest-side, rgba(224, 122, 72, 0.14), transparent 72%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(34px, 8vw, 64px);
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(2.6rem, 12.2vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #f6d9c3 0%, var(--rust-3) 42%, var(--rust-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.9vw, 1.12rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--rust);
}

/* chat card */
.hero__visual {
  position: relative;
}

.chatcard {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(34, 28, 23, 0.95), rgba(15, 13, 11, 0.98));
  box-shadow: var(--shadow-3), var(--shadow-1);
  overflow: hidden;
}

.chatcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 161, 114, 0.6), transparent);
}

.chatcard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.chatcard__head strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.chatcard__sub {
  display: block;
  font-size: 0.7rem;
  color: var(--muted-2);
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--rust-3), var(--rust-2));
  color: #1a0c05;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
}

.chatcard__head .chip {
  margin-left: auto;
}

.chatcard__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
  min-height: 232px;
}

.msg {
  max-width: 88%;
  padding: 10px 12px 8px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e7ded4;
  animation: msg-in 0.5s ease both;
}

.msg--bot {
  border-bottom-left-radius: 5px;
}

.msg time {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  color: var(--muted-2);
  text-align: right;
}

.msg time.is-now {
  color: var(--rust-3);
}

.msg .muted {
  color: var(--muted-2);
}

.msg:last-child {
  border-color: rgba(224, 122, 72, 0.28);
  background: linear-gradient(170deg, rgba(224, 122, 72, 0.1), rgba(28, 24, 20, 0.9));
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tag {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.tag--buy {
  background: rgba(79, 203, 146, 0.14);
  color: var(--profit);
}

.tag--tp {
  background: rgba(232, 193, 122, 0.14);
  color: var(--gold);
}

.chatcard__foot {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}

.equity-mini span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.equity-mini strong {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.equity-mini strong[data-hero-equity] {
  color: var(--profit);
}

.muted-value {
  color: var(--muted);
  font-weight: 500;
}

.chatcard__bar {
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.chatcard__bar i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rust), var(--rust-3));
}

.hero__badge {
  display: none;
  position: absolute;
  right: -14px;
  bottom: -18px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 193, 122, 0.28);
  background: linear-gradient(160deg, rgba(42, 34, 24, 0.96), rgba(18, 15, 12, 0.98));
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(8px);
  text-align: left;
}

.hero__badge-top,
.hero__badge-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__badge strong {
  display: block;
  margin: 2px 0;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ticker */
.ticker {
  position: relative;
  margin-top: clamp(26px, 5vw, 44px);
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 22px;
  border-right: 1px solid var(--line);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.ticker__item b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.ticker__item i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.up {
  color: var(--profit);
}

.down {
  color: var(--loss);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ── steps ──────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(28, 24, 20, 0.7), rgba(14, 12, 10, 0.6));
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(closest-side, rgba(224, 122, 72, 0.14), transparent);
  pointer-events: none;
}

.step__n {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--rust);
  letter-spacing: 0.16em;
}

.step h3 {
  margin: 14px 0 8px;
  font-size: 1.12rem;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

.step__tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ── features ───────────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature {
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.035);
}

.feature__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(224, 122, 72, 0.22);
  background: linear-gradient(160deg, rgba(224, 122, 72, 0.16), rgba(224, 122, 72, 0.03));
  color: var(--rust-3);
}

.feature__ico svg {
  width: 21px;
  height: 21px;
}

.feature h3 {
  margin: 16px 0 7px;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.feature p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* ── console ────────────────────────────────────────────────────────────── */

.console {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(26, 22, 18, 0.94), rgba(12, 11, 9, 0.98));
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.console__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.console__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.console__title strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

.console__title span:last-child {
  display: block;
  font-size: 0.68rem;
  color: var(--muted-2);
  font-family: var(--mono);
}

.console__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.console__dot.is-live {
  background: var(--profit);
  box-shadow: 0 0 0 4px rgba(79, 203, 146, 0.14);
  animation: pulse 2.4s ease-out infinite;
}

.console__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console__meta .mono {
  font-size: 0.72rem;
  color: var(--muted);
}

.console__body {
  display: grid;
  gap: 0;
}

.console__equity {
  position: relative;
  padding: 20px 16px 8px;
  border-bottom: 1px solid var(--line);
}

.console__label {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.console__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 2px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.console__cur {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.console__delta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--profit);
}

.console__delta.is-down {
  color: var(--loss);
}

.spark {
  width: 100%;
  height: 132px;
  margin-top: 6px;
}

.console__side {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

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

.mkt {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
}

.mkt__sym {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.mkt strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mkt i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--profit);
  min-width: 58px;
  text-align: right;
}

.mkt i.is-down {
  color: var(--loss);
}

.console__controls {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.field > span {
  letter-spacing: 0.02em;
}

.field--inline {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
}

select {
  appearance: none;
  padding: 5px 22px 5px 8px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a89d92' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.stepper button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.stepper output {
  min-width: 44px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.console__run {
  width: 100%;
}

.console__run.is-stop {
  color: var(--text);
  background: rgba(226, 102, 89, 0.12);
  border: 1px solid rgba(226, 102, 89, 0.4);
  box-shadow: none;
}

.console__run.is-stop:hover {
  background: rgba(226, 102, 89, 0.2);
}

.console__hint {
  font-size: 0.68rem;
  color: var(--muted-2);
  text-align: center;
}

.console__trades {
  padding: 14px 16px 16px;
}

.trades__head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  padding-bottom: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.trades__head span:nth-child(2) {
  min-width: 72px;
  text-align: right;
}

.trades__head span:nth-child(3) {
  min-width: 78px;
  text-align: right;
}

.trades__list {
  display: grid;
  gap: 6px;
  min-height: 66px;
}

.trades__empty {
  padding: 18px 0;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.trade {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  animation: msg-in 0.35s ease both;
}

.trade__sym {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.trade__side {
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.trade__side.buy {
  background: rgba(79, 203, 146, 0.14);
  color: var(--profit);
}

.trade__side.sell {
  background: rgba(226, 102, 89, 0.14);
  color: var(--loss);
}

.trade__sym b {
  font-weight: 500;
  color: #e7ded4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade__entry {
  min-width: 72px;
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.trade__pnl {
  min-width: 78px;
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--profit);
}

.trade__pnl.is-down {
  color: var(--loss);
}

/* ── pricing ────────────────────────────────────────────────────────────── */

.cycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 4px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.cycle__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.9);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.cycle__opt {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 9px 4px;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s ease;
}

.cycle__opt span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.cycle__opt small {
  font-size: 0.6rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.cycle__opt:has(input:checked) span,
.cycle__opt.is-active span {
  color: var(--text);
}

.cycle__opt:has(input:checked) small,
.cycle__opt.is-active small {
  color: var(--rust-3);
}

.plans {
  display: grid;
  gap: 12px;
}

.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(175deg, rgba(28, 24, 20, 0.72), rgba(13, 12, 10, 0.9));
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease,
    background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.plan:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.plan:has(input:focus-visible) {
  outline: 2px solid var(--rust-3);
  outline-offset: 3px;
}

.cycle__opt:has(input:focus-visible) {
  outline: 2px solid var(--rust-3);
  outline-offset: 2px;
}

.vps__opt:has(input:focus-visible) {
  outline: 2px solid var(--rust-3);
  outline-offset: 2px;
}

.plan.is-selected {
  border-color: rgba(224, 122, 72, 0.55);
  background: linear-gradient(175deg, rgba(46, 30, 21, 0.8), rgba(16, 13, 10, 0.94));
  box-shadow: 0 24px 60px -36px rgba(224, 122, 72, 0.8), inset 0 0 0 1px rgba(224, 122, 72, 0.12);
}

.plan__check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan__check::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.plan.is-selected .plan__check {
  border-color: var(--rust);
  background: rgba(224, 122, 72, 0.14);
}

.plan.is-selected .plan__check::after {
  background: var(--rust);
}

.plan__badge {
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(232, 193, 122, 0.3);
  background: rgba(232, 193, 122, 0.08);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan--featured {
  border-color: rgba(224, 122, 72, 0.24);
  background: linear-gradient(175deg, rgba(38, 28, 22, 0.8), rgba(13, 12, 10, 0.9));
}

.plan__badge--ghost {
  visibility: hidden;
}

.plan__head h3 {
  font-size: 1.15rem;
  padding-right: 30px;
}

.plan__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
}

.plan__cur {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.plan__amt {
  font-size: clamp(2.3rem, 10vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan__amt.is-bumping {
  animation: bump 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bump {
  0% {
    opacity: 0.2;
    transform: translateY(7px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.plan__per {
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted-2);
}

.plan__sub {
  margin-top: -8px;
  font-size: 0.74rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.plan__sub b {
  color: var(--profit);
  font-weight: 600;
}

.plan__list {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.82rem;
  color: #d7cec4;
  line-height: 1.45;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--rust);
  border-bottom: 1.6px solid var(--rust);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.plan__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.plan.is-selected .plan__cta {
  color: #1a0c05;
  border-color: transparent;
  background: linear-gradient(160deg, #f3a172, #e07a48 55%, #c2552b);
  box-shadow: 0 10px 24px -14px rgba(224, 122, 72, 0.9);
}

/* VPS */
.vps {
  margin-top: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.vps__head h3 {
  font-size: 1.05rem;
}

.vps__head p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 56ch;
}

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

.vps__opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.vps__opt:hover {
  border-color: var(--line-2);
}

.vps__opt:has(input:checked),
.vps__opt.is-active {
  border-color: rgba(224, 122, 72, 0.5);
  background: rgba(224, 122, 72, 0.07);
}

.vps__radio {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: border-color 0.2s ease;
}

.vps__radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease;
}

.vps__opt:has(input:checked) .vps__radio,
.vps__opt.is-active .vps__radio {
  border-color: var(--rust);
}

.vps__opt:has(input:checked) .vps__radio::after,
.vps__opt.is-active .vps__radio::after {
  background: var(--rust);
}

.vps__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.vps__body strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.vps__body small {
  color: var(--muted-2);
  font-size: 0.72rem;
}

.vps__price {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vps__price small {
  font-size: 0.66rem;
  color: var(--muted-2);
}

.vps__notes {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.vps__notes li {
  position: relative;
  padding-left: 16px;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.vps__notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* ── trust ──────────────────────────────────────────────────────────────── */

.trust {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.trust__item {
  padding: 20px;
  background: var(--ink-soft);
}

.trust__item strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.trust__item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── faq ────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--rust-3);
}

.faq__item summary::after,
.faq__item summary::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq__item summary::before {
  transform: rotate(90deg);
}

.faq__item[open] summary::before {
  transform: rotate(0);
}

.faq__item[open] summary::after {
  background: var(--rust);
}

.faq__item p {
  padding: 0 0 20px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.88rem;
  animation: msg-in 0.3s ease both;
}

/* ── disclaimer ─────────────────────────────────────────────────────────── */

.disclaimer {
  padding: 20px 22px;
  border: 1px solid rgba(226, 102, 89, 0.22);
  border-left: 3px solid rgba(226, 102, 89, 0.55);
  border-radius: var(--radius-sm);
  background: rgba(226, 102, 89, 0.045);
}

.disclaimer h3 {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e79f97;
}

.disclaimer p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ── final cta ──────────────────────────────────────────────────────────── */

.final {
  padding-bottom: clamp(72px, 14vw, 120px);
}

.final__inner {
  position: relative;
  padding: clamp(30px, 6vw, 54px) clamp(22px, 5vw, 46px);
  border: 1px solid rgba(224, 122, 72, 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 88% -20%, rgba(224, 122, 72, 0.2), transparent 60%),
    linear-gradient(170deg, rgba(40, 27, 20, 0.9), rgba(13, 11, 9, 0.96));
  text-align: center;
  overflow: hidden;
}

.final__inner h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
}

.final__inner .section__lede {
  margin-inline: auto;
  margin-bottom: 24px;
}

.final__inner .eyebrow {
  justify-content: center;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  padding: 30px 0 40px;
}

.footer__inner {
  display: grid;
  gap: 20px;
}

.footer__brand strong {
  font-family: var(--display);
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.footer__brand p {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer__links a:hover {
  color: var(--rust-3);
}

.footer__legal {
  color: var(--muted-2);
  font-size: 0.72rem;
  max-width: 60ch;
}

.footer__stack {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ── dock ───────────────────────────────────────────────────────────────── */

.dock {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(11, 10, 9, 0.9);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dock:not(.is-visible) {
  visibility: hidden;
  pointer-events: none;
}

.dock.is-visible {
  transform: none;
}

.dock[hidden] {
  display: none;
}

.dock__info {
  display: grid;
  gap: 1px;
  margin-right: auto;
  min-width: 0;
}

.dock__info strong {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__info span {
  font-size: 0.66rem;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock__price {
  display: grid;
  gap: 0;
  text-align: right;
}

.dock__price strong {
  font-family: var(--display);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.dock__price span {
  font-size: 0.6rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── checkout sheet ─────────────────────────────────────────────────────── */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  justify-items: center;
}

.sheet[hidden] {
  display: none;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 2, 0.72);
  backdrop-filter: blur(4px);
  animation: fade-in 0.25s ease both;
}

.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px var(--pad) calc(24px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, #1a1612, #0d0c0a 55%);
  box-shadow: 0 -30px 80px -30px rgba(0, 0, 0, 1);
  animation: sheet-up 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sheet-up {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.sheet__grab {
  width: 38px;
  height: 4px;
  margin: 4px auto 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sheet__head h2 {
  margin-top: 6px;
  font-size: 1.4rem;
}

.sheet__form {
  display: grid;
  gap: 14px;
}

.sheet__summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.sumrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

.sumrow strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.sumrow--total {
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.sumrow--total strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sumrow__note:empty {
  display: none;
}

.sumrow__note {
  font-size: 0.7rem;
  color: var(--muted-2);
}

.field-row {
  display: grid;
  gap: 14px;
}

.field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 16px; /* stops iOS zoom on focus */
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field input:focus {
  outline: none;
  border-color: rgba(224, 122, 72, 0.7);
  background: rgba(224, 122, 72, 0.05);
  box-shadow: 0 0 0 3px rgba(224, 122, 72, 0.14);
}

.field input:user-invalid,
.field input.is-invalid {
  border-color: rgba(226, 102, 89, 0.7);
}

.field[delayed] {
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.field[delayed].is-active {
  opacity: 1;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}

.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.check__box {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 1.8px solid #1a0c05;
  border-bottom: 1.8px solid #1a0c05;
  transform: rotate(42deg) scale(0.6);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.check input:checked + .check__box {
  border-color: transparent;
  background: var(--rust);
}

.check input:checked + .check__box::after {
  opacity: 1;
  transform: rotate(42deg) scale(1);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--rust-3);
  outline-offset: 2px;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid rgba(226, 102, 89, 0.4);
  border-radius: 10px;
  background: rgba(226, 102, 89, 0.08);
  color: #f0b3ac;
  font-size: 0.78rem;
}

.sheet__fine {
  font-size: 0.68rem;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.5;
}

/* success */
.sheet__success {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  animation: msg-in 0.4s ease both;
}

.sheet__success[hidden] {
  display: none;
}

.success__mark {
  width: 64px;
  height: 64px;
  color: var(--profit);
}

.success__mark svg {
  width: 100%;
  height: 100%;
}

.sheet__success h3 {
  font-size: 1.4rem;
  margin-top: -6px;
}

.success__sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: -8px;
}

.success__sub .mono {
  color: var(--text);
}

.license {
  display: grid;
  gap: 6px;
  justify-items: center;
  width: 100%;
  padding: 18px 16px;
  border: 1px dashed rgba(224, 122, 72, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(224, 122, 72, 0.06);
}

.license span {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.license strong {
  font-size: clamp(1.1rem, 6vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--rust-3);
}

.success__next {
  display: grid;
  gap: 8px;
  width: 100%;
  justify-items: start;
  text-align: left;
}

.success__next li {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.success__next span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text);
}

/* ── toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(28, 24, 20, 0.96);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.8rem;
  box-shadow: var(--shadow-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  z-index: 90;
  inset-inline: 12px;
  bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(224, 122, 72, 0.4);
  border-radius: 12px;
  background: #1c1814;
  font-size: 0.8rem;
}

/* ── reveal ─────────────────────────────────────────────────────────────── */

/* Hidden only when JS is running, so a blocked script never blanks the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (min-width: 560px) {
  .hero__cta {
    gap: 12px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .plan__amt {
    font-size: clamp(2.1rem, 5vw, 2.3rem);
  }
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .vps__options {
    grid-template-columns: 1fr 1fr;
  }
  .console__body {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .console__equity {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 22px 20px 10px;
  }
  .console__side {
    border-bottom: 0;
  }
  .sheet__panel {
    margin-bottom: 6vh;
    border-radius: var(--radius-lg);
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
  .sheet {
    align-items: center;
  }
}

@media (min-width: 640px) {
  /* the headline should not outgrow the viewport before the hero goes 2-up */
  .hero h1 {
    font-size: clamp(2.8rem, 8.4vw, 3.7rem);
  }
  /* stacked cards keep a readable measure on tablets */
  .plans {
    max-width: 560px;
  }
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
  .hero h1 {
    font-size: clamp(3.4rem, 7vw, 4.4rem);
  }
  .plans {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .plan {
    gap: 12px;
  }
  .plan__amt {
    font-size: 2.35rem;
  }
  .plan__head h3 {
    font-size: 1.02rem;
  }
  .plan__cta {
    margin-top: auto;
    font-size: 0.8rem;
    padding-inline: 8px;
  }
  .hide-sm {
    display: inline-flex;
  }
  .topbar__live {
    display: none;
  }
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
  .hero__badge {
    display: block;
  }
  .chatcard {
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hero__visual:hover .chatcard {
    transform: none;
  }
  .chatcard__body {
    min-height: 268px;
  }
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .console__equity {
    padding: 24px 22px 12px;
  }
  .spark {
    height: 158px;
  }
  .console__side {
    padding: 18px 20px;
  }
  .console__trades {
    padding: 16px 22px 20px;
  }
  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .footer__legal {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  /* floating checkout pill instead of a full-width bar */
  .dock {
    left: 50%;
    right: auto;
    bottom: 18px;
    width: min(560px, calc(100% - 40px));
    padding: 10px 12px 10px 22px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    box-shadow: var(--shadow-3);
    transform: translate(-50%, 160%);
  }
  .dock.is-visible {
    transform: translate(-50%, 0);
  }
  .dock:not(.is-visible) {
    visibility: hidden;
  }
  .dock__info strong {
    font-size: 0.86rem;
  }
  .section__head {
    margin-bottom: clamp(34px, 5vw, 52px);
  }
}

@media (min-width: 1100px) {
  .plan {
    padding: 26px 22px 20px;
  }
  .plan__amt {
    font-size: 2.6rem;
  }
  .hero h1 {
    font-size: 4.4rem;
  }
}

/* motion preferences */
@media (hover: none) {
  .plan:hover {
    transform: none;
  }
  .ticker:hover .ticker__track {
    animation-play-state: running;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker__track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* compact chrome on narrow phones */
@media (max-width: 619px) {
  .hide-xs {
    display: none !important;
  }
}
