/* The landing's three variable fonts, served from this host (no third-party request). */
@font-face {
  font-family: 'Instrument Sans Variable';
  src: url(fonts/instrument-sans-latin-wght-normal.woff2) format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders Variable';
  src: url(fonts/big-shoulders-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono Variable';
  src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Cato Guard landing — Galea brand. Tokens mirror packages/ui/tokens.css (dark theme). */

:root {
  --ink: #0f0f0f;
  --surface: #161616;
  --surface-raised: #1c1c1c;
  --line: #2a2a28;
  --line-strong: #3a3a37;
  --cream: #efeae0;
  --muted: #8d8a82;
  --subtle: #5f5d57;
  --brand: #d9342b;
  --brand-hover: #e5463d;
  --brand-soft: #2a1412;
  --ok: #3fbf7f;

  --font-display: 'Big Shoulders Variable', 'Arial Narrow', sans-serif;
  --font-sans: 'Instrument Sans Variable', system-ui, sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 12vw, 160px);
  --measure: 58ch;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  text-wrap: balance;
}
.display--hero {
  font-size: clamp(3.75rem, 6.4vw, 5.75rem);
  line-height: 0.88;
}
.display--large {
  font-size: clamp(3rem, 7vw, 6rem);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
  margin-top: 28px;
}

.section__lead {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: var(--measure);
  margin-top: 18px;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}
.button--primary {
  background: var(--brand);
  color: #fff;
  overflow: hidden;
}
.button--primary:hover {
  background: var(--brand-hover);
}
.button--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
}
.button--ghost:hover {
  border-color: var(--cream);
}
.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.button--block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  width: 26px;
  height: auto;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__name em {
  font-style: normal;
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9875rem;
  transition: color 120ms ease;
}
.site-nav a:hover {
  color: var(--cream);
}
.site-nav__product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-nav__product img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  opacity: 0.85;
  transition: opacity 120ms ease;
}
.site-nav__product:hover img,
.site-nav__product[aria-current='page'] img {
  opacity: 1;
}
.site-nav .button {
  color: #fff;
}
.site-nav .button--ghost {
  color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: '';
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}
.nav-toggle__bar {
  top: 20px;
}
.nav-toggle__bar::before {
  left: 0;
  top: -6px;
}
.nav-toggle__bar::after {
  left: 0;
  top: 6px;
}

/* Header tools: language pill (same EN | PT control as the app) and the menu button */
.site-header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 3;
}
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}
.lang button {
  min-width: 40px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}
.lang button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}
.lang button:not([aria-pressed='true']):hover {
  color: var(--cream);
}

/* Hero */
.hero {
  overflow-x: clip;
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 112px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero__actions--center {
  justify-content: center;
}

.hero__visual {
  position: relative;
  /* Let the browser frame run past the container on wide screens. */
  margin-right: calc(-1 * clamp(0px, 8vw, 160px));
  padding-bottom: 56px;
  animation: hero-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__copy {
  animation: hero-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.device {
  background: #0b0b0b;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.device--browser .device__bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #121212;
}
.device__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.device--phone {
  position: absolute;
  right: clamp(8px, 3vw, 40px);
  bottom: 0;
  width: clamp(120px, 15vw, 190px);
  border-radius: 22px;
  border-color: #444;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
}

.hero__firms {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 48px;
  align-items: baseline;
}
.hero__firms-lead {
  color: var(--muted);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.firm-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* Hero: account line and buttons */
.hero__launch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  color: var(--cream);
  font-weight: 500;
}
.hero__launch-dot {
  flex-shrink: 0;
  margin-top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.6);
  animation: dot-pulse 1.6s ease-out infinite;
}
.form-input {
  min-height: 52px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  transition: border-color 120ms ease;
}
.form-input::placeholder {
  color: var(--subtle);
}
.form-input:focus {
  outline: none;
  border-color: var(--cream);
}
.form-note,
.form-message {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-message:empty {
  display: none;
}
.form-message[data-state='done'] {
  color: var(--ok);
  font-weight: 500;
}
.form-message[data-state='error'] {
  color: var(--brand);
}
.form-message[data-state='info'] {
  color: var(--cream);
}
.form-message[data-state='info'] a {
  color: var(--brand);
  text-underline-offset: 3px;
}
.hero__actions--quiet {
  margin-top: 18px;
}
.start {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.start__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.start__steps {
  margin-top: 28px;
  padding-left: 0;
  list-style: none;
  counter-reset: start;
  display: grid;
  gap: 14px;
  max-width: var(--measure);
}
.start__steps li {
  counter-increment: start;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}
.start__steps li::before {
  content: counter(start);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brand);
}
.start__card {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
}
.start__card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.start__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--cream);
}
.start__icon-brand {
  fill: var(--brand);
}
.start__icon-stroke {
  stroke: var(--brand);
}
.start__note {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.start__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

/* Legal documents (terms, privacy, risk) and the 404 page */
.legal {
  padding-block: clamp(40px, 6vw, 80px) var(--section);
}
.legal__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.legal__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}
.legal__nav {
  display: grid;
  border-top: 1px solid var(--line);
}
.legal__nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}
.legal__nav a:hover {
  color: var(--cream);
}
.legal__nav a[aria-current='page'] {
  color: var(--cream);
  box-shadow: inset 3px 0 0 var(--brand);
  padding-left: 12px;
}
.legal__meta {
  color: var(--subtle);
  font-size: 0.875rem;
}
.legal__doc {
  max-width: 72ch;
}
.legal__doc .display {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.legal__intro {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--brand);
  color: var(--cream);
}
.legal__doc h2 {
  margin-top: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.legal__doc p {
  margin-top: 12px;
  color: var(--muted);
}
.legal__doc p strong {
  color: var(--cream);
  font-weight: 600;
}
.legal__doc a {
  color: var(--cream);
}
.notfound {
  padding-block: var(--section);
}
.notfound__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.85;
  color: var(--brand);
}
.notfound .display {
  margin-top: 12px;
}
.notfound .button {
  margin-top: 28px;
}

/* Contact page */
.contact {
  padding-block: clamp(40px, 6vw, 80px) var(--section);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact__direct {
  margin-top: 24px;
  color: var(--muted);
}
.contact__direct a {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--cream);
}
.contact-form {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
}
/* The staging build shows the form but cannot send it (VITE_CONTACT_DISABLED, see src/main.js). */
.contact-form.is-disabled .form-input,
.contact-form.is-disabled .button {
  opacity: 0.55;
  cursor: not-allowed;
}
.contact-form.is-disabled .turnstile {
  display: none;
}
.contact-form label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.contact-form label:first-child {
  margin-top: 0;
}
.contact-form__textarea {
  min-height: 160px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}
.contact-form .button {
  margin-top: 16px;
}
.contact-form .form-note,
.contact-form .form-message {
  grid-column: auto;
}

/* Turnstile slot inside the forms */
.turnstile {
  grid-column: 1 / -1;
}
/* Never display:none the slot once rendered: Turnstile does not run inside a hidden container.
   With appearance "interaction-only" the widget itself stays invisible unless a check is needed. */
.turnstile:empty {
  display: none;
}
.turnstile iframe {
  display: block;
}
/* Verified: the "Success!" box closes (a reset or an expired token shows the slot again). */
.turnstile.is-verified {
  display: none;
}

/* Bands: full-bleed photography with a statement */
.band {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 62vw, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.92) 0%,
      rgba(15, 15, 15, 0.65) 45%,
      rgba(15, 15, 15, 0.15) 100%
    ),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}
.band__copy {
  padding-block: clamp(64px, 10vw, 120px);
}
.band__copy .display {
  max-width: 14ch;
}
.band__copy p {
  margin-top: 22px;
  max-width: 48ch;
  font-size: 1.125rem;
  color: var(--cream);
}
.band__copy p + p {
  margin-top: 14px;
}
.band__copy--right {
  display: grid;
  justify-items: end;
  text-align: left;
}
.band__copy--right > * {
  width: min(100%, 560px);
}
.band--galea .band__media::after {
  background:
    linear-gradient(
      270deg,
      rgba(15, 15, 15, 0.9) 0%,
      rgba(15, 15, 15, 0.55) 45%,
      rgba(15, 15, 15, 0.1) 100%
    ),
    linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 82%, var(--ink) 100%);
}
.band--galea .band__media img {
  object-position: 28% center;
}
.band--problem .band__media img {
  object-position: 62% center;
}
.band--cta {
  min-height: clamp(480px, 55vw, 680px);
  text-align: center;
}
.band--cta .band__media::after {
  background:
    radial-gradient(ellipse at center, rgba(15, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.88) 70%),
    linear-gradient(180deg, var(--ink) 0%, transparent 20%, transparent 80%, var(--ink) 100%);
}
.band__copy--center {
  display: grid;
  justify-items: center;
}
.band__copy--center .display {
  max-width: none;
}

/* Sections */
.section {
  padding-block: var(--section);
}
.section--tight {
  padding-block: clamp(56px, 9vw, 120px);
}
.section__head {
  max-width: 760px;
}

/* Product tour */
.tour {
  margin-top: clamp(32px, 5vw, 56px);
}
.tour__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.tour__tabs::-webkit-scrollbar {
  display: none;
}
.tour__tabs [role='tab'] {
  flex: 0 0 auto;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 18px;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}
.tour__tabs [role='tab']:hover {
  color: var(--cream);
}
.tour__tabs [role='tab'][aria-selected='true'] {
  color: var(--cream);
  border-bottom-color: var(--brand);
}
.tour__panel {
  padding-top: clamp(24px, 4vw, 40px);
}
.tour__caption {
  margin-top: 18px;
  color: var(--muted);
  max-width: var(--measure);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 32px 32px 0 0;
  border-right: 1px solid var(--line);
  margin-right: 32px;
}
.step:last-child {
  border-right: 0;
  margin-right: 0;
}
.step__n {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--brand);
}
.step h3 {
  margin-top: 18px;
  font-size: 1.25rem;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* Rules */
.rules {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.rules__head {
  position: sticky;
  top: 110px;
}
.rule-list {
  border-top: 1px solid var(--line);
}
.rule {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rule dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.rule dd {
  margin: 0;
  color: var(--muted);
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.split__media img {
  border-radius: var(--radius-xl);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__copy h3 {
  margin-top: 32px;
  color: var(--cream);
}
.split__copy h3::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  background: var(--brand);
  vertical-align: 1px;
}
.split__copy h3:first-of-type {
  margin-top: 36px;
}
.split__copy p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 50ch;
}

/* Pricing */
.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.pricing__note {
  margin-top: 22px;
  color: var(--cream);
  max-width: var(--measure);
  padding-left: 16px;
  border-left: 2px solid var(--brand);
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 40px);
}
.price-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.price-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink);
}
.price-toggle button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}
.price-toggle button[aria-pressed='true'] {
  background: var(--cream);
  color: var(--ink);
}
.price-card__per {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.125rem;
  text-transform: none;
  color: var(--muted);
  margin-left: 6px;
}
.price-card__billed {
  display: block;
  margin-top: 8px;
  color: var(--ok);
  font-size: 0.9375rem;
}
.price-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-card__price {
  margin-top: 20px;
  display: grid;
  gap: 4px;
}
.price-card__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 4.6vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-card__unit {
  color: var(--muted);
}
.price-card__list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.price-card__list li {
  padding-left: 26px;
  position: relative;
  color: var(--cream);
}
.price-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}
.price-card .button {
  margin-top: 28px;
}
.price-card__fine {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--subtle);
  text-align: center;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__list {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 48px 22px 0;
  font-weight: 600;
  font-size: 1.125rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq details p {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 62ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-footer__brand p {
  margin-top: 16px;
  max-width: 28ch;
}
.site-footer__links {
  display: grid;
  gap: 10px;
  align-content: start;
}
.site-footer__links h3 {
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.site-footer__links a {
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--cream);
}
.soon small {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8b030;
}
.site-footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--subtle);
}
.site-footer__legal p:first-child {
  max-width: 90ch;
}

/* Responsive */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    margin-right: 0;
  }
  .rules,
  .legal__grid,
  .contact__grid,
  .start__grid,
  .pricing__grid,
  .faq,
  .split {
    grid-template-columns: 1fr;
  }
  .rules__head,
  .legal__aside {
    position: static;
  }
  .split__media {
    order: 2;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .site-header__row {
    flex-wrap: wrap;
    position: relative;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px var(--gutter) 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 4px;
    font-size: 1.0625rem;
  }
  .site-nav .button {
    margin-top: 8px;
    min-height: 44px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    border-right: 0;
    margin-right: 0;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child {
    border-bottom: 0;
  }
  .step__n {
    font-size: 3rem;
  }
  .rule {
    grid-template-columns: 1fr;
  }
  .hero__firms {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .firm-list {
    font-size: 1.0625rem;
    gap: 8px 20px;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .band {
    min-height: 0;
  }
  .band__media::after,
  .band--galea .band__media::after {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.9) 100%);
  }
  .band__copy--right > * {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .display--hero {
    font-size: clamp(3.25rem, 19vw, 4.75rem);
  }
  .device--phone {
    width: 104px;
    right: 4px;
  }
  .hero__visual {
    padding-bottom: 40px;
  }
  .hero__actions .button {
    flex: 1 1 100%;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------ */
/* Motion                                                                    */
/* ------------------------------------------------------------------------ */

/* Hero: breathing red glow behind the product, following the pointer a little. */
.hero {
  --mx: 70%;
  --my: 40%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    42rem 30rem at var(--mx) var(--my),
    rgba(217, 52, 43, 0.22),
    rgba(217, 52, 43, 0.06) 40%,
    transparent 70%
  );
  animation: glow-breathe 7s ease-in-out infinite alternate;
  transition: background-position 400ms ease;
}
@keyframes glow-breathe {
  from {
    opacity: 0.7;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Hero visual tilts with the pointer; the frame floats gently when idle. */
.hero__visual {
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero__visual .device--browser {
  animation: float 9s ease-in-out infinite;
}
.hero__visual .device--phone {
  animation: float 9s ease-in-out 1.2s infinite reverse;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Headline lines wipe in from below, one after the other. */
[data-split-lines] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
[data-split-lines] .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 140ms + 120ms);
}
@keyframes line-up {
  to {
    transform: translateY(0);
  }
}

/* Primary CTA: a soft red pulse so the eye lands on it. */
.hero .button--primary,
.band--cta .button--primary {
  position: relative;
  animation: cta-pulse 2.8s ease-out infinite;
}
@keyframes cta-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 52, 43, 0.55);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(217, 52, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 52, 43, 0);
  }
}
.button--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 600ms ease;
  pointer-events: none;
}
.button--primary:hover::after {
  transform: translateX(120%);
}

/* Live lock card over the hero dashboard. */
.live-lock {
  position: absolute;
  left: clamp(-8px, -1vw, 0px);
  bottom: 24px;
  width: clamp(200px, 20vw, 250px);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  transform: translateY(0);
  transition:
    border-color 300ms ease,
    box-shadow 300ms ease,
    opacity 400ms ease,
    transform 400ms ease;
  z-index: 2;
}
.live-lock.is-reset {
  opacity: 0;
  transform: translateY(8px);
}
.live-lock__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-lock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.6);
  animation: dot-pulse 1.6s ease-out infinite;
}
@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 191, 127, 0.6);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(63, 191, 127, 0);
  }
}
.live-lock__pnl {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  transition: color 200ms ease;
}
.live-lock__bar {
  margin-top: 10px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.live-lock__bar i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 3px;
  background: var(--warn, #e8b030);
  transition: background-color 200ms ease;
}
.live-lock__status {
  margin-top: 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
  min-height: 2.1em;
}
.live-lock.is-breach .live-lock__pnl,
.live-lock.is-locked .live-lock__pnl {
  color: var(--brand);
}
.live-lock.is-breach .live-lock__bar i,
.live-lock.is-locked .live-lock__bar i {
  background: var(--brand);
}
.live-lock.is-breach {
  border-color: var(--brand);
  box-shadow:
    0 0 0 4px rgba(217, 52, 43, 0.18),
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
}
.live-lock.is-locked {
  border-color: var(--brand);
}
.live-lock.is-locked .live-lock__dot {
  background: var(--brand);
  animation: none;
  box-shadow: none;
}
.live-lock.is-locked .live-lock__status {
  color: var(--cream);
}
.live-lock.is-locked .live-lock__status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 10px;
  margin-right: 6px;
  border: 2px solid var(--brand);
  border-radius: 2px 2px 1px 1px;
  vertical-align: -1px;
  box-shadow: inset 0 -4px 0 var(--brand);
}

/* Prop firms: continuous marquee, pauses on hover. */
.marquee {
  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);
}
.marquee .firm-list {
  flex-wrap: nowrap;
  width: max-content;
  gap: 0 48px;
  padding-right: 48px;
  animation: marquee 32s linear infinite;
}
.marquee:hover .firm-list {
  animation-play-state: paused;
}
.marquee .firm-list li {
  white-space: nowrap;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Numbers strip. */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  padding: 36px 24px 36px 0;
  display: grid;
  gap: 6px;
  border-right: 1px solid var(--line);
  margin-right: 24px;
}
.stat:last-child {
  border-right: 0;
  margin-right: 0;
}
.stat__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__n--brand {
  color: var(--brand);
}
.stat__label {
  color: var(--muted);
  font-size: 1rem;
}

/* Scroll reveals: quick, once, staggered inside a group. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(min(var(--i, 0), 4) * 90ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Photography drifts slowly behind the copy. */
.band__media img {
  will-change: transform;
  transform: translateY(var(--py, 0)) scale(1.12);
}
.band--galea .band__media img {
  animation: ken-burns 24s ease-in-out infinite alternate;
}
@keyframes ken-burns {
  from {
    transform: translateY(var(--py, 0)) scale(1.12);
  }
  to {
    transform: translateY(var(--py, 0)) scale(1.2);
  }
}

/* Auto-rotating product tour: a progress bar fills along the active tab. */
.tour__tabs [role='tab'] {
  position: relative;
}
.tour__tabs [role='tab']::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--brand);
}
.tour.is-auto .tour__tabs [role='tab'][aria-selected='true'] {
  border-bottom-color: var(--line-strong);
}
.tour.is-auto .tour__tabs [role='tab'][aria-selected='true']::after {
  animation: tab-progress var(--tour-ms, 6000ms) linear forwards;
}
@keyframes tab-progress {
  to {
    width: 100%;
  }
}
.tour__panel {
  animation: panel-in 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .live-lock {
    left: 8px;
    bottom: 12px;
  }
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(2) {
    border-right: 0;
    margin-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .live-lock {
    width: 164px;
    padding: 10px 12px;
  }
  .live-lock__pnl {
    font-size: 1.75rem;
  }
  .stat {
    padding: 24px 16px 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  [data-split-lines] .line > span {
    transform: none;
  }
  .band__media img {
    transform: none;
  }
  .marquee .firm-list {
    flex-wrap: wrap;
    width: auto;
  }
  .hero__visual {
    transform: none !important;
  }
}

/* Toast: the apps' toast (packages/ui Toaster), for the static pages. Bottom right, a full-width stack on a phone. */
.toaster {
  position: fixed;
  z-index: 100;
  inset-inline: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
}
@media (min-width: 640px) {
  .toaster {
    inset-inline: auto 24px;
    bottom: 24px;
    width: 25.5rem;
  }
}
.toast {
  --tone: var(--ok);
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  padding: 12px 16px 16px;
  color: var(--cream);
  border: 1.5px solid color-mix(in srgb, var(--tone) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 5%, var(--surface-raised));
  box-shadow: 0 10px 32px -10px color-mix(in srgb, var(--tone) 55%, transparent);
  animation: toast-in 0.22s ease-out;
}
.toast[data-variant='info'] {
  --tone: #4c9aff;
}
.toast[data-variant='warning'] {
  --tone: #e8b030;
}
.toast[data-variant='error'] {
  --tone: var(--brand);
}
.toast__tile {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--tone) 16%, #0a0a0a);
}
.toast__icon {
  display: grid;
  place-items: center;
  color: var(--tone);
}
.toast__icon svg {
  width: 28px;
  height: 28px;
}
.toast__icon--solid {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--tone);
  color: #fff;
}
.toast__icon--solid svg {
  width: 16px;
  height: 16px;
}
.toast__body {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}
.toast__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.toast__text {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--cream) 90%, transparent);
}
.toast__close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.toast__close:hover {
  opacity: 0.7;
}
.toast__track {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: color-mix(in srgb, var(--tone) 15%, transparent);
}
.toast__bar {
  height: 100%;
  background: var(--tone);
  transform-origin: left;
  animation: toast-bar 4s linear forwards;
}
.toast.is-paused .toast__bar {
  animation-play-state: paused;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes toast-bar {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}


/* Maintenance bar (maintenance-bar.js): amber before the window, strong red during it; the look of the approved mock's site bar. */
.maint-bar {
  --tone: #e8b030;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px var(--gutter);
  border-bottom: 1.5px solid var(--tone);
  background: color-mix(in srgb, var(--tone) 9%, var(--surface));
  color: var(--cream);
  position: relative;
  z-index: 60;
}
.maint-bar--strong {
  --tone: var(--brand);
  background: color-mix(in srgb, var(--tone) 14%, var(--surface));
}
.maint-bar__tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  background: color-mix(in srgb, var(--tone) 16%, #0a0a0a);
  color: var(--tone);
}
.maint-bar__tile svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.maint-bar__body {
  flex: 1;
  min-width: 0;
}
.maint-bar__title {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.maint-bar__detail {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  margin-top: 1px;
}
.maint-bar__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 230px;
  text-align: right;
}
.maint-bar__cd {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--tone);
}
.maint-bar__more {
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.maint-bar__more[hidden],
.maint-bar__progress[hidden] {
  display: none;
}
.maint-bar__progress {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--tone) 18%, var(--line));
  overflow: hidden;
}
.maint-bar__progress i {
  display: block;
  height: 100%;
  background: var(--tone);
  border-radius: 99px;
}
@media (max-width: 820px) {
  .maint-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .maint-bar__side {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    width: 100%;
  }
}

/* Company and product pages (added with the split of the site). Tokens come from style.css. */

.site-nav a[aria-current='page'] {
  color: var(--cream);
  box-shadow: 0 2px 0 var(--brand);
}
.site-nav a[aria-current='page']:not(.button) {
  padding-bottom: 4px;
}

/* Status chips: sentence case, a dot says the state */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
  background: var(--ink);
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--subtle);
}
.chip--open::before {
  background: var(--ok);
  animation: dot-pulse 1.6s ease-out infinite;
}
.chip--wait::before {
  background: #e8b030;
}
.chip--free::before {
  background: var(--brand);
}

/* Connector logos (nominative reference to the accounts we connect to) */
.connector__logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 100%;
  opacity: 0.92;
}
.connector__logo--large {
  height: 30px;
  margin-top: 14px;
}

/* Product list: rows with the product icon */
.product-list .rule {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: start;
}
.product-list dt {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-list dt img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.product-list dd {
  display: grid;
  gap: 14px;
}
.product-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-list__links a,
.rule dd a {
  color: var(--cream);
  text-underline-offset: 3px;
}
.product-list__links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color 120ms ease;
}
.product-list__links a:hover {
  border-color: var(--cream);
}

/* Markets and connectors */
.markets {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.markets__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}
.market {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--ink);
}
.market h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.market > p {
  color: var(--muted);
}
.market__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.market--more {
  border-style: dashed;
  background: transparent;
}
.market__more-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 0.8;
  color: var(--brand);
}
.markets__note {
  margin-top: 24px;
  max-width: 80ch;
  font-size: 0.875rem;
  color: var(--subtle);
}

.rule dd a + a {
  margin-left: 4px;
}
.start__card-title img {
  width: 28px;
  height: auto;
}

@media (max-width: 1080px) {
  .markets__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .product-list .rule {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .board__product {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .board__markets {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .board__product {
    animation: none !important;
  }
}

/* MetaTrader 5: icon, wordmark and the 5, from the vendor's own files */
.mt5-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 22px;
}
.mt5-logo img {
  width: auto;
  height: 100%;
}
.mt5-logo img + img {
  height: 70%;
}
.mt5-logo b {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--cream);
}
.mt5-logo.connector__logo--large {
  height: 30px;
  margin-top: 14px;
}
.mt5-logo.connector__logo--large b {
  font-size: 1.45rem;
}

body[data-page='company'] .hero__grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}
body[data-page='company'] .display--hero {
  font-size: clamp(3.5rem, 5.6vw, 5.25rem);
}
@media (max-width: 1080px) {
  body[data-page='company'] .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  body[data-page='company'] .display--hero {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }
}

/* Company photography: clearly visible, darkened only behind the text */
body[data-page='company'] .hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
body[data-page='company'] .hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.95) 0%,
      rgba(15, 15, 15, 0.82) 38%,
      rgba(15, 15, 15, 0.12) 78%,
      rgba(15, 15, 15, 0.05) 100%
    ),
    linear-gradient(180deg, transparent 70%, var(--ink) 100%);
}
body[data-page='company'] img[data-bgpar] {
  position: absolute;
  left: 0;
  top: -9%;
  width: 100%;
  height: 118%;
  object-fit: cover;
  transform: translate3d(0, var(--bp, 0%), 0);
  will-change: transform;
}
body[data-page='company'] .hero__media img {
  object-position: 65% center;
}
body[data-page='company'] .band--galea .band__media::after {
  background:
    linear-gradient(
      270deg,
      rgba(15, 15, 15, 0.84) 0%,
      rgba(15, 15, 15, 0.68) 30%,
      rgba(15, 15, 15, 0) 58%
    ),
    linear-gradient(180deg, var(--ink) 0%, transparent 12%, transparent 88%, var(--ink) 100%);
}
body[data-page='company'] .band--galea .band__media img {
  object-position: 42% center;
}
body[data-page='company'] .band--cta .band__media::after {
  background:
    radial-gradient(ellipse at center, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.12) 75%),
    linear-gradient(180deg, var(--ink) 0%, transparent 14%, transparent 86%, var(--ink) 100%);
}
.photo-strip {
  position: relative;
  height: clamp(200px, 32vw, 440px);
  overflow: hidden;
  background: var(--ink);
}
.photo-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--ink) 0%,
    transparent 22%,
    transparent 78%,
    var(--ink) 100%
  );
}
@media (max-width: 800px) {
  body[data-page='company'] .hero__media::after {
    background:
      linear-gradient(
        180deg,
        rgba(15, 15, 15, 0.84) 0%,
        rgba(15, 15, 15, 0.7) 55%,
        rgba(15, 15, 15, 0.2) 100%
      ),
      linear-gradient(180deg, transparent 75%, var(--ink) 100%);
  }
  body[data-page='company'] .band--galea .band__media::after {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.72) 0%, rgba(15, 15, 15, 0.62) 100%);
  }
  body[data-page='company'] .band--galea .band__media img {
    object-position: 20% center;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page='company'] img[data-bgpar] {
    transform: none;
    will-change: auto;
  }
}

/* Phones: the hero keeps a plain dark background; the photo is its own block between the copy and the board */
.hero__photo {
  display: none;
}
@media (max-width: 899px) {
  body[data-page='company'] .hero__media {
    display: none;
  }
  .hero__photo {
    display: block;
    position: relative;
    margin-inline: calc(-1 * var(--gutter, 20px));
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0%,
      #000 22%,
      #000 78%,
      transparent 100%
    );
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }
  .hero__photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    object-position: center;
  }
}

.hero__media picture,
.band__media picture,
.photo-strip picture {
  display: contents;
}

/* Guard page: markets, connectors, demo tags */
.hero__for {
  margin-top: 14px;
  font-weight: 600;
  color: var(--cream);
}
.hero__markets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}
.hero__market {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__market b {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__connectors,
.price-card__connectors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.hero__note,
.market-note {
  margin-top: 12px;
  max-width: 70ch;
  color: var(--subtle);
  font-size: 0.875rem;
}
.demo-tag {
  margin-top: 10px;
  color: var(--subtle);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
figcaption.demo-tag {
  text-align: right;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 8px;
}
.hero__foot .hero__connectors,
.hero__foot .hero__note {
  margin-top: 12px;
}

.board__product--soon {
  cursor: default;
}

/* Product bar (/guard/): the product's sections under the site header, in a quieter style so the two menus never read
   as one. The site header scrolls away on these pages; the bar then sticks to the top and shows the account button. */
body:has([data-product-nav]) .site-header {
  position: relative;
}
.product-nav {
  position: sticky;
  top: 0;
  z-index: 49;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product-nav__row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 52px;
}
.product-nav__name {
  flex: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
}
.product-nav__name em {
  font-style: normal;
  color: var(--brand);
}
.product-nav__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.product-nav__name img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.product-nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-nav__links::-webkit-scrollbar {
  display: none;
}
.product-nav__links a {
  flex: none;
  padding: 15px 0 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 120ms ease,
    border-color 120ms ease;
}
.product-nav__links a:hover {
  color: var(--cream);
}
.product-nav__links a[aria-current='true'] {
  color: var(--cream);
  border-bottom-color: var(--brand);
}
.product-nav__cta {
  margin-left: auto;
  flex: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease;
}
.product-nav.is-stuck .product-nav__cta {
  visibility: visible;
  opacity: 1;
}
/* Anchors land below the bar, not under it. */
body:has([data-product-nav]) main section[id] {
  scroll-margin-top: 64px;
}
@media (max-width: 640px) {
  .product-nav__row {
    gap: 16px;
  }
  .product-nav__links {
    gap: 18px;
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .product-nav__cta {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-nav__cta {
    transition: none;
  }
}

/* "Verify our downloads": certificate facts and copyable command blocks */
.facts {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--subtle);
}
.facts dd {
  color: var(--cream);
  overflow-wrap: anywhere;
}
.codeblock {
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.codeblock__pre {
  margin: 0;
  padding: 14px 84px 14px 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--cream);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.codeblock__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 64px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--cream);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.codeblock__copy:hover {
  border-color: var(--muted);
}
.legal__doc code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--cream);
}
.legal__doc .button {
  margin-top: 12px;
}
@media (max-width: 480px) {
  .facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Company page (/): hero ledger, ticker, product panels, markets, plans. Tokens come from style.css;
   chips, connector logos and the photography rules come from pages.css. Everything is prefixed `co-`. */

/* Scroll progress line under the header */
body[data-page='company'] .site-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
  pointer-events: none;
}

/* Kickers: a short mono label above a display heading */
.co-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.co-kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
}
.co-kicker--light {
  color: var(--cream);
}
.co-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--brand);
}

/* ------------------------------------------------------------------------ */
/* Hero                                                                      */
/* ------------------------------------------------------------------------ */
.co-hero {
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.co-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.co-hero__copy .display--hero {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
}
.co-hero__plan {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The ledger: every product, every market, its state today */
.co-ledger {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: hero-in 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both;
}
.co-ledger__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-ledger__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
}
.co-ledger__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: dot-pulse 1.6s ease-out infinite;
}
.co-ledger__table {
  width: 100%;
  border-collapse: collapse;
}
.co-ledger__row {
  border-bottom: 1px solid var(--line);
  animation: ledger-in 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 110ms + 320ms);
}
@keyframes ledger-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.co-ledger__row th,
.co-ledger__row td {
  padding: 16px 0;
  text-align: left;
  vertical-align: middle;
  font-weight: inherit;
}
.co-ledger__row th {
  width: 52%;
  padding-right: 16px;
}
.co-ledger__row td {
  width: 24%;
  padding-right: 12px;
}
.co-ledger__row td:last-child {
  padding-right: 0;
}
.co-ledger__product {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.co-ledger__product img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.co-ledger__product strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}
.co-ledger__product small {
  display: block;
  margin-top: 5px;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--muted);
}
.co-ledger__row--link {
  position: relative;
}
.co-ledger__row--link:hover strong {
  color: var(--brand);
}
.co-ledger__row--link a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.co-ledger__market {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.co-ledger .chip {
  padding: 3px 9px 3px 8px;
  font-size: 0.75rem;
  white-space: nowrap;
}
.co-ledger__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------------ */
/* Ticker                                                                    */
/* ------------------------------------------------------------------------ */
.co-ticker {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.co-ticker__list {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.co-ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: 0 48px;
}
.co-ticker__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.co-ticker .marquee .firm-list {
  gap: 0 0;
  padding-right: 0;
  animation-duration: 40s;
}
.co-ticker .marquee .firm-list li {
  padding-right: 48px;
}

/* ------------------------------------------------------------------------ */
/* Products                                                                  */
/* ------------------------------------------------------------------------ */
.co-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 64px);
}
.co-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  transition: border-color 200ms ease;
}
.co-panel:hover {
  border-color: var(--line-strong);
}
.co-panel--guard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.co-panel--guard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    36rem 22rem at 85% 30%,
    rgba(217, 52, 43, 0.16),
    rgba(217, 52, 43, 0.04) 45%,
    transparent 70%
  );
}
.co-panel--copy,
.co-panel--terminal {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
}
.co-panel__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--muted);
}
.co-panel__name img {
  width: 40px;
  height: 40px;
}
.co-panel__title {
  margin-top: 18px;
  font-size: clamp(2rem, 3.4vw, 2.875rem);
}
.co-panel__text {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
}
.co-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.co-panel__links {
  margin-top: 22px;
}
.co-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--cream);
  transition:
    border-color 120ms ease,
    background-color 120ms ease;
}
.co-link::after {
  content: '';
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.co-link:hover {
  border-color: var(--cream);
  background: var(--surface-raised);
}
.co-link:hover::after {
  transform: translateX(3px) rotate(45deg);
}
.co-panel__visual {
  position: relative;
  min-width: 0;
}
.co-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--ink) 84%, transparent);
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Guard: the real client, three states in a loop, the live lock card in front */
.co-screen {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #0b0b0b;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.co-screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #121212;
}
.co-screen__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.co-screen__bar em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.co-screen__body {
  position: relative;
  aspect-ratio: 1440 / 900;
}
.co-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.co-shot.is-active {
  opacity: 1;
  transform: none;
}
.co-live-lock {
  position: absolute;
  left: clamp(-12px, -1vw, 0px);
  bottom: 52px;
  width: clamp(190px, 18vw, 236px);
}
.co-captions {
  position: relative;
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  min-height: 1.5em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.co-captions li {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}
.co-captions li::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--brand);
}
.co-captions li.is-active {
  opacity: 1;
  transform: none;
}

/* Copy: a position opens on the leader and reaches every follower */
.co-copyviz {
  aspect-ratio: 400 / 240;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(24rem 14rem at 50% 50%, rgba(217, 52, 43, 0.1), transparent 70%),
    var(--ink);
}
.co-copyviz__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.co-copyviz__line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}
.co-copyviz__dot {
  fill: var(--brand);
  filter: drop-shadow(0 0 6px rgba(217, 52, 43, 0.8));
}
.co-node {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--muted);
  transform: translate(-50%, -50%);
}
.co-node b {
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--cream);
}
.co-node--leader {
  left: 16%;
  top: 50%;
  border-color: var(--brand);
  box-shadow:
    0 0 0 4px rgba(217, 52, 43, 0.14),
    0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.co-node--f1 {
  left: 80%;
  top: 17.5%;
}
.co-node--f2 {
  left: 80%;
  top: 50%;
}
.co-node--f3 {
  left: 80%;
  top: 82.5%;
}
.co-copyviz .co-tag {
  top: auto;
  bottom: 10px;
  left: 10px;
  right: auto;
}

/* Terminal: the real terminal on two phones */
.co-phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 44px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(20rem 12rem at 50% 100%, rgba(217, 52, 43, 0.12), transparent 70%),
    var(--ink);
  max-height: 340px;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.co-phone {
  flex: 0 1 42%;
  overflow: hidden;
  border: 1px solid #444;
  border-radius: 22px;
  background: #0b0b0b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
}
.co-phone--1 {
  transform: translateY(28px);
}
.co-phone img {
  width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------------ */
/* Markets                                                                   */
/* ------------------------------------------------------------------------ */
.co-markets {
  border-top: 1px solid var(--line);
}
.co-markets__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 64px);
}
.co-market {
  display: grid;
  align-content: start;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.co-market__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.co-market__logo,
.mt5-logo.co-market__logo {
  height: 30px;
  margin-top: 18px;
}
.mt5-logo.co-market__logo b {
  font-size: 1.45rem;
}
.co-market__text {
  margin-top: 18px;
  color: var(--muted);
}
.co-market__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.co-market--more {
  border-style: dashed;
  background: transparent;
}
.co-market__plus {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand);
}
.co-note {
  margin-top: 22px;
  max-width: 72ch;
  font-size: 0.9375rem;
  color: var(--muted);
}
.co-note + .co-note {
  margin-top: 10px;
}

/* ------------------------------------------------------------------------ */
/* Plans                                                                     */
/* ------------------------------------------------------------------------ */
.co-plans {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, var(--surface) 100%);
}
.co-prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 64px);
}
.co-price {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.co-price__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.co-price__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 3.2vw, 3rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.co-price__value small {
  margin-left: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.co-price__state {
  justify-self: start;
}
.co-price__fine {
  font-size: 0.8125rem;
  color: var(--muted);
}
.co-price--total {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-soft), var(--surface) 80%);
}
.co-price--total .co-price__name {
  color: var(--cream);
}

/* Elsewhere vs Cato */
.co-cmp {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.co-cmp__head,
.co-cmp__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 5fr);
  gap: 16px 32px;
  align-items: start;
}
.co-cmp__head {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.co-cmp__us {
  color: var(--brand);
}
.co-cmp__row {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.co-cmp__topic {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.05;
}
.co-cmp__them,
.co-cmp__cato {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.co-cmp__them {
  color: var(--muted);
}
.co-cmp__cato {
  color: var(--cream);
  font-weight: 500;
}
.co-cmp__them i,
.co-cmp__cato i {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
}
.co-cmp__them i::before,
.co-cmp__them i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 8px;
  width: 14px;
  height: 2px;
  background: var(--subtle);
  transform: rotate(45deg);
}
.co-cmp__them i::after {
  transform: rotate(-45deg);
}
.co-cmp__cato i::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* Why nothing works like the Guard */
.co-why {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-xl);
  background: var(--ink);
}
.co-why__title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
}
.co-why__lead {
  margin-top: 16px;
  color: var(--muted);
}
.co-why__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: why;
}
.co-why__list li {
  counter-increment: why;
  position: relative;
  padding: 18px 0 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.co-why__list li::before {
  content: '0' counter(why);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brand);
}
.co-why__list b {
  color: var(--cream);
}

/* Trust keeps the shared rule list; its links read as links */
.co-trust {
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------------ */
/* Responsive                                                                */
/* ------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .co-hero__grid {
    grid-template-columns: 1fr;
  }
  .co-panel--guard {
    grid-template-columns: 1fr;
  }
  .co-prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .co-why {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .co-bento {
    grid-template-columns: 1fr;
  }
  .co-markets__grid {
    grid-template-columns: 1fr;
  }
  .co-cmp__head {
    display: none;
  }
  .co-cmp__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .co-cmp__them::after,
  .co-cmp__cato::after {
    grid-column: 1 / -1;
  }
  .co-cmp__cato {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
  }
  .co-live-lock {
    left: 8px;
    bottom: 44px;
    width: 180px;
  }
}
@media (max-width: 640px) {
  .co-ledger {
    padding: 16px;
  }
  .co-ledger__row th,
  .co-ledger__row td {
    display: block;
    width: auto;
    padding: 0;
  }
  .co-ledger__row th {
    padding: 14px 0 10px;
  }
  .co-ledger__row td {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 14px 0;
  }
  .co-ledger__market {
    margin-bottom: 0;
  }
  .co-prices {
    grid-template-columns: 1fr;
  }
  .co-live-lock {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
  .co-captions {
    margin-top: 12px;
  }
  .co-phones {
    max-height: 280px;
  }
  .co-copyviz {
    aspect-ratio: 4 / 3;
  }
  .co-node--leader {
    left: 24%;
  }
  .co-node--f1,
  .co-node--f2,
  .co-node--f3 {
    left: 74%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-ledger,
  .co-ledger__row {
    animation: none;
  }
  .co-shot:not(.is-active) {
    display: none;
  }
}

/* Inline "Cato Guard" mentions that lead to /guard/: same colour as the text, a subtle underline, brand colour on hover. */
.guard-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 120ms ease,
    text-decoration-color 120ms ease;
}
.guard-link:hover,
.guard-link:focus-visible {
  color: var(--brand);
  text-decoration-color: currentColor;
}
.co-panel__name .guard-link,
.co-price__name .guard-link,
.co-kicker .guard-link {
  text-decoration: none;
}
.co-panel__name .guard-link:hover,
.co-price__name .guard-link:hover,
.co-kicker .guard-link:hover {
  text-decoration: underline;
}

/* The status page's own rules. Everything else on the page (tokens, header, hero, ledger, chips, footer) is the landing's CSS. */

:root {
  --amber: #e8b030;
  --info: #6aa7e8;
}

/* Chip tones beyond the landing's open (green) and wait (amber): an outage and a maintenance */
.chip--ok::before {
  background: var(--ok);
  animation: dot-pulse 1.6s ease-out infinite;
}
.chip--warn::before {
  background: var(--amber);
}
.chip--err::before {
  background: var(--brand);
}
.chip--info::before {
  background: var(--info);
}
.chip--big {
  padding: 7px 16px 7px 13px;
  font-size: 0.9375rem;
}
.chip--big::before {
  width: 9px;
  height: 9px;
}

/* Hero: the overall state is the headline */
.st-hero .display--hero {
  max-width: 13ch;
}
.st-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 30px;
}
.st-hero__age {
  font-size: 0.9375rem;
  color: var(--muted);
}
.st-ledger .co-ledger__row td {
  width: auto;
  text-align: right;
  white-space: nowrap;
}
.st-ledger .co-ledger__row th {
  width: auto;
}
.st-ledger .co-ledger__row {
  animation: none;
}
.st-ledger .co-ledger__row:last-child {
  border-bottom: 0;
}
.st-ledger .co-ledger__product {
  cursor: default;
}

/* Notes (old data, stale maintenance information, refresh failed) */
.st-notes {
  display: grid;
  gap: 10px;
  margin-top: -16px;
  margin-bottom: 8px;
}
.st-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--cream);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Sections */
.st-section {
  padding-block: clamp(40px, 6vw, 80px);
}
.st-section + .st-section {
  border-top: 1px solid var(--line);
}
.st-section .display {
  font-size: clamp(2.25rem, 4.2vw, 3.25rem);
}
.st-sub {
  margin: 28px 0 -12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.st-empty {
  margin-top: 22px;
  color: var(--muted);
}

/* Maintenance cards */
.st-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.st-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.st-card--active {
  border-color: color-mix(in srgb, var(--info) 55%, var(--line-strong));
}
.st-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.st-card__time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.st-card__dur {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.st-card__note {
  font-size: 0.875rem;
  color: var(--muted);
}
.st-card__reason {
  max-width: 60ch;
}
.st-card__meta {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* Lists: incidents and past maintenance */
.st-list {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.st-list__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.st-list__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}
.st-list__when {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}
.st-list__reason {
  grid-column: 1 / -1;
  max-width: 64ch;
  font-size: 0.9375rem;
}

@media (max-width: 899px) {
  .st-hero .display--hero {
    max-width: none;
  }
  .st-ledger .co-ledger__row {
    animation: none;
  }
}
@media (max-width: 480px) {
  .st-ledger .co-ledger__product small {
    display: none;
  }
}
