/* /features: workflows, remote care and the filterable module collection.
   Tokens come from site.css. */

.ft-hero h1 em, .ft-remote h2 em { font-style: normal; color: var(--green); }
.ft-hero h1 { max-width: 14ch; }
.ft-hero-bottom { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-top: 10px; }
.ft-hero-bottom .inline-link { margin-top: 0; }

.ft-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 7vh, 72px); }
.ft-head h2 { font-size: clamp(2.2rem, 4.6vw, 4.1rem); letter-spacing: -.045em; margin-top: 14px; }
.ft-head > p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) { .ft-head { grid-template-columns: 1fr; align-items: start; } }

/* Featured workflow */
.ft-theatre { background: var(--white); border-block: 1px solid var(--rule); padding-block: clamp(64px, 11vh, 128px); }
.ft-theatre-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ft-narrative { display: grid; gap: 26px; align-content: center; }
.ft-sequence { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.ft-sequence li { border-bottom: 1px solid var(--rule); font-weight: 600; }
.ft-sequence li > span, .ft-sequence a { display: flex; }
.ft-sequence li[aria-current] { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; color: var(--ink); }
.ft-sequence a { gap: 14px; align-items: baseline; padding: 14px 0; color: var(--muted); text-decoration: none; transition: color .2s; }
.ft-sequence a::after { content: "→"; margin-left: auto; color: var(--green); transition: transform .3s var(--ease); }
.ft-sequence a:hover { color: var(--ink); }
.ft-sequence a:hover::after { transform: translateX(4px); }
.ft-sequence span { font: 500 12px var(--mono); color: var(--green); letter-spacing: .08em; }
.ft-sequence li[aria-current] { box-shadow: inset 0 -2px 0 var(--green); }
.ft-text { display: grid; gap: 14px; }
.ft-text h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.04em; }
.ft-text p { color: var(--muted); font-size: 1.08rem; max-width: 44ch; }
.ft-text .ft-modules-used { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.ft-screen { margin: 0; display: grid; gap: 12px; }
.ft-screen figcaption { font-size: 13.5px; color: var(--muted); }
.ft-screen-link { display: block; cursor: zoom-in; }
@media (max-width: 960px) { .ft-theatre-grid { grid-template-columns: 1fr; } }

/* Remote care */
.ft-remote { padding-block: clamp(72px, 12vh, 140px); }
.ft-remote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ft-remote-card { background: var(--white); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; scroll-margin-top: calc(var(--header) + 16px); }
.ft-remote-card:target { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.ft-visual { position: relative; min-height: 340px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.ft-visual-kicker { font: 500 11.5px var(--mono); letter-spacing: .12em; color: var(--mint); }
.ft-visual-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.ft-art-caption { margin-top: auto; padding-top: 18px; font: 500 10.5px var(--mono); letter-spacing: .12em; opacity: .7; }

.ft-visual-call { background: var(--night); color: var(--night-ink); }
.ft-call { display: flex; align-items: center; gap: 0; margin-bottom: 18px; }
.ft-call i { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--mint); flex: none; position: relative; }
.ft-call i::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--mint); opacity: .85; }
.ft-call i:last-child::after { background: transparent; border: 1.5px solid var(--mint); inset: 13px; }
.ft-call span { flex: 0 1 140px; height: 0; border-top: 1.5px dashed var(--mint); opacity: .7; }
.ft-visual-chip { align-self: flex-start; margin-top: 10px; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-ink); }
.ft-visual-call .ft-art-caption { color: var(--night-muted); }

.ft-visual-readings { background: var(--sage); color: var(--ink); }
.ft-visual-readings .ft-visual-kicker { color: var(--green-2); }
.ft-reading-options { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-reading-options li { font-size: 14px; font-weight: 600; }
.ft-reading-options li:not(:has(button)) { padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--rule); }
.ft-reading-options button { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--sans); padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--green) 30%, var(--rule)); background: var(--white); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ft-reading-options button::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--green); background: var(--white); flex: none; transition: background .2s, box-shadow .2s; }
.ft-reading-options button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.ft-reading-options button[aria-pressed="true"]::before { background: var(--white); box-shadow: inset 0 0 0 3.5px var(--green); border-color: var(--white); }
.ft-reading-options button:hover { border-color: var(--green); }
.ft-reading-destination { display: grid; justify-items: start; gap: 0; margin-top: 4px; }
.ft-reading-line { width: 1.5px; height: 28px; margin-left: 22px; background: var(--green); opacity: .5; }
.ft-reading-box { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); min-width: min(100%, 280px); }
.ft-reading-box > span { font-size: 13px; font-weight: 600; color: var(--green-2); }
.ft-reading-shared { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ft-reading-shared li { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--sage); color: var(--green-2); animation: ft-in .35s var(--ease) both; }
@keyframes ft-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ft-visual-readings .ft-art-caption { color: var(--green-2); }

.ft-remote-copy { padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; border-top: 1px solid var(--rule); }
.ft-remote-number { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--green); }
.ft-remote-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.035em; line-height: 1.1; }
.ft-remote-copy p { color: var(--muted); }
.ft-remote-copy .inline-link { margin-top: 4px; }
.ft-footnote { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 90ch; }
.ft-principles { list-style: none; margin: clamp(48px, 8vh, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ft-principles li { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.ft-principles span { font: 500 13px var(--mono); color: var(--green); }
.ft-principles h3 { font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.15; }
.ft-principles p { color: var(--muted); }
@media (max-width: 860px) { .ft-remote-grid, .ft-principles { grid-template-columns: 1fr; } .ft-visual { min-height: 0; } }

/* Module collection */
.ft-modules { background: var(--white); border-top: 1px solid var(--rule); padding-block: clamp(72px, 12vh, 140px); scroll-margin-top: var(--header); }
.ft-module-controls { position: sticky; top: var(--header); z-index: 5; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 14px 0; background: color-mix(in srgb, var(--white) 94%, transparent); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(10px)) { .ft-module-controls { backdrop-filter: blur(12px); } }
.ft-module-controls[hidden] { display: none; }
.ft-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-filters button { font: 600 14px var(--sans); padding: 9px 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ft-filters button:hover { color: var(--ink); border-color: var(--line); }
.ft-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ft-filters button .n { font: 500 11px var(--mono); margin-left: 6px; opacity: .7; }
.ft-search { position: relative; flex: 0 1 300px; }
.ft-search::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; border: 1.8px solid var(--muted); border-radius: 50%; transform: translateY(-62%); pointer-events: none; }
.ft-search::after { content: ""; position: absolute; left: 25px; top: 50%; width: 6px; height: 1.8px; background: var(--muted); transform: translateY(4px) rotate(45deg); pointer-events: none; }
.ft-search input { width: 100%; font: 400 15.5px var(--sans); color: var(--ink); padding: 10px 14px 10px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s, background .2s, box-shadow .2s; }
.ft-search input:focus { outline: none; border-color: var(--green); background: var(--white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.ft-module-count { margin: 22px 0 16px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ft-module-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.module-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, background .25s; }
.module-card:hover { border-color: var(--line); background: var(--white); }
.module-card[hidden] { display: none; }
.module-card h3 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.2; }
.module-card p { color: var(--muted); font-size: 15px; }
.module-card mark { background: var(--mint); color: inherit; border-radius: 3px; padding: 0 1px; }
.ft-module-empty { display: grid; gap: 14px; justify-items: start; padding: 40px 0; color: var(--muted); }
.ft-module-empty[hidden] { display: none; }
.ft-module-empty .button { color: var(--ink); }
@media (max-width: 700px) {
  .ft-module-controls { position: static; }
  .ft-filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .ft-filters::-webkit-scrollbar { display: none; }
  .ft-filters button { flex: none; }
  .ft-search { flex: 1 1 100%; }
}

/* Closing */
.ft-closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ft-closing .inline-link { color: var(--mint); margin-top: 0; }

/* Workflow sequence as tabs (2026-09-25). Without JS the first step shows. */
.ft-sequence[role="tablist"] button { display: flex; gap: 14px; align-items: baseline; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; font: 600 16px var(--sans); color: var(--muted); text-align: left; cursor: pointer; transition: color .2s, box-shadow .3s var(--ease); }
.ft-sequence[role="tablist"] button:hover { color: var(--ink); }
.ft-sequence[role="tablist"] button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); }
.ft-screen img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
