/* FTF public site -- modest, business-first: light pages, navy brand colour, one teal accent, one
   typeface (monospace for code only). Sentence case everywhere.
   Layout (2026-10-16, FTF Site Layout.md): two panels -- a top navigation bar, always on screen, with
   drop-down menus, and the body (the page, optional tabs at its top). Desktop first; at
   phone width the menu opens as a list from the Menu button. */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --panel: #ffffff;
  --border: #dfe4ea;
  --border-2: #c7d0da;
  --text: #13243a;
  --muted: #4f5d6e;
  --muted-2: #788596;
  --navy: #0b2a4a;
  --navy-hover: #143d68;
  --accent: #0e7c86;
  --accent-soft: #e4f2f3;
  --hover: #e8edf3;
  --on: #2e7d4f;
  --on-soft: #e6f3eb;
  --off: #b24a3b;
  --off-soft: #f7e9e6;
  --code-bg: #0f1e30;
  --code-text: #dfe7f1;
  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --s-h1: clamp(28px, 2.4vw, 34px);
  --s-h2: clamp(22px, 1.9vw, 26px);
  --s-h3: 18px;
  --s-body: 16px;
  --s-small: 14px;
  --page-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--s-body);
  line-height: 1.6; -webkit-font-smoothing: antialiased; }
section { padding-block: 26px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; margin: 0; color: var(--navy); line-height: 1.25; }
h1 { font-size: var(--s-h1); }
h2 { font-size: var(--s-h2); }
h3 { font-size: var(--s-h3); }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: var(--s-small); font-weight: 600; color: var(--accent); margin-bottom: 10px; }
code, .k { font-family: var(--mono); font-size: 0.86em; background: var(--bg-alt); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; color: var(--navy); }

/* ---- Buttons ---- */
.btn { font-family: var(--sans); font-size: var(--s-small); font-weight: 600; padding: 10px 18px; border-radius: 6px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-ghost { border-color: var(--border-2); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

/* ================= The shell: top navigation bar + body ================= */

/* ---- Top navigation bar, always on screen ---- */
.site-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; max-width: var(--page-max); margin: 0 auto;
  padding: 0 32px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.brand-mark { display: block; flex: none; }
.brand .ftf { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: 0.02em; }
.top-nav { flex: 1; min-width: 0; }
.tn-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tn-item { position: relative; display: flex; align-items: center; }
.tn-link { display: block; font-size: var(--s-small); font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 21px 10px; border-bottom: 3px solid transparent; white-space: nowrap; }
.has-menu .tn-link { padding-right: 2px; }
.tn-link:hover, .tn-item.current > .tn-link { color: var(--navy); }
.tn-item.current > .tn-link { border-bottom-color: var(--accent); }
.tn-caret { border: 0; background: none; cursor: pointer; width: 24px; height: 28px; display: grid; place-items: center;
  border-radius: 4px; color: var(--muted); margin-right: 4px; }
.tn-caret:hover { background: var(--bg-alt); }
.tn-chev { width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); }
.tn-cta { margin-left: auto; }
.tn-cta .tn-link { background: var(--navy); color: #fff; border-radius: 6px; padding: 9px 16px; border: 0; }
.tn-cta .tn-link:hover, .tn-cta.current .tn-link { background: var(--navy-hover); color: #fff; }

/* drop-downs: on hover, on keyboard focus, or from the caret */
.tn-menu { display: none; position: absolute; top: 100%; left: -8px; min-width: 220px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 32px rgba(11,42,74,0.14); padding: 6px; z-index: 50; }
.tn-menu.wide { min-width: 330px; }
.has-menu:hover .tn-menu, .has-menu:focus-within .tn-menu, .has-menu.open .tn-menu { display: block; }
.tn-menu a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; }
.tn-menu a:hover, .tn-menu a.current { background: var(--bg-alt); }
.tn-menu b { display: block; font-size: var(--s-small); font-weight: 600; color: var(--navy); }
.tn-menu span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.top-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.top-link { font-size: var(--s-small); font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top-link:hover { color: var(--navy); }
.menu-btn { display: none; font: inherit; font-size: var(--s-small); font-weight: 600; color: var(--navy); background: #fff;
  border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 1060px) { .top-actions .top-link:first-child { display: none; } .tn-link { padding-inline: 7px; } }

/* ---- Body ---- */
main.body { max-width: var(--page-max); margin: 0 auto; padding: 0 32px; }
main.body > .page-head { padding-top: 34px; }
main.body > .hero-dark:first-child { margin-top: 28px; }

/* ---- Page head and tabs at the top of the body ---- */
.page-head { padding: 0 0 22px; }
.page-head h1 { max-width: 32ch; }
.page-head .sub { font-size: 17px; color: var(--muted); max-width: 70ch; margin-top: 12px; line-height: 1.55; }
.page-head.with-pic { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: center; }
.page-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
  scroll-margin-top: 80px; }
.page-tabs a { font-size: var(--s-small); font-weight: 600; color: var(--muted); text-decoration: none; padding: 10px 16px;
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.page-tabs a:hover { color: var(--navy); background: var(--bg-alt); }
.page-tabs a[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--accent); }

/* ---- Previous / next and footer, at the bottom of the body ---- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.pager a { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 12px 18px; text-decoration: none; }
.pager a:hover { border-color: var(--navy); }
.pager .next { grid-column: 2; text-align: right; }
.pager small { display: block; font-size: 13px; color: var(--muted-2); }
.pager b { color: var(--navy); font-weight: 600; }
.site-foot { margin-top: 44px; border-top: 1px solid var(--border); padding: 22px 0 30px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot-brand { font-size: var(--s-small); color: var(--muted-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--s-small); color: var(--muted-2); }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--navy); }

/* ---- Narrow screens (interim, FTF-621): below 1040 px the menu opens as a list under the bar ---- */
@media (max-width: 1040px) {
  .top-row { padding: 0 16px; gap: 12px; height: 56px; }
  .menu-btn { display: inline-block; }
  .top-actions { margin-left: auto; }
  .top-actions .top-link { display: none; }
  .top-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(11,42,74,0.14); max-height: calc(100vh - 56px); overflow-y: auto; padding: 8px 16px 16px; }
  body.nav-open .top-nav { display: block; }
  .tn-list { flex-direction: column; align-items: stretch; gap: 0; }
  .tn-item { flex-wrap: wrap; }
  .tn-link { padding: 10px 0; border: 0; flex: 1; }
  .tn-caret { display: none; }
  .tn-menu, .has-menu:hover .tn-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 6px 12px; width: 100%; min-width: 0; }
  .tn-menu span { display: none; }
  .tn-cta { margin: 8px 0 0; }
  main.body { padding: 0 16px; }
  .page-head.with-pic { grid-template-columns: 1fr; gap: 14px; }
  .page-head.with-pic .role-pic { max-width: 300px; }
}

/* ================= Content ================= */

/* ---- Section heads, bands ---- */
.band { background: var(--bg-alt); border-radius: 12px; padding: 28px 32px; margin-block: 16px; }
.sec-head { max-width: 720px; margin-bottom: 24px; }
.sec-head .sub, .lede { color: var(--muted); margin-top: 8px; max-width: 72ch; }
.lede { margin: 0 0 24px; }
.sub-title { margin: 40px 0 16px; }

/* ---- Steps (deploy, release, undo) ---- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-item .num { font-size: var(--s-small); font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.problem-item h3 { margin-bottom: 6px; }
.problem-item p { color: var(--muted); }

/* ---- Cards ---- */
.feature-grid, .provider-grid, .channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1100px) { .feature-grid, .provider-grid, .channel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid, .provider-grid, .channel-grid { grid-template-columns: 1fr; } }
.feature-grid > *, .two-col > *, .channel-grid > *, .provider-grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1240px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4 { grid-template-columns: 1fr; } }
.feature, .provider-card { border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 20px; }
.feature h3, .provider-card h3 { margin-bottom: 6px; }
.feature p, .provider-card p { color: var(--muted); font-size: var(--s-small); }
.feature .tagline { font-size: var(--s-small); font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.feature.link { display: block; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.feature.link:hover { border-color: var(--navy); box-shadow: 0 4px 16px rgba(11,42,74,0.08); }
.feature .go { display: block; margin-top: 12px; font-size: var(--s-small); font-weight: 600; color: var(--accent); }
.provider-card h3 { display: flex; align-items: center; gap: 8px; }
.provider-card .tag { font-size: 12px; font-weight: 400; color: var(--muted); border: 1px solid var(--border); padding: 1px 8px; border-radius: 999px; }
.scenarios .feature { display: flex; flex-direction: column; }
.scenarios .rule { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--navy); }

/* ---- Text blocks ---- */
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose strong, .points strong, .steps strong { color: var(--text); font-weight: 600; }
.prose h2 { margin-bottom: 14px; }
.prose h3 { margin: 24px 0 6px; }
.prose h3:first-child { margin-top: 0; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 66ch; }
.points li { padding-left: 18px; position: relative; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.points.small li { font-size: var(--s-small); }
.points a, .feature a, .prose a, .note a, .statement a { color: var(--accent); }
.note { color: var(--muted-2); font-size: var(--s-small); margin-top: 18px; max-width: 72ch; }
.statement { margin-top: 24px; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; max-width: 72ch; color: var(--text); }
.formula { margin-top: 22px; }
.formula code { display: block; padding: 10px 14px; line-height: 1.6; white-space: normal; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
.more-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.designed { font-size: var(--s-small); color: var(--muted-2); }

/* ---- Code ---- */
.code-block { font-family: var(--mono); font-size: 13px; line-height: 1.7; background: var(--code-bg); color: var(--code-text);
  border-radius: 8px; padding: 16px 18px; overflow-x: auto; white-space: pre; margin: 0 0 14px; }
.code-block .c { color: #8395aa; }
.code-block .s { color: #9fd6a8; }
.code-block .f { color: #8fc7ff; }
.code-tabs { margin-bottom: 14px; }
.code-tabs .code-block { margin: 0; border-top-left-radius: 0; }
.tab-row { display: flex; gap: 2px; }
.tab-row button { font-family: var(--sans); font-size: var(--s-small); font-weight: 600; border: 0; cursor: pointer;
  padding: 7px 14px; border-radius: 6px 6px 0 0; background: var(--bg-alt); color: var(--muted); }
.tab-row button[aria-selected="true"] { background: var(--code-bg); color: var(--code-text); }
.tab-row button[data-lang="toggle"][aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--border); }

/* the toggle tab: one toggle, everything behind it */
.toggle-card { border: 1px solid var(--border); border-radius: 0 8px 8px 8px; background: #fff; padding: 18px 20px; }
.tc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.tc-name { font-family: var(--mono); font-size: 14px; color: var(--navy); font-weight: 600; }
.tc-desc { font-size: var(--s-small); color: var(--muted); }
.toggle-card dl { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; margin: 0; font-size: var(--s-small); }
.toggle-card dt { color: var(--muted-2); font-weight: 600; }
.toggle-card dd { margin: 0; color: var(--text); }
.toggle-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.toggle-card b { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--navy); }
.tc-note { margin-top: 14px; font-size: var(--s-small); color: var(--muted); }

/* ---- Numbered steps (lifecycle) ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px 16px 58px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: var(--s-small); font-weight: 600; display: grid; place-items: center; }
.steps h3 { font-size: var(--s-body); margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: var(--s-small); }
.steps .who { font-size: var(--s-small); font-weight: 400; color: var(--muted-2); margin-left: 6px; }

/* ---- Environment chain ---- */
.env-chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 26px; }
.box { font-size: var(--s-small); border: 1px solid var(--border-2); background: var(--panel); border-radius: 6px; padding: 10px 16px; text-align: center; }
.box.release { border-color: var(--navy); color: var(--navy); font-weight: 600; }
.box .sub-label { display: block; color: var(--muted-2); font-size: 12px; font-weight: 400; }
.arrow { color: var(--muted-2); }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--s-small); }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { background: var(--bg-alt); color: var(--navy); font-weight: 600; }
.table-wrap td { color: var(--muted); }
.table-wrap td:first-child { color: var(--text); }
.table-wrap tr:last-child td { border-bottom: 0; }
@media (max-width: 620px) {
  .stack-phone table { min-width: 0; }
  .stack-phone thead { display: none; }
  .stack-phone tr, .stack-phone td { display: block; }
  .stack-phone td:first-child { border-bottom: 0; padding-bottom: 4px; }
  .stack-phone td:last-child::before { content: "FTF: "; font-weight: 600; color: var(--accent); }
}
.compare-table table { min-width: 760px; }
.compare-table td:first-child { font-weight: 600; color: var(--navy); width: 22%; }
.compare-table .ftf-col { background: var(--accent-soft); color: var(--text); }
.compare-table th.ftf-col { color: var(--accent); }
.compare-table td strong { color: var(--navy); }
.role-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-right: 8px; vertical-align: 1px; }

/* ---- Demos: widget, switch, toggles, sandbox ---- */
.widget, .sandbox { border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 22px;
  box-shadow: 0 6px 24px rgba(11,42,74,0.06); }
.sandbox { margin-top: 28px; }
.widget-head, .sandbox-head { margin-bottom: 14px; }
.widget-title, .sandbox-title { font-size: var(--s-small); font-weight: 600; color: var(--navy); }
.gate-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--border);
  background: var(--bg-alt); border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; }
.gate-name { font-family: var(--mono); font-size: 13px; color: var(--navy); font-weight: 500; }
.gate-sub { font-size: 12px; color: var(--muted-2); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: var(--border-2); border-radius: 999px; transition: background 0.2s; }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .track { background: var(--on); }
.switch input:checked + .track .thumb { transform: translateX(18px); }
.toggle-list { display: flex; flex-direction: column; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
  border-radius: 6px; border: 1px solid var(--border); }
.toggle-name { font-family: var(--mono); font-size: 13px; }
.toggle-state { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.toggle-state.on { color: var(--on); background: var(--on-soft); }
.toggle-state.off { color: var(--off); background: var(--off-soft); }
.widget-code { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: var(--bg-alt);
  border-radius: 6px; padding: 10px 13px; }
.widget-code .fn { color: var(--navy); font-weight: 600; }
.field-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--s-small); font-weight: 600; color: var(--navy); }
.field select { font-family: var(--sans); font-size: var(--s-small); background: #fff; color: var(--text);
  border: 1px solid var(--border-2); border-radius: 6px; padding: 7px 10px; min-width: 150px; }
.range-val { font-size: var(--s-small); color: var(--navy); font-weight: 600; }
.attr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .attr-grid { grid-template-columns: 1fr; } }
.attr-card { border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px; transition: border-color 0.2s; }
.attr-card.is-active { border-color: var(--on); }
.attr-card h3 { margin-bottom: 2px; }
.attr-card .kind-sub { font-size: var(--s-small); color: var(--muted-2); margin-bottom: 12px; }
.attr-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.attr-card li { font-size: var(--s-small); color: var(--muted); padding-left: 14px; position: relative; }
.attr-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.sandbox-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 820px) { .sandbox-results { grid-template-columns: repeat(2, 1fr); } }
.result-card { border: 1px solid var(--border); border-radius: 6px; padding: 12px; text-align: center; }
.result-card .kind { font-size: var(--s-small); font-weight: 600; color: var(--navy); text-transform: capitalize; margin-bottom: 4px; }
.result-card .verdict { font-size: var(--s-small); font-weight: 600; }
.result-card.match { background: var(--on-soft); border-color: transparent; }
.result-card.match .verdict { color: var(--on); }
.result-card.nomatch .verdict { color: var(--off); }

/* ---- Calls to action, trial form ---- */
.cta-box { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 10px; padding: clamp(24px, 3vw, 36px); }
.cta-box .sub { color: var(--muted); margin-top: 8px; }
.cta-ctas, .hero-ctas, .role-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.cta-strip { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-strip > div:first-child { flex: 1 1 420px; }
.cta-strip .cta-ctas { margin-top: 0; }
.includes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
@media (max-width: 620px) { .includes { grid-template-columns: 1fr; } }
.includes li { padding-left: 18px; position: relative; color: var(--text); }
.includes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--on); border-radius: 50%; }
.trial-form { text-align: left; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.trial-form .form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trial-form .form-row .field { flex: 1; min-width: 200px; }
.trial-form input, .trial-form textarea, .trial-form select { font-family: var(--sans); font-size: var(--s-small); color: var(--text); background: #fff;
  border: 1px solid var(--border-2); border-radius: 6px; padding: 10px 12px; resize: vertical; }
.trial-form input:focus, .trial-form textarea:focus, .trial-form select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.trial-form .btn { align-self: flex-start; }
.trial-form .btn:disabled { opacity: 0.6; cursor: default; }
.trial-status { font-size: var(--s-small); display: none; }
.trial-status.show { display: block; }
.trial-status.ok { color: var(--on); }
.trial-status.err { color: var(--off); }

/* ---- Contents lists (How it works overview) ---- */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.agenda li { border-bottom: 1px solid var(--border); }
.agenda a { display: grid; grid-template-columns: 44px 210px 1fr; gap: 16px; align-items: baseline; padding: 14px 4px; text-decoration: none; }
.agenda a:hover { background: var(--bg-alt); }
.agenda .num { color: var(--accent); font-size: var(--s-small); font-weight: 600; }
.agenda .t { font-weight: 600; color: var(--navy); }
.agenda .d { color: var(--muted); font-size: var(--s-small); }
@media (max-width: 620px) { .agenda a { grid-template-columns: 32px 1fr; } .agenda .d { grid-column: 2; } }

/* ================= Home ================= */

/* the summary: problem -> trunk-based development -> feature toggles -> FTF, beside the picture */
.hero-dark { background: var(--navy); border-radius: 14px; padding: clamp(26px, 3vw, 40px); margin-bottom: 8px; }
.hero-dark h1 { color: #fff; font-size: clamp(28px, 2.6vw, 38px); max-width: 24ch; }
.hero-dark .btn-primary { background: #fff; color: var(--navy); }
.hero-dark .btn-primary:hover { background: var(--accent-soft); }
.hero-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.hero-dark .btn-ghost:hover { border-color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 1180px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .pain { max-width: 460px; } }
.hero-steps { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 58ch; }
.hero-steps li { color: #c9d6e4; line-height: 1.55; padding-left: 16px; border-left: 3px solid #3c5878; }
.hero-steps li:last-child { border-left-color: #7fd3da; }
.hero-steps strong { color: #fff; font-weight: 600; }
.hs-label { display: block; font-size: var(--s-small); font-weight: 600; color: #7fd3da; margin-bottom: 2px; }
.hero-steps a { color: #7fd3da; text-decoration: none; white-space: nowrap; font-weight: 600; }
.hero-steps a:hover { text-decoration: underline; }
.pain { margin: 0; }
.pain svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.pain .f-trunk { fill: #3a5672; }
.pain .f-branches path { fill: none; stroke: #6f8aa6; stroke-linecap: round; opacity: 0.85; }
.pain .f-leaves ellipse { fill: #4a6683; }
.pain .f-knots path { fill: none; stroke: #e57364; stroke-width: 3.5; stroke-linecap: round; }
.pain .f-label { font-family: var(--sans); font-size: 13px; fill: #9fb3c8; }
.pain .f-label.warn { fill: #f0a094; }
.pain .f-label.gold { fill: #e8c25a; }
.pain .f-desk { stroke: #4f6d8c; stroke-width: 5; stroke-linecap: round; }
.pain .coin { fill: #e3b341; stroke: #a87d14; stroke-width: 1.2; }
.pain .coin.away { animation: coin-away 4.8s ease-in infinite; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes coin-away { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(70px, -190px); } }
@media (prefers-reduced-motion: reduce) { .pain .coin.away { animation: none; opacity: 0.35; } }
.pain .chair { fill: #14365a; stroke: #4f6d8c; stroke-width: 2; }
.pain .body { fill: #24496f; }
.pain .head { fill: #8ea3ba; }

/* key facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1240px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.fact { display: block; text-decoration: none; border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: 8px; padding: 18px 20px; transition: border-color 0.15s, box-shadow 0.15s; }
.fact:hover { border-color: var(--navy); border-top-color: var(--accent); box-shadow: 0 4px 16px rgba(11,42,74,0.08); }
.fact-num { font-size: var(--s-h2); font-weight: 700; color: var(--navy); line-height: 1.15; }
.fact-label { font-weight: 600; color: var(--text); margin-top: 6px; }
.fact-sub { font-size: var(--s-small); color: var(--muted); margin-top: 2px; }

/* contents: every section of the site, like the front page of a résumé */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--border); padding-top: 22px; }
@media (max-width: 1100px) { .explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }
.explore h3 { font-size: var(--s-body); margin-bottom: 10px; }
.explore h3 a { text-decoration: none; }
.explore h3 a:hover { text-decoration: underline; }
.explore ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.explore li { font-size: var(--s-small); color: var(--muted); line-height: 1.45; }
.explore li a { color: var(--accent); font-weight: 500; text-decoration: none; }
.explore li a:hover { text-decoration: underline; }

/* ================= Why feature toggles ================= */
.compare-band { background: var(--navy); border-radius: 12px; padding: 28px 24px; margin-top: 16px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.compare > * { min-width: 0; }
.compare-title { text-align: center; color: #fff; font-weight: 600; font-size: var(--s-h3); margin-bottom: 14px; }
.tree { margin: 0; }
.tree svg { display: block; width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
.tree .trunk { fill: #dfe7f1; }
.tree .branches path { fill: none; stroke: #dfe7f1; stroke-linecap: round; }
.tree .joins circle { fill: #3fb8c2; }
.tree .leaf { fill: #5d7590; }
.tree .leaf.on { animation: leaf-on 0.7s ease-out forwards; animation-delay: var(--d, 0s); }
@keyframes leaf-on { to { fill: #5cc489; } }
@media (prefers-reduced-motion: reduce) { .tree .leaf.on { animation: none; fill: #5cc489; } }
.tree figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: #c9d6e4; }
.tree figcaption i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.tree .k-join { background: #3fb8c2; }
.tree .k-off { background: #5d7590; }
.tree .k-on { background: #5cc489; }
.tree .k-knot { background: #e57364; }
.tree .k-back { background: #e8c25a; border-radius: 2px; height: 3px; width: 14px; vertical-align: 3px; }
.branches-today .stems path { fill: none; stroke: #dfe7f1; stroke-width: 9; stroke-linecap: round; }
.branches-today .stems path.main { stroke-width: 16; }
.branches-today .knot { fill: none; stroke: #e57364; stroke-width: 5; stroke-linecap: round; }
.branches-today text { fill: #c9d6e4; font-family: var(--sans); font-size: 15px; }
.branches-today .backs path { fill: none; stroke: #e8c25a; stroke-width: 2.5; stroke-dasharray: 5 4; marker-end: url(#backhead); }
.branches-today .rels circle { fill: #e8c25a; }
.why-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1100px) { .why-steps { grid-template-columns: 1fr; } }
.why-steps > * { min-width: 0; }
.why-steps h2 { font-size: var(--s-h3); }
.why-steps .statement { margin-top: 18px; }

/* ================= Why FTF: summary and effort ================= */
.summary-card { background: var(--navy); color: #c9d6e4; border-radius: 12px; padding: clamp(24px, 3vw, 36px); }
.summary-label { font-size: var(--s-small); font-weight: 600; color: #7fd3da; margin-bottom: 14px; }
.summary-points { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; max-width: 84ch; }
.summary-points li { line-height: 1.55; }
.summary-points li::marker { color: #7fd3da; font-weight: 600; }
.summary-points strong { color: #fff; font-weight: 600; }
.summary-points a { color: #7fd3da; font-weight: 600; }
.effort-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 720px) { .effort-stats { grid-template-columns: 1fr; } }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.stat.ftf { background: var(--navy); border-color: var(--navy); }
.stat-num { font-size: var(--s-h2); font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { font-weight: 600; color: var(--text); margin-top: 6px; }
.stat-sub { font-size: var(--s-small); color: var(--muted); }
.stat.ftf .stat-num, .stat.ftf .stat-label { color: #fff; }
.stat.ftf .stat-sub { color: #7fd3da; }
.effort-table tr.total td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--border-2); }
.effort-notes { margin-top: 30px; }
.effort-line { margin-top: 20px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; }
.effort-line > div:first-child { font-size: 17px; color: var(--text); line-height: 1.5; }
.el-num { font-weight: 700; color: var(--accent); }
.el-sub { font-size: var(--s-small); margin-top: 6px; color: var(--muted); }
.el-sub a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ================= Roles: a picture per role ================= */
.role-pic svg { display: block; width: 100%; height: auto; }
.role-pic .b-body { fill: var(--navy); }
.role-pic .b-head { fill: #c7d3e0; }
.role-pic .r-trunk { fill: #c7d3e0; }
.role-pic .r-branch path { fill: none; stroke: #c7d3e0; stroke-width: 6; stroke-linecap: round; }
.role-pic .r-leaf.on ellipse { fill: var(--on); }
.role-pic .r-coins ellipse { fill: #e3b341; stroke: #a87d14; stroke-width: 1.2; }
.role-pic .r-up { fill: none; stroke: var(--on); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.role-pic .r-wire path { fill: none; stroke: var(--border-2); stroke-width: 3; }
.role-pic .r-switch-track { fill: var(--on); }
.role-pic .r-switch-thumb { fill: #fff; }
.role-pic .r-label { font-family: var(--sans); font-size: 13px; fill: var(--muted); }
.role-pic .r-app { fill: #fff; stroke: var(--border-2); stroke-width: 2; }
.role-pic .r-app-bar { fill: var(--bg-alt); }
.role-pic .r-dot.on { fill: var(--on); }
.role-pic .r-dot.pend { fill: #c8941f; }
.role-pic .r-strong { font-weight: 600; fill: var(--navy); }
.role-pic .r-rule { fill: var(--border); }
.role-pic .r-line { fill: var(--border); }
.role-pic .r-card { fill: #fff; stroke: var(--border-2); stroke-width: 2; }
.role-pic .r-card.focus { stroke: var(--accent); stroke-width: 3; }
.role-pic .r-mini.on { fill: var(--on); }
.role-pic .r-mini.off { fill: var(--border-2); }
.role-pic .r-mini-thumb { fill: #fff; }
.role-pic .r-lens { fill: rgba(14,124,134,0.08); stroke: var(--navy); stroke-width: 5; }
.role-pic .r-lens-handle { stroke: var(--navy); stroke-width: 8; stroke-linecap: round; }
.role-pic .r-check { fill: none; stroke: var(--on); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.role-pic .r-screen { fill: var(--code-bg); }
.role-pic .r-base { fill: var(--border-2); }
.role-pic .r-code { fill: #4f6d8c; }
.role-pic .r-code.k { fill: #8fc7ff; }
.role-pic .r-code.s { fill: #9fd6a8; }
.role-pic .r-main { stroke: var(--navy); stroke-width: 6; stroke-linecap: round; }
.role-pic .r-merge path { fill: none; stroke: var(--accent); stroke-width: 3; }
.role-pic .r-join circle { fill: var(--accent); }
.role-pic .r-acct { fill: var(--border-2); }
.role-pic .r-acct.on { fill: var(--on); }
.role-pic .r-hub { fill: var(--navy); }
.role-pic .r-hub-t { font-family: var(--sans); font-weight: 700; font-size: 16px; fill: #fff; }
.role-pic .r-key { fill: none; stroke: #c8941f; stroke-width: 5; }
.role-pic .r-key-stem { fill: none; stroke: #c8941f; stroke-width: 5; stroke-linecap: round; }
.role-pic .r-env rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }

/* ================= Architects: applications -> FTF -> stores ================= */
.arch-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.arch-col { display: flex; flex-direction: column; gap: 10px; }
.arch-cap { font-size: var(--s-small); font-weight: 600; color: var(--accent); }
.arch-box { border: 1px solid var(--border-2); background: var(--panel); border-radius: 8px; padding: 12px 14px; font-weight: 500; color: var(--text); }
.arch-box.muted { color: var(--muted); border-style: dashed; }
.arch-box.hub { background: var(--navy); border-color: var(--navy); color: #fff; font-size: var(--s-h3); font-weight: 700; padding: 22px 18px; }
.arch-box.hub small { display: block; font-size: var(--s-small); font-weight: 400; color: #c9d6e4; margin-top: 6px; }
.arch-note { font-size: var(--s-small); color: var(--muted); }
.arch-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; max-width: 110px; }
.arch-arrow::before { content: "\2192"; font-size: 28px; color: var(--accent); line-height: 1; }
@media (max-width: 1000px) {
  .arch-flow { grid-template-columns: 1fr; }
  .arch-arrow { flex-direction: row; max-width: none; justify-content: center; }
  .arch-arrow::before { content: "\2193"; }
}

/* ================= Problem and Why feature toggles: text beside one picture ================= */
.problem-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: start; }
@media (max-width: 1000px) { .problem-layout { grid-template-columns: 1fr; } }
.compare-band.solo { margin-top: 0; }
.answer-col { display: flex; flex-direction: column; gap: 32px; }
.notice { border: 1px solid var(--border-2); border-left: 4px solid #c8941f; background: var(--bg-alt); border-radius: 8px;
  padding: 14px 18px; color: var(--text); max-width: 72ch; }
.feature .cta-ctas { margin-top: 18px; }
/* Business scenarios: one group per business goal */
.scenario-group + .scenario-group { padding-top: 10px; }
.scenarios.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .scenarios.two { grid-template-columns: 1fr; } }

/* Why FTF: bring your own provider */
.byo { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 20px 24px; }
.byo > div { flex: 1 1 420px; min-width: 0; }
.byo .tagline { font-size: var(--s-small); font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.byo h3 { margin-bottom: 6px; }
.byo p { color: var(--muted); max-width: 80ch; }
/* page title = the page's menu option; the page's own statement as a headline under it (2026-10-16) */
.page-head .eyebrow { margin-bottom: 4px; }
.page-head h1.page-title { font-size: var(--s-h1); }
.page-head .headline { font-size: 21px; font-weight: 500; color: var(--navy); line-height: 1.35; margin-top: 10px; max-width: 46ch; text-wrap: balance; }
.page-head .headline + .sub { margin-top: 10px; }
/* role pages: what FTF changes for the role, one list (Today dropped 2026-10-16) */
.role-points { max-width: 80ch; gap: 14px; }
/* buttons inside cards keep their own colours (the card's link colour must not reach them) */
.feature a.btn-primary { color: #fff; }
.feature a.btn-ghost { color: var(--navy); }
/* FTF and Guidewire (2026-10-16) */
.feature-grid.two-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .feature-grid.two-wide { grid-template-columns: minmax(0, 1fr); } }
.arch-flow.simple { grid-template-columns: 1fr auto 1fr; max-width: 760px; }
@media (max-width: 1000px) { .arch-flow.simple { grid-template-columns: 1fr; } }
.arch-sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.notice a { color: var(--accent); }
/* a picture beside a paragraph stays about the paragraph's height */
.problem-layout .compare-band.solo { padding: 22px 20px; }
.problem-layout .compare-band.solo .tree svg { max-width: 300px; }

/* request forms: the toggle prefix and the spam trap (FTF-639) */
.prefix-input { display: flex; align-items: stretch; }
.prefix-input input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0;
  font-family: var(--mono); }
.prefix-input span { display: grid; place-items: center; padding: 0 12px; font-family: var(--mono); font-weight: 600;
  color: var(--muted); background: var(--bg-alt); border: 1px solid var(--border-2); border-left: 0;
  border-radius: 0 6px 6px 0; }
.prefix-hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.prefix-hint code { font-size: 12px; }
.prefix-check { font-size: 13px; font-weight: 600; min-height: 1.2em; }
.prefix-check.ok { color: var(--on); }
.prefix-check.bad { color: var(--off); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-form { position: relative; }
