/* The public homepage. Every colour, font, corner and shadow is a token of the
   Cadence design system, from tokens.css, which home.html loads first. It
   follows the visitor's light or dark setting like the app, and has no
   gradient. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-canvas); color: var(--ink-primary); font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-width); }
[hidden] { display: none !important; }

/* the header of the public site: the mark, bare, and the name; three links; the two ways in. It is written into every
   page by the server (src/site.js), and the rest of it is with the homepage's rules below. */
.nav { display: flex; align-items: center; gap: var(--space-8); max-width: 1296px; margin: 0 auto; padding: 0 clamp(var(--space-5), 4vw, var(--space-12)); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-primary); text-decoration: none; }
.mark { display: grid; place-items: center; }
.nav-links { display: flex; gap: var(--space-1); font-size: 14px; line-height: var(--space-5); font-weight: 500; }
.nav-links a { padding: var(--space-2) calc(var(--space-2) + var(--space-0-5)); border-radius: var(--radius-sm); color: var(--ink-secondary); text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
.nav-links a:hover { background: var(--surface-hover); color: var(--ink-primary); }

.button { display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-5); border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--surface-raised); color: var(--ink-primary); font-weight: 500; font-size: 15px; line-height: 20px; text-decoration: none; min-height: 44px; transition: border-color 120ms ease, background-color 120ms ease; }
.button:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.button:active { background: var(--surface-active); }
.button.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: var(--shadow-xs); }
.button.primary:hover { background: var(--accent-hover); border-color: transparent; }
.button.primary:active { background: var(--accent-active); }
.button.quiet { padding: 0 var(--space-4); min-height: var(--control-lg); font-size: 14px; }

.hero { max-width: 1296px; margin: 0 auto; padding: 56px clamp(var(--space-5), 4vw, var(--space-12)) 0; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.pulse { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent); }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; margin-top: 18px; }
.lede { max-width: 700px; margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-secondary); }
.actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* the board, drawn in HTML */
.stage { margin: 56px auto 0; max-width: 1080px; }
.window { background: var(--surface-canvas); color: var(--ink-primary); border-radius: var(--radius-lg); border: 1px solid var(--border-default); box-shadow: var(--shadow-md); text-align: left; overflow: hidden; font-size: 12.5px; line-height: 18px; }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-sunken); }
.window-bar span { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--border-default); }
.window-title { margin-left: 10px; font-weight: 600; color: var(--ink-secondary); font-size: 12px; }
.needs { display: flex; align-items: center; gap: var(--space-2); padding: 14px 16px 6px; flex-wrap: wrap; }
.needs strong { font-size: 14px; font-weight: 600; }
.needs .pill { display: inline-block; padding: 3px 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: 12px; line-height: 18px; }
.needs .pill.wait { background: var(--warning-subtle); color: var(--warning-text); border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); }
.board { display: grid; grid-template-columns: 1.25fr .9fr 1.25fr .9fr; gap: var(--space-3); padding: 10px 16px 22px; align-items: start; }
.column { background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-2); }
.column-head { font-weight: 600; font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-secondary); padding: 4px 4px 8px; }
.column-head span { margin-left: 5px; }
.card { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); padding: 10px 11px; display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-2); }
.column .card:last-child { margin-bottom: 0; }
.card.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.card-top { display: flex; align-items: center; gap: 6px; color: var(--ink-secondary); font-size: 11px; }
.card-top em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; }
.dot { width: 7px; height: 7px; border-radius: var(--radius-full); display: inline-block; }
.dot.green { background: var(--success); } .dot.blue { background: var(--accent); }
.card-title { font-weight: 600; font-size: 13px; line-height: 18px; }
.why { border-left: 2px solid var(--accent-border); padding-left: 8px; font-size: 11.5px; line-height: 17px; color: var(--ink-secondary); }
.facts { color: var(--ink-secondary); font-size: 11.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.facts.nowrap { flex-wrap: nowrap; }
.tag { padding: 0 6px; border-radius: var(--radius-sm); font-weight: 500; font-size: 10.5px; }
.tag.warn { background: var(--warning-subtle); color: var(--warning-text); } .tag.good { background: var(--success-subtle); color: var(--success-text); }
.card-actions { display: flex; gap: 6px; }
.btn { padding: 3px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: var(--surface-raised); font-weight: 500; font-size: 11.5px; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.spin { flex: none; width: 11px; height: 11px; border-radius: var(--radius-full); border: 2px solid var(--border-default); border-top-color: var(--ink-primary); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; align-items: center; max-width: 1296px; margin: 64px auto 0; padding: 0 clamp(var(--space-5), 4vw, var(--space-12)); color: var(--ink-secondary); font-size: 14px; }
.strip b { font-weight: 500; color: var(--ink-secondary); padding: 4px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--surface-raised); }

.block { max-width: 1296px; margin: 0 auto; padding: 110px clamp(var(--space-5), 4vw, var(--space-12)) 0; }
.block h2, .closing h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin-top: 12px; max-width: 760px; }
.block h3 { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; }
.block p { color: var(--ink-secondary); }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.steps .n { width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; font-size: 14px; }

/* the pricing page: the plans side by side, the comparison, and the questions. It has the homepage's header, closing
   and footer. Every space here is a spacing token and every text a text style. The plans and the cells of the
   comparison are written by the server from the plans that are set (src/pricing.js). */
.part.plans-part { padding-top: var(--space-12); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
/* A card's five parts stand level with the same parts of the cards beside it. Each card draws the line to its right and under it. */
.plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: var(--space-4); align-content: start; min-width: 0; margin: 0 -1px -1px 0; padding: var(--space-6); background: var(--surface-canvas); border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.plan.usual { background: var(--surface-raised); }
.plan-price { display: flex; flex-direction: column; gap: var(--space-2); }
.plan-price span, .plan-for, .plan-has p { color: var(--ink-secondary); }
.plan-for { text-wrap: pretty; }
.plan-way { display: flex; flex-direction: column; }
/* Paying by the month or by the year: a plan with both has both in the page, and the choice above the plans shows
   one of each. Before a visitor chooses, and in a browser that cannot follow the choice, the month is what shows. */
.levels.plan-period { display: inline-flex; margin: 0 0 var(--space-6); }
body:not(:has(.plan-period input[value="year"]:checked)) .by-year { display: none; }
body:has(.plan-period input[value="year"]:checked) .by-month { display: none; }
@supports not selector(:has(*)) { .by-year { display: none; } }
.plan-has { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.plan li { display: flex; align-items: flex-start; gap: var(--space-3); }
.plan li .tick { margin-top: var(--space-1); }
.tick { flex: none; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash { color: var(--ink-tertiary); }

/* the comparison: the plans as columns. A row's line runs under the whole row, and a group's name stands alone in its row. */
.levels.plan-choice { display: none; }
.compare-frame { margin-top: var(--space-8); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare tr { border-bottom: 1px solid var(--border-default); }
.compare th, .compare td { padding: var(--space-3) var(--space-3) var(--space-3) 0; text-align: left; vertical-align: middle; }
.compare thead td { width: 34%; }
.compare thead th { vertical-align: bottom; }
.compare thead span { display: block; }
.compare thead .text-mono { color: var(--ink-tertiary); }
.compare tbody th { font: inherit; text-wrap: pretty; }
.compare .group th { padding-top: var(--space-8); color: var(--ink-tertiary); }
.compare .tick { display: block; }

/* the questions: one answer open at a time, each a details element, so they open from the keyboard without a script */
.part.asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: var(--space-8) var(--space-12); align-items: start; }
.answers { border-bottom: 1px solid var(--border-subtle); }
.answers details { border-top: 1px solid var(--border-subtle); }
.answers summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; cursor: pointer; list-style: none; }
.answers summary::-webkit-details-marker { display: none; }
.answers summary svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease; }
.answers details[open] summary svg { transform: rotate(180deg); }
.answers p { max-width: 700px; padding-bottom: var(--space-5); color: var(--ink-secondary); text-wrap: pretty; }

/* the loop, one step at a time: the words on the left, a small picture of the card on the right */
.walk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-10); }
.walk li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.walk h2 { font-size: 22px; line-height: 28px; letter-spacing: -.015em; font-weight: 600; margin: var(--space-3) 0 var(--space-2); max-width: none; }
.walk .n { width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent-text); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.figure { background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-4); font-size: 12.5px; line-height: 18px; }
.figure .card { margin: 0; }
.nav-links a[aria-current="page"] { color: var(--ink-primary); font-weight: 600; }
.note a { color: var(--accent-text); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.grid article { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-raised); }

.limits { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-raised); }
.limits li { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border-subtle); }
.limits li:nth-child(odd) { border-right: 1px solid var(--border-subtle); }
.limits li:nth-last-child(-n + 2) { border-bottom: 0; }
.limits h3::before { content: "✕"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; border-radius: var(--radius-sm); background: var(--danger-subtle); color: var(--danger-text); font-size: 12px; vertical-align: 1px; }
.note { margin-top: 22px; font-size: 14px; max-width: 820px; }

/* the page for products built with an AI app builder */
.pill { display: inline-block; padding: var(--space-1-5) var(--space-4); border-radius: var(--radius-full); background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent-text); font-size: 13px; line-height: 20px; font-weight: 500; }
h1.big { font-size: clamp(32px, 5.6vw, 58px); line-height: 1.06; letter-spacing: -.03em; max-width: 900px; margin-left: auto; margin-right: auto; }
.reassure { margin-top: var(--space-4); font-size: 13px; color: var(--ink-tertiary); }
.block.tight { padding-top: 48px; }
.block.tight .grid { margin-top: 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.loop { list-style: none; margin: var(--space-8) 0 0; padding: var(--space-6); display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); font-size: 13px; line-height: 19px; }
.loop li { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-0-5); }
.loop li span { font-size: 11px; color: var(--ink-tertiary); }
.loop li strong { font-weight: 600; }
.loop li.here { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }
.loop li.here span { color: var(--accent-text); font-weight: 600; }
h2 + .walk { margin-top: var(--space-10); }
.example { font-size: 11px; color: var(--ink-tertiary); margin-bottom: var(--space-2); }
.faq { margin: 28px 0 0; border-bottom: 1px solid var(--border-subtle); }
.faq div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-8); padding: var(--space-5) 0; border-top: 1px solid var(--border-subtle); }
.faq dt { font-size: 17px; line-height: 24px; font-weight: 600; }
.faq dd { margin: 0; color: var(--ink-secondary); }
.builders { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.builders a, .faq dd a { color: var(--accent-text); }
/* A page in the older frame ends with room before the footer, and with its note about other companies when it has one. */
body:not(.home) main { padding-bottom: calc(var(--space-16) + var(--space-8)); }
.fineprint { max-width: 1296px; margin: calc(-1 * var(--space-12)) auto 0; padding: 0 clamp(var(--space-5), 4vw, var(--space-12)) var(--space-10); font-size: 12px; color: var(--ink-tertiary); }
/* the Terms and Privacy pages: a note that the text is a draft, then one short section after another */
.changed { max-width: 700px; margin: var(--space-6) auto 0; }
.changed time { white-space: nowrap; }
.legal dd p + p, .legal dd ul { margin-top: var(--space-3); }
.legal dd ul { margin-bottom: 0; padding-left: var(--space-5); }
.legal dd a { color: var(--accent-text); }

/* the page about a connected assistant */
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: .04em; font-size: 12px; }
.accent { color: var(--accent); }
.hero.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; text-align: left; }
.hero.split h1.big { margin-left: 0; font-size: clamp(32px, 4.8vw, 60px); }
.hero.split .lede, .lede.left { margin-left: 0; max-width: 520px; }
.hero.split .actions { justify-content: flex-start; }
.talk { background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); font-size: 13.5px; line-height: 20px; }
.talk-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-tertiary); }
.talk-label.rule { border-top: 1px solid var(--border-default); padding-top: var(--space-3); }
.said { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); }
.said.mine { background: var(--accent-subtle); border-color: var(--accent-border); }
.said span { display: block; font-size: 11px; font-weight: 600; color: var(--ink-secondary); }
.used { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-tertiary); padding-left: var(--space-3); }
.used::before { content: "↳ "; }
.talk .card { margin: 0; }
.tag.from { background: var(--accent-subtle); color: var(--accent-text); }
.tag.never { background: var(--surface-sunken); color: var(--ink-tertiary); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.quote { margin-top: auto; border-left: 2px solid var(--accent-border); padding-left: var(--space-3); font-family: var(--font-mono); font-size: 12px; line-height: 18px; }
.block.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.block.pair.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.reach { margin: 0; border-bottom: 1px solid var(--border-subtle); }
.reach div { display: grid; grid-template-columns: 160px 130px minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--border-subtle); }
.reach dt { font-weight: 600; font-size: 16px; }
.reach dd { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-secondary); }
.reach .tag { padding: 2px 8px; font-size: 11px; }
.log { list-style: none; margin: 0; padding: var(--space-1-5) var(--space-5); background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.log li { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border-subtle); font-size: 13.5px; line-height: 20px; }
.log li:first-child { border-top: 0; }
.log time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-tertiary); }
.log span { color: var(--ink-secondary); }
.connect { max-width: min(1200px, calc(100% - 2 * clamp(var(--space-5), 4vw, var(--space-12)))); margin: 120px auto 0; padding: 56px; border-radius: var(--radius-lg); background: var(--ink-primary); color: var(--ink-inverse); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.connect h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin-top: var(--space-3); }
.connect .eyebrow { color: var(--accent-border); }
.connect > div > p { margin-top: var(--space-4); opacity: .82; }
.connect .address { opacity: 1; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); overflow-wrap: anywhere; }
.connect code { font-family: var(--font-mono); font-size: 14px; }
.steps-list { list-style: none; margin: 0; padding: var(--space-6); background: var(--surface-canvas); color: var(--ink-primary); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-4); }
.steps-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: var(--space-4); }
.steps-list .n { width: 30px; height: 30px; border-radius: var(--radius-md); background: var(--accent-subtle); border: 1px solid var(--accent-border); color: var(--accent-text); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; }
.steps-list h3 { font-size: 16px; line-height: 22px; font-weight: 600; }
.steps-list p { font-size: 14px; line-height: 21px; color: var(--ink-secondary); }
/* the steps for each assistant: what to type stands on a line of its own, and can be selected whole */
.each { align-items: start; }
.typed { margin: 0; padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.typed code { display: block; margin-top: var(--space-1-5); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-sunken); color: var(--ink-primary); overflow-wrap: anywhere; user-select: all; }
.block .then { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }

/* the homepage: the product first, then why a tracker is not enough, how it works, your assistant, control and the closing.
   Spaces are the spacing tokens and text is the text styles of tokens.css: no size is written here. The header and the
   footer are the public site's, written into every page by the server (src/site.js). */
.home section[id], .home .how li { scroll-margin-top: var(--space-16); }
.unseen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soft, .quiet-label { color: var(--ink-tertiary); }
.quiet { color: var(--ink-secondary); }
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface-canvas) 84%, transparent); backdrop-filter: blur(var(--space-3)); -webkit-backdrop-filter: blur(var(--space-3)); border-bottom: 1px solid var(--border-subtle); transition: border-color 200ms ease; }
/* The line under the header appears once the page has been scrolled, or while the menu is open. */
.js .top { border-bottom-color: transparent; }
.js .top.scrolled, .js .top:has(.menu-button[aria-expanded="true"]) { border-bottom-color: var(--border-subtle); }
.top .nav { position: relative; min-height: calc(var(--space-12) + var(--space-3)); }
.menu { display: flex; flex: 1; align-items: center; gap: var(--space-8); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.nav-actions .button { padding: 0 var(--space-3); }
.menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-primary); cursor: pointer; }
.menu-button:hover { background: var(--surface-hover); }
.menu-button.close { display: inline-flex; margin-right: calc(-1 * var(--space-3)); }
.button { gap: var(--space-2); font-family: var(--font-sans); cursor: pointer; }
.button.plain { border-color: transparent; background: transparent; }
.button.plain:hover { border-color: transparent; background: var(--surface-hover); }
.button.ink { background: var(--ink-primary); border-color: transparent; color: var(--ink-inverse); }
.button.ink:hover { background: var(--ink-secondary); border-color: transparent; }
.text-button { border: 0; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: none; color: var(--ink-secondary); text-decoration: underline; text-underline-offset: var(--space-1); cursor: pointer; }
.text-button:hover { color: var(--ink-primary); background: var(--surface-hover); }

.home .hero { text-align: left; padding-top: clamp(var(--space-12), 8vw, calc(var(--space-16) + var(--space-8))); }
.hero-pill { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-1-5) var(--space-3) var(--space-1-5) var(--space-1-5); border: 1px solid var(--border-default); border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink-secondary); text-decoration: none; transition: border-color 120ms ease, color 120ms ease; }
.hero-pill:hover { border-color: var(--accent-border); color: var(--ink-primary); }
.hero-pill > svg { flex: none; }
.spark { flex: none; width: var(--space-5); height: var(--space-5); border-radius: var(--radius-full); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.home h1 { margin-top: calc(var(--space-6) + var(--space-1)); max-width: 960px; text-wrap: balance; }
.home main h2 { max-width: 820px; text-wrap: balance; }
.home main .statement { max-width: 980px; text-wrap: pretty; }
.lead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6) var(--space-16); margin-top: var(--space-8); }
.home .lede { margin: 0; max-width: 540px; color: var(--ink-secondary); text-wrap: pretty; }
.home .hero .actions { margin-top: 0; justify-content: flex-start; gap: var(--space-3); }
.home .hero .actions .button { min-height: var(--space-12); }
/* The opening comes in one piece after the other when the page loads. */
.js .front .hero > * { animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
.js .front .hero > :nth-child(2) { animation-delay: 60ms; }
.js .front .hero > :nth-child(3) { animation-delay: 120ms; }
.js .front .hero > :nth-child(4) { animation-delay: 200ms; }

/* the board that works itself */
.home .stage { position: relative; margin-top: clamp(var(--space-10), 6vw, calc(var(--space-16) + var(--space-2))); max-width: none; }
.home .window { border-radius: var(--radius-xl); box-shadow: var(--shadow-overlay); }
.home .window-title, .home .column-head, .home .why { font-family: var(--font-mono); }
.home .window-title { font-weight: 400; margin-right: auto; }
.home .column-head { font-weight: 400; letter-spacing: .06em; padding-bottom: 0; }
.home .column-head span { margin-left: 0; }
.home .board { grid-template-columns: repeat(5, minmax(180px, 1fr)); min-height: 700px; overflow-x: auto; position: relative; }
.home .column { display: flex; flex-direction: column; gap: var(--space-2); min-height: 120px; }
.home .column .card { margin: 0; }
.home .card { position: relative; transition: border-color 200ms ease, box-shadow 200ms ease; }
.home button.btn { font-family: var(--font-sans); color: var(--ink-primary); cursor: pointer; }
.home button.btn.primary { color: var(--on-accent); }
.home button.btn:hover { border-color: var(--border-strong); }
.home button.btn.primary:hover { background: var(--accent-hover); border-color: transparent; }
.card-open { border: 0; padding: 0; background: none; color: inherit; font-family: var(--font-sans); text-align: left; cursor: pointer; }
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-md); }
.card:has(.card-open:hover) { border-color: var(--accent-border); }
.card-state { display: contents; }
.card-state .facts { font-weight: 500; }
.card-state .facts.nowrap { font-weight: 400; }
.home .card-actions { position: relative; z-index: 1; flex-wrap: wrap; }
.facts.done { color: var(--success-text); }
.arrive { animation: arrive 600ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateX(calc(-1 * (var(--space-6) + var(--space-1)))); } to { opacity: 1; transform: none; } }
/* Under the board, in the room the design leaves before the next part: whose board it is, and a way to stop the card. */
.front .stage-note { position: absolute; left: 0; right: 0; top: 100%; }
.stage-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-4); margin-top: var(--space-3); color: var(--ink-tertiary); }

.part { max-width: 1296px; margin: 0 auto; padding: calc(var(--space-16) + var(--space-12)) clamp(var(--space-5), 4vw, var(--space-12)) 0; }
.home .eyebrow { display: flex; line-height: calc(var(--space-4) + var(--space-0-5)); }
.part .eyebrow + h2 { margin-top: var(--space-4); }
/* The homepage's parts keep the design's own distances: each part brings the room above and under it. */
.front #why { padding-top: clamp(calc(var(--space-16) + var(--space-2)), 10vw, calc(var(--space-16) * 2)); padding-bottom: clamp(calc(var(--space-16) + var(--space-2)), 10vw, calc(var(--space-16) * 2)); }
.front #how { padding-top: 0; padding-bottom: clamp(calc(var(--space-16) + var(--space-2)), 10vw, calc(var(--space-16) + var(--space-12) + var(--space-2))); }
.front #how h2 { max-width: 760px; }
.front .band, .front .finish { margin-top: 0; }
.front .band .part, .front #control { padding-top: clamp(var(--space-16), 9vw, calc(var(--space-16) + var(--space-12))); padding-bottom: clamp(var(--space-16), 9vw, calc(var(--space-16) + var(--space-12))); }
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: calc(var(--space-6) + var(--space-1)) var(--space-10); margin-top: clamp(var(--space-10), 5vw, var(--space-16)); }
.finding { display: flex; flex-direction: column; gap: var(--space-2); border-top: 2px solid var(--border-default); padding-top: calc(var(--space-4) + var(--space-0-5)); color: var(--ink-secondary); transition: border-color 500ms ease; }
.finding h3 { color: var(--ink-tertiary); transition: color 500ms ease; text-wrap: pretty; }
.finding h3 + p { margin-top: var(--space-1); }
.finding.on { border-top-color: var(--accent); }
.finding.on h3 { color: var(--ink-primary); }

.how { list-style: none; margin: var(--space-10) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.how li { background: var(--surface-canvas); padding: clamp(var(--space-5), 3vw, var(--space-8)); display: flex; flex-direction: column; gap: var(--space-6); }
.how li p { color: var(--ink-secondary); max-width: 440px; text-wrap: pretty; }
.how li h3 { margin: var(--space-2) 0; }
.how .step-n { color: var(--ink-tertiary); }
.how .step-n.you { color: var(--accent-text); }
.how .card { margin: auto 0 0; padding: var(--space-3); gap: var(--space-2); transition: border-color 400ms ease, box-shadow 400ms ease; }
.how .card svg { flex: none; }
.mono-line { font-family: var(--font-mono); color: var(--ink-tertiary); }
.measured { display: flex; align-items: center; gap: var(--space-3); }
.figure-number { font-family: var(--font-mono); font-weight: 500; color: var(--ink-primary); font-variant-numeric: tabular-nums; }

.band { margin-top: calc(var(--space-16) + var(--space-12)); border-top: 1px solid var(--border-subtle); background: var(--surface-sunken); }
.band .part { padding-top: calc(var(--space-16) + var(--space-8)); padding-bottom: calc(var(--space-16) + var(--space-8)); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); margin-top: var(--space-10); }
.point { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-6); }
.point h3 { margin-bottom: var(--space-2); }
.point p, .tools-head p { color: var(--ink-secondary); text-wrap: pretty; }
.point-icon { width: var(--space-10); height: var(--space-10); border-radius: var(--radius-lg); background: var(--accent-subtle); color: var(--accent-text); display: grid; place-items: center; margin-bottom: var(--space-5); }
.tools-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-4) var(--space-16); align-items: end; margin-top: clamp(var(--space-12), 6vw, calc(var(--space-16) + var(--space-4))); }
.tools-head h3 { max-width: 520px; text-wrap: balance; }
.tools-head p { max-width: 460px; }
/* The tools as tiles: each service's own logo, and its name in words. */
.tools { list-style: none; margin: calc(var(--space-6) + var(--space-1)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: var(--space-3); }
.tools li { display: flex; align-items: center; gap: var(--space-3); min-width: 0; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-4); font-weight: 500; transition: border-color 120ms ease; }
.tools li:hover { border-color: var(--accent-border); }
/* A service: its own logo, as its file has it, at the size of an icon beside its name. Drawn by web/service.js from the one list. */
.service-mark { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.service-mark picture { display: flex; flex: none; }
.service-logo { display: block; width: var(--icon-lg); height: var(--icon-lg); object-fit: contain; }

.control { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-10) var(--space-16); align-items: start; }
.levels { display: flex; flex-wrap: wrap; gap: var(--space-1); min-width: 0; margin: calc(var(--space-6) + var(--space-1)) 0 0; padding: var(--space-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-sunken); }
.levels label { flex: 1 1 auto; position: relative; }
.levels input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.levels span { display: block; padding: var(--space-3); border-radius: var(--radius-sm); color: var(--ink-secondary); text-align: center; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease; }
.levels input:checked + span { background: var(--surface-raised); color: var(--ink-primary); box-shadow: var(--shadow-xs); outline: 1px solid var(--border-default); }
.levels input:focus-visible + span { outline: var(--focus-width) solid var(--focus-ring); outline-offset: var(--focus-width); }
.level-says { margin: calc(var(--space-4) + var(--space-0-5)) 0 calc(var(--space-6) + var(--space-1)); min-height: var(--space-12); color: var(--ink-secondary); }
.always { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.always li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border-subtle); }
.always svg { flex: none; color: var(--ink-secondary); }
.who { background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: var(--space-2) var(--space-5) var(--space-4); }
.who table { width: 100%; border-collapse: collapse; }
.who th, .who td { padding: calc(var(--space-3) + var(--space-0-5)) 0; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.who th { padding: var(--space-3) 0; color: var(--ink-tertiary); border-bottom-color: var(--border-default); font-family: var(--font-mono); font-weight: 400; letter-spacing: .06em; }
.who th:last-child, .who td:last-child { text-align: right; white-space: nowrap; }
.who > p { padding-top: var(--space-3); }
.by { display: inline-block; padding: var(--space-0-5) var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-xs); background: var(--surface-raised); color: var(--ink-secondary); font-weight: 600; }
.by.you { background: var(--ink-primary); border-color: var(--ink-primary); color: var(--ink-inverse); }

.finish { position: relative; overflow: hidden; margin-top: calc(var(--space-16) + var(--space-12)); background: var(--surface-canvas); color: var(--ink-primary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.finish-in { position: relative; max-width: 1296px; margin: 0 auto; padding: clamp(calc(var(--space-16) + var(--space-2)), 10vw, calc(var(--space-16) + var(--space-12) + var(--space-2))) clamp(var(--space-5), 4vw, var(--space-12)); }
.home .finish h2 { max-width: 640px; }
.finish p { font-weight: 400; color: var(--ink-secondary); max-width: 480px; margin: var(--space-5) 0 var(--space-8); text-wrap: pretty; }
.finish .button { min-height: var(--space-12); }
.rails { position: absolute; right: 0; top: 0; height: 100%; width: min(560px, 55%); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rail { stroke: var(--border-default); stroke-width: 2; }
.rail-run { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 90 2000; animation: run 4s linear infinite; }
.rail-stop { fill: var(--surface-canvas); stroke: var(--accent); stroke-width: 2.5; }
.rail-dot { fill: var(--accent); }
@keyframes run { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -600; } }
/* The track draws itself the first time the closing is scrolled to: the main line, then the branch, then the stop.
   The light starts along it once it is drawn. Without scripts the track is simply there. */
.draw .rail { stroke-dasharray: 1; animation: draw 1100ms cubic-bezier(.2, .7, .2, 1) both; }
.draw .rail.branch { animation-delay: 350ms; }
.draw .rail-stop, .draw .rail-dot { animation: appear 400ms ease 600ms both; }
.draw .rail-run { animation: run 4s linear 1200ms infinite backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

/* what a card opens: a panel from the right */
.scrim { position: fixed; inset: 0; z-index: 8; background: var(--overlay-scrim); }
.panel { position: fixed; z-index: 9; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-4) var(--space-6) var(--space-6); overflow-y: auto; background: var(--surface-canvas); border-left: 1px solid var(--border-default); box-shadow: var(--shadow-overlay); animation: slide 220ms ease both; }
@keyframes slide { from { opacity: 0; transform: translateX(var(--space-6)); } to { opacity: 1; transform: none; } }
.panel-top { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-secondary); }
.panel-top .text-mono { margin-left: auto; }
.panel h3 { margin-bottom: var(--space-1-5); }
.evidence { border-left: 2px solid var(--accent-border); padding-left: var(--space-3); color: var(--ink-secondary); }
.evidence + p { margin-top: var(--space-2); }
.panel-end { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); }
.panel .actions { margin-top: 0; justify-content: flex-start; gap: var(--space-2); }
.panel [data-sample]:empty { display: none; }

/* the footer of the public site: what the product is, then the pages by kind, then the last line */
.footer { border-top: 1px solid var(--border-subtle); color: var(--ink-secondary); }
.foot-in { max-width: 1296px; margin: 0 auto; padding: clamp(var(--space-10), 6vw, var(--space-16)) clamp(var(--space-5), 4vw, var(--space-12)) calc(var(--space-6) + var(--space-1)); }
.footer a:not(.button) { color: var(--ink-secondary); text-decoration: none; transition: color 120ms ease; }
.footer a:not(.button):hover, .footer a[aria-current="page"]:not(.button), .footer a.brand { color: var(--ink-primary); }
.foot-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-10) var(--space-8); align-items: start; }
.foot-about { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); max-width: 380px; }
.foot-about p { text-wrap: pretty; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.foot-col h2 { font-family: var(--font-mono); font-weight: 400; letter-spacing: .06em; }
.foot-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-top: clamp(var(--space-8), 5vw, calc(var(--space-12) + var(--space-2))); padding-top: var(--space-5); border-top: 1px solid var(--border-subtle); color: var(--ink-tertiary); }
.footer .foot-end a:not(.button) { color: var(--ink-tertiary); }
.footer .foot-end a:not(.button):hover { color: var(--ink-primary); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); }
.foot-note { flex-basis: 100%; }
/* A part of the page rises into place the first time it is scrolled to. Without scripts nothing is hidden. */
.rise { animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(calc(var(--space-4) + var(--space-0-5))); } to { opacity: 1; transform: none; } }
/* The menu on a narrow screen drops in under the header. */
@keyframes drop { from { opacity: 0; transform: translateY(calc(-1 * var(--space-1-5))); } to { opacity: 1; transform: none; } }

.closing { max-width: 900px; margin: 120px auto 0; padding: 64px 24px; text-align: center; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-raised); }
.closing h2 { margin: 0 auto; }
.closing p { color: var(--ink-secondary); margin-top: 12px; }


/* the Product page: the four stages one after another, each with small pictures made of the product's own parts.
   It shares the homepage's header, board, panel, levels, closing and footer, and every space here is a spacing token. */
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1px; margin-top: var(--space-12); background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.stage-link { display: flex; flex-direction: column; gap: var(--space-2); min-height: 150px; padding: var(--space-6); background: var(--surface-canvas); text-decoration: none; }
.stage-link:hover { background: var(--surface-raised); }
.stage-link .text-mono { display: flex; align-items: center; justify-content: space-between; color: var(--accent-text); }
.stage-link svg { color: var(--ink-tertiary); }
.stage-link strong { margin-top: auto; }
.stage-link .text-body-sm { color: var(--ink-secondary); text-wrap: pretty; }
.chapters { z-index: 4; margin-top: var(--space-16); background: color-mix(in srgb, var(--surface-canvas) 90%, transparent); backdrop-filter: blur(var(--space-3)); -webkit-backdrop-filter: blur(var(--space-3)); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
/* It stays under the header, whose height is set in spaces, and its line. */
.js .chapters { position: sticky; top: calc(var(--space-12) + var(--space-3) + 1px); }
.chapters-in { display: flex; max-width: 1296px; margin: 0 auto; padding: 0 calc(clamp(var(--space-5), 4vw, var(--space-12)) - var(--space-3)); overflow-x: auto; }
.chapters a { display: flex; align-items: baseline; gap: var(--space-2); padding: var(--space-3); border-bottom: 2px solid transparent; color: var(--ink-secondary); text-decoration: none; white-space: nowrap; transition: color 200ms ease, border-color 200ms ease; }
.chapters a:hover, .chapters a[aria-current="true"] { color: var(--ink-primary); }
.chapters a[aria-current="true"] { border-bottom-color: var(--accent); }
.says { max-width: 620px; margin-top: var(--space-5); font-weight: 400; color: var(--ink-secondary); text-wrap: pretty; }
.sample { margin-top: var(--space-12); }
.flow { list-style: none; margin: var(--space-3) 0 0; padding: var(--space-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--space-8) 0; background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.flow li { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-6) 0 0; border-top: 2px solid var(--accent-border); }
.flow li::before { content: ""; position: absolute; left: 0; top: calc(-1 * var(--space-1-5)); width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--accent); }
.flow .text-title-lg { text-wrap: pretty; }
.flow .card, .picture .card { margin: 0; }
.source { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-canvas); }
.source svg { flex: none; color: var(--accent-text); }
.source .text-caption { margin-left: auto; color: var(--ink-tertiary); white-space: nowrap; }
.shown { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; margin-top: var(--space-4); background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; }
.shown article { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); background: var(--surface-canvas); }
.shown h3 { margin-bottom: var(--space-1-5); }
.shown p { color: var(--ink-secondary); text-wrap: pretty; }
.picture { height: 150px; display: flex; align-items: center; justify-content: center; padding: var(--space-4); overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--surface-sunken); color: var(--ink-secondary); }
.picture .why { max-width: 250px; }
.picture .card-actions { flex-wrap: wrap; justify-content: center; }
.picture .btn { color: var(--ink-primary); }
.picture .btn.primary { color: var(--on-accent); }
.lines { width: 100%; max-width: 230px; display: flex; flex-direction: column; gap: var(--space-2); }
.lines i, .rows i { height: var(--space-2); border-radius: var(--radius-xs); background: var(--border-default); }
.lines i { width: 72%; }
.lines i:nth-of-type(2) { width: 48%; }
.lines i.hit { width: 84%; background: var(--accent); }
.lines i:last-child { width: 40%; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); color: var(--ink-primary); }
.stack.mid { align-items: center; gap: var(--space-3); }
.bars { display: flex; align-items: flex-end; gap: var(--space-1-5); height: 74px; }
.bars i { width: var(--space-4); height: 60%; border-radius: var(--radius-xs); background: var(--border-default); }
.bars i:nth-child(1) { height: 50%; } .bars i:nth-child(2) { height: 76%; } .bars i:nth-child(4) { height: 95%; } .bars i:nth-child(6) { height: 84%; } .bars i:nth-child(7) { height: 68%; }
.bars i.hit { height: 40%; background: var(--accent); }
.rows { width: 100%; max-width: 250px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-2) var(--space-3); color: var(--ink-tertiary); }
.rows i { width: 90%; }
.rows i:nth-of-type(2) { width: 64%; }
.rows i:last-child { width: 78%; background: var(--accent-border); }
.chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: var(--space-1-5); padding: var(--space-1) var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink-secondary); white-space: nowrap; }
.chip.good { border-color: transparent; background: var(--success-subtle); color: var(--success-text); }
.chip.warn { border-color: transparent; background: var(--warning-subtle); color: var(--warning-text); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); margin-top: var(--space-12); }
.sheet { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); }
.sheet .card-top svg { flex: none; }
.sheet .text-title-lg { text-wrap: pretty; }
.made { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.made li { display: flex; align-items: flex-start; gap: var(--space-4); }
.made .point-icon { flex: none; margin-bottom: 0; }
.made p, .try { color: var(--ink-secondary); }
.try { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.sheet > .card-actions { flex-wrap: wrap; margin-top: auto; }
.which { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); }
.record-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4); }
.record { list-style: none; margin: 0; padding: 0; }
.record li { display: grid; grid-template-columns: var(--space-12) 110px minmax(0, 1fr); align-items: baseline; gap: var(--space-1) var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--border-subtle); color: var(--ink-secondary); }
.record strong { font-weight: 500; color: var(--ink-primary); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding-top: 36px; }
  .actions .button { flex: 1 1 100%; }
  .stage { margin-top: 40px; }
  .board { padding: 8px 10px 16px; gap: 8px; }
  .needs { padding: 12px 10px 4px; }
  .strip { margin-top: 44px; }
  .block { padding-top: 80px; }
  .steps, .grid, .grid.two, .grid.four, .limits, .loop, .hero.split, .block.pair, .block.pair.flip, .connect { grid-template-columns: minmax(0, 1fr); }
  .hero.split, .block.pair, .connect { gap: var(--space-8); }
  .connect { margin: 90px 18px 0; padding: 32px 22px; }
  .reach div, .log li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .faq div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .walk li { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .walk { gap: var(--space-8); }
  .limits li { border-right: 0 !important; border-bottom: 1px solid var(--border-subtle) !important; }
  .limits li:last-child { border-bottom: 0 !important; }
  .closing { margin: 90px 18px 0; padding: 44px 20px; }
  /* the public site on a phone: the header's links drop in under it from a menu button, and every part is one column */
  .menu { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .nav-links { flex-direction: column; gap: 0; font-size: inherit; }
  .nav-links a { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0; color: var(--ink-primary); }
  .nav-links a:hover { background: none; }
  .nav-actions { margin-left: 0; flex-direction: column; align-items: stretch; }
  .nav-actions .button { min-height: var(--space-12); font-size: inherit; }
  .nav-actions .button.plain { justify-content: flex-start; padding: 0; }
  .nav { flex-wrap: wrap; }
  .js .menu-button { display: inline-flex; margin-left: auto; }
  .js .menu { position: absolute; left: 0; right: 0; top: 100%; padding: var(--space-2) var(--space-5) var(--space-5); background: var(--surface-canvas); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); animation: drop 140ms ease both; }
  .js .menu-button[aria-expanded="false"] + .menu { display: none; }
  .home .hero .actions .button { flex: 0 1 auto; }
  .home .board { grid-template-columns: repeat(5, 80%); min-height: 0; scroll-snap-type: x proximity; }
  .home .column { scroll-snap-align: center; }
  .part { padding-top: var(--space-16); }
  .how li { padding: var(--space-5); }
  .band, .finish { margin-top: var(--space-16); }
  .band .part { padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .panel { padding: var(--space-3) var(--space-5) var(--space-5); }
  .foot-about { grid-column: 1 / -1; }
  /* the Product page on a phone */
  .chapters { margin-top: var(--space-12); }
  .stage-link { min-height: 0; padding: var(--space-5); }
  .flow, .sheet { padding: var(--space-5); }
  .shown article { padding: var(--space-5); }
  .record li { grid-template-columns: var(--space-12) minmax(0, 1fr); }
  .record li > :last-child { grid-column: 1 / -1; }
  /* the pricing page on a phone */
  /* On a phone the comparison shows one plan at a time, chosen above it. Where a browser cannot tell which is chosen, every plan stays and the table scrolls sideways in its frame. */
  @supports selector(:has(a)) {
    .levels.plan-choice { display: flex; flex-direction: row; margin-top: var(--space-6); }
    .compare-frame { margin-top: var(--space-2); }
    .compare thead td { width: 62%; }
    .compare thead th, .compare td { display: none; }
    .band:has([name="plan"][value="1"]:checked) .compare :is(thead th, td):nth-child(2),
    .band:has([name="plan"][value="2"]:checked) .compare :is(thead th, td):nth-child(3),
    .band:has([name="plan"][value="3"]:checked) .compare :is(thead th, td):nth-child(4),
    .band:has([name="plan"][value="4"]:checked) .compare :is(thead th, td):nth-child(5),
    .band:has([name="plan"][value="5"]:checked) .compare :is(thead th, td):nth-child(6),
    .band:has([name="plan"][value="6"]:checked) .compare :is(thead th, td):nth-child(7) { display: table-cell; }
  }
  .plan { padding: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Nothing on the public site moves by itself: the sample card rests in Proposed, the track is drawn, the figure reads
     19 to 0, and every part is in its place (home.js starts no timer and watches no scrolling either). */
  .spin, .arrive, .rise, .rail-run, .panel, .js .front .hero > *, .draw .rail, .draw .rail-stop, .draw .rail-dot, .draw .rail-run, .js .menu { animation: none; }
  .top, .nav-links a, .button, .hero-pill, .home .card, .tools li, .footer a:not(.button), .finding, .finding h3, .how .card, .levels span { transition: none; }
  .chapters a { transition: none; }
  .answers summary svg { transition: none; }
}

/* The Contact page: the sentence and the ruled rows on the left, the form in its panel on the right.
   One column when the two no longer fit side by side. */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-10) var(--space-16); align-items: start; margin-top: clamp(var(--space-10), 6vw, calc(var(--space-16) + var(--space-2))); padding-bottom: clamp(var(--space-16), 9vw, calc(var(--space-16) + var(--space-12))); }
.contact-about { max-width: 440px; }
.contact-about > p { color: var(--ink-secondary); text-wrap: pretty; }
.contact-rows { margin: calc(var(--space-6) + var(--space-1)) 0 0; border-bottom: 1px solid var(--border-subtle); }
.contact-rows > div { padding: var(--space-4) 0; border-top: 1px solid var(--border-subtle); }
.contact-rows dt { margin-bottom: var(--space-0-5); }
.contact-rows dd { margin: 0; color: var(--ink-secondary); text-wrap: pretty; }
.contact-rows a, .contact-panel p a { color: var(--accent-text); text-decoration: none; }
.contact-rows a:hover, .contact-panel p a:hover { text-decoration: underline; }
.contact-panel { padding: clamp(var(--space-5), 3vw, var(--space-8)); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface-raised); box-shadow: var(--shadow-md); }
.contact-panel > p { color: var(--ink-secondary); }
.contact-form { display: flex; flex-direction: column; gap: calc(var(--space-4) + var(--space-0-5)); margin: 0; }
.contact-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: calc(var(--space-4) + var(--space-0-5)) calc(var(--space-3) + var(--space-0-5)); }
.field { display: flex; flex-direction: column; gap: var(--space-1-5); min-width: 0; margin: 0; padding: 0; border: 0; }
.field legend { padding: 0; margin-bottom: var(--space-1-5); }
.field input:not([type="radio"]), .field textarea, .field select { width: 100%; height: var(--space-10); padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink-primary); }
.field textarea { height: auto; padding: var(--space-2) var(--space-3); resize: vertical; }
.field select { padding-right: var(--space-2); }
.field ::placeholder { color: var(--ink-tertiary); opacity: 1; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger-text); font-weight: 400; }
.levels.topics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-0-5); margin: 0; border-radius: var(--radius-md); }
.levels.topics span { padding: var(--space-2) var(--space-3); }
.contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding-top: var(--space-1); }
.contact-send span, .contact-form noscript p { color: var(--ink-secondary); }
.contact-send .button:disabled { opacity: var(--opacity-disabled); cursor: default; }
.contact-sent { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: calc(var(--space-3) + var(--space-0-5)); min-height: 320px; }
.contact-sent[hidden], .contact-form[hidden] { display: none; }
.contact-sent p { max-width: 360px; color: var(--ink-secondary); text-wrap: pretty; }
.sent-tick { display: flex; align-items: center; justify-content: center; width: var(--space-10); height: var(--space-10); border-radius: var(--radius-lg); background: var(--success-subtle); color: var(--success); }
