/* Feature campaign landing pages — visual styles only; Bootstrap owns layout */

.page-feature {
  position: relative;
  background: var(--night);
  overflow-x: clip;
}

.fl-hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
  text-align: center;
  isolation: isolate;
}

.fl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%, rgba(76, 125, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(212, 168, 75, 0.1), transparent 55%);
}

.fl-kicker {
  margin: 0 0 1rem;
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 162, 255, 0.35);
  background: rgba(76, 125, 255, 0.1);
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fl-hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

.fl-hero h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--gold-bright), var(--gold), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fl-hero-lead {
  margin: 1.2rem auto 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.fl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.fl-hero-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--gold-bright);
  font-weight: 500;
}

.fl-section {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.fl-section.alt {
  border-block: 1px solid var(--line);
  background: rgba(12, 18, 32, 0.72);
}

.fl-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.fl-section .fl-lead {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 40rem;
}

.fl-card {
  height: 100%;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(22, 31, 48, 0.75);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.fl-card:hover {
  border-color: rgba(122, 162, 255, 0.4);
  transform: translateY(-2px);
}

.fl-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.fl-card p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.fl-num {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.fl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: flstep;
}

.fl-steps li {
  position: relative;
  counter-increment: flstep;
  padding: 1.2rem 1.25rem 1.2rem 3.6rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(22, 31, 48, 0.7);
}

.fl-steps li::before {
  content: counter(flstep, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.25rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 0.9rem;
}

.fl-steps strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.fl-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.fl-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.fl-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 500;
}

.fl-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.fl-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(212, 168, 75, 0.35);
  background:
    linear-gradient(125deg, rgba(76, 125, 255, 0.14), rgba(212, 168, 75, 0.08) 55%, rgba(22, 31, 48, 0.9));
}

.fl-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fl-panel p {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.fl-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.fl-trust {
  margin-top: 1.15rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.fl-related a {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(22, 31, 48, 0.65);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.fl-related a:hover {
  border-color: rgba(212, 168, 75, 0.45);
  color: var(--gold-bright);
}

.fl-related a span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.fl-hero-title--wide {
  max-width: 22ch !important;
}

.roi-sample {
  margin: 0 auto;
  max-width: 56rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(122, 162, 255, 0.28);
  background: rgba(10, 14, 24, 0.92);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.roi-sample__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(22, 31, 48, 0.9);
}

.roi-sample__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.roi-sample__dot:nth-child(1) { background: #ff5f57; }
.roi-sample__dot:nth-child(2) { background: #febc2e; }
.roi-sample__dot:nth-child(3) { background: #28c840; }

.roi-sample__title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.roi-sample__body {
  padding: 1rem 1rem 1.25rem;
}

.roi-sample__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.roi-sample__table th,
.roi-sample__table td {
  padding: 0.75rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.roi-sample__table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.roi-sample__table td {
  color: var(--ink-soft);
}

.roi-sample__table .mono {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.roi-blur {
  filter: blur(5px);
  user-select: none;
}

.roi-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.roi-pill--open {
  color: var(--blue-bright);
  background: rgba(76, 125, 255, 0.15);
  border: 1px solid rgba(122, 162, 255, 0.35);
}

.roi-pill--gain {
  color: #6ee7a8;
  background: rgba(34, 160, 100, 0.15);
  border: 1px solid rgba(110, 231, 168, 0.3);
}

.roi-pill--loss {
  color: #fca5a5;
  background: rgba(180, 60, 60, 0.15);
  border: 1px solid rgba(252, 165, 165, 0.3);
}

.roi-link {
  color: var(--gold-bright);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.roi-sample__panel {
  margin-top: 1.15rem;
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 168, 75, 0.28);
  background:
    linear-gradient(135deg, rgba(76, 125, 255, 0.1), rgba(212, 168, 75, 0.06) 50%, rgba(22, 31, 48, 0.85));
}

.roi-sample__panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.roi-sample__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.roi-sample__panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.roi-sample__assumptions {
  margin: 0;
  max-width: 16rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.roi-mode {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 14, 24, 0.55);
}

.roi-mode__label {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.roi-mode__value {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #6ee7a8;
  letter-spacing: -0.02em;
}

.roi-mode__meta {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.hist-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.hist-field {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(22, 31, 48, 0.65);
}

.hist-field--wide {
  grid-column: 1 / -1;
}

.hist-field--action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(212, 168, 75, 0.35);
  background: rgba(212, 168, 75, 0.08);
}

.hist-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hist-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.hist-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hist-toggle span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hist-toggle .is-on {
  color: var(--gold-bright);
  border-color: rgba(212, 168, 75, 0.45);
  background: rgba(212, 168, 75, 0.12);
}

.hist-btn {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-bright);
}

@media (min-width: 768px) {
  .hist-controls {
    grid-template-columns: 1fr 1fr 1.4fr auto;
  }

  .hist-field--wide,
  .hist-field--action {
    grid-column: auto;
  }

  .hist-field--action {
    align-self: stretch;
  }
}

.fl-sample-caption {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

@media (max-width: 767.98px) {
  .roi-sample__table:not(.roi-sample__table--hist) th:nth-child(2),
  .roi-sample__table:not(.roi-sample__table--hist) td:nth-child(2),
  .roi-sample__table:not(.roi-sample__table--hist) th:nth-child(3),
  .roi-sample__table:not(.roi-sample__table--hist) td:nth-child(3),
  .roi-sample__table:not(.roi-sample__table--hist) th:nth-child(4),
  .roi-sample__table:not(.roi-sample__table--hist) td:nth-child(4) {
    display: none;
  }

  .roi-sample__table--hist th:nth-child(3),
  .roi-sample__table--hist td:nth-child(3),
  .roi-sample__table--hist th:nth-child(4),
  .roi-sample__table--hist td:nth-child(4),
  .roi-sample__table--hist th:nth-child(5),
  .roi-sample__table--hist td:nth-child(5) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fl-card:hover {
    transform: none;
  }
}
