/* tickeracademy brand tokens (recommended logo option A, brand kit 2026-10-23). Fonts are self-hosted (SIL Open Font License 1.1, Latin subset) because the CSP allows font-src 'self' only. */
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fx/fonts/plex-sans-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fx/fonts/plex-sans-500.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fx/fonts/plex-sans-600.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fx/fonts/plex-mono-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fx/fonts/plex-mono-500.woff2') format('woff2');}

:root {
  /* Typography */
  --font-sans: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --text-xs: 0.75rem;   /* 12 */
  --text-sm: 0.875rem;  /* 14 */
  --text-base: 1rem;    /* 16 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.25rem;   /* 20 */
  --text-2xl: 1.5rem;   /* 24 */
  --text-3xl: 1.875rem; /* 30 */
  --text-4xl: 2.25rem;  /* 36 */
  --text-5xl: 3rem;     /* 48 */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.55;
  --tracking-tight: -0.015em;
  --tracking-eyebrow: 0.12em;

  /* Brand colour */
  --color-primary-50: #EAF4EF;
  --color-primary-100: #D3E9DE;
  --color-primary-200: #A9D4BF;
  --color-primary-300: #6FD3A6;
  --color-primary-400: #3FAE7F;
  --color-primary-500: #188A60;
  --color-primary-600: #0F6B4A;
  --color-primary-700: #0C5639;
  --color-primary-800: #09412C;
  --color-primary-900: #062B1D;
  --color-primary: var(--color-primary-600);
  --color-primary-hover: var(--color-primary-700);
  --color-primary-on-dark: var(--color-primary-300);

  /* Neutrals */
  --color-ink: #0F1F18;
  --color-text-muted: #4A5A53;
  --color-text-subtle: #6B7A73;
  --color-border: #DCE5E0;
  --color-surface: #FFFFFF;
  --color-canvas: #EEF1EF;
  --color-dark: #0B0F17;

  /* Status */
  --color-success: #0F7B4F;
  --color-warning: #B45309;
  --color-danger: #B42318;
  --color-market-up: #0F7B4F;
  --color-market-down: #B42318;
  --color-market-flat: #6B7A73;

  /* Spacing (4 px base) */
  --space-0: 0rem;
  --space-1: 0.25rem; /* 4 */
  --space-2: 0.5rem; /* 8 */
  --space-3: 0.75rem; /* 12 */
  --space-4: 1rem; /* 16 */
  --space-5: 1.25rem; /* 20 */
  --space-6: 1.5rem; /* 24 */
  --space-8: 2rem; /* 32 */
  --space-10: 2.5rem; /* 40 */
  --space-12: 3rem; /* 48 */
  --space-16: 4rem; /* 64 */
  --space-20: 5rem; /* 80 */
  --space-24: 6rem; /* 96 */

  /* Radii */
  --radius-sm: 6px;   /* chips inside inputs, tags */
  --radius-md: 10px;  /* inputs, small cards */
  --radius-lg: 12px;  /* buttons */
  --radius-xl: 16px;  /* cards */
  --radius-2xl: 24px; /* sheets, modals */
  --radius-full: 9999px;

  /* Elevation (soft, neutral; no coloured glows) */
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow-md: 0 4px 12px rgb(16 24 40 / 0.08);
  --shadow-sticky: 0 -6px 16px rgb(16 24 40 / 0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 160ms;

  /* Icons */
  --icon-size: 20px;
  --icon-stroke: 1.75;
}

/* ---------- base ---------- */
body { font-family: var(--font-sans); color: var(--color-ink); background: var(--color-canvas); line-height: var(--leading-body); -webkit-font-smoothing: antialiased; }
h1, h2, .display { font-family: var(--font-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: 600; }
.eyebrow { font-size: var(--text-sm); font-weight: 600; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--color-primary); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-lg); font: 600 var(--text-base)/1 var(--font-sans); border: 1px solid transparent; cursor: pointer; transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.btn:focus-visible { outline: 3px solid var(--color-primary-200); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-800); }
.btn-secondary { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-border); }
.btn-secondary:hover { border-color: var(--color-primary-200); background: var(--color-primary-50); }
.btn-lg { min-height: 56px; font-size: var(--text-lg); }
.btn-block { width: 100%; }

/* Sticky CTA bar (mobile funnels): one primary action, safe-area aware */
.sticky-cta { position: sticky; bottom: 0; z-index: 20; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--color-border); box-shadow: var(--shadow-sticky); }
.sticky-cta .btn { width: 100%; min-height: 56px; }
.sticky-cta small { display: block; margin-top: var(--space-2); text-align: center; font-size: var(--text-xs); color: var(--color-text-subtle); }

/* ---------- surfaces ---------- */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6); }
.card--active { border: 2px solid var(--color-primary); }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--color-primary-50); color: var(--color-primary-700); font-size: var(--text-sm); font-weight: 500; }
.progress { height: 8px; border-radius: var(--radius-full); background: var(--color-primary-50); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--color-primary); border-radius: inherit; }
.icon { width: var(--icon-size); height: var(--icon-size); stroke-width: var(--icon-stroke); }

/* TickerAcademy control-arm phone fold (2026-11-18, owner rule: pay button above the fold on a phone, checked at 390x844
   and 500x900). The classic card-first paywall (.fx-pw-first; arms plan, express and sheet) gets the same treatment as the
   reveal arm (fx-reveal.css). It lives in this TickerAcademy-only file, not in the shared fx.css, so IQTestPath serves
   exactly the same bytes as before; every selector also needs html[data-brand=tickeracademy] and .fx-pw-first (the sheet
   is that paywall's sibling). Nothing is removed: price ("Due today"), trial length, wallets, the email box with its
   quick-tap domains, the card form and the renewal line directly under the pay button all stay; only the header height
   and the spacing above the card form shrink. */
@media(max-width:640px){
 html[data-brand=tickeracademy] body.fx-pw-on:has(.fx-pw-first) .fx-top{min-height:48px;padding-top:2px;padding-bottom:2px}
 html[data-brand=tickeracademy] body.fx-pw-on:has(.fx-pw-first) .fx-app{padding-top:var(--space-3)}
 html[data-brand=tickeracademy] .fx-pw.fx-pw-first{gap:var(--space-3)}
 html[data-brand=tickeracademy] .fx-pw-first .fx-pw-head h1{font-size:var(--text-lg);line-height:1.2}
 html[data-brand=tickeracademy] .fx-pw-first .fx-pw-head>p{margin-top:var(--space-1)!important}
 html[data-brand=tickeracademy] .fx-pw-first .fx-order-compact .fx-order-row>span:first-child,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-order-compact .fx-order-row>span:first-child{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px}
 html[data-brand=tickeracademy] .fx-pw-first .fx-order-compact .fx-order-row>span:first-child .icon,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-order-compact .fx-order-row>span:first-child .icon{grid-row:auto}
 html[data-brand=tickeracademy] .fx-pw-first .fx-pay-box.is-open,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-pay-box.is-open{margin-top:var(--space-2)}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co{gap:6px}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co-or,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co-or{font-size:var(--text-xs);line-height:1}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co-email,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co-email{gap:4px}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co-email label,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co-email label{font-size:13px;line-height:1.3}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co-email input[type=email],html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co-email input[type=email]{min-height:48px;font-size:var(--text-base)}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co-email .ea-chips,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co-email .ea-chips{margin-top:6px;padding-bottom:2px}
 html[data-brand=tickeracademy] .fx-pw-first .fx-co-pay,html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-co-pay{margin-top:0}
 html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-sheet-panel{padding-top:var(--space-3)}
 html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-sheet-head{margin-bottom:var(--space-1)}
 html[data-brand=tickeracademy] .fx-pw-first~.fx-sheet .fx-sheet-panel .fx-order{margin-bottom:var(--space-2)}
}
