/* fyourstartup.com. Tokens only, three text sizes, two radii and a pill, no shadows, no motion. v3 white (D92). See DESIGN.md. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fys-paper); color: var(--fys-ink); font-family: var(--fys-font); font-size: var(--fys-size); line-height: var(--fys-lh); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--fys-text); }
body > header, body > main, body > footer { max-width: var(--fys-wide); margin-inline: auto; padding-inline: var(--fys-space); }
body > main { padding-block: calc(var(--fys-space) * 3) calc(var(--fys-space) * 5); }
h1, h2, h3 { font-size: var(--fys-text); font-weight: 600; margin: 0 0 var(--fys-space); line-height: 1.3; letter-spacing: -0.012em; }
h1 { font-size: var(--fys-text-lg); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 calc(var(--fys-space) * 0.5); }
h2 { margin-top: calc(var(--fys-space) * 2.5); }
h2:first-child { margin-top: 0; }
p, ul, ol, pre, table, dl { margin: 0 0 var(--fys-space); }
p, li, dd { max-width: var(--fys-measure); }
ul { padding-left: 1.2em; }
ol { padding-left: 1.4em; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--fys-muted); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { text-decoration-color: var(--fys-ink); text-decoration-thickness: 2px; outline: none; }
mark { background: var(--fys-accent); color: var(--fys-surface); padding: 0 0.3em; border-radius: var(--fys-radius-sm); }
s { color: var(--fys-muted); }
strong, b { font-weight: 600; }
small, .muted, .sm { color: var(--fys-muted); }
.sm { font-size: var(--fys-text-sm); }
code, kbd, pre, .mono { font-family: var(--fys-mono); font-size: var(--fys-text-sm); }
code { background: var(--fys-well); border: var(--fys-border); border-radius: var(--fys-radius-sm); padding: 0.05em 0.4em; }
pre { background: var(--fys-well); border: var(--fys-border); border-radius: var(--fys-radius); padding: var(--fys-space) calc(var(--fys-space) * 1.25); overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
hr { border: 0; border-top: var(--fys-border); margin: calc(var(--fys-space) * 2) 0; }
dt { font-weight: 600; }
dd { margin: 0 0 var(--fys-space) 0; }

/* ---- header: one row; the mark, the pages, you ---- */
body > header { padding-block: calc(var(--fys-space) * 1.1); border-bottom: var(--fys-border); }
nav.site { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.75rem; }
nav.site a { text-decoration: none; color: var(--fys-muted); }
nav.site a:hover, nav.site a:focus-visible { color: var(--fys-ink); }
nav.site a[aria-current="page"] { color: var(--fys-ink); font-weight: 600; }
nav.site a.mark { color: var(--fys-ink); margin-right: 0.75rem; }
nav.site a.right { margin-left: auto; border: var(--fys-border); border-radius: var(--fys-pill); padding: 0.4rem 0.95rem; color: var(--fys-ink); line-height: 1.3; }
nav.site a.right:hover, nav.site a.right:focus-visible { border-color: var(--fys-ink); }
/* the quick bar: "your apps" at the right of the bar; on hover or focus it lists the ones used last */
nav.site .nav-recent { margin-left: auto; position: relative; }
nav.site .nav-recent + a.right { margin-left: 0; }
nav.site .nav-apps::after { content: " \25BE"; }
nav.site .nav-menu { display: none; position: absolute; right: 0; top: 100%; z-index: 5; min-width: 13rem; padding: 0.5rem; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); flex-direction: column; gap: 0.1rem; }
nav.site .nav-recent:hover .nav-menu, nav.site .nav-recent:focus-within .nav-menu { display: flex; }
nav.site .nav-menu > span { padding: 0.2rem 0.6rem; }
nav.site .nav-menu a { padding: 0.4rem 0.6rem; border-radius: var(--fys-radius-sm); color: var(--fys-ink); white-space: nowrap; }
nav.site .nav-menu a:hover, nav.site .nav-menu a:focus-visible { background: var(--fys-well); }
nav.site .nav-menu a.sm { color: var(--fys-muted); border-top: var(--fys-border); border-radius: 0; margin-top: 0.3rem; padding-top: 0.55rem; }
@media (max-width: 900px) { nav.site .nav-recent { display: none; } }
nav.site a.right[aria-current="page"] { background: var(--fys-well); font-weight: 600; }
.mark { font-family: var(--fys-mono); font-weight: 700; }
.hero .mark { font-family: var(--fys-font); font-weight: 600; letter-spacing: -0.02em; }
.mark::after { content: "_"; color: var(--fys-accent); }
/* signed-in area: tabs under the header, the current one underlined in blue */
nav.tabs { display: flex; flex-wrap: wrap; gap: 0 1.25rem; border-bottom: var(--fys-border); margin: calc(var(--fys-space) * -2) 0 calc(var(--fys-space) * 2); }
nav.tabs a { display: inline-block; padding: 0.7rem 0; text-decoration: none; color: var(--fys-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a:hover { color: var(--fys-ink); }
nav.tabs a[aria-current="page"] { color: var(--fys-ink); border-bottom-color: var(--fys-free); font-weight: 600; }
body > footer { border-top: var(--fys-border); padding-block: calc(var(--fys-space) * 1.5) calc(var(--fys-space) * 3); color: var(--fys-muted); font-size: var(--fys-text-sm); display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
body > footer p { margin: 0; }
body > footer a { text-decoration: none; color: inherit; }
body > footer a:hover { color: var(--fys-ink); }

/* ---- title block ---- */
.title { margin-bottom: calc(var(--fys-space) * 2.5); }
.title .lede { max-width: var(--fys-measure); }
.title .row { margin-top: var(--fys-space); }

/* ---- surfaces ---- */
.panel { background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.5); }
.panel.well { background: var(--fys-well); border-color: var(--fys-well); }
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3 { margin-top: 0; }
.panel.quiet { background: transparent; }
.panel.hot { border-color: var(--fys-accent); }
.grid { display: grid; gap: calc(var(--fys-space) * 1.25); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0 0 calc(var(--fys-space) * 2); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid.two { grid-template-columns: minmax(0, 1fr); } }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.split { display: grid; gap: calc(var(--fys-space) * 2); grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
.split > aside { position: sticky; top: var(--fys-space); }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } .split > aside { position: static; order: -1; } }
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat .n { font-size: var(--fys-text-lg); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--fys-muted); font-size: var(--fys-text-sm); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 0 0 var(--fys-space); }
.kv dt { color: var(--fys-muted); font-weight: 400; }
.kv dd { margin: 0; min-width: 0; }
.kv dd code { word-break: break-all; white-space: normal; }
.stack > * + * { margin-top: var(--fys-space); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.row.between { justify-content: space-between; }
.spread { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.section { margin: calc(var(--fys-space) * 2.5) 0 0; }
.section > h2 { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 0; }
.section > h2 .sm { font-weight: 400; }
h2 a.sm { font-weight: 400; margin-left: 0.5rem; }

/* ---- labels ---- */
.tag { display: inline-block; font-size: var(--fys-text-sm); font-weight: 600; color: var(--fys-free); letter-spacing: 0.02em; }
.chip { display: inline-block; font-size: var(--fys-text-sm); line-height: 1.7; padding: 0 0.65em; border: var(--fys-border); border-radius: var(--fys-pill); color: var(--fys-muted); text-decoration: none; background: var(--fys-well); white-space: nowrap; }
a.chip:hover, a.chip[aria-current="true"] { color: var(--fys-ink); border-color: var(--fys-ink); }
.chip.price { color: var(--fys-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.hot { color: var(--fys-accent); border-color: var(--fys-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 var(--fys-space); }
.chips a { }
.badge { color: var(--fys-muted); font-size: var(--fys-text-sm); }

/* ---- buttons and forms ---- */
button, .btn { font: inherit; font-size: var(--fys-text); font-weight: 600; color: var(--fys-ink); background: var(--fys-surface); border: 1px solid var(--fys-line); border-radius: var(--fys-pill); padding: 0.55rem 1.1rem; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; }
button:hover, .btn:hover, button:focus-visible, .btn:focus-visible { border-color: var(--fys-ink); outline: none; }
.btn.primary, button.primary { background: var(--fys-ink); color: var(--fys-paper); border-color: var(--fys-ink); }
.btn.primary:hover, button.primary:hover, button.primary:focus-visible { background: var(--fys-accent); border-color: var(--fys-accent); color: var(--fys-surface); }
.btn.quiet, button.quiet { background: var(--fys-well); border-color: var(--fys-well); font-weight: 500; }
.btn.quiet:hover, button.quiet:hover { border-color: var(--fys-ink); }
.btn.sm, button.sm { font-size: var(--fys-text-sm); padding: 0.3rem 0.7rem; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
label .muted { font-weight: 400; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { font: inherit; font-size: var(--fys-text); color: var(--fys-ink); background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius-sm); padding: 0.6rem 0.8rem; outline: none; width: 100%; max-width: 32rem; }
textarea, input[type="text"].mono { font-family: var(--fys-mono); font-size: var(--fys-text-sm); }
input:focus, textarea:focus, select:focus { border-color: var(--fys-ink); }
input::placeholder, textarea::placeholder { color: var(--fys-muted); }
.field { margin-bottom: var(--fys-space); }
.field .hint { color: var(--fys-muted); font-size: var(--fys-text-sm); margin: 0.3rem 0 0; }
form.narrow { max-width: 24rem; }
.flash { border-left: 3px solid var(--fys-accent); border-radius: var(--fys-radius-sm); padding: 0.6rem 1rem; margin: 0 0 var(--fys-space); background: var(--fys-well); }
.flash.ok { border-left-color: var(--fys-free); }
.cmd { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--fys-mono); font-size: var(--fys-text-sm); background: var(--fys-well); border: var(--fys-border); border-radius: var(--fys-pill); padding: 0.35rem 0.4rem 0.35rem 0.9rem; max-width: 100%; }
.cmd code { min-width: 0; border: 0; padding: 0; background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd button { font-size: var(--fys-text-sm); padding: 0.15rem 0.7rem; font-weight: 500; border-color: var(--fys-line); background: var(--fys-surface); }
pre.cmds { padding: 0.75rem var(--fys-space); }
pre.cmds b { color: var(--fys-free); font-weight: 400; }

/* ---- tables ---- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.9rem 0.5rem 0; vertical-align: top; border-bottom: var(--fys-border); }
th { font-weight: 600; color: var(--fys-muted); font-size: var(--fys-text-sm); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: 0 var(--fys-space); margin: 0 0 var(--fys-space); }
.table-wrap table { margin: 0; }
td.this { font-weight: 600; }

/* ---- dialogs: one job, opened by a button, closed by esc or the x ---- */
dialog { color: var(--fys-ink); background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 2); width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; }
dialog::backdrop { background: var(--fys-ink); opacity: 0.4; }
dialog h2 { margin-top: 0; }
dialog .close { position: absolute; top: 0.6rem; right: 0.6rem; }
dialog > :last-child { margin-bottom: 0; }
dialog[open] { margin: auto; }
.fallback { display: none; }
html.nojs dialog { display: block; position: static; width: auto; max-height: none; margin: 0 0 var(--fys-space); }

/* ---- front page ---- */
.hero { padding: calc(var(--fys-space) * 2) 0 var(--fys-space); }
.hero h1 { max-width: 30ch; }
.hero .lede { font-size: var(--fys-text-lg); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; max-width: 30ch; margin: var(--fys-space) 0 calc(var(--fys-space) * 1.25); }
.hero .lede mark { background: none; color: var(--fys-accent); padding: 0; white-space: nowrap; }
.hero > .muted { max-width: 48ch; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--fys-space); align-items: stretch; margin: calc(var(--fys-space) * 2) 0; }
.flow .step { background: var(--fys-well); border: 0; border-radius: var(--fys-radius); padding: var(--fys-space) calc(var(--fys-space) * 1.25); }
.flow .step h3 { margin: 0 0 0.5rem; }
.flow .step ul { list-style: none; padding: 0; margin: 0; color: var(--fys-muted); }
.flow .step li { max-width: none; }
.flow .to { align-self: center; color: var(--fys-muted); font-family: var(--fys-mono); }
@media (max-width: 720px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow .to { transform: rotate(90deg); justify-self: center; } }
.asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: var(--fys-space); list-style: none; padding: 0; margin: 0 0 calc(var(--fys-space) * 2); }
.asks li { background: var(--fys-well); border: 0; border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.1) calc(var(--fys-space) * 1.4); max-width: none; }
.asks li::before { content: "\201C"; color: var(--fys-muted); }
.asks li::after { content: "\201D"; color: var(--fys-muted); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--fys-space); margin: calc(var(--fys-space) * 2.5) 0 calc(var(--fys-space) * 2); }
.three > div { border-top: var(--fys-border); padding-top: 0.75rem; }
.three .tag { display: block; margin-bottom: 0.25rem; color: var(--fys-ink); font-size: var(--fys-text); }
.three p { margin: 0; }
.cta { margin-top: calc(var(--fys-space) * 1.5); }

/* ---- catalog: rows that scan; a monogram tile, name over blurb, meta at the right ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0 0 var(--fys-space); }
.toolbar input[type="search"] { max-width: 20rem; }
.sort { color: var(--fys-muted); font-size: var(--fys-text-sm); }
.sort a { text-decoration: none; padding: 0 0.25rem; }
.sort a[aria-current="true"] { color: var(--fys-ink); font-weight: 600; }
.rows { list-style: none; padding: 0; margin: 0 0 var(--fys-space); background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); }
.rows li { max-width: none; border-bottom: var(--fys-border); }
.rows li:last-child { border-bottom: 0; }
.rows li > a, .rows li.planned { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem var(--fys-space); text-decoration: none; }
.rows li > a:hover { background: var(--fys-well); }
.rows .tile { flex: none; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border: var(--fys-border); border-radius: var(--fys-radius-sm); background: var(--fys-well); }
.rows .tile svg { width: 1.25rem; height: 1.25rem; }
.rows .who { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; }
.rows .name { font-weight: 600; }
.rows .blurb { color: var(--fys-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .meta { flex: none; display: flex; align-items: center; gap: 0.35rem; font-size: var(--fys-text-sm); color: var(--fys-muted); }
.rows .meta .n { min-width: 6rem; text-align: right; font-variant-numeric: tabular-nums; }
.rows li.planned { color: var(--fys-muted); }
.rows li.planned .name { font-weight: 400; }
.rows li.empty { border: 0; }
@media (max-width: 640px) { .rows .blurb { white-space: normal; } .rows .meta .n { display: none; } }
.results .rows { margin-top: var(--fys-space); }

/* ---- app page ---- */
.app-head { display: flex; align-items: flex-start; gap: var(--fys-space); margin-bottom: var(--fys-space); }
.app-head .mark-svg { flex: none; margin-top: 0.2rem; }
.tools-list { list-style: none; padding: 0; margin: 0; }
.tools-list li { display: grid; grid-template-columns: 12rem 1fr; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: var(--fys-border); max-width: none; }
.tools-list li:last-child { border-bottom: 0; }
.tools-list > li > code { white-space: nowrap; background: none; border: 0; padding: 0; font-weight: 600; justify-self: start; }
.tools-list .ex { color: var(--fys-muted); font-family: var(--fys-mono); font-size: var(--fys-text-sm); word-break: break-word; }
@media (max-width: 600px) { .tools-list li { grid-template-columns: minmax(0, 1fr); } }
.demo textarea { width: 100%; max-width: none; min-height: 5rem; }
.demo select { max-width: 100%; }
.out { margin: var(--fys-space) 0 0; white-space: pre-wrap; }
.versions td:first-child { font-family: var(--fys-mono); font-size: var(--fys-text-sm); }
details { border: var(--fys-border); border-radius: var(--fys-radius-sm); background: var(--fys-surface); padding: 0.7rem 1rem; margin-bottom: var(--fys-space); }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 0.6rem; }
iframe.frame { width: 100%; height: min(80vh, 900px); border: var(--fys-border); border-radius: var(--fys-radius); background: var(--fys-surface); } /* the iframe only: .cover.frame is the hero shot's top bar and must keep its 16:10 */

/* ---- lists in the account area ---- */
.list { list-style: none; padding: 0 var(--fys-space); margin: 0 0 var(--fys-space); background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); }
.panel .list, details .list { padding: 0; border: 0; background: none; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; padding: 0.7rem 0; border-bottom: var(--fys-border); max-width: none; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1 1 12rem; min-width: 0; }
.list .name { font-weight: 600; }
.empty { color: var(--fys-muted); border: 1px dashed var(--fys-line); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 2); text-align: center; max-width: none; }
.mark-svg { vertical-align: middle; }
.mark-svg rect { fill: currentColor; }
.mark-svg rect.a { fill: var(--fys-accent); }
.providers { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.or { color: var(--fys-muted); font-size: var(--fys-text-sm); margin: var(--fys-space) 0; }
.auth { max-width: 24rem; margin: calc(var(--fys-space) * 2) auto; }
.auth h1 { text-align: left; }

/* ---- the one motion: the logo (DESIGN.md) ---- */
.logo .f { display: inline-block; color: var(--fys-ink); transition: color 0.8s ease; } /* fys-lint-ignore: the one motion */
.logo .f.blue { color: var(--fys-free); }
.logo .f.red { color: var(--fys-f); }
.logo .ree { display: inline-block; color: var(--fys-free); max-width: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap; opacity: 0; transition: max-width 0.6s ease, opacity 0.6s ease; } /* fys-lint-ignore: see above */
.logo .ree.in { max-width: 6ch; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .logo .f, .logo .ree { transition: none; }
  .logo .f { color: var(--fys-f); }
  .logo .ree { max-width: 0; opacity: 0; }
}
@media (max-width: 480px) { h1 { font-size: var(--fys-text-lg); } body > main { padding-block: var(--fys-space) calc(var(--fys-space) * 3); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details textarea { width: 100%; max-width: none; }
form.inline select, .row select { width: auto; display: inline-block; vertical-align: middle; }
/* phone header: two tidy rows. the mark and you on the first, the pages on the second */
@media (max-width: 480px) {
  nav.site { gap: 0.6rem 1.1rem; }
  nav.site a.right { order: 1; }
  nav.site::after { content: ""; order: 2; flex-basis: 100%; height: 0; margin-top: -0.6rem; }
  nav.site a:not(.mark):not(.right) { order: 3; padding-block: 0.3rem; }
}
@media (max-width: 480px) { nav.tabs { gap: 0 0.9rem; font-size: var(--fys-text-sm); } }

.chat .ai { color: var(--fys-ink); }
.panel.stat p { font-size: var(--fys-text); color: var(--fys-ink); margin: 0.6rem 0 0; }

/* ===== v3 components (docs/design-plan-v3.md): cover, card, band, stat tile, sticky bar, sidebar ===== */
/* cover: the app's real screen, 16:10, or the monogram on a tinted tile */
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fys-well); border: var(--fys-border); border-radius: var(--fys-radius); display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.cover .mark-svg { width: 34%; height: auto; opacity: 0.9; }
.cover.frame { border-top-width: 10px; }
/* card: cover, name, one line, a meta row. grid on desktop, one column on phones */
.cards { list-style: none; padding: 0; margin: 0 0 var(--fys-space); display: grid; gap: var(--fys-space); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.cards.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cards.wide { grid-template-columns: minmax(0, 1fr); } }
.cards li { max-width: none; }
.card { display: flex; flex-direction: column; gap: 0.65rem; height: 100%; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: 0.85rem; text-decoration: none; color: inherit; }
.card:hover { border-color: var(--fys-muted); }
.card .cover { border-radius: var(--fys-radius-sm); }
.card .name { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.card .blurb { color: var(--fys-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .meta { margin-top: auto; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: var(--fys-text-sm); color: var(--fys-muted); }
.card .meta .chip.price { margin-right: auto; }
.card.planned { border-style: dashed; }
.card.planned .name { color: var(--fys-muted); font-weight: 400; }
/* band: a full-width tinted section for rhythm */
.band { background: var(--fys-well); border: 0; margin: calc(var(--fys-space) * 3) calc(-1 * var(--fys-space)); padding: calc(var(--fys-space) * 3) var(--fys-space); }
@media (min-width: 1072px) { .band { margin-inline: calc((100vw - var(--fys-wide)) / -2 - var(--fys-space) + var(--fys-space)); padding-inline: max(var(--fys-space), calc((100vw - var(--fys-wide)) / 2 + var(--fys-space))); margin-inline: calc(-50vw + 50%); } }
.band > * { max-width: var(--fys-wide); margin-inline: auto; }
.band > h2 { margin-top: 0; }
/* stat tiles in a row */
.stats { display: grid; gap: var(--fys-space); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0 0 var(--fys-space); }
.stats .panel { padding: calc(var(--fys-space) * 1.25) calc(var(--fys-space) * 1.5); }
.stats.plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.plain .stat { border-top: var(--fys-border); padding-top: 0.5rem; }
/* section head: title left, a link or tabs right */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 var(--fys-space); }
.head h2 { margin: 0; }
.head .sm a { text-decoration: none; }
/* tabs as pills (catalog sort, library) */
.pills { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0 0 var(--fys-space); }
.pills li { max-width: none; }
.pills a, .pills button { display: inline-block; padding: 0.3rem 0.8rem; border: var(--fys-border); border-radius: var(--fys-pill); text-decoration: none; color: var(--fys-muted); background: var(--fys-surface); font: inherit; cursor: pointer; }
.pills a:hover, .pills button:hover { color: var(--fys-ink); border-color: var(--fys-ink); background: var(--fys-surface); }
.pills a[aria-current="true"], .pills button[aria-current="true"] { color: var(--fys-paper); background: var(--fys-ink); border-color: var(--fys-ink); }
/* hero, v3: text left, the product right */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: calc(var(--fys-space) * 3); align-items: center; padding: calc(var(--fys-space) * 3) 0 calc(var(--fys-space) * 2); }
.hero .lede { font-size: var(--fys-text-xl); line-height: 1.04; max-width: 12ch; }
.hero .shot { position: relative; }
.hero .shot .cover { aspect-ratio: 16 / 10; }
.hero .shot .cmd { position: absolute; right: -0.5rem; bottom: -0.75rem; background: var(--fys-ink); color: var(--fys-paper); border-color: var(--fys-ink); padding: 0.5rem 1rem; }
.hero .shot .cmd code { color: inherit; }
@media (max-width: 800px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero .lede { font-size: var(--fys-text-lg); max-width: none; } .hero .shot .cmd { position: static; margin-top: 0.5rem; } }
.hosts { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 0.35rem 0.5rem; align-items: center; color: var(--fys-muted); font-size: var(--fys-text-sm); margin: 0 0 calc(var(--fys-space) * 2); }
/* sticky bar on app pages */
.sticky { position: sticky; top: 0; z-index: 2; background: var(--fys-paper); border-bottom: var(--fys-border); margin: 0 calc(-1 * var(--fys-space)) var(--fys-space); padding: 0.5rem var(--fys-space); display: none; align-items: center; gap: 1rem; }
.sticky.on { display: flex; }
.sticky .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
/* seller dashboard: sidebar + title bar */
.dash { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: calc(var(--fys-space) * 3); align-items: start; }
.dash > nav { position: sticky; top: var(--fys-space); display: flex; flex-direction: column; gap: 0.15rem; }
.dash > nav a { padding: 0.5rem 0.9rem; border-radius: var(--fys-pill); text-decoration: none; color: var(--fys-muted); }
.dash > nav a:hover { color: var(--fys-ink); background: var(--fys-well); }
.dash > nav a[aria-current="page"] { color: var(--fys-ink); background: var(--fys-well); font-weight: 600; }
.dash > nav .gap { flex: 1; min-height: var(--fys-space); }
.dash > nav details.more { display: flex; flex-direction: column; border: 0; background: none; padding: 0; margin: 0; border-radius: 0; }
.dash > nav details.more > summary { list-style: none; cursor: pointer; padding: 0.5rem 0.9rem; margin: 0; border-radius: var(--fys-pill); color: var(--fys-muted); font-weight: 400; }
.dash > nav details.more > summary::-webkit-details-marker { display: none; }
.dash > nav details.more > summary::after { content: " +"; }
.dash > nav details.more[open] > summary::after { content: " −"; }
.dash > nav details.more > summary:hover { color: var(--fys-ink); background: var(--fys-well); }
.dash > nav details.more > a { display: block; }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 calc(var(--fys-space) * 2); }
.titlebar h1 { margin: 0; }
@media (max-width: 800px) { .dash { grid-template-columns: minmax(0, 1fr); } .dash > nav { position: static; flex-direction: row; flex-wrap: wrap; border-bottom: var(--fys-border); padding-bottom: 0.5rem; } .dash > nav details.more[open] { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; } .dash > nav details.more[open] > summary { flex-basis: 100%; } }
/* getting started tiles */
.tiles { display: grid; gap: var(--fys-space); grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); margin: 0 0 var(--fys-space); list-style: none; padding: 0; }
.tiles li { max-width: none; }
.tile { display: block; background: var(--fys-well); border: 1px solid var(--fys-well); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.1) calc(var(--fys-space) * 1.2); text-decoration: none; color: inherit; height: 100%; }
.tile .n { font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.tile .l { color: var(--fys-muted); font-size: var(--fys-text-sm); }
.tile.done { background: var(--fys-surface); border-color: var(--fys-line); }
.tile.done .n::after { content: "done"; color: var(--fys-free); font-size: var(--fys-text-sm); font-weight: 600; }
.tile:not(.done):hover { border-color: var(--fys-ink); }
/* banners: something blocks, with the fix as a link */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; background: var(--fys-surface); border: var(--fys-border); border-left: 3px solid var(--fys-accent); border-radius: var(--fys-radius); padding: 0.9rem calc(var(--fys-space) * 1.25); margin: 0 0 var(--fys-space); }
.banner p { margin: 0; max-width: none; flex: 1; }
/* rating bars */
.bars { display: grid; grid-template-columns: max-content 1fr max-content; gap: 0.3rem 0.75rem; align-items: center; font-size: var(--fys-text-sm); color: var(--fys-muted); margin: 0 0 var(--fys-space); }
.bars progress { width: 100%; height: 0.6rem; accent-color: var(--fys-accent); }
.stars { color: var(--fys-ink); letter-spacing: 0.05em; }
.review { border-top: var(--fys-border); padding: 0.75rem 0; }
.review .reply { margin: 0.5rem 0 0 1.5rem; padding-left: 0.75rem; border-left: 2px solid var(--fys-line); color: var(--fys-muted); }
.empty .mark-svg { display: block; margin: 0 auto 0.75rem; opacity: 0.7; }
.tile input[type="radio"] { margin: 0 0.3rem 0 0; }
label.tile { cursor: pointer; }
label.tile:has(input:checked) { border-color: var(--fys-ink); }
.row.tight { margin: 0; font-weight: 400; }
input.short { max-width: 8rem; }

/* ===== v3 white (D92): the profile header on the account page ===== */
.profile { display: flex; align-items: center; gap: calc(var(--fys-space) * 1.25); background: var(--fys-well); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.5); margin: 0 0 calc(var(--fys-space) * 1.25); }
.profile .avatar { flex: none; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); }
.profile .avatar svg { width: 2.25rem; height: 2.25rem; }
.profile .who { flex: 1 1 14rem; min-width: 0; }
.profile .name { font-size: var(--fys-text-lg); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.profile .sub { color: var(--fys-muted); margin: 0.25rem 0 0; max-width: none; }
.profile .sub + .sub { margin-top: 0.15rem; }
.profile .sub form { display: inline; }
.profile .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.profile .quiet, .tile .quiet, .band .quiet { background: var(--fys-surface); border-color: var(--fys-line); }
.panel form.row { gap: 0.4rem 0.5rem; }
.panel.connect .cmd { font-size: var(--fys-text); padding: 0.5rem 0.5rem 0.5rem 1.1rem; }
.panel.connect .cmd button { font-size: var(--fys-text-sm); padding: 0.3rem 0.9rem; }
.panel .stat + .row, .panel .stat + form { margin-top: var(--fys-space); }
@media (max-width: 600px) { .profile { flex-wrap: wrap; } .profile .actions { width: 100%; } }

/* ===== front page, feature rows (D93): heading, one sentence, a picture of the product; alternate sides ===== */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: calc(var(--fys-space) * 3); align-items: center; padding: calc(var(--fys-space) * 3) 0; border-top: var(--fys-border); }
.feature + .feature:nth-of-type(even) .visual { order: -1; }
.feature h2 { font-size: var(--fys-text-lg); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 0.75rem; }
.feature .text p { max-width: 40ch; }
.feature .text pre.cmds { display: inline-block; margin: var(--fys-space) 0 0; }
.feature .visual .cover { aspect-ratio: 16 / 10; }
.feature pre.tree { margin: 0; padding: calc(var(--fys-space) * 2); font-size: var(--fys-text); line-height: 1.7; }
.feature .price-card { max-width: 22rem; margin-inline: auto; }
.feature .price-card .stat .l { font-size: var(--fys-text); color: var(--fys-muted); margin-top: 0.35rem; }
.feature .price-card .row { margin: var(--fys-space) 0 0.5rem; }
.feature .price-card .btn { pointer-events: none; }
.feature .price-card p:last-child { margin: 0; }
@media (max-width: 800px) { .feature { grid-template-columns: minmax(0, 1fr); gap: calc(var(--fys-space) * 1.5); padding: calc(var(--fys-space) * 2) 0; } .feature + .feature:nth-of-type(even) .visual { order: 0; } }

/* ===== the hero moment: an app at work inside a chat, drawn in our own style (no screenshot) ===== */
.moment { display: flex; flex-direction: column; gap: 0.7rem; background: var(--fys-well); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.5); }
.moment p { margin: 0; max-width: none; }
.moment .you { align-self: flex-end; background: var(--fys-ink); color: var(--fys-paper); border-radius: var(--fys-radius); border-bottom-right-radius: var(--fys-radius-sm); padding: 0.6rem 0.95rem; max-width: 78%; }
.moment .bot { align-self: flex-start; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); border-bottom-left-radius: var(--fys-radius-sm); padding: 0.7rem 1rem; max-width: 86%; }
.moment .bot p + p { margin-top: 0.5rem; }
.moment .via { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.moment .where { align-self: center; color: var(--fys-muted); font-size: var(--fys-text-sm); margin-top: 0.4rem; }
.moment .where code { background: var(--fys-surface); }
@media (max-width: 800px) { .moment { padding: var(--fys-space); } }

/* ===== pricing and sell: three tiers, one line of numbers (D94) ===== */
.grid.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--fys-space) * 1.25); }
.grid.tiers .panel { padding: calc(var(--fys-space) * 1.75); }
.grid.tiers .tag { margin: 0 0 0.75rem; }
.grid.tiers .stat { margin: 0 0 0.9rem; }
.grid.tiers h2 { margin: 0 0 0.5rem; font-size: var(--fys-text-lg); letter-spacing: -0.03em; }
.grid.tiers p:last-child { margin: 0; color: var(--fys-muted); }
.stats.plain.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; margin: calc(var(--fys-space) * 2) 0 var(--fys-space); }
@media (max-width: 800px) { .grid.tiers { grid-template-columns: minmax(0, 1fr); } }

/* v4 (2026-11-21, D101): the catalog and the front page are grouped by who the apps are for */
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.three { grid-template-columns: minmax(0, 1fr); } }
.panel.seg h3 { margin: 0 0 0.25rem; }
.panel.seg > .muted { margin: 0 0 var(--fys-space); min-height: 3em; }
.applist { list-style: none; padding: 0; margin: 0 0 var(--fys-space); }
.applist li { max-width: none; border-top: var(--fys-border); }
.applist a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; text-decoration: none; font-weight: 600; }
.applist a .muted { font-weight: 400; font-family: var(--fys-mono); font-size: var(--fys-text-sm); }
.applist a:hover span:first-child { text-decoration: underline; }
.blocks { margin: calc(var(--fys-space) * 2) 0 var(--fys-space); border-top: var(--fys-border); padding-top: var(--fys-space); }
.blocks summary { cursor: pointer; font-weight: 600; }
.blocks .rows { margin-top: var(--fys-space); }
.title.spread .lede { margin: 0.25rem 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 0.45rem 0 0.45rem 1.4rem; border-top: var(--fys-border); position: relative; max-width: none; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--fys-free); font-weight: 600; }
.hood { margin: calc(var(--fys-space) * 2) 0; border-top: var(--fys-border); padding-top: var(--fys-space); }
.hood > summary { cursor: pointer; font-weight: 600; margin-bottom: var(--fys-space); }
.tests { list-style: none; padding: 0; margin: 0; }
.tests li { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.5rem 0; border-top: var(--fys-border); max-width: none; }
.tests .grow { flex: 1; min-width: 0; }
.tests pre.out { white-space: pre-wrap; word-break: break-word; margin: 0.4rem 0 0; }
.chip.good { color: var(--fys-free); border-color: var(--fys-free); }
.hero .lede { max-width: 15ch; }
@media (max-width: 800px) { .hero .lede { max-width: none; } }
.applist.wanted li { padding: 0.55rem 0; }

/* ---- phones: nothing pushes the page sideways ---- */
.panel, .split > *, .grid > *, .feature > *, .hero > * { min-width: 0; }
.panel pre { max-width: 100%; }
@media (max-width: 480px) { .panel { padding: var(--fys-space); } .kv dd { overflow-wrap: anywhere; } }

/* a group's page (/for/<key>): what to ask, as wrapped lines with the prompt mark; the note under the price */
.says { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.4rem; }
.says li { max-width: none; padding: 0.5rem 0.75rem 0.5rem 1.75rem; background: var(--fys-well); border-radius: var(--fys-radius-sm); position: relative; overflow-wrap: anywhere; }
.says li::before { content: ">"; position: absolute; left: 0.75rem; color: var(--fys-free); }
.cost-note { margin: 0.9rem 0 0; }
.pills + .feature { padding: calc(var(--fys-space) * 1.5) 0 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.pills + .feature .text p.row { max-width: none; margin-top: var(--fys-space); }
.says { grid-template-columns: minmax(0, 1fr); }
.cards + .head, .ticks + .head, .feature + .head, .grid + .head { margin-top: calc(var(--fys-space) * 2.5); }

/* chat (D119, D123): your chats at the left, the open one at the right; an app's screen sits in the reply that opened it */
.chat { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: calc(var(--fys-space) * 1.5); height: calc(100vh - 14rem); min-height: 24rem; }
.chat-threads { display: flex; flex-direction: column; gap: 0.15rem; overflow-y: auto; min-height: 0; padding-right: 0.25rem; border-right: var(--fys-border); }
.chat-new { align-self: flex-start; margin: 0 0 0.6rem; }
.chat-thread { display: flex; align-items: center; gap: 0.25rem; border-radius: var(--fys-radius-sm); }
.chat-thread:hover, .chat-thread[data-active] { background: var(--fys-well); }
.chat-thread-open { flex: 1; min-width: 0; background: none; border: 0; padding: 0.4rem 0.6rem; font: inherit; font-size: var(--fys-text-sm); color: var(--fys-ink); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-drop { visibility: hidden; flex: none; }
.chat-thread:hover .chat-thread-drop, .chat-thread:focus-within .chat-thread-drop { visibility: visible; }
.chat-main { display: flex; flex-direction: column; gap: var(--fys-space); min-width: 0; min-height: 0; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--fys-space); padding: 0 0.25rem 0.25rem 0; }
.chat-empty { margin: auto 0; max-width: var(--fys-measure); }
.chat-ask { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.chat-msg { max-width: 100%; }
.chat-msg.me { align-self: flex-end; max-width: min(100%, var(--fys-measure)); background: var(--fys-well); border-radius: var(--fys-radius); padding: 0.6rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-md { max-width: var(--fys-measure); overflow-wrap: anywhere; }
.chat-md > :first-child { margin-top: 0; }
.chat-md > :last-child { margin-bottom: 0; }
.chat-md h1, .chat-md h2, .chat-md h3 { font-size: var(--fys-text); margin: 1rem 0 0.4rem; }
.chat-md table { font-size: var(--fys-text-sm); }
.chat-md pre { overflow-x: auto; background: var(--fys-well); border-radius: var(--fys-radius-sm); padding: 0.6rem 0.8rem; font-size: var(--fys-text-sm); }
.chat-tool { margin: 0.4rem 0; }
.chat-tool::before { content: "> "; color: var(--fys-free); }
.chat-wait { margin: 0; }
.chat-screen { margin: 0.6rem 0; }
.chat-screen iframe { display: block; width: 100%; height: 30rem; border: var(--fys-border); border-radius: var(--fys-radius); background: var(--fys-surface); }
.chat-screen p { margin: 0.3rem 0 0; }
.chat-pictures { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.chat-picture { display: inline-flex; align-items: center; gap: 0.4rem; border: var(--fys-border); border-radius: var(--fys-radius-sm); padding: 0.3rem; background: var(--fys-surface); }
.chat-picture img { display: block; height: 3rem; width: auto; max-width: 6rem; object-fit: cover; border-radius: var(--fys-radius-sm); }
.chat-attach { flex: none; margin: 0; font-size: var(--fys-text-sm); cursor: pointer; }
.chat-form { display: flex; gap: 0.6rem; align-items: flex-end; }
.chat-form textarea { flex: 1; min-width: 0; resize: none; }
@media (max-width: 800px) { .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 13rem); } .chat-threads { flex-direction: row; border-right: 0; overflow-x: auto; padding: 0 0 0.4rem; } .chat-new { margin: 0; } .chat-thread-open { max-width: 9rem; } .chat-screen iframe { height: 24rem; } }

/* chat: the model picker in the title row is the size of the buttons beside it; the sign-in dialog stacks its three ways */
/* a small picker the size of the buttons beside it: the browser's own arrow is replaced by one that sits a fixed distance from the edge */
.pick { position: relative; display: inline-flex; align-items: center; }
.pick select { appearance: none; -webkit-appearance: none; width: auto; font-size: var(--fys-text-sm); line-height: 1.3; padding: 0.3rem 1.9rem 0.3rem 0.8rem; border-radius: var(--fys-pill); cursor: pointer; }
.pick::after { content: "\25BE"; position: absolute; right: 0.8rem; pointer-events: none; color: var(--fys-muted); font-size: var(--fys-text-sm); line-height: 1; }
.chat-ways { display: grid; gap: var(--fys-space); margin: 0 0 var(--fys-space); }
.chat-ways section { border: var(--fys-border); border-radius: var(--fys-radius); padding: var(--fys-space) calc(var(--fys-space) * 1.25); }
.chat-ways h3 { margin: 0 0 0.2rem; }
.chat-ways p { margin: 0 0 0.6rem; }
.chat-ways form { display: flex; gap: 0.5rem; align-items: center; }
.chat-ways form input { flex: 1; min-width: 0; }
@media (max-width: 700px) { .hosts { flex-wrap: wrap; white-space: normal; } }
.chat-title { margin-bottom: 0; }
.chat-title .titlebar { margin-bottom: var(--fys-space); }

/* one rhythm for the home page (D138): boxes are for things you can open (apps, groups). points and steps are plain
   columns under a rule, on the same column edges, and both halves of a feature are the same width */
.grid.plain { gap: calc(var(--fys-space) * 2); }
.grid.plain .panel { background: none; border: 0; border-top: var(--fys-border); border-radius: 0; padding: var(--fys-space) 0 0; }
.grid.four.plain { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.four.plain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid.four.plain { grid-template-columns: minmax(0, 1fr); } }
.grid.plain .panel p:last-child { color: var(--fys-muted); }
.feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.feature .price-card { max-width: none; margin-inline: 0; padding: calc(var(--fys-space) * 2); }
.feature .visual pre.cmds { display: block; margin: 0; padding: calc(var(--fys-space) * 2); }
@media (max-width: 800px) { .feature { grid-template-columns: minmax(0, 1fr); } }

/* alternating bands on the home page (D140): white, soft, white, soft, then one dark band to close */
.band.soft { margin-block: calc(var(--fys-space) * 3); padding-block: calc(var(--fys-space) * 3); }
.band.soft > .grid { margin-bottom: 0; }
.band.soft .grid.plain .panel { border-top-color: var(--fys-line); }
.band.soft + .feature { border-top: 0; padding-top: var(--fys-space); }
.band.dark { background: var(--fys-ink); color: var(--fys-surface); margin-bottom: 0; }
.band.dark h2 { color: var(--fys-surface); }
.band.dark a { color: var(--fys-surface); }
.band.dark .btn.primary { background: var(--fys-surface); color: var(--fys-ink); border-color: var(--fys-surface); }
.grid.three.plain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid.three.plain { grid-template-columns: minmax(0, 1fr); } }

/* pricing: three plans, the middle one marked (D142) */
.plans .panel { display: flex; flex-direction: column; gap: var(--fys-space); }
.plans .panel h2 { margin: 0; font-size: var(--fys-text); }
.plans .panel .ticks { margin: 0; flex: 1; }
.plans .panel .row { margin: 0; }
.ticks.cols { columns: 2; column-gap: calc(var(--fys-space) * 3); margin: 0; }
.ticks.cols li { break-inside: avoid; }
@media (max-width: 720px) { .ticks.cols { columns: 1; } }

/* a launch's steps: all listed from the start, ticking off (D146) */
ol.steps { list-style: none; padding: 0; margin: 0; }
ol.steps li { padding: 0.3rem 0 0.3rem 1.6rem; position: relative; color: var(--fys-muted); }
ol.steps li::before { content: "○"; position: absolute; left: 0; }
ol.steps li.done { color: var(--fys-ink); }
ol.steps li.done::before { content: "✓"; color: var(--fys-free); font-weight: 600; }
ol.steps li.now { color: var(--fys-ink); font-weight: 600; }
ol.steps li.now::before { content: "●"; color: var(--fys-accent); }
ol.steps li.failed { color: var(--fys-ink); }
ol.steps li.failed::before { content: "×"; color: var(--fys-accent); font-weight: 600; }

/* docs: a menu on the left, one short page on the right */
.dash.docs h2 { margin: calc(var(--fys-space) * 2) 0 0.5rem; }
.dash.docs ol { padding-left: 1.2rem; }
.dash.docs ol li { margin: 0.35rem 0; }
.dash.docs .ticks { max-width: 44rem; }
.dash.docs p { max-width: 44rem; }
a.panel.tile { display: block; text-decoration: none; color: inherit; }
a.panel.tile:hover { border-color: var(--fys-ink); }
a.panel.tile h3 { margin: 0 0 0.25rem; }
@media (max-width: 800px) { .dash.docs { grid-template-columns: minmax(0, 1fr); } .dash.docs > nav { position: static; flex-direction: row; flex-wrap: wrap; } }

/* ===== v5 (D172): warm paper with white panels on it, section headings at their own size, color by group ===== */
.head h2, .section > h2, .band > h2, main > h2, .prose h2, .feature h2 { font-size: var(--fys-text-md); letter-spacing: -0.025em; line-height: 1.2; }
.section > h2 .sm, .head h2 .sm { letter-spacing: 0; }
.section > h2 { flex-wrap: wrap; }
.head { margin-bottom: calc(var(--fys-space) * 1.25); align-items: baseline; }
.prose h2 { margin-top: calc(var(--fys-space) * 2); }
.band.soft { background: var(--fys-surface); border-block: var(--fys-border); }
.band.wash { background: var(--fys-wash-blue); }
.band.soft + .band, .band.wash + .band { margin-top: calc(var(--fys-space) * -3); }
/* a group's color: professionals blue, households green, landlords amber */
[data-group="small-business"] { --fys-group: var(--fys-wash-blue); }
[data-group="personal-finance"] { --fys-group: var(--fys-wash-green); }
[data-group="landlords"] { --fys-group: var(--fys-wash-amber); }
/* a cover is the app's screen coming out of a tile in its group's color, large enough to read */
.card .cover, .seg .cover, .steps-pic .cover { background: var(--fys-group, var(--fys-well)); border: 0; padding: 0.9rem 0 0 0.9rem; align-items: flex-start; justify-content: flex-start; }
.card .cover img, .seg .cover img, .steps-pic .cover img { width: 165%; max-width: none; height: auto; aspect-ratio: 1280 / 712; object-fit: cover; object-position: left bottom; /* the top 88 of 800: the row with the app's name, which the card already says */ border-top-left-radius: var(--fys-radius-sm); border: var(--fys-border); border-right: 0; border-bottom: 0; }
.card .cover .mark-svg, .seg .cover .mark-svg { margin: auto; padding: 0 0.9rem 0.9rem 0; }
.seg .cover { margin: calc(var(--fys-space) * -0.5) calc(var(--fys-space) * -0.5) var(--fys-space); border-radius: var(--fys-radius-sm); aspect-ratio: 16 / 8; text-decoration: none; }
.panel.seg h3 { font-size: var(--fys-text-md); letter-spacing: -0.025em; }
.panel.seg h3 a { text-decoration: none; }
.panel.seg h3 a:hover { text-decoration: underline; }
.chip.free { color: var(--fys-good); background: var(--fys-wash-green); border-color: var(--fys-wash-green); }
.ticks li::before { color: var(--fys-good); }
.moment { background: var(--fys-wash-blue); }
.panel.hot { border-width: 2px; }
/* pricing: two ways to have an app, then what costs more, each with its price in view */
.plans .panel { padding: calc(var(--fys-space) * 1.75); }
.plans .panel h2 { color: var(--fys-muted); }
.more h3 { margin: 0 0 0.35rem; }
.more .price { font-weight: 600; font-variant-numeric: tabular-nums; margin: 0 0 0.6rem; padding-bottom: 0.6rem; border-bottom: var(--fys-border); }
.more .panel p:last-child { color: var(--fys-muted); }
@media (max-width: 860px) { .grid.four.more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid.four.more { grid-template-columns: minmax(0, 1fr); } }
/* get started: numbered steps down the left, the app you end up with on the right */
.steps-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--fys-space) * 2.5); align-items: start; margin: 0 0 calc(var(--fys-space) * 3); }
@media (max-width: 860px) { .steps-row { grid-template-columns: minmax(0, 1fr); } }
ol.numbered { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--fys-space); }
ol.numbered > li { counter-increment: step; position: relative; max-width: none; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.25) calc(var(--fys-space) * 1.25) calc(var(--fys-space) * 1.25) calc(var(--fys-space) * 4); }
ol.numbered > li::before { content: counter(step); position: absolute; left: calc(var(--fys-space) * 1.25); top: calc(var(--fys-space) * 1.1); width: 1.9rem; height: 1.9rem; border-radius: var(--fys-pill); background: var(--fys-ink); color: var(--fys-paper); font-weight: 600; display: flex; align-items: center; justify-content: center; }
ol.numbered h3 { margin: 0.15rem 0 0.4rem; }
ol.numbered li > :last-child { margin-bottom: 0; }
ol.numbered ol { padding-left: 1.2rem; margin: 0 0 0.75rem; }
ol.numbered ol li { margin: 0.15rem 0; }
.steps-pic .cover { aspect-ratio: 4 / 3.4; border-radius: var(--fys-radius); background: var(--fys-wash-green); padding: 1.25rem 0 0 1.25rem; }
.steps-pic .cover img { width: 150%; }
.steps-pic .says { margin: 0 0 var(--fys-space); }
.steps-pic .says li { background: var(--fys-surface); border: var(--fys-border); }
.steps-pic p.sm { margin: 0.6rem 0 0; }
.more + p { margin-bottom: calc(var(--fys-space) * 3); }
/* get started, second pass (D172): each step is one row, its words at the left and the thing it describes at the right */
ol.numbered.pairs { gap: calc(var(--fys-space) * 1.25); margin: 0 0 calc(var(--fys-space) * 3); }
ol.numbered.pairs > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--fys-space) * 2.5); align-items: center; padding-block: calc(var(--fys-space) * 1.75); padding-right: calc(var(--fys-space) * 1.75); }
ol.numbered.pairs > li::before { top: calc(var(--fys-space) * 1.6); }
ol.numbered.pairs > li > div > :last-child { margin-bottom: 0; }
@media (max-width: 860px) { ol.numbered.pairs > li { grid-template-columns: minmax(0, 1fr); gap: var(--fys-space); padding-right: calc(var(--fys-space) * 1.25); } }
.mock { background: var(--fys-well); border-radius: var(--fys-radius); padding: calc(var(--fys-space) * 1.5); }
.mock > p { margin: 0 0 0.75rem; max-width: none; }
.mock > p:last-child { margin: 0.75rem 0 0; }
.mock-box { background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: var(--fys-space) calc(var(--fys-space) * 1.25); }
.mock-box p { margin: 0; max-width: none; }
.mock-title { font-weight: 600; margin-bottom: 0.75rem !important; }
.mock-field { display: flex; flex-direction: column; gap: 0.15rem; border: var(--fys-border); border-radius: var(--fys-radius-sm); padding: 0.45rem 0.7rem; margin-bottom: 0.5rem !important; overflow-wrap: anywhere; }
.mock-add { text-align: right; }
.mock-add .btn { pointer-events: none; }
.steps-pic .cover { aspect-ratio: 16 / 10; }
/* a step's number is a mark you can see, the same on every page; a step's name is a section heading, not a page title */
p.tag { display: flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: var(--fys-pill); background: var(--fys-ink); color: var(--fys-paper); font-size: var(--fys-text); font-weight: 600; letter-spacing: 0; margin: 0 0 0.9rem; }
.grid.tiers .tag { margin: 0 0 0.9rem; }
.grid.tiers h2 { font-size: var(--fys-text-md); letter-spacing: -0.025em; }
.grid.plain .panel h3 { font-size: var(--fys-text); }
ol.numbered.pairs > li { align-items: start; }
ol.numbered.pairs > li > div:first-child { padding-top: 0.1rem; }
.stats + .head, .stats.plain + .head { margin-top: calc(var(--fys-space) * 3); }
.tiles { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
/* chat composer (D173): one box, as the chat apps people know: pictures, then the words, then + at the left and send at the right */
.chat-main { max-width: 52rem; width: 100%; margin-inline: auto; }
.chat-box { display: flex; flex-direction: column; gap: 0.5rem; background: var(--fys-surface); border: var(--fys-border); border-radius: var(--fys-radius); padding: 0.75rem 0.75rem 0.6rem 1rem; }
.chat-box:focus-within { border-color: var(--fys-muted); }
.chat-box textarea.chat-input { border: 0; padding: 0.25rem 0; max-width: none; width: 100%; resize: none; background: none; font-family: var(--fys-font); font-size: var(--fys-text); max-height: 12rem; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; }
.chat-round { width: 2.1rem; height: 2.1rem; padding: 0; margin: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--fys-pill); border: var(--fys-border); background: var(--fys-surface); color: var(--fys-ink); font-size: var(--fys-text); font-weight: 600; line-height: 1; cursor: pointer; }
.chat-round:hover { border-color: var(--fys-ink); }
.chat-round.primary { background: var(--fys-ink); color: var(--fys-paper); border-color: var(--fys-ink); }
.chat-round.primary:disabled { background: var(--fys-line); border-color: var(--fys-line); cursor: default; }
.chat-picture { position: relative; padding: 0; border: 0; }
.chat-picture img { height: 4rem; max-width: 8rem; border: var(--fys-border); }
.chat-picture button { position: absolute; top: -0.4rem; right: -0.4rem; width: 1.3rem; height: 1.3rem; padding: 0; border-radius: var(--fys-pill); background: var(--fys-ink); color: var(--fys-paper); border: 0; font-size: var(--fys-text-sm); line-height: 1; }
