/* ==========================================================================
   Features hub (SITE-1439) — /features/
   Converted from the 2026-10-08 handoff (rudy-plansplit-20261008,
   site/features/index.html). The hero reuses competitor-pages.css's
   .cmp-hero grid and proof badges; everything else is the .ft-* components
   below, built on theme.css tokens. Do NOT set font-size on h1/h2 here.

   Load order: theme.css, marketing-font.css, competitor-pages.css, then this.
   Markup: <div class="ti-theme ti-cmp ti-ft"> <header class="cmp-hero ft-hero">…
           <main class="ti-wrap ft-main">…
   ========================================================================== */

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

/* The handoff made this line the big headline and shrank the H1 under it.
   The H1 keeps the sitewide size instead, so the tagline sits above it at
   section-heading scale. */
.ft-hero .ft-tagline {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ti-text);
}
.ft-hero .ft-tagline .ti-glow { color: var(--ti-orange); }

.ft-hero .lede { max-width: 34rem; }
.ft-hero .hero-cta { margin-top: 4px; }

/* Screenshot panel — same treatment as the homepage's .ti-home-panel
   (index.css): gradient card, top glow, orange label, then the media.
   index.css isn't loaded here, so its two panel tokens are repeated. */
.ft-hero-panel {
  --ft-panel-bg: linear-gradient(180deg, rgba(22, 30, 44, 0.94), rgba(10, 14, 22, 0.96));
  --ft-panel-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: var(--ft-panel-bg);
  box-shadow: var(--ft-panel-shadow);
}
.ft-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px 220px at 60% 0, rgba(255, 138, 0, 0.14), transparent 70%);
}
.ft-hero-panel__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
}
.ft-hero .ft-hero-panel__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ti-orange-line);
  background: rgba(255, 138, 0, 0.08);
  color: var(--ti-orange-hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ft-hero-panel__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ti-orange);
  box-shadow: 0 0 10px var(--ti-orange);
}
.ft-hero .ft-hero-panel__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ti-text);
  text-wrap: balance;
}

/* Media slots are 3:2 sitewide; the 1024x655 screenshot is cropped to fit. */
.ft-hero-shot {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--ti-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ti-bg);
}
.ft-hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
@media (max-width: 1199px) {
  .ft-hero .cmp-hero__body > .ft-hero-panel { width: 100%; margin-top: 28px; }
}
@media (max-width: 767px) {
  .ft-hero-panel { padding: 14px; border-radius: 16px; }
  .ft-hero-shot { border-radius: 10px; }
}

/* --------------------------------------------------------------------------
   Sections — .ft-wide (cards, tables) and .ft-prose (reading width)
   -------------------------------------------------------------------------- */

.ft-main { padding-bottom: 8px; }

/* Same layout rule as the compare pages (.cmp-main .story-block): every
   section starts at the .ti-wrap edge, in line with the hero. Card grids,
   tables and plan cards use the full width; running text is capped at
   --cmp-prose (820px) so lines stay readable. */
.ft-wide,
.ft-prose {
  margin: 56px 0;
  font-size: 17px;
  color: var(--ti-muted);
  scroll-margin-top: 100px;
}
.ft-wide { line-height: 1.6; }
.ft-prose { line-height: 1.65; }

.ft-wide > h2,
.ft-prose > h2,
.ft-prose > h3,
.ft-prose > p,
.ft-prose > ul,
.ft-prose > ol { max-width: var(--cmp-prose); text-wrap: pretty; }
.ft-wide > h2 { margin: 0 0 10px; }
.ft-prose h2 { margin: 0 0 14px; }
.ft-prose h3 { margin: 22px 0 6px; font-size: 19px; font-weight: 700; }
.ft-wide > p { max-width: var(--cmp-prose); margin: 0 0 22px; }
.ft-prose p { margin: 0 0 12px; color: var(--ti-muted); }
.ft-wide p { color: var(--ti-muted); }
.ft-prose strong { color: var(--ti-text); }

.ft-prose a,
.ft-wide p a,
.ft-legend a,
.ft-note a { color: var(--ti-orange); }

.ft-legend {
  max-width: var(--cmp-prose);
  margin: -8px 0 22px;
  padding: 12px 16px;
  border-left: 3px solid var(--ti-orange);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 var(--ti-radius-sm) var(--ti-radius-sm) 0;
  font-size: 15.5px;
}
.ft-wide > p.ft-legend { max-width: var(--cmp-prose); }

.ft-note { margin-top: 12px; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--ti-radius);
  scroll-margin-top: 90px;
  transition: border-color 0.15s, transform 0.15s;
}
.ft-card:hover { border-color: rgba(255, 138, 0, 0.55); transform: translateY(-2px); }
.ft-card h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ft-card h3 a { color: var(--ti-text); text-decoration: none; }
.ft-card h3 a:hover { color: var(--ti-orange); }
/* #stock-scanner alias inside #streaming-alerts: lands with the same offset */
.ft-alias { position: relative; top: -90px; display: block; width: 0; height: 0; overflow: hidden; }

.ft-card p.ft-term {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ti-orange);
}
.ft-card p.ft-sent { flex: 1; margin: 4px 0 8px; font-size: 15px; line-height: 1.55; color: var(--ti-muted); }
.ft-card p.ft-more-row { margin: 0; }
.ft-card .ft-more,
.ft-plan-card .ft-more { font-size: 14px; font-weight: 700; color: var(--ti-orange); text-decoration: none; }
.ft-card .ft-more:hover,
.ft-plan-card .ft-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .ft-card, .ft-card:hover { transition: none; transform: none; }
}

/* Plan tags: neutral = every TI Pro plan, orange = TI Premium, green = free */
.ft-card p.ft-plan { margin: 2px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ti-muted); }
.ft-plan-tag,
.ft-plan-inline {
  display: inline-block;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.ft-plan-tag {
  padding: 2px 9px;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8eef7;
}
.ft-plan--premium .ft-plan-tag,
.ft-plan-inline {
  background: rgba(255, 138, 0, 0.16);
  border: 1px solid rgba(255, 138, 0, 0.6);
  color: #ffb35c;
}
.ft-plan--free .ft-plan-tag {
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.5);
  color: #8fe3b0;
}
.ft-plan-note { margin-left: 4px; }
.ft-plan-inline { margin-left: 6px; padding: 1px 8px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Closed loop steps
   -------------------------------------------------------------------------- */

.ft-loop-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: ftl;
}
.ft-loop-steps li {
  position: relative;
  padding: 12px 14px 12px 52px;
  counter-increment: ftl;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}
.ft-loop-steps li::before {
  content: counter(ftl);
  position: absolute;
  left: 14px;
  top: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ti-orange);
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Dashboard vs TI Pro table (stacks into cards on phones)
   -------------------------------------------------------------------------- */

.ft-table-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--ti-radius); }
.ft-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.ft-table th,
.ft-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--ti-muted);
}
.ft-table thead th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ti-text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ft-table tbody th { color: var(--ti-text); font-weight: 700; }
.ft-table td.ft-no { color: #8792a3; }
.ft-table tbody tr:last-child th,
.ft-table tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Plans, library, recognition, compare links, CTA
   -------------------------------------------------------------------------- */

.ft-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-plan-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ti-radius);
}
.ft-plan-card--premium { border-color: rgba(255, 138, 0, 0.55); }
.ft-plan-card h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.ft-plan-card p { margin: 0 0 10px; font-size: 15px; }
.ft-plan-card .ft-price { font-size: 16px; font-weight: 800; color: var(--ti-text); }

.ft-lib { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.ft-lib a { font-weight: 700; }

.ft-proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 10px 0 16px; }
.ft-proof .ti-award-proof { display: flex; align-items: center; gap: 14px; }
.ft-proof .ti-award-badge { width: 56px; height: 50px; object-fit: contain; }
.ft-proof .ti-award-proof__text,
.ft-proof .ft-proof-sb { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: #d7dee8; }
.ft-proof a.ft-proof-sb { display: flex; align-items: center; gap: 10px; color: #d7dee8; text-decoration: none; }
.ft-proof .ft-proof-sb img { width: auto; height: 48px; }

.ft-links { display: grid; gap: 6px; margin: 6px 0 16px; padding-left: 20px; }

.ft-cta { display: flex; margin: 40px 0 64px; }

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .ft-legend { margin-top: 0; }
  .ft-loop-steps li { padding-left: 46px; }
  .ft-table { min-width: 0; }
  .ft-table thead { display: none; }
  .ft-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .ft-table tbody tr:last-child { border-bottom: 0; }
  .ft-table tbody th,
  .ft-table td { display: block; padding: 3px 0; border: 0; }
  .ft-table tbody th { padding-bottom: 4px; font-size: 15.5px; }
  .ft-table td::before { content: attr(data-label) ": "; font-weight: 700; color: #c7d0dd; }
}
