/* ==========================================================================
   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: var(--ti-fs-h2);
  font-weight: var(--ti-fw-black);
  line-height: var(--ti-lh-tight);
  letter-spacing: var(--ti-track-tight);
  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. */
.ft-hero-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 20px 20px 20px;
  border: 1px solid var(--ti-overlay-2);
  border-radius: var(--ti-radius-lg);
  background: linear-gradient(180deg, var(--ti-glass-top), var(--ti-glass-bottom));
  box-shadow: var(--ti-shadow-lg), 0 0 0 1px var(--ti-overlay-1), inset 0 1px 0 var(--ti-overlay-1);
}
.ft-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(520px 220px at 60% 0, var(--ti-orange-dim), 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: var(--ti-radius-pill);
  border: 1px solid var(--ti-orange-line);
  background: var(--ti-orange-dim);
  color: var(--ti-orange-hot);
  font-size: var(--ti-fs-2xs);
  font-weight: var(--ti-fw-black);
  letter-spacing: var(--ti-track-caps);
  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: var(--ti-fs-xl);
  font-weight: var(--ti-fw-bold);
  line-height: var(--ti-lh-snug);
  letter-spacing: var(--ti-track-snug);
  color: var(--ti-text);
  text-wrap: balance;
}

/* Hero media slots are 3:2. The 1024x655 screenshot letterboxes inside the
   slot; product screenshots are never cropped to fit. */
.ft-hero-shot {
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--ti-radius);
  overflow: hidden;
  border: 1px solid var(--ti-overlay-3);
  background: var(--ti-bg);
}
.ft-hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 1199px) {
  .ft-hero .cmp-hero__body > .ft-hero-panel { width: 100%; margin-top: 28px; }
}
@media (max-width: 768px) {
  .ft-hero-panel { padding: 14px; border-radius: var(--ti-radius); }
  .ft-hero-shot { border-radius: var(--ti-radius-sm); }
}

/* --------------------------------------------------------------------------
   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
   --ti-prose (820px) so lines stay readable. */
.ft-wide,
.ft-prose {
  margin: 56px 0;
  font-size: var(--ti-fs-xl);
  color: var(--ti-muted);
  scroll-margin-top: 100px;
}
.ft-wide { line-height: var(--ti-lh-body); }
.ft-prose { line-height: var(--ti-lh-loose); }

.ft-wide > h2,
.ft-prose > h2,
.ft-prose > h3,
.ft-prose > p,
.ft-prose > ul,
.ft-prose > ol { max-width: var(--ti-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: var(--ti-fs-h3); font-weight: var(--ti-fw-bold); }
.ft-wide > p { max-width: var(--ti-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(--ti-prose);
  margin: -8px 0 22px;
  padding: 12px 16px;
  border-left: 3px solid var(--ti-orange);
  background: var(--ti-overlay-1);
  border-radius: 0 var(--ti-radius-sm) var(--ti-radius-sm) 0;
  font-size: var(--ti-fs-lg);
}
.ft-wide > p.ft-legend { max-width: var(--ti-prose); }

.ft-note { margin-top: 12px; font-size: var(--ti-fs-base); }

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

.ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); /* 262 with the 14px gap keeps the old 4-up at 1440 */
  gap: var(--ti-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 16px;
  background: var(--ti-overlay-1);
  border: 1px solid var(--ti-overlay-2);
  border-radius: var(--ti-radius);
  scroll-margin-top: 90px;
  transition: border-color var(--ti-dur-fast), transform var(--ti-dur-fast);
}
.ft-card:hover { border-color: var(--ti-orange-glow); transform: translateY(-2px); }
.ft-card h3 { margin: 0; font-size: var(--ti-fs-h3); font-weight: var(--ti-fw-bold); line-height: var(--ti-lh-tight); letter-spacing: var(--ti-track-snug); }
.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: var(--ti-fs-sm);
  font-weight: var(--ti-fw-bold);
  letter-spacing: var(--ti-track-caps-sm);
  text-transform: uppercase;
  color: var(--ti-orange);
}
.ft-card p.ft-sent { flex: 1; margin: 4px 0 8px; font-size: var(--ti-fs-base); line-height: var(--ti-lh-body); color: var(--ti-muted); }
.ft-card p.ft-more-row { margin: 0; }
.ft-card .ft-more,
.ft-plan-card .ft-more { font-size: var(--ti-fs-md); font-weight: var(--ti-fw-bold); 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: var(--ti-fs-sm); line-height: var(--ti-lh-snug); color: var(--ti-muted); }
.ft-plan-tag,
.ft-plan-inline {
  display: inline-block;
  border-radius: var(--ti-radius-pill);
  font-size: var(--ti-fs-xs);
  font-weight: var(--ti-fw-black);
}
.ft-plan-tag {
  padding: 2px 9px;
  letter-spacing: var(--ti-track-caps-sm);
  background: var(--ti-overlay-2);
  border: 1px solid var(--ti-overlay-3);
  color: var(--ti-text-soft);
}
.ft-plan--premium .ft-plan-tag,
.ft-plan-inline {
  background: var(--ti-orange-dim);
  border: 1px solid var(--ti-orange-glow);
  color: var(--ti-amber);
}
.ft-plan--free .ft-plan-tag {
  background: var(--ti-green-dim);
  border-color: var(--ti-green-line);
  color: var(--ti-green-soft);
}
.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;
  min-width: 0;
  padding: 12px 14px 12px 52px;
  counter-increment: ftl;
  background: var(--ti-overlay-1);
  border: 1px solid var(--ti-overlay-2);
  border-radius: var(--ti-radius-md);
}
.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: var(--ti-on-accent);
  font-size: var(--ti-fs-md);
  font-weight: var(--ti-fw-black);
}

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

.ft-table-wrap { overflow-x: auto; border: 1px solid var(--ti-overlay-2); border-radius: var(--ti-radius); }
.ft-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--ti-fs-base); }
.ft-table th,
.ft-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ti-overlay-2);
  color: var(--ti-muted);
}
.ft-table thead th {
  background: var(--ti-overlay-1);
  color: var(--ti-text);
  font-size: var(--ti-fs-sm);
  letter-spacing: var(--ti-track-caps-sm);
  text-transform: uppercase;
}
.ft-table tbody th { color: var(--ti-text); font-weight: var(--ti-fw-bold); }
.ft-table td.ft-no { color: var(--ti-muted-mid); }
.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: var(--ti-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-plan-card {
  padding: 18px;
  background: var(--ti-overlay-1);
  border: 1px solid var(--ti-overlay-2);
  border-radius: var(--ti-radius);
}
.ft-plan-card--premium { border-color: var(--ti-orange-glow); }
.ft-plan-card h3 { margin: 0 0 4px; font-size: var(--ti-fs-h3); font-weight: var(--ti-fw-bold); }
.ft-plan-card p { margin: 0 0 10px; font-size: var(--ti-fs-base); }
.ft-plan-card .ft-price { font-size: var(--ti-fs-lg); font-weight: var(--ti-fw-black); color: var(--ti-text); }

.ft-lib { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.ft-lib a { font-weight: var(--ti-fw-bold); }

.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: var(--ti-fs-md); font-weight: var(--ti-fw-semibold); line-height: var(--ti-lh-snug); color: var(--ti-text-soft); }
.ft-proof a.ft-proof-sb { display: flex; align-items: center; gap: 10px; color: var(--ti-text-soft); 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: 560px) {
  .ft-legend { margin-top: 0; }
  .ft-loop-steps li { padding-left: 46px; }
  /* Long plan badges ("Holly AI Signals and Money Machine: TI Premium") wrap
     instead of stretching the step cards past the screen edge. */
  .ft-plan-inline { margin-left: 0; white-space: normal; }
  .ft-table { min-width: 0; }
  .ft-table thead { display: none; }
  .ft-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--ti-overlay-2); }
  .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: var(--ti-fs-lg); }
  .ft-table td::before { content: attr(data-label) ": "; font-weight: var(--ti-fw-bold); color: var(--ti-text-subtle); }
}

/* Alerts and filters library: two link cards with the radar art on top
   (SITE-1443). The radar sweep animation comes with the stock-scanner page. */
.ft-libcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--ti-gap);
  max-width: var(--ti-media-max);
  margin: 16px 0 0;
}
.ft-libcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ti-text);
  text-decoration: none;
  border: 1px solid var(--ti-border);
  border-radius: var(--ti-radius);
  background: var(--ti-card);
  transition: border-color var(--ti-dur-fast), transform var(--ti-dur-fast);
}
.ft-libcard:hover { border-color: var(--ti-orange-glow); transform: translateY(-2px); }
.ft-libcard__art img { display: block; width: 100%; height: auto; }
.ft-libcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.ft-libcard__body b { font-size: var(--ti-fs-2xl); font-weight: var(--ti-fw-bold); }
.ft-libcard__body > span { font-size: var(--ti-fs-base); line-height: var(--ti-lh-body); color: var(--ti-muted); }
.ft-libcard__body .ft-libcard__n {
  font-size: var(--ti-fs-sm);
  font-weight: var(--ti-fw-black);
  letter-spacing: var(--ti-track-caps-sm);
  color: var(--ti-orange);
}
@media (prefers-reduced-motion: reduce) {
  .ft-libcard, .ft-libcard:hover { transition: none; transform: none; }
}
