/* Features & Capabilities page only. Loaded after css/astrix.css; every selector is prefixed .ft- so nothing here can affect other pages. */

/* Automation-level labels (text, not colour alone) */
.ft-auto { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .2rem .55rem; border-radius: .3rem; white-space: nowrap; }
.ft-auto.auto { background: var(--ax-grad); color: #fff; }
.ft-auto.assist { background: #e3e8f7; color: #2b3a7a; }
.ft-auto.you { background: #eef0f4; color: #3d4559; }
.ft-auto.out { background: #fff; color: #3d4559; border: 1px dashed #9aa3b8; }
.ft-auto .ic { width: .95em; height: .95em; stroke-width: 3; }

/* Hero: anatomy of a finding */
.ft-anatomy { margin: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; padding: 1.25rem; }
.ft-anatomy-head { display: flex; justify-content: space-between; gap: .75rem; align-items: center; font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: .85rem; }
.ft-anatomy-head strong { color: #fff; font-size: .9rem; }
.ft-finding { background: #fff; color: var(--ax-ink); border-radius: .8rem; overflow: hidden; }
.ft-finding-title { padding: .9rem 1rem; border-bottom: 1px solid var(--ax-line); }
.ft-finding-title b { display: block; font-size: 1rem; color: var(--ax-navy); }
.ft-finding-title span { font-size: .8rem; color: var(--ax-muted); }
.ft-parts { list-style: none; margin: 0; padding: 0; }
.ft-parts li { display: grid; grid-template-columns: 1.6rem 7.5rem 1fr; gap: .6rem; align-items: baseline; padding: .55rem 1rem; border-top: 1px solid var(--ax-line); font-size: .86rem; }
.ft-parts li:first-child { border-top: 0; }
.ft-parts .n { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ax-grad); color: #fff; font-size: .72rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ft-parts .k { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ax-violet); }
.ft-parts .v { color: var(--ax-ink); }
.ft-anatomy figcaption { font-size: .76rem; color: rgba(255,255,255,.6); margin-top: .85rem; }
@media (max-width: 459.98px) { .ft-parts li { grid-template-columns: 1.6rem 1fr; } .ft-parts .v { grid-column: 2; } }

/* Capability overview */
.ft-overview { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); counter-reset: g; }
.ft-overview a { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; height: 100%; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--ax-line); border-radius: .9rem; text-decoration: none; color: var(--ax-ink); }
.ft-overview a:hover, .ft-overview a:focus { border-color: var(--ax-blue); }
.ft-overview .ax-icon { grid-row: span 2; width: 2.5rem; height: 2.5rem; margin: 0; }
.ft-overview strong { color: var(--ax-navy); font-size: .98rem; }
.ft-overview span.d { font-size: .86rem; color: var(--ax-muted); }

/* Feature groups */
.ft-group { padding-block: 3.5rem; border-top: 1px solid var(--ax-line); }
.ft-group:first-of-type { border-top: 0; padding-top: 1rem; }
.ft-group .kicker { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ax-blue); }
.ft-group h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin: .3rem 0 .8rem; }
.ft-group h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ax-violet); margin: 1.25rem 0 .4rem; }
.ft-group p { color: var(--ax-muted); }
/* "How it works" runs full width under the intro and facts, as numbered steps or labelled cards */
.ft-how { margin-top: 1.75rem; }
.ft-how h4 { margin: 0 0 .75rem; }
.ft-steps, .ft-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ft-steps li, .ft-feats li { padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--ax-line); border-radius: .9rem; font-size: .92rem; color: var(--ax-muted); }
.ft-steps { counter-reset: st; }
.ft-steps li { counter-increment: st; }
.ft-steps li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin-bottom: .6rem; border-radius: 50%; background: var(--ax-grad); color: #fff; font-size: .8rem; font-weight: 700; }
.ft-feats li { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.ft-feats .ft-auto { order: -1; }
.ft-feats strong { display: block; color: var(--ax-navy); font-size: .95rem; margin-bottom: .15rem; }
/* Five cards: three then two on desktop; on tablet the fifth takes the full row, so no slot is left empty */
@media (min-width: 992px) {
  .ft-steps { grid-template-columns: repeat(3, 1fr); }
  .ft-feats { grid-template-columns: repeat(6, 1fr); }
  .ft-feats li { grid-column: span 2; }
  .ft-feats li:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .ft-feats { grid-template-columns: 1fr 1fr; }
  .ft-feats li:last-child { grid-column: 1 / -1; }
}
/* The facts card stretches so it ends level with the intro beside it */
.ft-group .row > :last-child { display: flex; flex-direction: column; }
.ft-spec { flex-grow: 1; background: var(--ax-bg-soft); border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.2rem 1.3rem; }
.ft-spec dl { margin: 0; }
.ft-spec dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ax-navy); margin-top: .85rem; }
.ft-spec dt:first-child { margin-top: 0; }
.ft-spec dd { margin: .2rem 0 0; font-size: .92rem; color: var(--ax-muted); }
.ft-spec .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.ft-spec .chips span { font-size: .8rem; font-weight: 600; background: #fff; border: 1px solid var(--ax-line); border-radius: .4rem; padding: .15rem .5rem; color: var(--ax-navy); }
.ft-limit { font-size: .85rem; color: var(--ax-muted); border-left: 3px solid var(--ax-line); padding-left: .8rem; margin: 1rem 0 0; }

/* Workflow swimlanes */
/* Markup is written step by step (header, then its three lane cells) so it reads in order when stacked on mobile;
   on desktop the grid flows by column to lay those out as swimlanes. */
.ft-lanes { display: grid; grid-template-columns: 9rem repeat(6, 1fr); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 6px; }
.ft-lanes .lane { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ax-navy); display: flex; align-items: center; padding: .5rem .25rem; }
.ft-lanes .step { font-size: .8rem; font-weight: 800; color: var(--ax-navy); padding: .5rem .6rem; border-bottom: 2px solid var(--ax-violet); }
.ft-lanes .step span { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-blue); }
.ft-lanes .cell { position: relative; font-size: .84rem; color: var(--ax-ink); padding: .7rem .75rem; border-radius: .6rem; min-height: 4.2rem; }
.ft-lanes .cell.a { background: #eceffd; border: 1px solid #d3d9f3; }
.ft-lanes .cell.y { background: #fff; border: 1px solid var(--ax-line); }
.ft-lanes .cell.o { background: transparent; border: 1px dashed #b9c0d2; color: var(--ax-muted); }
.ft-lanes .cell.e { background: transparent; }
/* Lane name inside each cell: read by screen readers on desktop, shown on mobile where the lane column is hidden. */
.ft-lanes .tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ft-lanes .step { margin: 0; }
@media (max-width: 991.98px) {
  .ft-lanes { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 0; }
  .ft-lanes .lane, .ft-lanes .cell.e, .ft-lanes .corner { display: none; }
  .ft-lanes .cell { min-height: 0; margin-top: .4rem; }
  .ft-lanes .tag { position: static; width: max-content; height: auto; clip: auto; overflow: visible; display: flex; margin-bottom: .3rem; }
  .ft-lanes .step { margin-top: 1.25rem; }
}

/* Inputs -> analysis -> outputs */
.ft-iao { display: grid; grid-template-columns: 1fr 2.5rem 1.3fr 2.5rem 1fr; align-items: stretch; }
.ft-iao .col { background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; padding: 1.25rem 1.3rem; }
.ft-iao .col.mid { background: linear-gradient(160deg, var(--ax-navy), var(--ax-navy-2)); border: 0; color: #fff; }
.ft-iao h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .75rem; }
.ft-iao ul { list-style: none; margin: 0; padding: 0; }
.ft-iao li { padding: .4rem 0; border-top: 1px solid var(--ax-line); font-size: .9rem; color: var(--ax-muted); }
.ft-iao li:first-child { border-top: 0; }
.ft-iao li strong { color: var(--ax-navy); }
.ft-iao .mid li { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.82); display: flex; flex-direction: column; gap: .3rem; }
.ft-iao .mid li .ft-auto { align-self: flex-start; }
.ft-iao .arrow { display: flex; align-items: center; justify-content: center; color: var(--ax-violet); }
@media (max-width: 991.98px) {
  .ft-iao { grid-template-columns: 1fr; }
  .ft-iao .arrow { padding: .4rem 0; transform: rotate(90deg); }
}

/* Feature-to-value table */
.ft-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--ax-line); border-radius: 1rem; overflow: hidden; }
.ft-table th, .ft-table td { padding: .95rem 1.15rem; border-top: 1px solid var(--ax-line); vertical-align: top; font-size: .93rem; }
.ft-table thead th { border-top: 0; background: var(--ax-bg-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ax-muted); }
.ft-table tbody th { color: var(--ax-navy); font-weight: 700; }
.ft-table td { color: var(--ax-muted); }
@media (max-width: 767.98px) {
  .ft-table thead { display: none; }
  .ft-table tbody th, .ft-table td { display: block; }
  .ft-table td { border-top: 0; padding-top: 0; }
  .ft-table td::before { content: attr(data-label); display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ax-violet); }
}

/* Roles (short) */
.ft-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(5, 1fr); }
.ft-roles li { border-top: 3px solid var(--ax-violet); padding-top: .8rem; }
.ft-roles h3 { font-size: .98rem; font-weight: 800; margin-bottom: .3rem; }
.ft-roles p { font-size: .88rem; color: var(--ax-muted); margin: 0; }
@media (max-width: 1199.98px) { .ft-roles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767.98px) { .ft-roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 459.98px) { .ft-roles { grid-template-columns: 1fr; } }

/* Scope and boundaries */
.ft-scope { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.ft-scope > div { border-radius: 1rem; padding: 1.3rem 1.4rem; border: 1px solid var(--ax-line); background: #fff; }
.ft-scope > div.now { border-top: 4px solid var(--ax-ok); }
.ft-scope > div.judge { border-top: 4px solid var(--ax-violet); }
.ft-scope > div.ask { border-top: 4px dashed #9aa3b8; }
.ft-scope h3 { font-size: 1rem; font-weight: 800; display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.ft-scope ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--ax-muted); }
.ft-scope li { padding: .15rem 0; }
@media (max-width: 991.98px) { .ft-scope { grid-template-columns: 1fr; } }

/* Security summary */
.ft-sec { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem 2rem; grid-template-columns: repeat(2, 1fr); }
.ft-sec li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: rgba(255,255,255,.8); }
.ft-sec .ic { color: var(--ax-blue-light); width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
.ft-sec strong { color: #fff; }
@media (max-width: 767.98px) { .ft-sec { grid-template-columns: 1fr; } }
