/* The Features page (/features), and nothing else: only features/index.html links this file, and every class
   starts with fx-. Colors, type and spacing come from styles.css's tokens, so both themes follow the toggle. */

/* The health tiers' signal colors (../ssdhero/design/design-language.md §3.1): Void first, as in styles.css, then Lab. */
:root{--fx-healthy:#a884ff;--fx-watch:#fdbe45;--fx-warning:#ff9044;--fx-failing:#ff5636;--fx-failed:#f83154;--fx-knob:#a39db5}
[data-theme=light]{--fx-healthy:#7635e2;--fx-watch:#b37903;--fx-warning:#ca5b04;--fx-failing:#d02f14;--fx-failed:#c4003b;--fx-knob:#fff}

/* Opening: the h1, a line about the app, and an index of the ten groups below. */
.fx-hero{padding-top:69px;text-align:center}
.fx-hero>.eyebrow{justify-content:center}
.fx-hero .hero-copy{max-width:640px;margin:0 auto}
.fx-index{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:24px;max-width:960px;margin:52px auto 0;border-top:1px solid var(--line);text-align:left}
.fx-index a{display:flex;align-items:baseline;gap:10px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.4;color:var(--muted)}
.fx-index a span{font:10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.2px;color:var(--violet)}
.fx-index a:hover{color:var(--ink)}
.fx-facts-link{width:max-content;margin:26px auto 0;color:var(--muted)}

/* A group: number, h2 and a line on the left/right (like the home page's manifesto), then figures and items. */
.fx-section{padding-top:132px}
.fx-intro{display:grid;grid-template-columns:1fr 1fr;column-gap:80px;align-items:end}
.fx-intro .eyebrow{grid-column:1/-1;margin-bottom:23px}
.fx-intro>p{margin:0 0 3px;max-width:430px;font-size:15px}
.fx-head .eyebrow,.fx-duo .eyebrow{margin-bottom:23px}
.fx-head>p{font-size:15px;max-width:430px;margin:22px 0 0}

.fx-figure{margin:0}
.fx-figure figcaption{font:9px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1px;color:var(--subtle);padding-top:16px;line-height:1.5}
.fx-figure .tiny-cross{font-size:15px;margin-right:5px}
.fx-shot{display:block;width:100%;height:auto;border-radius:14px}
.fx-wide{max-width:960px;margin:52px auto 0}
.fx-wide .fx-shot,.fx-glance .fx-shot{box-shadow:0 30px 80px var(--shadow)}
.fx-paper{border-radius:4px;border:1px solid var(--line);box-shadow:0 24px 60px var(--shadow)}
.fx-proofs .fx-shot:not(.fx-paper){border:1px solid var(--line)}

.fx-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 32px;margin-top:56px}
.fx-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.fx-item{border-top:1px solid var(--line);padding-top:22px}
.fx-item h3,.fx-row-head h3,.fx-list h3{font-size:18px;font-weight:500;letter-spacing:-.4px;line-height:1.3;margin:0 0 10px}
.fx-item p,.fx-row-head p,.fx-list p{font-size:13px;margin:0}
.fx-note{font-size:12px;color:var(--subtle);max-width:620px;margin:40px 0 0}

/* 01 Health: the Overview beside the tiers, then the readout and the Health data tabs. */
.fx-lead{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:56px;align-items:center;margin-top:48px}
.fx-overview .fx-shot{border-radius:0}
.fx-lead-copy .fx-item{border-top:0;padding-top:0;margin-bottom:24px}
.fx-tiers{list-style:none;margin:0;padding:4px 20px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.fx-tiers li{display:grid;grid-template-columns:22px 78px minmax(0,1fr);align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.5;color:var(--muted)}
.fx-tiers li:last-child{border-bottom:0}
.fx-tiers b{font:500 10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.5px;color:var(--ink)}
.fx-tiers .signal{height:14px;gap:2px;color:var(--subtle)}
.fx-tiers .signal i{opacity:.25;width:3px}
.fx-tiers .signal i:nth-child(1){height:4px}.fx-tiers .signal i:nth-child(2){height:6px}.fx-tiers .signal i:nth-child(3){height:9px}.fx-tiers .signal i:nth-child(4){height:11px}.fx-tiers .signal i:nth-child(5){height:14px}
.fx-tiers [data-bars="5"] .signal{color:var(--fx-healthy)}
.fx-tiers [data-bars="4"] .signal{color:var(--fx-watch)}
.fx-tiers [data-bars="3"] .signal{color:var(--fx-warning)}
.fx-tiers [data-bars="2"] .signal{color:var(--fx-failing)}
.fx-tiers [data-bars="1"] .signal{color:var(--fx-failed)}
.fx-tiers [data-bars="5"] i,.fx-tiers [data-bars="4"] i:nth-child(-n+4),.fx-tiers [data-bars="3"] i:nth-child(-n+3),.fx-tiers [data-bars="2"] i:nth-child(-n+2),.fx-tiers [data-bars="1"] i:nth-child(1){opacity:1}

.fx-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr);gap:56px;align-items:start;margin-top:64px;padding-top:28px;border-top:1px solid var(--line)}
.fx-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.fx-readout>div{background:linear-gradient(var(--panel),var(--panel)) var(--bg);padding:18px 20px 20px}
.fx-readout dt{display:flex;justify-content:space-between;gap:10px;font:500 9px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.4px;color:var(--subtle)}
.fx-readout dt span{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;line-height:1}
.fx-readout dd,.fx-tabs dd{margin:12px 0 0;font-size:13px;line-height:1.65;color:var(--muted)}
.fx-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin:0}
.fx-tabs dt{font-size:13px;font-weight:550;color:var(--ink);padding-bottom:12px;border-bottom:2px solid var(--line)}
.fx-tabs div:first-child dt{border-bottom-color:var(--violet)}

/* 03, 07: the group's words on the left, its items on the right. 09 and 10 share a row. */
.fx-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:80px;align-items:start}
.fx-split>ul{margin-top:42px}
.fx-list{list-style:none;padding:0;margin:0;display:grid;gap:26px}
.fx-duo .fx-list{margin-top:34px}
.fx-list li{display:flex;gap:15px}
.fx-list li>span{color:var(--violet);font-size:18px;line-height:1.2}
.fx-list h3{margin-bottom:6px}
.fx-list a,.fx-inline{color:var(--ink);text-decoration:underline;text-decoration-color:var(--violet);text-underline-offset:3px}
.fx-list a:hover,.fx-inline:hover{color:var(--violet)}
.fx-duo{display:grid;grid-template-columns:1fr 1fr;gap:80px}

/* 04 External drives: what each connection gets. */
.fx-table-wrap{margin-top:52px}
.fx-table{width:100%;border-collapse:collapse;font-size:14px}
.fx-table caption{text-align:left;font:10px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted);padding-bottom:16px}
.fx-table thead th{font:500 9px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.4px;text-transform:uppercase;color:var(--subtle);text-align:left;padding:0 0 10px;border-bottom:1px solid var(--line)}
.fx-table tbody tr{border-bottom:1px solid var(--line)}
.fx-table tbody th{position:relative;width:42%;padding:17px 24px 17px 30px;text-align:left;font-weight:500;line-height:1.5;color:var(--ink);vertical-align:top}
.fx-table td{padding:17px 0;line-height:1.6;color:var(--muted);vertical-align:top}
.fx-conn{position:absolute;left:0;top:20px;fill:none;stroke:var(--fx-healthy);stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.fx-limited .fx-conn{stroke:var(--subtle)}

/* 06 and 08: two screenshots side by side, as tall as each other (columns in proportion to their widths). */
.fx-pair{display:grid;gap:28px;margin-top:52px;align-items:start}
.fx-glance{grid-template-columns:minmax(0,.693fr) minmax(0,1.986fr)}
.fx-glance .fx-figure:first-child .fx-shot{border-radius:12px}
.fx-proofs{grid-template-columns:minmax(0,.772fr) minmax(0,.652fr);max-width:820px;margin-left:auto;margin-right:auto}

/* 07 Notifications: each one, with its switch as it is out of the box. */
.fx-notes{list-style:none;margin:0;padding:4px 22px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.fx-notes li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:14px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.45}
.fx-notes li:last-child{border-bottom:0}
.fx-notes small{font:9px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.2px;color:var(--subtle);white-space:nowrap}
.fx-switch{position:relative;width:28px;height:16px;border-radius:8px;background:var(--line)}
.fx-switch:after{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--fx-knob);box-shadow:0 1px 2px rgba(0,0,0,.25)}
.fx-switch.on{background:var(--violet)}
.fx-switch.on:after{left:14px;background:#fff}

/* The facts: price, what stays free, requirements, status. */
.fx-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:80px;align-items:start}
.fx-spec{margin:42px 0 0;border-top:1px solid var(--line)}
.fx-spec>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}
.fx-spec dt{font:500 9px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1.4px;color:var(--subtle);padding-top:5px}
.fx-spec dd{margin:0;font-size:14px;line-height:1.7;color:var(--ink)}
.fx-facts+.closing{padding-top:110px}

@media(max-width:950px){
.fx-intro{column-gap:40px}
.fx-split,.fx-facts{gap:40px}
.fx-duo{gap:48px}
.fx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.fx-lead{grid-template-columns:1fr;gap:40px}
.fx-overview{max-width:640px;margin:0 auto}
.fx-row{grid-template-columns:1fr;gap:24px}
.fx-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
.fx-hero{padding-top:44px}
.fx-hero>.eyebrow{font-size:8px;letter-spacing:1.4px}
.fx-index{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;margin-top:36px}
.fx-index a{padding:13px 0;font-size:12px}
.fx-section{padding-top:86px}
.fx-intro{display:block}
.fx-intro .eyebrow{font-size:8px}
.fx-intro>p{margin-top:20px;font-size:14px}
.fx-head>p{font-size:14px}
.fx-wide,.fx-lead,.fx-pair,.fx-table-wrap{margin-top:36px}
.fx-grid,.fx-grid-2{grid-template-columns:1fr;gap:28px;margin-top:40px}
.fx-item{padding-top:18px}
.fx-item h3,.fx-row-head h3,.fx-list h3{font-size:17px}
.fx-shot{border-radius:10px}
.fx-tiers{padding:2px 16px}
.fx-tiers li{grid-template-columns:20px 70px minmax(0,1fr);gap:10px;font-size:12.5px}
.fx-row{margin-top:48px}
.fx-readout{grid-template-columns:repeat(2,minmax(0,1fr))}
.fx-readout>div{padding:16px 14px 18px}
.fx-split,.fx-duo,.fx-facts{grid-template-columns:1fr;gap:0}
.fx-split>ul{margin-top:34px}
.fx-table{font-size:13px}
.fx-table tbody th{width:46%;padding-right:14px}
.fx-glance{grid-template-columns:1fr;gap:36px}
.fx-glance .fx-figure:first-child{max-width:300px}
.fx-proofs{gap:16px}
.fx-notes{padding:2px 16px}
.fx-notes li{grid-template-columns:30px minmax(0,1fr);row-gap:4px;font-size:13px}
.fx-notes small{grid-column:2}
.fx-spec>div{grid-template-columns:1fr;gap:6px}
.fx-spec dt{padding-top:0}
.fx-facts+.closing{padding-top:78px}
}

@media(max-width:480px){
.fx-readout,.fx-tabs{grid-template-columns:1fr}
}
