/* Phlexerr website. Brand: amber field, ink type, the app's own dark UI shown as the hero object. */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ink: #17181b;
  --slate: #1d1f24;
  --slate-2: #2a2d34;
  --amber: #e5a00d;
  --amber-deep: #8a5a00;
  --amber-pale: #fff1c9;
  --paper: #f4f4f1;
  --white: #ffffff;
  --muted: #565a63;
  --line: #d8d8d2;
  --red: #c23a2b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(23, 24, 27, 0.08); padding: 0.1em 0.38em; border-radius: 5px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p, li, dd, summary { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1.2 var(--body); padding: 14px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
/* The Unraid button: ink on light and amber surfaces, amber on dark ones. */
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #34373e; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); padding: 9px 16px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a52f22; }
.btn-danger:disabled { background: #4a4d55; color: #9a9da5; cursor: not-allowed; }
.btn-quiet { background: transparent; color: inherit; border-color: rgba(255, 255, 255, 0.3); }
.btn-quiet:hover { border-color: #fff; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #f2b630; }
.btn-sm { padding: 8px 16px; font-size: 0.95rem; }

/* Hero */
.hero { position: relative; background: var(--amber); padding-left: 44px; padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='60'%3E%3Crect x='13' y='16' width='18' height='28' rx='5' fill='%2317181b' fill-opacity='.82'/%3E%3C/svg%3E") repeat-y; }
.top { max-width: 1160px; margin-inline: auto; padding: 22px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 1.45rem/1 var(--display); font-stretch: 112%; }
.brand img { border-radius: 10px; }
.navlinks { display: flex; gap: 26px; list-style: none; margin: 0 auto 0 12px; padding: 0; font-weight: 600; font-size: 1rem; }
.navlinks a { text-decoration: none; }
.navlinks a:hover { text-decoration: underline; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(24px, 4vw, 48px); }
.hero-copy { padding-top: clamp(0px, 2.5vw, 32px); }
.hero h1 { font-weight: 800; font-stretch: 114%; font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.03; letter-spacing: -0.01em; }
.lede { font-size: 1.28rem; line-height: 1.5; margin: 24px 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; font-size: 0.98rem; color: #3b2a00; }
.nav-install { display: none; font-weight: 700; font-size: 1rem; min-height: 44px; align-items: center; padding-inline: 4px; }
.release { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.98rem; }
.release a { font-weight: 700; display: inline-flex; align-items: center; min-height: 32px; }
.release-tag { background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; padding: 5px 10px; border-radius: 6px; }

/* Bar that appears once the hero is out of view */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; background: rgba(23, 24, 27, 0.96); color: #fff; transform: translateY(-100%); transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.8); }
.bar.show { transform: none; }
.bar-in { max-width: 1160px; margin-inline: auto; padding: 8px 24px; display: flex; align-items: center; gap: 28px; }
.bar :focus-visible { outline-color: var(--amber); }
.brand-bar { font-size: 1.1rem; color: #fff; gap: 10px; }
.brand-bar img { border-radius: 7px; }
.barlinks { display: flex; gap: 22px; list-style: none; margin: 0 auto 0 8px; padding: 0; font-weight: 600; font-size: 0.95rem; }
.barlinks a { text-decoration: none; color: #d9dbe0; }
.barlinks a:hover { color: #fff; text-decoration: underline; }
.barlinks a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); }

/* Demo: the app itself, in dry-run */
.demo { background: var(--slate); color: #ececea; border-radius: 14px; box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55); overflow: hidden; }
.demo :focus-visible { outline-color: var(--amber); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.demo-bar h2 { font: 700 1.05rem/1 var(--display); font-stretch: 105%; }
.badge { background: var(--amber); color: var(--ink); font-weight: 800; font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; }
.demo-list { list-style: none; margin: 0; padding: 6px 0; }
.demo-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.demo-list label { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; padding: 12px 18px; cursor: pointer; }
.demo-list label:hover { background: rgba(255, 255, 255, 0.04); }
.demo-list input { width: 20px; height: 20px; accent-color: var(--amber); margin: 0; }
.demo-list li.on label { background: rgba(229, 160, 13, 0.12); }
.d-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.d-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.88rem; color: #a9acb3; margin-top: 2px; }
.d-size { font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.demo-total { margin: 0; font-size: 1rem; color: #d6d8dc; }
.demo-total b { color: #fff; }
.demo-confirm, .demo-result { padding: 16px 18px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); background: #17191d; }
.demo-confirm p { margin: 0 0 12px; }
.demo-confirm label { display: block; font-size: 0.95rem; margin-bottom: 6px; color: #d6d8dc; }
.demo-confirm-row { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-confirm input { flex: 1 1 140px; min-width: 0; font: 700 1rem var(--mono); letter-spacing: 0.06em; background: #0f1013; color: #fff; border: 2px solid #4a4d55; border-radius: 8px; padding: 10px 12px; }
.demo-confirm input:focus { border-color: var(--amber); outline: none; }
.demo-hint { margin: 8px 0 0 !important; font-size: 0.88rem; color: #a9acb3; }
.demo-hint.warn { color: var(--amber); font-weight: 600; }
.demo-list.locked { opacity: 0.55; }
.demo-list.locked label { cursor: default; }
.demo-list.locked label:hover { background: none; }
.demo-result:focus { outline: none; }
.demo-result-title { font: 700 1.2rem/1.3 var(--display); margin: 0 0 8px; color: var(--amber); }
.demo-freed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 6px !important; }
.demo-freed b { font: 800 clamp(2.2rem, 4vw, 2.9rem)/1 var(--display); font-stretch: 110%; color: #fff; font-variant-numeric: tabular-nums; }
.demo-freed span { color: #c9ccd2; }
.demo-steps { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 8px; }
.demo-steps li { position: relative; padding-left: 26px; color: #d6d8dc; font-size: 0.98rem; }
.demo-steps li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); }
.demo-steps b { color: #fff; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.demo-list li.kept label { cursor: not-allowed; row-gap: 6px; }
.demo-list li.kept label:hover { background: none; }
.demo-list li.kept .d-title, .demo-list li.kept .d-size { color: #8d9098; }
.demo-list li.nudge .d-keep { animation: nudge 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(229, 160, 13, 0.7); } 100% { box-shadow: 0 0 0 8px rgba(229, 160, 13, 0); } }
.d-keep { grid-column: 2 / -1; justify-self: start; line-height: 1.3; font-size: 0.82rem; font-weight: 700; color: var(--ink); background: var(--amber); padding: 3px 9px; border-radius: 6px; }
.demo-result p { margin: 0 0 10px; }
.demo-result code { background: rgba(255, 255, 255, 0.12); }
.demo-result-note { color: #b9bcc2; font-size: 0.98rem; }
.demo-note { margin: 0; padding: 10px 18px 14px; font-size: 0.85rem; color: #8d9098; }
[hidden] { display: none !important; }

/* Page sections */
.section-title { font-weight: 800; font-stretch: 110%; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.005em; margin-bottom: 20px; }
.section-lede { font-size: 1.22rem; max-width: 38em; color: var(--muted); margin-bottom: 40px; }

.problem { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.problem h2 { font-weight: 800; font-stretch: 112%; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.prose { max-width: 36em; font-size: 1.2rem; }

.features { padding-block: var(--section); }
.features-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 80px); align-items: center; margin-bottom: clamp(16px, 3vw, 32px); }
.features-intro .section-lede { margin-bottom: 0; }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 7vw, 88px); }
.feature:first-of-type { margin-top: 36px; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .shot { order: -1; }
.feature h3 { font-weight: 750; font-stretch: 106%; font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.15; margin-bottom: 14px; }
.feature h4 { font-weight: 750; font-size: 1.05rem; line-height: 1.2; margin: 20px 0 8px; }
.feature ul { padding-left: 1.2em; margin: 0; }
.feature li { margin-bottom: 6px; }
.shot { margin: 0; }
.zoom { display: block; position: relative; border-radius: 10px; cursor: zoom-in; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(23, 24, 27, 0.86); color: #fff; font: 700 0.82rem/1 var(--body); padding: 7px 10px; border-radius: 6px; opacity: 0; transition: opacity 0.15s; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
.shot img { width: 100%; border-radius: 10px; border: 1px solid rgba(23, 24, 27, 0.18); box-shadow: 0 22px 44px -26px rgba(23, 24, 27, 0.6); background: var(--slate); }
.shot figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 56px) clamp(28px, 4vw, 48px); margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.mini .shot { margin-bottom: 20px; }
.mini .shot img { aspect-ratio: 1400 / 740; object-fit: cover; object-position: top left; }
.shot-combo { position: relative; padding: 0 0 56px; }
.zoom-phone { position: absolute; right: -10px; bottom: 0; width: 26%; }
.zoom-phone img { border-radius: 14px; border: 4px solid var(--ink); box-shadow: 0 24px 40px -18px rgba(23, 24, 27, 0.7); aspect-ratio: 391 / 700; object-fit: cover; object-position: top; }
.mini h3 { font-weight: 750; font-stretch: 104%; font-size: 1.3rem; line-height: 1.2; margin-bottom: 8px; }
.mini p { margin: 0; color: #33363c; font-size: 1.06rem; }
.mini-sm { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; gap: 0 22px; align-items: start; }
.mini-sm .shot { margin: 0; grid-row: span 2; }
.mini-sm h3 { font-size: 1.12rem; }
.mini-sm p { font-size: 1rem; }

.rows { background: var(--ink); color: #e9e9e6; padding-block: var(--section); }
.rows .section-title { color: #fff; }
.rows .section-lede { color: #b9bbc0; }
.rows :focus-visible, .foot :focus-visible { outline-color: var(--amber); }
.shot-wide { margin-bottom: 56px; }
.rows .shot img { border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.8); }
.rows .shot figcaption { color: #9ea1a8; }
.defs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin: 0 0 36px; }
.defs div { border-top: 2px solid var(--amber); padding-top: 16px; }
.defs dt { font: 750 1.2rem/1.25 var(--display); font-stretch: 104%; color: #fff; margin-bottom: 8px; }
.defs dd { margin: 0; color: #c1c3c8; font-size: 1.06rem; }
.rows-more { margin: 0; color: #c1c3c8; max-width: 70ch; }
.rows-more a { color: #fff; }

.plain { list-style: none; padding: 0; margin: 0 0 1em; }
.plain li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); }
.plain li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); }
.flow { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px 26px; }
.flow figcaption { font: 700 0.95rem/1.2 var(--display); font-stretch: 104%; color: var(--muted); margin-bottom: 16px; }
.flow ol { list-style: none; margin: 0; padding: 0; position: relative; }
.flow ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.flow li { position: relative; padding: 0 0 18px 40px; display: grid; gap: 2px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 5px; background: var(--white); border: 2px solid var(--ink); }
.flow li.flow-start::before { background: var(--amber); }
.flow b { font: 700 1.1rem/1.3 var(--display); font-stretch: 102%; }
.flow span { color: var(--muted); font-size: 1rem; line-height: 1.45; }

.safety { background: var(--white); padding-block: var(--section); }
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0 0 clamp(32px, 5vw, 56px); }
.guards div { border-top: 3px solid var(--ink); padding-top: 18px; }
.guards dt { font: 800 clamp(1.4rem, 2.4vw, 1.85rem)/1.15 var(--display); font-stretch: 108%; margin-bottom: 10px; text-wrap: balance; }
.guards dt code { font-size: 0.8em; background: var(--amber); }
.guards dd { margin: 0; font-size: 1.12rem; color: #33363c; max-width: 34em; }
.ledger-group { display: grid; grid-template-columns: minmax(150px, 0.42fr) minmax(0, 2.2fr); gap: 8px 32px; padding-top: 26px; }
.ledger-group + .ledger-group { margin-top: 18px; }
.ledger-group h3 { font: 750 1rem/1.3 var(--display); font-stretch: 104%; color: var(--amber-deep); padding-top: 18px; }
.ledger { margin: 0; }
.ledger div { display: grid; grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.5fr); gap: 8px 40px; padding: 18px 0; border-top: 1px solid var(--line); }
.ledger div:last-child { border-bottom: 1px solid var(--line); }
.ledger dt { font: 650 1.05rem/1.4 var(--body); color: #33363c; }
.ledger dd { margin: 0; font-size: 1.12rem; line-height: 1.5; color: var(--ink); }

.compare { padding-block: var(--section); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.table-scroll:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 980px; font-size: 0.98rem; line-height: 1.4; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { font: 700 1rem/1.2 var(--display); background: var(--paper); white-space: nowrap; }
thead a { text-decoration: none; }
thead a:hover { text-decoration: underline; }
tbody th { font-weight: 700; width: 17%; position: sticky; left: 0; background: var(--white); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.us { background: var(--amber-pale); font-weight: 600; }
thead .us { background: var(--amber); }
.fine-dark { margin-top: 18px; font-size: 0.98rem; color: var(--muted); max-width: 68ch; }
.cmp-pick { display: none; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; font-weight: 600; }
.cmp-sum { flex-basis: 100%; margin: 4px 0 0; font-weight: 400; color: var(--muted); font-size: 1rem; }
.cmp-pick select { font: 600 1rem var(--body); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 8px; padding: 9px 12px; min-height: 44px; }

.install { background: var(--white); padding-block: var(--section); }
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -2px 0 var(--line); margin-bottom: 24px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.tabs button { font: 700 1.05rem var(--body); background: none; border: 0; padding: 12px 18px; cursor: pointer; color: var(--muted); border-bottom: 4px solid transparent; flex: none; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.tabs button:hover { color: var(--ink); }
.panel { max-width: 46em; }
.get-cta { margin-top: 22px; }
.code { position: relative; margin: 0 0 1.2em; }
.code pre { margin: 0; background: var(--ink); color: #f1f1ef; border-radius: 10px; padding: 50px 18px 18px; overflow-x: auto; white-space: pre; font: 0.9rem/1.55 var(--mono); }
.code code { background: none; padding: 0; font-size: inherit; }
.copy { position: absolute; top: 8px; right: 8px; font: 700 0.85rem var(--body); background: #34373e; color: #fff; border: 0; border-radius: 7px; padding: 7px 12px; cursor: pointer; }
.copy:hover { background: #4a4e57; }
.copy:focus-visible { outline-color: var(--amber); }
.steps-title { font: 750 1.5rem/1.2 var(--display); font-stretch: 106%; margin: 56px 0 18px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 56px; max-width: 46em; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--amber); font: 800 1.1rem/38px var(--display); text-align: center; }
.needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.needs h3 { font: 750 1.3rem/1.2 var(--display); font-stretch: 104%; margin-bottom: 12px; }

.faq { padding-block: var(--section); }
.faq details { max-width: 880px; border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.15rem/1.35 var(--display); font-stretch: 102%; padding: 14px 36px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.6rem; line-height: 1; color: var(--amber-deep); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; max-width: 40em; }

.final { background: var(--amber); padding-block: clamp(56px, 8vw, 96px); }
.final-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.final h2 { font-weight: 800; font-stretch: 114%; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.final p { font-size: 1.22rem; }

.foot { background: var(--ink); color: #b4b7bd; padding-block: 56px 64px; font-size: 0.92rem; line-height: 1.55; }
.foot .wrap > p, .legal p { max-width: 72ch; }
.legal summary { cursor: pointer; color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--amber); }
.legal[open] summary::after { content: "\2212"; }
.legal[open] summary { margin-bottom: 10px; }
.foot a { color: #fff; }
.foot b { color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; }
.foot-top ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; font-size: 1rem; }
.brand-foot { color: #fff; font-size: 1.25rem; }

/* Screenshot viewer */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(12, 13, 15, 0.86); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox p { margin: 12px 0 0; text-align: center; color: #c9ccd2; font-size: 0.95rem; }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.lightbox-close { font: 700 0.95rem var(--body); background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.lightbox-close:focus-visible { outline-color: var(--amber); }

@media (max-width: 980px) {
  .hero-grid, .problem, .features-intro, .final-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .shot { order: 0; }
  .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks { display: none; }
  .nav-install { display: inline-flex; }
  .brand { margin-right: auto; }
  .top { gap: 16px; }
  .barlinks { display: none; }
  .bar-in { justify-content: space-between; }
  .ledger-group { grid-template-columns: minmax(0, 1fr); }
  .ledger-group h3 { padding-top: 0; }
}
@media (max-width: 700px) {
  .hero { padding-left: 0; }
  .hero::before { display: none; }
  .top { padding: 16px 20px; }
  .wrap { padding-inline: 20px; }
  .defs, .shot-pair, .needs { grid-template-columns: minmax(0, 1fr); }
  .ledger div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .demo-foot { flex-direction: column; align-items: stretch; text-align: left; }
  .demo-list label { padding-inline: 14px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero .lede { font-size: 1.15rem; margin: 18px 0 22px; }
  .hero .release { display: none; }
  .hero-grid { gap: 28px; padding-top: 12px; }
  .guards { grid-template-columns: minmax(0, 1fr); }
  .mini-sm { grid-template-columns: minmax(0, 1fr); }
  .mini-sm .shot { grid-row: auto; margin-bottom: 16px; }
  .steps li { padding-left: 52px; }
  .minis { grid-template-columns: minmax(0, 1fr); }
  .cmp-pick { display: flex; }
  .cmp-picking { min-width: 0; table-layout: fixed; }
  .cmp-picking .cmp-off { display: none; }
  .cmp-picking tbody th { position: static; width: 34%; }
  .bar-in { padding-inline: 20px; }
  .demo-confirm input { flex-basis: 100%; }
  .demo-confirm-row .btn { flex: 1 1 0; }
  .demo-actions .btn { flex: 1 1 100%; }
  .tabs button { padding: 12px 14px; }
  /* Phones: show the phone screenshot instead of a shrunken desktop one */
  .shot-combo { padding: 0; }
  .zoom-desk { display: none; }
  .zoom-phone { position: static; width: min(300px, 82%); margin-inline: auto; }
  /* Other screenshots: crop into the top-left so the text is readable */
  .crop-sm .zoom { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid rgba(23, 24, 27, 0.18); background: var(--slate); }
  .crop-sm .zoom img { width: 175%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
}
@media (pointer: coarse) {
  .zoom-hint { opacity: 1; }
  .copy { min-height: 44px; min-width: 64px; }
  .foot-top ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .legal summary { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
