/* ── DCF landing (empty-state redesign) ─────────────────────── */

.dcf-landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Hero: centered ticker entry ─────────────────────────────── */
.dcf-hero {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}
.dcf-hero__kicker {
  display: inline-block;
  color: var(--warn, #FFCC00);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.dcf-hero__title {
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.dcf-hero__sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.dcf-hero__form {
  display: inline-flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--panel-bg, #0a0a0a);
}
.dcf-hero__form:focus-within {
  border-color: var(--accent);
}
.dcf-hero__input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 16px;
  padding: 10px 18px;
  min-width: 220px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  outline: none;
}
.dcf-hero__input::placeholder {
  color: var(--text-dim, #555);
  letter-spacing: 0.1em;
}
.dcf-hero__submit {
  background: var(--accent);
  color: var(--bg, #000);
  border: 0;
  padding: 0 20px;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.dcf-hero__submit:hover {
  filter: brightness(1.1);
}
.dcf-hero__hint {
  display: block;
  margin-top: 0.9rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim, #555);
  font-family: var(--font-mono, 'Courier New', monospace);
}

/* Tier 1 multi-market: example chips strip + supported-markets note */
.dcf-hero__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin-top: 1.0rem;
  align-items: center;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 11px;
}
.dcf-hero__examples .dim {
  color: var(--text-dim, #555);
  letter-spacing: 0.04em;
}
.dcf-hero__examples a {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s;
}
.dcf-hero__examples a:hover {
  border-color: var(--text);
}
.dcf-hero__supported-note {
  display: block;
  margin-top: 0.8rem;
  max-width: 60ch;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--text-dim, #555);
}

/* ── Suffix legend popover ──────────────────────────────────── */
.dcf-hero__legend {
  position: relative;
  display: inline-block;
  margin-left: 0.2rem;
}
.dcf-hero__legend-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim, #555);
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: border-color 0.12s, color 0.12s;
}
.dcf-hero__legend-trigger::-webkit-details-marker { display: none; }
.dcf-hero__legend-trigger::marker { content: ""; }
.dcf-hero__legend-trigger:hover,
.dcf-hero__legend[open] .dcf-hero__legend-trigger {
  border-color: var(--text);
  color: var(--text);
}
.dcf-hero__legend-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 280px;
  padding: 12px 14px;
  background: var(--bg, #fff);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 11px;
  line-height: 1.5;
}
.dcf-hero__legend-panel h3 {
  margin: 0 0 8px 0;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim, #555);
  font-weight: normal;
}
.dcf-hero__legend-panel table {
  border-collapse: collapse;
  width: 100%;
}
.dcf-hero__legend-panel td {
  padding: 3px 12px 3px 0;
  vertical-align: middle;
  white-space: nowrap;
}
.dcf-hero__legend-panel td:last-child {
  padding-right: 0;
}
.dcf-hero__legend-panel td code {
  color: var(--text-dim, #555);
  font-family: inherit;
  font-size: inherit;
}
.dcf-hero__legend-panel td:nth-child(2) {
  font-family: var(--font-sans, 'Helvetica', sans-serif);
  font-size: 11.5px;
}
.dcf-hero__legend-panel a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s;
}
.dcf-hero__legend-panel a:hover {
  border-bottom-color: var(--text);
}
@media (max-width: 480px) {
  .dcf-hero__legend-panel {
    right: auto;
    left: 0;
    min-width: 0;
    max-width: calc(100vw - 32px);
  }
  .dcf-hero__legend-panel td {
    white-space: normal;
  }
}

/* ── Teach strip: 4 equal cells ──────────────────────────────── */
.dcf-teach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.dcf-teach__cell {
  background: var(--panel-bg, #0a0a0a);
  padding: 1.1rem 1rem;
}
.dcf-teach__num {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.dcf-teach__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.dcf-teach__body {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
@media (max-width: 860px) {
  .dcf-teach { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dcf-teach { grid-template-columns: 1fr; }
}

/* ── Marquee section ─────────────────────────────────────────── */
.dcf-marquee {
  margin-top: 2.5rem;
}
.dcf-marquee__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dcf-marquee__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0;
}
.dcf-marquee__hint {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.dcf-marquee__viewport {
  overflow: hidden;
  position: relative;
  /* Edge fade: left + right gradient masks so cards dissolve at the boundary. */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
          mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 60px,
    #000 calc(100% - 60px),
    transparent 100%
  );
}

.dcf-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: dcf-marquee-scroll 90s linear infinite;
}
.dcf-marquee__viewport:hover .dcf-marquee__track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .dcf-marquee__track {
    animation: none;
    transform: translateX(0);
    /* Wrap to next line so all cards are visible without scroll. */
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .dcf-marquee__viewport {
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.dcf-marquee__empty {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
  text-align: center;
}

/* ── Card ────────────────────────────────────────────────────── */
.dcf-card {
  display: block;
  flex: 0 0 auto;
  width: 240px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  background: var(--panel-bg, #0a0a0a);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
  position: relative;
}
.dcf-card:hover {
  border-color: var(--accent);
  background: #111;
}
.dcf-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}
.dcf-card__ticker {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.dcf-card__basis {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 1px 5px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.dcf-card__company {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.7rem;
}
.dcf-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 11px;
  margin-bottom: 3px;
}
.dcf-card__row-label {
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 9px;
}
.dcf-card__row-val {
  color: var(--text);
}
.dcf-card__row-val--fair {
  color: var(--accent);
}

/* Upside bar: zero anchored at 50%. Width inline from template,
   bounded to 50% max (template clamps |pct|*200 at 50). */
.dcf-card__bar-wrap {
  position: relative;
  height: 6px;
  margin-top: 10px;
  background: #141414;
  border: 1px solid var(--border);
}
.dcf-card__bar-zero {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--text-dim, #555);
}
.dcf-card__bar {
  position: absolute;
  top: 0;
  bottom: 0;
}
.dcf-card__bar--pos {
  left: 50%;
  background: var(--positive, #00FF00);
}
.dcf-card__bar--neg {
  right: 50%;
  background: var(--negative, #FF0000);
}
.dcf-card__bar-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 10px;
}
.dcf-card__bar-meta-label {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dcf-card__bar-meta-val--pos { color: var(--positive, #00FF00); }
.dcf-card__bar-meta-val--neg { color: var(--negative, #FF0000); }

.dcf-card__trending {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 1px 4px;
  background: var(--accent);
  color: var(--bg, #000);
  text-transform: uppercase;
}
.dcf-card__header--with-trending .dcf-card__basis {
  margin-right: 48px;
}
