/*
Theme Name: Spectrader AI
Theme URI: https://spectrader.ai
Author: Spectrader AI
Author URI: https://spectrader.ai
Description: Landing theme for the Spectrader AI mobile app. Dark, serif, bilingual (ES/EN) with animated chart reading.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: spectrader
Tags: dark, one-column, custom-menu, featured-images, translation-ready
*/

/* ---------------------------------------------------------------------------
   Tokens
--------------------------------------------------------------------------- */
:root {
  --bg: #0d0e10;
  --surface: #16181c;
  --surface-2: #1d2024;
  --border: #2a2e34;
  --border-2: #3d434a;
  --text: #f4f2ef;
  --muted: #a8adb5;
  --muted-2: #8b9099;
  --dim: #6b7280;
  --accent: #2FE0C0;
  --accent-soft: #AEF5E9;
  --accent-ink: #04211C;
  --up: #4CC65E;
  --up-soft: #84DB8E;
  --down: #ff5a5f;
  --down-soft: #ff8083;
  --tint: #122220;
  --tint-border: #172D29;
  --hairline: rgba(244, 242, 239, 0.12);

  --font: "Source Serif 4", Georgia, "Times New Roman", serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius-s: 14px;
  --radius-m: 18px;
  --radius-l: 22px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --z-header: 50;
  --z-menu: 40;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color 200ms var(--ease-out); }
a:hover { color: var(--accent-soft); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* i18n visibility */
html[data-lang="es"] .i18n-block:not([lang="es"]),
html[data-lang="en"] .i18n-block:not([lang="en"]) { display: none !important; }

/* Shared type styles */
.eyebrow {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--accent);
}
.eyebrow--muted { color: var(--dim); }
.label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius-s);
  font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #45E4C7; color: var(--accent-ink); box-shadow: 0 8px 24px rgba(47, 224, 192, 0.25); }
.btn--ghost { border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--dim); color: var(--text); }
.btn--lg { min-height: 50px; font-size: 16px; }

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  height: var(--header-h);
  background: rgba(13, 14, 16, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.site-header.is-scrolled { background: rgba(13, 14, 16, 0.92); border-bottom-color: var(--hairline); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand__logo { width: 32px; height: 32px; object-fit: contain; }
.brand__accent { color: var(--accent); }

.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted);
  padding: 8px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.site-header .store-badge--sm, .mobile-menu .store-badge--sm { min-height: 44px; height: 44px; }
@media (max-width: 1024px) {
  .site-header .store-badge__small { display: none; }
  .site-header .store-badge--sm { padding: 0 14px 0 12px; }
}

.lang-switch { display: inline-flex; gap: 2px; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; }
.lang-switch__btn {
  border: 0; background: transparent; color: var(--muted-2);
  min-width: 44px; min-height: 30px; padding: 6px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: 1.6px; cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn[aria-pressed="true"] { background: var(--border); color: var(--text); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); background: transparent;
  border-radius: 12px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 18px; height: 12px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
  transition: transform 250ms var(--ease-out), opacity 200ms;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5.25px; }
.menu-toggle__bars span:nth-child(3) { top: 10.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: var(--bg); padding: 24px var(--gutter) 40px;
  flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu.is-visible { opacity: 1; transform: translateY(0); }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  display: block; padding: 14px 0; font-size: 22px; color: var(--text); border-bottom: 1px solid var(--hairline);
}
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav, .header-actions .btn, .header-actions .store-badge, .header-actions .lang-switch { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------------------
   Store badges
--------------------------------------------------------------------------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 20px 0 16px; border-radius: var(--radius-s);
  background: #000; border: 1px solid var(--border-2); color: #fff;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  cursor: pointer; white-space: nowrap;
}
a.store-badge:hover { border-color: var(--dim); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.store-badge__icon { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge__text { display: flex; flex-direction: column; gap: 1px; text-align: left; line-height: 1.1; }
.store-badge__small { font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.store-badge__name { font-weight: 600; font-size: 18px; }
.store-badge--sm { height: 46px; padding: 0 14px 0 12px; gap: 9px; border-radius: 11px; }
.store-badge--sm .store-badge__icon { width: 20px; height: 20px; }
.store-badge--sm .store-badge__name { font-size: 14px; }
.store-badge--sm .store-badge__small { font-size: 8px; }
.store-badge--disabled { opacity: 0.6; cursor: not-allowed; }
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------------------
   Sections
--------------------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--surface { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.section__head-text { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.section__title { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.section__lead { font-size: 16px; line-height: 1.6; color: var(--muted-2); max-width: 420px; }
@media (max-width: 800px) {
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* Hero */
.hero {
  padding-block: clamp(48px, 7vw, 88px);
  background-image:
    repeating-linear-gradient(to right, rgba(244, 242, 239, 0.022) 0 1px, transparent 1px 44px),
    radial-gradient(760px 420px at 74% 44%, rgba(47, 224, 192, 0.10), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.06; text-wrap: pretty; }
.hero__text { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 52ch; }
.hero__note { font-size: 14px; line-height: 1.5; color: var(--dim); }
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Chart card */
.chart-card {
  border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.chart-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.chart-card__symbols { position: relative; }
.chart-card__symbol { display: flex; align-items: baseline; gap: 12px; }
.chart-card__symbols .reading-fade--bear { position: absolute; inset: 0; }
.chart-card__symbol strong { font-weight: 600; font-size: 18px; }
.chart-card__tf { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--dim); }
.chart-card__status { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted-2); }
.chart-card svg.chart { width: 100%; height: auto; }
.chart-card__foots { position: relative; border-top: 1px solid var(--border); }
.chart-card__foot { display: flex; align-items: center; gap: 22px; padding: 17px 22px; flex-wrap: wrap; }
.chart-card__foots .reading-fade--bear { position: absolute; inset: 0; }
.chart-card__stat { display: flex; flex-direction: column; gap: 4px; }
.chart-card__verdict { font-weight: 600; font-size: 19px; }
.chart-card__verdict--up { color: var(--up-soft); }
.chart-card__verdict--down { color: var(--down-soft); }
.chart-card__sep { width: 1px; height: 36px; background: var(--border); }
.chart-card__conf { display: flex; flex-direction: column; gap: 7px; width: 196px; }
.chart-card__drift { font-size: 13px; line-height: 1.5; color: var(--muted); flex: 1 1 200px; }
@media (max-width: 600px) {
  .chart-card__sep { display: none; }
  .chart-card__head { padding: 14px 16px; }
  .chart-card__foot { padding: 14px 16px; gap: 14px; }
  .chart-card__status span:last-child { display: none; }
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.wedge { display: flex; gap: 3px; }
.wedge span { flex: 1; height: 10px; background: var(--border); }
.wedge span.is-on { background: var(--up); }
.wedge--down span.is-on { background: var(--down); }
.wedge--lg span { height: 12px; }

/* Pipeline rail */
.pipeline { padding-block: clamp(48px, 6vw, 72px); }
.pipeline__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.pipeline__title { font-size: clamp(26px, 3.4vw, 34px); }
.pipeline__lead { font-size: 16px; color: var(--muted-2); }
.rail { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.rail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 1px; background: var(--border-2); }
.rail__runner {
  position: absolute; top: 22px; left: 10%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 224, 192, 0.18), 0 0 18px rgba(47, 224, 192, 0.8);
  animation: railRun 11s linear infinite; z-index: 1;
}
@keyframes railRun {
  0%, 15% { left: 10%; } 20%, 35% { left: 30%; } 40%, 55% { left: 50%; } 60%, 75% { left: 70%; } 80%, 95% { left: 90%; } 100% { left: 90%; opacity: 0; }
}
.rail__node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; position: relative; }
.rail__dot {
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--dim);
  font-size: 11px; letter-spacing: 2px; position: relative; z-index: 2;
  animation: nodeLit 11s linear infinite;
}
.rail__label { font-size: 15px; line-height: 1.45; color: var(--muted-2); max-width: 200px; animation: labelLit 11s linear infinite; }
.rail__node:nth-child(2) .rail__dot, .rail__node:nth-child(2) .rail__label { animation-delay: 0s; }
.rail__node:nth-child(3) .rail__dot, .rail__node:nth-child(3) .rail__label { animation-delay: 2.2s; }
.rail__node:nth-child(4) .rail__dot, .rail__node:nth-child(4) .rail__label { animation-delay: 4.4s; }
.rail__node:nth-child(5) .rail__dot, .rail__node:nth-child(5) .rail__label { animation-delay: 6.6s; }
.rail__node:nth-child(6) .rail__dot, .rail__node:nth-child(6) .rail__label { animation-delay: 8.8s; }
@keyframes nodeLit {
  0%, 16% { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(47, 224, 192, 0.12), 0 0 24px rgba(47, 224, 192, 0.35); }
  24%, 100% { border-color: var(--border-2); color: var(--dim); box-shadow: 0 0 0 0 rgba(47, 224, 192, 0), 0 0 0 rgba(47, 224, 192, 0); }
}
@keyframes labelLit { 0%, 16% { color: var(--text); } 24%, 100% { color: var(--muted-2); } }
@media (max-width: 800px) {
  .rail { grid-template-columns: 1fr; gap: 22px; }
  .rail::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .candle, .candle--live { animation: none !important; transform: none; }
  .rail__runner { display: none; }
  .rail__node { flex-direction: row; text-align: left; align-items: center; gap: 16px; }
  .rail__dot { flex-shrink: 0; }
  .rail__label { max-width: none; }
}

/* App section */
.app { background-image: radial-gradient(900px 400px at 50% 60%, rgba(47, 224, 192, 0.07), transparent 70%); }
.phones {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start;
}
.phone {
  border: 1px solid var(--border); border-radius: 36px; background: var(--surface);
  padding: 18px; min-height: 560px; display: flex; flex-direction: column; gap: 13px;
  transition: border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.phone:hover { border-color: rgba(47, 224, 192, 0.35); }
.phone--hero { border-color: var(--border-2); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); border-radius: 38px; }
.phone__title { font-size: 25px; line-height: 1.15; letter-spacing: -0.01em; }
.phone__text { font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.phone__frame {
  flex: 1; min-height: 120px; border-radius: 18px; background: var(--surface-2); border: 1px dashed var(--border-2);
  display: flex; align-items: center; justify-content: center;
}
.phone__row { display: flex; gap: 9px; }
.phone__btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: var(--radius-s); font-size: 15px;
}
.phone__btn--primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.phone__btn--ghost { border: 1px solid var(--border-2); }
.phone__hint { font-size: 11px; color: var(--dim); text-align: center; }
.tabbar {
  display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface);
  margin-top: auto;
}
.tabbar__item { width: 44px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.tabbar__item--active {
  flex: 1; gap: 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600;
}
.tabbar svg { width: 17px; height: 17px; }
.progress { display: block; height: 5px; border-radius: 3px; background: var(--border); overflow: hidden; }
.progress__bar { display: block; height: 5px; width: 34%; border-radius: 3px; background: var(--accent); }
.checklist { display: flex; flex-direction: column; gap: 15px; padding-top: 4px; }
.checklist__item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); }
.checklist__item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.checklist__item--active { color: var(--text); }
.checklist__item--todo { color: var(--dim); }
.checklist__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin: 7px 4px 0; }
.checklist__ring { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-2); flex-shrink: 0; margin: 7px 4px 0; }
.phone__foot { margin-top: auto; font-size: 12px; line-height: 1.5; color: var(--dim); }
.verdict__sym { display: flex; align-items: baseline; gap: 9px; }
.verdict__sym strong { font-size: 20px; }
.verdict__tf { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--dim); }
.verdict__big { font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--up-soft); }
.verdict__note { font-size: 12px; line-height: 1.5; color: var(--muted-2); }
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented span { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; font-size: 12px; color: var(--muted-2); }
.segmented span.is-on { background: var(--border); color: var(--text); }
.annot { height: 116px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); position: relative; overflow: hidden; }
.annot__line { position: absolute; left: 0; right: 0; height: 1px; opacity: 0.7; }
.annot__line--up { top: 32px; background: var(--up); }
.annot__line--down { top: 84px; background: var(--down); }
.annot__label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.tabs { display: flex; gap: 14px; font-size: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.tabs span { color: var(--dim); }
.tabs span.is-on { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 6px; margin-bottom: -10px; }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv div { display: flex; justify-content: space-between; font-size: 13px; color: #d5d8dd; }
.history__head { display: flex; align-items: baseline; justify-content: space-between; }
.history__count { font-size: 12px; color: var(--dim); }
.history__item {
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); padding: 12px 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.history__item > div { display: flex; flex-direction: column; gap: 3px; }
.history__item strong { font-size: 15px; }
.history__item small { font-size: 11px; color: var(--dim); }
.pill { padding: 5px 10px; border-radius: 999px; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; background: var(--border); color: var(--muted-2); }
.pill--up { background: rgba(76, 198, 94, 0.14); color: var(--up-soft); }
.pill--down { background: rgba(255, 90, 95, 0.14); color: var(--down-soft); }
.pill--pending { color: var(--muted); }
.history__foot { font-size: 11px; line-height: 1.5; color: var(--dim); }

@media (max-width: 1199px) and (min-width: 701px) {
  .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .phones {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin;
  }
  .phone { flex: 0 0 min(80vw, 300px); scroll-snap-align: center; animation: none; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature {
  border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface-2); padding: 24px;
  display: flex; flex-direction: column; gap: 11px;
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.feature:hover { border-color: rgba(47, 224, 192, 0.4); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.feature__icon { width: 24px; height: 24px; color: var(--accent); }
.feature__title { font-size: 19px; }
.feature__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Trust band */
.trust { background: var(--tint); border-top: 1px solid var(--tint-border); border-bottom: 1px solid var(--tint-border); padding-block: clamp(56px, 7vw, 88px); }
.trust__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.trust__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 40px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 1px solid rgba(47, 224, 192, 0.35); }
.stat__num { font-weight: 600; font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.stat__text { font-size: 16px; line-height: 1.55; color: var(--accent-soft); max-width: 32ch; }
.trust__cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.trust__link { color: var(--accent-soft); font-size: 15px; display: inline-flex; gap: 6px; padding-block: 8px; }
.trust__link:hover { color: var(--text); }
.trust__note { margin-top: 28px; font-size: 13px; color: var(--dim); }
@media (max-width: 800px) { .trust__stats { grid-template-columns: 1fr; gap: 24px; } }

/* Pricing */
.pricing__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; margin-bottom: 36px; }
.billing { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: 999px; margin-top: 8px; }
.billing__btn {
  border: 0; background: transparent; color: var(--muted-2); min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.billing__btn:hover { color: var(--text); }
.billing__btn[aria-pressed="true"] { background: var(--border); color: var(--text); }
.billing__save { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.billing__btn[aria-pressed="true"] .billing__save { display: none; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; align-items: center; }
.plan {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px; overflow: hidden;
}
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }
.plan__name { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted-2); }
.plan__pricing { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price { font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.plan__per { font-size: 14px; color: var(--muted-2); }
.plan__save { display: none; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-left: 4px; }
.plans[data-billing="annual"] .plan__save { display: inline; }
.plan__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.plan__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.plan__check { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--dim); }
.plan__list--accent li { color: #d5d8dd; }
.plan__list--accent .plan__check { color: var(--accent); }
.plan .btn { margin-top: auto; }
.plan--pro { border-color: var(--accent); background: var(--tint); padding: 40px 32px; animation: proGlow 4s ease-in-out infinite; }
.plan--pro::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.plan--pro .plan__name { color: var(--accent); }
.plan--pro .plan__text { color: var(--accent-soft); }
.plan__badge {
  position: absolute; top: 14px; right: 20px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
}
.pricing__trust { text-align: center; margin-top: 24px; font-size: 14px; color: var(--dim); }
@keyframes proGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 224, 192, 0.0), 0 20px 50px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(47, 224, 192, 0.08), 0 20px 60px rgba(47, 224, 192, 0.12); }
}
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } .plan--pro { padding: 36px 28px; } }

/* Final CTA */
.cta { text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta__title { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; max-width: 780px; }
.cta__text { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.cta .badge-row { justify-content: center; }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--bg); padding-top: clamp(48px, 6vw, 72px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer__brand .brand { font-size: 17px; }
.footer__disclaimer { font-size: 14px; line-height: 1.6; color: var(--dim); }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); border-radius: 12px; color: var(--muted);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.footer__social a:hover { color: var(--text); border-color: var(--dim); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__heading { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer__col a:not(.store-badge) { color: var(--muted); font-size: 15px; display: inline-block; padding-block: 4px; align-self: flex-start; }
.footer__col a:not(.store-badge):hover { color: var(--text); }
.footer__col .badge-row { margin-top: 8px; gap: 8px; }
.footer__bottom {
  border-top: 1px solid var(--hairline); padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--dim);
}
.footer__bottom-left { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------------------------------------------------------------------------
   Legal pages
--------------------------------------------------------------------------- */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal__back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 32px; }
.legal__back:hover { color: var(--text); }
.legal__header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 72ch; }
.legal__title { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; }
.legal__meta { font-size: 14px; color: var(--dim); }
.legal__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 6px; }
.legal__toc a { font-size: 14px; color: var(--muted-2); padding: 6px 0 6px 14px; border-left: 1px solid var(--border); line-height: 1.4; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--text); border-left-color: var(--accent); }
.legal__body { max-width: 72ch; font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal__body section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--hairline); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body section:last-child { border-bottom: 0; }
.legal__body h2 { font-size: 24px; color: var(--text); margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.legal__body h2 .num { color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.legal__body--auto { counter-reset: legal; }
.legal__body--auto h2 { counter-increment: legal; margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--hairline); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body--auto h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__body--auto h2::before { content: counter(legal, decimal-leading-zero); color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.legal__body h3 { font-size: 18px; color: var(--text); margin: 18px 0 8px; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 22px; }
.legal__body li { margin-bottom: 6px; }
.legal__body strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .legal__layout { grid-template-columns: 1fr; gap: 24px; }
  .legal__toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--hairline); padding-bottom: 20px; }
  .legal__toc a { border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font-size: 13px; }
}

/* Generic page / index */
.entry { padding-block: clamp(40px, 6vw, 72px); max-width: 72ch; }
.entry h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
.entry .entry__content { font-size: 17px; line-height: 1.7; color: var(--muted); }
.entry .entry__content a { color: var(--accent); }
.entry .entry__content img { border-radius: 12px; }
.entry + .entry { border-top: 1px solid var(--hairline); }

/* ---------------------------------------------------------------------------
   Animations
--------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible, .no-js [data-reveal] { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: translateY(12px) scale(0.98); }
[data-reveal="scale"].is-visible { transform: none; }

.wipe { transform-box: fill-box; transform-origin: left center; }
.wipe-hist { animation: wipeX 11s linear infinite; }
.wipe-pred { animation: wipeXlate 11s linear infinite; }
@keyframes wipeX { 0% { transform: scaleX(0); } 13% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes wipeXlate { 0%, 24% { transform: scaleX(0); } 44% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.cycle { animation: cycleFade 11s linear infinite; }
@keyframes cycleFade { 0%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }
.lvls { animation: lvlFade 11s linear infinite; }
@keyframes lvlFade { 0%, 44% { opacity: 0; } 52%, 88% { opacity: 1; } 97%, 100% { opacity: 0; } }
.scan { transform-box: fill-box; animation: scanSweep 11s linear infinite; }
@keyframes scanSweep {
  0%, 12% { transform: translateX(0); opacity: 0; }
  14% { opacity: 1; }
  22% { transform: translateX(716px); opacity: 1; }
  24%, 100% { transform: translateX(716px); opacity: 0; }
}
.halo { transform-box: fill-box; transform-origin: center; animation: haloPulse 2.6s ease-out infinite; }
@keyframes haloPulse { 0% { transform: scale(0.7); opacity: 0.45; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 7s ease-in-out infinite; animation-delay: -1.75s; }
.float-c { animation: floaty 7s ease-in-out infinite; animation-delay: -3.5s; }
.float-d { animation: floaty 7s ease-in-out infinite; animation-delay: -5.25s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.shimmer { animation: shim 1.9s ease-in-out infinite; }
@keyframes shim { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
.blink { animation: blinky 1.5s ease-in-out infinite; }
@keyframes blinky { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.wedge--anim span.is-on { animation: wedgeIn 11s linear infinite; }
.wedge--anim span.is-on:nth-child(2) { animation-delay: 0.08s; }
.wedge--anim span.is-on:nth-child(3) { animation-delay: 0.16s; }
.wedge--anim span.is-on:nth-child(4) { animation-delay: 0.24s; }
.wedge--anim span.is-on:nth-child(5) { animation-delay: 0.32s; }
.wedge--anim span.is-on:nth-child(6) { animation-delay: 0.40s; }
.wedge--anim span.is-on:nth-child(7) { animation-delay: 0.48s; }
.wedge--bear span.is-on { animation-delay: 11s; }
.wedge--bear span.is-on:nth-child(2) { animation-delay: 11.08s; }
.wedge--bear span.is-on:nth-child(3) { animation-delay: 11.16s; }
.wedge--bear span.is-on:nth-child(4) { animation-delay: 11.24s; }
.wedge--bear span.is-on:nth-child(5) { animation-delay: 11.32s; }
.wedge--bear span.is-on:nth-child(6) { animation-delay: 11.40s; }
@keyframes wedgeIn { 0%, 46% { opacity: 0.16; } 56%, 100% { opacity: 1; } }
.drift { animation: drifty 11s linear infinite; }
.drift--bear { animation-delay: 11s; opacity: 0; }
.wipe--bear { animation-delay: 11s; animation-fill-mode: backwards; }
/* Candles: gentle live sway, the last one ticks like an open candle. */
.candle { transform-box: fill-box; transform-origin: center; animation: candleSway 3.2s ease-in-out infinite; }
.candle--live { animation: candleTick 1.4s ease-in-out infinite; }
@keyframes candleSway { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-2px); } 70% { transform: translateY(1.5px); } }
@keyframes candleTick { 0%, 100% { transform: translateY(0) scaleY(1); } 30% { transform: translateY(-3px) scaleY(1.25); } 65% { transform: translateY(2px) scaleY(0.85); } }

.reading--bear .lvls { animation-delay: 11s; opacity: 0; }
.reading--bear .halo { animation-delay: 11s; }
.reading--bull, .reading-fade--bull { animation: readingA 22s linear infinite; }
.reading--bear, .reading-fade--bear { animation: readingB 22s linear infinite; opacity: 0; }
@keyframes readingA { 0% { opacity: 0; } 3% { opacity: 1; } 46% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes readingB { 0% { opacity: 0; } 50% { opacity: 0; } 53% { opacity: 1; } 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes drifty {
  0%, 58% { opacity: 0; transform: translateY(6px); }
  68%, 92% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  /* Chart: keep an opacity-only cross-fade between the two fully drawn readings. */
  .reading--bull, .reading-fade--bull { animation: readingA 22s linear infinite !important; }
  .reading--bear, .reading-fade--bear { animation: readingB 22s linear infinite !important; }
  .wipe { transform: none; }
  .lvls, .drift, .drift--bear, .reading--bear .lvls, .wedge--anim span.is-on { opacity: 1; }
  .scan { opacity: 0; }
  .rail__runner { display: none; }
  .rail__dot { border-color: var(--accent); color: var(--accent); }
  .rail__label { color: var(--text); }
}
