/* features.css — Features section: features.html (hub) and every feature-*.html page.
   Builds on main.css and home-v2.css; scoped to body.v2.ft-page. One template, so a new feature page only needs content.
   Page structure: hero → outcomes → how it works → capabilities → (optional extra section) → FAQ → related → CTA. */

/* ================= ACCENTS =================
   One accent per hub stage, so related features share a color: teal = collect from clients, blue = read the documents,
   amber = prepare the return. Set on each feature page's <body> and on every card that links to it.
   Each passes 4.5:1 as text on white. */
.ft-accent-blue{  --accent:#1f5fd1; --accent-soft:rgba(31,95,209,.12);  --accent-glow:rgba(42,111,219,.28); --accent-tint:#e6efff; }
.ft-accent-teal{  --accent:#0f766e; --accent-soft:rgba(15,118,110,.12); --accent-glow:rgba(13,148,136,.28); --accent-tint:#e2f6f3; }
.ft-accent-amber{ --accent:#b45309; --accent-soft:rgba(180,83,9,.12);   --accent-glow:rgba(221,175,36,.34); --accent-tint:#fff4e0; }
.ft-accent-navy{  --accent:#123f8c; --accent-soft:rgba(18,63,140,.12);  --accent-glow:rgba(18,63,140,.24);  --accent-tint:#e8eef8; }
.ft-accent-green{ --accent:#047857; --accent-soft:rgba(4,120,87,.12);   --accent-glow:rgba(4,120,87,.26);   --accent-tint:#e1f5ec; }
/* Hero and CTA backgrounds tinted toward the page accent */
.ft-page .v2-hero{
  background:
    radial-gradient(900px 520px at 8% 0%, var(--accent-glow), transparent 65%),
    radial-gradient(700px 460px at 92% 4%, rgba(42,111,219,.14), transparent 65%),
    linear-gradient(180deg, var(--accent-tint) 0%, #ffffff 72%);
}

.ft-page .v2-grad-text{
  background: none;
  color: var(--accent);
}

.ft-page .v2-eyebrow{ color: var(--accent); }

.ft-page .cta-panel{
  background:
    radial-gradient(600px 400px at 100% 100%, rgba(143,182,255,.30), transparent 70%),
    radial-gradient(520px 360px at 0% 0%, var(--accent-glow), transparent 70%),
    var(--v2-gradient);
}

/* Line icons (inline SVG, 24×24 viewBox) */
.ft-ico{
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= HERO ================= */
.ft-hero{ padding-bottom: 72px; }

.ft-hero__title{ font-size: 54px; }

/* "All Features" return button, top-left of every feature page hero */
.ft-back{
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: -24px 0 32px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(11,18,32,.06);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}

.ft-back .ft-ico{ width: 18px; height: 18px; }

.ft-back:hover,
.ft-back:focus-visible{
  border-color: var(--accent);
  color: var(--accent);
}

.ft-crumb{
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ft-crumb a{
  color: inherit;
  text-decoration: none;
}

.ft-crumb a:hover{ text-decoration: underline; }

.ft-assure{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}

.ft-assure li{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.ft-assure .ft-ico{
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  color: var(--accent);
}

/* ================= OUTCOMES (problem → outcome) ================= */
.ft-outcomes-section{ padding: 24px 0 56px; }

/* Pull "How it works" up closer to the outcome cards */
.ft-outcomes-section + .v2-section{ padding-top: 72px; }

.ft-outcomes{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ft-outcome{
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(11,18,32,.05);
}

.ft-outcome b{
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--ink);
}

.ft-outcome p{
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ================= SUPPORTED TAX SOFTWARE (feature-tax-software-export.html) ================= */
.ft-software-section .v2-head{ margin-bottom: 36px; }

.ft-software{
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.ft-software__item{
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 104px;
  padding: 16px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.ft-software__item b{
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.ft-software__item span{
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  color: #55627a;
  background: #eef1f6;
}

/* Excel is the catch-all, styled as the "other" option like the homepage integrations visual */
.ft-software__item--excel{
  background: rgba(255,255,255,.6);
  border-style: dashed;
  border-color: rgba(18,63,140,.30);
  box-shadow: none;
}
.ft-software__item--excel span{ color: var(--accent); background: var(--accent-soft); }

@media (max-width:1024px){
  .ft-software{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width:600px){
  .ft-software{ grid-template-columns: 1fr 1fr; }
}

/* ================= HOW IT WORKS ================= */
.ft-how .feature-row__copy h2{
  margin: 0 0 24px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 800;
  color: var(--ink);
}

.ft-steps{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: ft-step;
}

.ft-steps li{
  position: relative;
  padding-left: 52px;
  counter-increment: ft-step;
}

.ft-steps li::before{
  content: counter(ft-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 14px var(--accent-glow);
}

.ft-steps b{
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.ft-steps span{
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}

/* "In Themis" line: where to find the feature in the app (two classes, to beat home-v2's .feature-row__copy > p) */
.ft-how .ft-where{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 28px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.ft-where span{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Wide variant: steps in a row above a full-width screenshot */
.ft-how--wide{
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.ft-how--wide .ft-steps{ grid-template-columns: repeat(4, 1fr); gap: 24px; }

.ft-how--wide .ft-steps li{ padding: 48px 0 0; }

.ft-how--wide .v2-shot{ padding: 40px 56px; }

.ft-how--wide .v2-window{
  max-width: 980px;
  margin: 0 auto;
}

.ft-shot--portal .v2-window{
  max-width: 520px;
  margin: 0 auto;
}

.ft-shot--narrow .v2-window{
  max-width: 440px;
  margin: 0 auto;
}

/* ================= CAPABILITIES ================= */
.ft-caps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ft-cap{
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(11,18,32,.05);
}

.ft-cap__icon{
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
}

.ft-cap h3{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.ft-cap p{
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* Highlighted capability group (e.g. schedules on the Worksheets page) */
.ft-group{
  padding: 40px;
  border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 0%, var(--accent-glow), transparent 70%),
    linear-gradient(135deg, var(--accent-tint) 0%, #f7f9fe 100%);
  border: 1px solid var(--accent-soft);
}

.ft-group .v2-head{ margin-bottom: 36px; }

.ft-group__note{
  margin: 24px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ================= FAQ ================= */
.ft-faq{
  max-width: 860px;
  margin: 0 auto;
}

.ft-faq a{ color: var(--navy); font-weight: 700; }

/* ================= RELATED / HUB CARDS ================= */
.ft-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ft-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(11,18,32,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ft-card:hover,
.ft-card:focus-visible{
  transform: translateY(-3px);
  box-shadow: 0 20px 44px var(--accent-glow);
}

.ft-card .ft-card__icon{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-tint);
}

.ft-card b{
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
  color: var(--ink);
}

.ft-card span{
  font-size: 15px;
  color: var(--muted);
}

.ft-card em{
  margin-top: auto;
  padding-top: 8px;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.ft-card em::after{ content: " →"; }

/* ================= HUB (features.html) ================= */
.ft-stages{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.ft-stage{
  display: grid;
  gap: 16px;
}

.ft-stage__head{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.ft-stage__num{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--v2-gradient);
}

.ft-stage__head b{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.ft-card ul{
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ft-card li{
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.ft-card li::before{
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--accent);
}

/* Banner (hub: Getting Started link; feature pages: mid-page demo) */
.ft-banner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  margin-top: 48px;
  padding: 28px 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--v2-blue);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.ft-banner div{
  display: grid;
  gap: 4px;
}

.ft-banner b{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--ink);
}

.ft-banner span{
  font-size: 16px;
  color: var(--muted);
}

/* ================= CTA ================= */
.ft-cta__actions{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-self: center;
  width: min(100%, 240px);
  gap: 12px;
  margin-top: 0;
}

.ft-cta__actions .v2-btn{ justify-content: center; text-align: center; }

.cta-panel__copy h2{ text-wrap: balance; }

/* Hub: features that span every stage (one wide card under the three columns) */
.ft-firm{
  margin-top: 40px;
  display: grid;
  gap: 16px;
}

.ft-card--wide{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 12px 28px;
}

.ft-card--wide > div{
  display: grid;
  gap: 4px;
}

.ft-card--wide ul{
  margin: 0;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.ft-card--wide em{
  margin-top: 0;
  padding-top: 0;
  white-space: nowrap;
}

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce){
  .ft-card{ transition: none; }
  .ft-card:hover,
  .ft-card:focus-visible{ transform: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width:1279px){
  .ft-hero__title{ font-size: 46px; }
  .ft-how--wide .ft-steps{ grid-template-columns: 1fr 1fr; }
  .ft-caps{ grid-template-columns: 1fr 1fr; }
  .ft-stages{ grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .ft-firm{ max-width: 640px; margin: 40px auto 0; }
  .ft-card--wide{ display: flex; align-items: stretch; }
  .ft-card--wide ul{ grid-template-columns: 1fr; }
  .ft-card--wide em{ margin-top: auto; padding-top: 8px; }
  .ft-cta__actions{ justify-self: start; }
}

@media (max-width:768px){
  .ft-cta__actions{ width: 100%; }
  .ft-hero{ padding-bottom: 48px; }
  .ft-back{ margin: -16px 0 24px; }
  .ft-outcomes-section{ padding-bottom: 40px; }
  .ft-outcomes-section + .v2-section{ padding-top: 56px; }
  .ft-hero__title{ font-size: 36px; }
  .ft-outcomes,
  .ft-caps,
  .ft-cards{ grid-template-columns: 1fr; }
  .ft-how .feature-row__copy h2{ font-size: 28px; }
  .ft-how--wide .ft-steps{ grid-template-columns: 1fr; }
  .ft-how--wide .ft-steps li{ padding: 0 0 0 52px; }
  .ft-how--wide .v2-shot{ padding: 20px; }
  .ft-group{ padding: 24px 20px; }
  .ft-banner{ padding: 22px 20px; }
}
