/* EQIQO site styles.
   Plain CSS with no framework. Targets browsers from roughly 2018 onward (iOS 12+,
   Chrome/Edge 70+, Firefox 60+): it uses custom properties and grid, and avoids
   flexbox `gap`, `inset`, `aspect-ratio` and other newer features. */

:root {
  --page: #0a0d13;
  --page-raised: #0e121a;
  --surface: #121722;
  --surface-2: #182030;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.24);
  --ink: #e8ecf2;
  --ink-2: #a0aab8;
  --ink-3: #6b7686;
  --accent: #3b82f6;
  --accent-dim: #2f6bd6;
  --accent-soft: #14233d;
  --accent-2: #8db4ff;
  --good: #34c785;
  --good-soft: rgba(52, 199, 133, 0.12);
  --bad: #f0625d;
  --bad-soft: rgba(240, 98, 93, 0.12);
  --warn: #f2b341;
  --radius: 8px;
  --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

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

img, svg {
  display: block;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

.container {
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.up { color: var(--good); }
.down { color: var(--bad); }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-accent { color: var(--accent-2); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn .icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
}

.btn-sm { height: 32px; padding: 0 12px; }
.btn-lg { height: 44px; padding: 0 20px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dim); }

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-secondary:hover { background: #1d2638; }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

.btn-row > * + * {
  margin-top: 12px;
}

@media (min-width: 640px) {
  .btn-row {
    display: flex;
    flex-wrap: wrap;
  }
  .btn-row > * + * {
    margin-top: 0;
    margin-left: 12px;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 19, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.logo svg {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.nav-links,
.nav-actions {
  display: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-links a + a { margin-left: 4px; }
.nav-actions .btn + .btn { margin-left: 8px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-btn:hover { background: var(--surface-2); }
.menu-btn .icon-close { display: none; }
.menu-open .menu-btn .icon-open { display: none; }
.menu-open .menu-btn .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 8px 0 24px;
}

.menu-open .mobile-nav { display: block; }

.mobile-nav a.link {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-2);
}

.mobile-nav a.link:hover,
.mobile-nav a.link[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.mobile-nav .btn { margin-top: 8px; }
.mobile-nav .links { margin-bottom: 8px; }

@media (min-width: 1024px) {
  .nav-links,
  .nav-actions { display: flex; align-items: center; }
  .menu-btn,
  .mobile-nav,
  .menu-open .mobile-nav { display: none; }
}

/* ---------- Ticker tape ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  background: var(--page-raised);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  width: -webkit-max-content;
  width: max-content;
  -webkit-animation: marquee 60s linear infinite;
  animation: marquee 60s linear infinite;
}

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

.tick {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 32px;
  font-size: 13px;
  white-space: nowrap;
}

.tick .sym { color: var(--ink-2); font-weight: 500; margin-right: 8px; }
.tick .px { margin-right: 8px; }
.tick .chg { font-size: 12px; font-weight: 600; }

@-webkit-keyframes marquee {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker { overflow-x: auto; }
  .ticker-track { -webkit-animation: none; animation: none; }
}

/* ---------- Sections & type ---------- */

.section {
  padding: 72px 0;
}

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

.section-raised {
  background: var(--page-raised);
}

.bt { border-top: 1px solid var(--border); }
.bb { border-bottom: 1px solid var(--border); }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: 26px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .section-head h2 { font-size: 30px; }
}

.page-head {
  padding: 64px 0 40px;
  text-align: center;
}

.page-head .eyebrow { margin-bottom: 14px; }

.page-head h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: 34px;
}

.page-head p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 18px;
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .page-head { padding-top: 80px; }
  .page-head h1 { font-size: 46px; }
}

.split-head {
  margin-bottom: 40px;
}

.split-head .section-head {
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }
  .split-head .section-head { margin-bottom: 0; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
}

.link-arrow:hover { color: var(--ink); }
.link-arrow .icon { width: 16px; height: 16px; margin-left: 6px; }

/* ---------- Grids & cards ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}

.grid-2-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4, .grid-2-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin-top: 14px;
  font-size: 16px;
}

.card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.card .quote {
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-3);
}

.team { max-width: 800px; margin: 0 auto; grid-gap: 40px; }

.team-card { padding: 16px 16px 24px; }

/* Box matches the tallest photo (703x859); shorter photos sit at the bottom and the
   backdrop matches their near-black studio background, so the whole photo shows uncropped. */
.team-photo {
  position: relative;
  padding-top: 122%;
  border-radius: var(--radius-sm);
  background: #0d0d0d;
  overflow: hidden;
}

.team-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.team-mail {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(10, 13, 19, 0.45);
  color: var(--accent-2);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.team-mail:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.team-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.team-mail svg { width: 18px; height: 18px; }

.team-card h3 { margin-top: 18px; font-size: 18px; }
.team-card h3, .team-card p, .team-role { padding: 0 4px; }

.team-role {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.tile-blue { background: rgba(57, 135, 229, 0.16); color: #3987e5; }
.tile-violet { background: rgba(144, 133, 233, 0.16); color: #9085e9; }
.tile-magenta { background: rgba(213, 81, 129, 0.16); color: #d55181; }
.tile-orange { background: rgba(217, 89, 38, 0.16); color: #d95926; }

.card-flat {
  display: flex;
  flex-direction: column;
}

.card-flat .quote {
  margin-top: auto;
}

.card-flat p:last-of-type {
  margin-bottom: 16px;
}

/* Cards separated by hairlines, used for feature grids. */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tiles > div {
  background: var(--surface);
  padding: 28px;
}

.tiles h3 { margin-top: 14px; font-size: 16px; }
.tiles p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}

.steps .step-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent-2);
}

.steps h3 { margin-top: 12px; font-size: 20px; }
.steps p { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.points h3 { margin-top: 12px; font-size: 14px; }
.points p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero { padding: 96px 0; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; grid-gap: 64px; }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

.hero h1 {
  margin-top: 24px;
  font-size: 36px;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 48px; }
}

.hero .lead {
  max-width: 560px;
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink-2);
}

.hero .btn-row { margin-top: 28px; }

.inline-list {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-3);
}

.inline-list li {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.inline-list .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: var(--accent-2);
}

@media (min-width: 640px) {
  .inline-list { display: flex; flex-wrap: wrap; }
  .inline-list li { margin-right: 24px; }
}

/* ---------- Market widgets ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.panel-head .title {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.live {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--good);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  margin-right: 6px;
}

.panel-lead {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.panel-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.big-price {
  display: block;
  margin: 12px 0;
  font-size: 30px;
  font-weight: 600;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.quote-card .label { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.quote-card .price { display: block; margin: 12px 0; font-size: 24px; font-weight: 600; }
.quote-card.small { padding: 16px; }
.quote-card.small .sym { font-size: 14px; font-weight: 600; }
.quote-card.small .name { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.quote-card.small .price { font-size: 18px; margin: 8px 0 12px; }

.unit { font-size: 12px; font-weight: 400; color: var(--ink-3); }

.spark {
  width: 100%;
  height: 44px;
}

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

.spark.h36 { height: 36px; }
.spark.h48 { height: 48px; }
.spark.h56 { height: 56px; }
.spark.h72 { height: 72px; }
.spark.h80 { height: 80px; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-up { color: var(--good); background: var(--good-soft); }
.pill-down { color: var(--bad); background: var(--bad-soft); }

/* Loading placeholder; replaced when live data arrives. */
.sk {
  display: inline-block;
  width: 64px;
  height: 14px;
  border-radius: 4px;
  background: var(--surface-2);
  vertical-align: middle;
  -webkit-animation: pulse 1.6s ease-in-out infinite;
  animation: pulse 1.6s ease-in-out infinite;
}

.sk-block { display: block; width: 100%; height: 100%; }
.sk-lg { width: 128px; height: 30px; }
.sk-pill { width: 56px; height: 20px; }

@-webkit-keyframes pulse { 50% { opacity: 0.45; } }
@keyframes pulse { 50% { opacity: 0.45; } }

@media (prefers-reduced-motion: reduce) {
  .sk { -webkit-animation: none; animation: none; }
}

.status {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}

.status .dot { background: var(--ink-3); }
.status.ok .dot { background: var(--good); }
.status.err .dot { background: var(--bad); }

.list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.list h3 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.list-row:first-of-type { border-top: 0; }
.list-row .sym { display: block; font-size: 14px; font-weight: 600; }
.list-row .sub { display: block; font-size: 12px; color: var(--ink-3); }
.list-row .px { margin-right: 12px; font-size: 14px; color: var(--ink-2); }

.heat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.heat .label { font-size: 14px; font-weight: 500; }
.heat .val { margin-top: 20px; font-size: 18px; font-weight: 600; }

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
}

@media (min-width: 1024px) {
  .preview-grid { grid-template-columns: 3fr 2fr; }
}

.subnav {
  position: -webkit-sticky;
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(10, 13, 19, 0.96);
  border-bottom: 1px solid var(--border);
}

.subnav .container {
  display: flex;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.subnav a {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.subnav a:hover { color: var(--ink); background: var(--surface-2); }

.markets-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
}

.markets-head h1 { margin-top: 12px; font-size: 32px; }
.markets-head p { max-width: 640px; margin: 12px 0; color: var(--ink-2); }

@media (min-width: 640px) {
  .markets-head h1 { font-size: 38px; }
}

.markets-body > section {
  padding-top: 56px;
}

.markets-body > section:target,
.markets-body > section {
  scroll-margin-top: 120px;
}

.block-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.block-title h2 { font-size: 18px; margin-right: 12px; }
.block-title span { font-size: 12px; color: var(--ink-3); }

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

table.data {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

table.data th {
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

table.data td {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table.data tr:last-child td { border-bottom: 0; }
table.data td.strong { color: var(--ink); font-weight: 600; }
table.data .r { text-align: right; }
table.data .c { text-align: center; }
table.data.compact { min-width: 0; }
table.data.compact td { white-space: normal; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 32px;
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stats div {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.stats dd { font-size: 30px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 40px;
  align-items: center;
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .feature-row { grid-template-columns: 46fr 54fr; grid-gap: 64px; }
  .feature-row.reverse { grid-template-columns: 54fr 46fr; }
  .feature-row.reverse .feature-copy { -webkit-box-ordinal-group: 3; order: 2; }
}

.feature-copy h2 { margin-top: 14px; font-size: 26px; }
.feature-copy p { margin-top: 14px; color: var(--ink-2); }

.checks { margin-top: 18px; }

.checks li {
  display: flex;
  align-items: flex-start;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.checks .icon {
  width: 16px;
  height: 16px;
  margin: 3px 10px 0 0;
  color: var(--accent-2);
  stroke-width: 2.25;
}

.brief-row {
  display: flex;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.brief-row .k {
  width: 96px;
  flex-shrink: 0;
  margin-right: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.brief-row .v { font-size: 14px; color: var(--ink-2); }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 12px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .stat-tiles { grid-template-columns: repeat(4, 1fr); }
}

.stat-tiles div {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.stat-tiles .k { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.stat-tiles .v { display: block; margin-top: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }

.bands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 6px;
}

.bands .bar { height: 8px; border-radius: 2px; }
.bands span { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.alert {
  display: flex;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.alert + .alert { margin-top: 12px; }
.alert .icon { width: 16px; height: 16px; margin: 3px 12px 0 0; color: var(--accent-2); }
.alert strong { display: block; font-size: 14px; font-weight: 500; }
.alert span { display: block; font-size: 14px; color: var(--ink-2); }

.cite {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.cite .icon { width: 14px; height: 14px; margin-right: 8px; }
sup { color: var(--accent-2); }

/* ---------- Pricing ---------- */

.toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.toggle button {
  padding: 6px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
}

.toggle button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--ink);
}

.toggle .save {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-2);
}

.center { text-align: center; }

.plans {
  margin-top: 40px;
  text-align: left;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.plan .flag {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.plan h3 { font-size: 18px; }
.plan .tagline { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.plan .price { margin-top: 24px; font-size: 36px; font-weight: 600; line-height: 1; }
.plan .per { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.plan .billed { display: block; min-height: 18px; margin-top: 8px; font-size: 12px; color: var(--accent-2); }
.plan .btn { margin-top: 20px; }
.plan .checks { margin-top: 20px; }
.plan .more { margin: 10px 0 0 26px; font-size: 14px; color: var(--ink-3); }

.cmp-check { width: 16px; height: 16px; margin: 0 auto; color: var(--accent-2); stroke-width: 2.5; }
.cmp-no { width: 16px; height: 16px; margin: 0 auto; color: var(--ink-3); }
table.data td.hl { background: rgba(20, 35, 61, 0.55); color: var(--ink); }

.faq {
  max-width: 768px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq details + details { border-top: 1px solid var(--border); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 16px; height: 16px; margin-left: 16px; color: var(--ink-3); transition: transform 0.2s; }
.faq details[open] summary .icon { -webkit-transform: rotate(180deg); transform: rotate(180deg); }
.faq details p { padding: 0 20px 16px; font-size: 14px; color: var(--ink-2); }

/* ---------- CTA ---------- */

.cta {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.cta h2 { font-size: 26px; }
.cta p { margin-top: 8px; color: var(--ink-2); }
.cta .btn-row { margin-top: 24px; }

@media (min-width: 1024px) {
  .cta { display: flex; align-items: center; justify-content: space-between; padding: 40px; }
  .cta .copy { max-width: 640px; margin-right: 32px; }
  .cta .btn-row { margin-top: 0; flex-shrink: 0; }
  .cta h2 { font-size: 30px; }
}

/* ---------- Forms ---------- */

.form {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.field { display: block; margin-top: 20px; }
.field:first-child { margin-top: 0; }
.field .lbl { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.field .lbl a { color: var(--ink-3); }
.field .lbl a:hover { color: var(--accent-2); }

.input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.input::-webkit-input-placeholder { color: var(--ink-3); }
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: rgba(59, 130, 246, 0.6); }
textarea.input { resize: vertical; min-height: 128px; }

select.input {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7686' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.field-row { display: grid; grid-template-columns: 1fr; grid-gap: 20px; }
.field-row .field { margin-top: 0; }
.field-row + .field { margin-top: 20px; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.form .btn { margin-top: 24px; }

.note {
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 14px;
  color: var(--ink-2);
}

.note strong { color: var(--ink); font-weight: 500; }

.error {
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(240, 98, 93, 0.3);
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  font-size: 14px;
  color: var(--bad);
}

.error a { text-decoration: underline; font-weight: 500; }

.success {
  padding: 56px 32px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius);
  background: var(--accent-soft);
  text-align: center;
}

.success .icon { width: 40px; height: 40px; margin: 0 auto; color: var(--accent); }
.success h3 { margin-top: 16px; font-size: 18px; }
.success p { max-width: 380px; margin: 8px auto 0; font-size: 14px; color: var(--ink-2); }

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

[hidden] { display: none !important; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 40px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 2fr 3fr; }
}

.channel + .channel { margin-top: 16px; }
.channel a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--accent-2); }
.channel a:hover { text-decoration: underline; }

/* ---------- Login ---------- */

.auth {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.auth-aside {
  display: none;
}

@media (min-width: 1024px) {
  .auth { grid-template-columns: 1fr 1fr; }
  .auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    border-right: 1px solid var(--border);
    background: var(--page-raised);
  }
}

.auth-aside h2 { max-width: 448px; font-size: 24px; }
.auth-aside .sub { max-width: 448px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.auth-aside .quote-card { max-width: 384px; margin-top: 32px; }
.auth-aside .fine { font-size: 12px; color: var(--ink-3); }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box { width: 100%; max-width: 384px; }
.auth-box .logo-m { display: flex; justify-content: center; margin-bottom: 32px; }
.auth-box h1 { font-size: 24px; }
.auth-box .sub { margin-top: 6px; margin-bottom: 24px; font-size: 14px; color: var(--ink-2); }
.auth-box .alt { margin-top: 24px; font-size: 14px; text-align: center; color: var(--ink-2); }
.auth-box .alt a { font-weight: 500; color: var(--accent-2); }
.auth-box .alt a:hover { text-decoration: underline; }
.auth-box form .btn { margin-top: 20px; }

@media (min-width: 1024px) {
  .auth-box .logo-m { display: none; }
}

/* ---------- Legal & misc pages ---------- */

.legal {
  max-width: 768px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.legal h1 { font-size: 32px; }
.legal .updated { margin-top: 8px; padding-bottom: 32px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink-3); }
.legal h2 { margin-top: 32px; font-size: 16px; }
.legal p { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

.prose-card h2 { font-size: 18px; }
.prose-card p { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.prose-card a { color: var(--accent-2); }
.prose-card + .prose-card { margin-top: 24px; }

.timeline { max-width: 640px; margin: 0 auto; }
.timeline div { display: flex; }
.timeline div + div { margin-top: 32px; }
.timeline .year { width: 64px; flex-shrink: 0; margin-right: 24px; font-family: var(--mono); font-size: 14px; color: var(--accent-2); }
.timeline p { font-size: 14px; color: var(--ink-2); }

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.not-found .tag {
  margin-top: 32px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--bad);
}

.not-found h1 { margin-top: 16px; font-size: 32px; }
.not-found p { max-width: 448px; margin-top: 12px; color: var(--ink-2); }
.not-found .btn-row { margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--page-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 40px;
}

.footer-brand { grid-column: span 2; }
.footer-brand p,
.footer-brand address { max-width: 320px; margin-top: 16px; font-size: 14px; font-style: normal; color: var(--ink-2); }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(6, 1fr); }
}

.site-footer h3 { font-size: 14px; }
.site-footer ul { margin-top: 16px; }
.site-footer li + li { margin-top: 12px; }
.site-footer li a { font-size: 14px; color: var(--ink-2); }
.site-footer li a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-3);
}

.footer-bottom p + p { margin-top: 16px; }

@media (min-width: 768px) {
  .footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
  .footer-bottom p:first-child { max-width: 760px; margin-right: 32px; }
  .footer-bottom p + p { margin-top: 0; white-space: nowrap; }
}
