/* Founding page composition, after LocalSEO.to's single-offer sequence. Parts and values come unchanged from the design
   system (tokens.css, components.css); this file only arranges them. Figures (prices, counts, the timer) take the display
   face; reading text takes the structure face; labels the label face. The whole set is LeanOS's column, row or part,
   marked by the accent line, never by a second colour. Red belongs to the price, the purchase actions and LeanOS's column only.
   Three surfaces carry everything: the module (raised), the ruled list (a line above each item) and the table; the tint
   ground marks only the fix's workspace and the price. Thresholds come from the content (see the page design record). */
.fd { --gap: clamp(20px, 2.4vw, 32px); }
.fd-fix, .fd-set, .fd-how, .fd-price, .fd-compare, .fd-column, .fd-faq, .fd-hero__inner, .fd-closing__inner { grid-template-columns: minmax(0, 1fr); }
.fd-offer__amount, .fd-count { overflow-wrap: anywhere; }
.fd :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
.fd :where(ul, ol) { list-style: none; padding: 0; }

/* ---- Type ---- */
.fd-display { font: var(--weight-display) var(--size-display)/1.05 var(--font-display); letter-spacing: -0.01em; color: var(--text); text-wrap: balance; overflow-wrap: anywhere; max-width: min(100%, 18ch); }
.fd-title { font: var(--weight-display) var(--size-title)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--text); text-wrap: balance; overflow-wrap: anywhere; }
.fd-name { font: 600 var(--size-heading)/1.35 var(--font-structure); letter-spacing: -0.015em; color: var(--text); text-wrap: balance; }
.fd-lead { font: 400 var(--size-lead)/1.5 var(--font-structure); color: var(--text-secondary); max-width: min(100%, 33em); text-wrap: pretty; }
.fd-text { font: 400 var(--size-body)/1.55 var(--font-structure); color: var(--text-secondary); max-width: min(100%, 34em); text-wrap: balance; }
.fd-note { font: 400 var(--size-meta)/1.5 var(--font-structure); color: var(--text-muted); max-width: min(100%, 52em); text-wrap: pretty; }
.fd-proof { font: 500 var(--size-quote)/1.35 var(--font-structure); letter-spacing: -0.015em; color: var(--text); max-width: min(100%, 28em); text-wrap: balance; }
/* No line ends on one word alone (Bella, 26 November).
   The build puts each part's last two words in .fd-keep (tools/build.py keep): an inline-block no wider than its line,
   so the two move down together when they fit side by side and wrap as usual when they don't (text-wrap: pretty in the
   measured Chromium left more single words than plain wrapping). Short text (actions, labels, cells) balances its lines.
   Zero specificity, so a part's own rule still decides. */
.fd-keep { display: inline-block; max-width: 100%; text-wrap: inherit; }
/* An inline-block takes no underline from its link, so a link's kept words draw the link's own. */
.link .fd-keep { text-decoration: underline 1px currentColor; text-underline-offset: inherit; }
.link:hover .fd-keep { text-decoration-thickness: 2px; }
:where(.fd, .fd-header, .fd-bar) :where(.button, .label, .fd-deal, .fd-secondary, th, td) { text-wrap: balance; }
.fd-proof strong { font-weight: inherit; }
.fd-proof--center { margin-inline: auto; text-align: center; }
.fd-live { font-variant-numeric: tabular-nums; }
.fd-live:is([data-live="price"], [data-live="next_price"], [data-live="time_left"]) { white-space: nowrap; }
.fd .button, .fd-header .button { white-space: normal; text-align: center; max-width: 100%; }
.fd-hero__inner > *, .fd-head > *, .fd-closing__inner > * { min-width: 0; }
.fd form, .fd-deal, .fd-head .label { max-width: 100%; }
/* The large main action is the desktop stage; on phones the kit's own button applies (full width in .actions). */
@media (width >= 37.5em) { .fd-button--large { min-height: 52px; padding-inline: 28px; font-size: var(--size-lead); } }

/* ---- Sections ---- */
.fd-section { padding-block: var(--space-section); }
.fd-section--tint { background: var(--fill-tint); }
.fd-head { display: grid; gap: var(--space-3); align-content: start; max-width: min(100%, 44rem); }
.fd-head.section-head { display: flex; margin-bottom: 0; } /* kit section-head; the page's grids carry the head gap */
.fd-head--center { margin-inline: auto; }
.fd-head--center .fd-lead, .fd-head--center .fd-text { margin-inline: auto; }
/* Short introductions share the line width; longer reading paragraphs keep pretty wrapping. */
.fd-hero .fd-lead, .fd-head--center .fd-lead, .fd-closing .fd-lead { text-wrap: balance; }
.fd-point, .fd-agent__spec dd, .fd-engines dd { text-wrap: pretty; }

/* ---- Header: the wordmark, the page's own anchors centred, the purchase at the end. Under 720 px the anchors
   leave and the wordmark and purchase keep the row (the page reads straight down). ---- */
.fd-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--header-height); }
.fd-header__nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); font: 400 var(--size-meta)/var(--leading-single) var(--font-label); }
.fd-header__nav a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text-secondary); text-decoration: none; }
.fd-header__nav a:hover { color: var(--text); }
.fd-header__act { margin: 0; }
.fd-header__act .button { min-height: 44px; }
@media (min-width: 45.0001em) { .fd-header__row { display: grid; grid-template-columns: 1fr auto 1fr; } .fd-header__nav { justify-self: center; } .fd-header__act { justify-self: end; } }
@media (max-width: 45em) { .fd-header__nav { display: none; } .fd-header { position: sticky; } }

/* ---- Hero: centred promise, the first-year card, one action with its conditions, the timer line, the demonstration link ---- */
.fd-hero { padding-block: var(--space-section); }
@media (width >= 37.5em) { .fd-hero { padding-block: clamp(56px, 8vw, 112px) clamp(56px, 7vw, 96px); } }
.fd-hero__inner { gap: var(--space-5); } /* kit hero-block--center: centred, one left axis on phones */
.fd-hero .fd-display { max-width: min(100%, 20ch); }
.fd-hero .fd-lead { max-width: min(100%, 35em); }
.fd-hero__act { margin: var(--space-3) 0 0; }
.fd-deal { display: inline-block; min-height: 32px; padding: var(--space-1) var(--space-4); border: var(--line) solid var(--line-regular); border-radius: var(--radius-pill); background: var(--raised); color: var(--text); text-decoration: none; font: 400 var(--size-meta)/1.4 var(--font-structure); }
.fd-deal::before { content: ""; display: inline-block; vertical-align: 0.05em; margin-right: var(--space-2); width: var(--signal-size); height: var(--signal-size); border-radius: var(--radius-round); background: var(--signal); box-shadow: var(--signal-glow); }
.fd-deal:hover { border-color: var(--accent-text); }
.fd-secondary { display: inline-flex; align-items: center; min-height: 24px; }
/* The two quieter ways on: the demonstration and the free Strategy workers (an external link, never a second button). */
.fd-hero__links { gap: var(--space-2) var(--space-6); max-width: 100%; } /* kit .actions, centred by hero-block--center */
.fd-hero__links .link--external::after { flex: none; }

/* ---- The workspace (in the fix): the design system's agent session with the reader's request beside the folders it leaves;
   side by side from 64 rem, stacked below ---- */
.fd-scene { display: grid; gap: var(--space-5); align-items: stretch; text-align: left; width: 100%; max-width: min(100%, 64rem); margin-inline: auto; }
@media (min-width: 64rem) { .fd-scene { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.fd-scene > * { min-width: 0; }
.fd-scene .terminal__head { flex-wrap: wrap; gap: var(--space-1) var(--space-4); }
.fd-scene .ws-session__prompt { margin-bottom: 0; color: var(--ink-muted); }
.fd-scene .terminal__body { font-size: var(--size-body); }
.fd-scene__files .ws-group-head { margin-bottom: var(--space-2); }
.fd-scene__list li.fd-scene__folder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--space-2); align-items: center; padding-block: var(--space-2); border-top: var(--line) solid var(--line-subtle); }
.fd-scene__list li.fd-scene__folder:first-child { border-top: 0; }
.fd-scene__names { grid-column: 2; color: var(--text-muted); font: 400 var(--size-meta)/var(--leading-body) var(--font-structure); overflow-wrap: anywhere; }
.fd-scene__name { white-space: nowrap; }
@media (max-width: 30em) { .fd-scene__name { white-space: normal; } }

/* ---- Problem (atlas B12 text column): heading, opening, the costs as a ruled list and the conclusion in one column ---- */
.fd-column { display: grid; gap: var(--space-6); max-width: min(100%, 44rem); }
.fd-stack { display: grid; gap: var(--space-5); align-content: start; }
.fd-points { display: grid; }
.fd-point { padding-block: var(--space-4); border-top: var(--line) solid var(--text); font: 400 var(--size-body)/1.55 var(--font-structure); color: var(--text); }

/* ---- Fix: the promise centred, then the workspace ---- */
.fd-fix { display: grid; gap: var(--space-7); }
.fd-fix .fd-head { max-width: min(100%, 46rem); }

/* ---- What's inside: the existing nine areas share a responsive module grid. ---- */
.fd-set { display: grid; gap: var(--space-7); }
.fd-engines { display: grid; gap: var(--space-4); }
.fd-engines .terms { margin: 0; }
.fd-engines .terms dd { font-size: var(--size-body); }
/* The nine areas are the kit's index: modules in tracks of at least 19rem, one ruled surface on phones. */
.fd-jobs { gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.fd-job { grid-template-rows: auto 1fr; } /* an area has two parts, its name and its line (the kit's index reserves four) */
.fd-job .fd-name { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-4); }
.fd-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fd-count { font: 400 var(--size-body)/1 var(--font-exact); color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-job--atlas { border-color: var(--line-regular); } /* as released: the tint entry keeps its edge */

/* ---- Rare work (atlas B07 copy beside a nested group): the heading and the three fields beside what an agent holds ---- */
.fd-rare { display: grid; gap: var(--space-7) var(--space-8); align-items: start; }
@media (min-width: 60em) { .fd-rare { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fd-rare__copy { display: grid; gap: var(--space-6); }
.fd-cols { display: grid; }
.fd-cols > li { display: grid; gap: var(--space-1); padding-block: var(--space-4); border-top: var(--line) solid var(--line-regular); }
.fd-agent { display: grid; gap: var(--space-5); padding: var(--space-6); background: var(--raised); border: var(--line) solid var(--line-regular); border-radius: var(--radius-surface); box-shadow: var(--edge-light), var(--lift-1); }
.fd-agent__spec { max-width: none; }
.fd-agent__spec dd { font-size: var(--size-body); }

/* ---- How it works (atlas B13 list): four numbered rows, then what's needed as one line ---- */
.fd-how { display: grid; gap: var(--space-7); }
.fd-steps { counter-reset: how; display: grid; max-width: min(100%, 52rem); }
.fd-step { counter-increment: how; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-1) var(--space-4); padding-block: var(--space-4); border-top: var(--line) solid var(--line-regular); }
.fd-step::before { content: counter(how); grid-row: span 2; font: var(--weight-display) var(--size-title)/1 var(--font-display); color: var(--text-muted); }
.fd-needs { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); }
.fd-needs ul { display: flex; flex-wrap: wrap; gap: var(--space-1) 0; }
.fd-needs li { font: 400 var(--size-small)/1.5 var(--font-structure); color: var(--text-secondary); }
.fd-needs li + li::before { content: "·"; padding-inline: var(--space-3); color: var(--text-muted); }

/* ---- Price: heading and ladder centred, the live timer, then the offer (price, inclusions, action) beside the maths ---- */
.fd-price { display: grid; gap: var(--space-6); }
.fd-price .fd-head { max-width: min(100%, 40rem); }
.fd-timer { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--space-2) var(--space-5); font: 400 var(--size-small)/1.5 var(--font-label); color: var(--text); text-align: center; }
.fd-timer [data-live="time_left"] { font: 500 var(--size-quote)/1 var(--font-exact); color: var(--accent-text); }
.fd-timer__next { color: var(--text-muted); }
.fd-timer { max-width: 100%; }
.fd-timer .fd-live { white-space: normal; overflow-wrap: anywhere; }
.fd-timer [data-live="time_left"] { display: inline-block; }
.fd-price__grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 60em) { .fd-price__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; } }
.fd-offer.plan { grid-row: auto; grid-template-rows: none; gap: var(--space-5); }
.fd-maths { display: grid; gap: var(--space-5); min-width: 0; align-content: start; }
.fd-offer__amount { font: var(--weight-display) clamp(2.75rem, calc(1.5rem + 5vw), 4.5rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--text); }
.fd-offer__list { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: var(--line) solid var(--line-regular); }
.fd-offer__list li { position: relative; padding-left: var(--space-5); font: 400 var(--size-body)/1.5 var(--font-structure); color: var(--text); }
.fd-offer__list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: var(--radius-round); background: var(--text-muted); }
.fd-offer form { margin: 0; }
.fd-maths__rows { margin: 0; max-width: none; }
/* The kit's spec list with figures (dd.figure: on phones the figure stays at its row's end); the same row at every width. */
.fd-maths__rows > div { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); padding-block: var(--space-4); }
.fd-maths__rows dt { font: 400 var(--size-body)/1.5 var(--font-structure); letter-spacing: normal; text-transform: none; color: var(--text-secondary); }
.fd-maths__rows dd { font: 400 var(--size-body)/1.4 var(--font-exact); color: var(--text); text-align: right; }
.fd-maths__ours dt { color: var(--text); font-weight: 600; }
.fd-maths__ours dd { color: var(--accent-text); font-weight: 600; }


/* ---- Compare: centred head, then LeanOS's set beside the four alternatives. Three presentations of the one table,
   chosen by the width its frame actually has (container queries in rem, so 200% text moves down a presentation too):
   - table, from 64.25rem: row names 9rem and five columns of at least 11rem (a 9.5rem measure plus 0.75rem padding
     each side), so no cell runs narrower than about 21 characters and nothing scrolls sideways;
   - LeanOS against one alternative, below that: the chooser (the design system's segmented control) picks the
     alternative; each row's name runs across the top of its pair and the two values sit side by side, the LeanOS one on
     the tint with the accent line as in the table. The pair holds the longest two-word ending of any value on one line
     ("connected workflows", 148 px at 14.25 px) with 10 px padding each side: 2 x (148 + 20) + 2 = 338 px, so 21.5rem;
     From 40rem the row names return to the side (9rem) and the pair reads as a three-column table;
   - below 21.5rem, and without script: each row's values stack, each under its column name (the design system's
     stacked-table rule, data-label), with the chooser keeping it to LeanOS and one alternative when script runs.
   LeanOS's column is the tint with the accent line above it; red stays with the price and purchase. ---- */
.fd-compare { display: grid; gap: var(--space-6); }
.fd-versus { container: versus / inline-size; display: grid; gap: var(--space-4); min-width: 0; }
.fd-table { border: var(--line) solid var(--line-regular); border-radius: var(--radius-surface); background: var(--raised); overflow: hidden; }
.fd-table table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font: 400 var(--size-small)/1.5 var(--font-structure); }
.fd-table :is(th, td) { padding: var(--space-4) var(--space-3); text-align: left; vertical-align: top; border-bottom: var(--line) solid var(--line-regular); color: var(--text-secondary); text-wrap: balance; overflow-wrap: break-word; }
.fd-table tbody tr:last-child > * { border-bottom: 0; }
.fd-table thead :is(th, td) { color: var(--text); font-weight: 600; vertical-align: bottom; }
.fd-table th[scope="row"], .fd-table thead td { width: 9rem; padding-inline: var(--space-4) var(--space-3); color: var(--text-muted); font: 400 var(--size-label)/1.5 var(--font-label); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.fd-table .fd-ours { background: var(--fill-tint); color: var(--text); font-weight: 600; }
.fd-table thead .fd-ours { box-shadow: inset 0 2px 0 var(--accent); color: var(--accent-text); }
.fd-figures td { font-family: var(--font-exact); color: var(--text); }
.fd-table td[data-label]::before { content: none; }

/* The chooser: shown only below the table's width and once script has chosen (data-alt on .fd-versus). */
.fd-choose { display: none; }
.fd-choose.segmented { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: var(--radius-control); }
.fd-choose.segmented button { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: calc(var(--radius-control) - 3px); font: 500 var(--size-small)/1.3 var(--font-structure); text-align: center; text-wrap: balance; }

@container versus (width < 64.25rem) {
  .fd-versus[data-alt] .fd-choose { display: grid; }
  .fd-table table, .fd-table tbody, .fd-table tr, .fd-table :is(th, td) { display: block; width: auto; }
  .fd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fd-table tbody tr { display: grid; border-bottom: var(--line) solid var(--line-regular); }
  .fd-table tbody tr:last-child { border-bottom: 0; }
  .fd-table tbody :is(th, td) { border-bottom: 0; padding: var(--space-1) var(--space-4); }
  .fd-table th[scope="row"] { width: auto; padding-block: var(--space-4) var(--space-2); }
  .fd-table tbody td:last-child { padding-bottom: var(--space-4); }
  .fd-table td.fd-ours { padding-block: var(--space-2); box-shadow: inset 2px 0 0 var(--accent); }
  .fd-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--text-muted); font: 400 var(--size-label)/var(--leading-heading) var(--font-label); letter-spacing: var(--tracking-label); text-transform: uppercase; text-wrap: balance; }
  .fd-table td.fd-ours::before { color: var(--accent-text); }
  .fd-table tbody td + td:not(.fd-ours) { padding-top: var(--space-3); }
  /* One alternative at a time: data-alt is the chosen column (2–5), cell n + 1 in each row. */
  .fd-versus[data-alt] tr > :nth-child(n + 3) { display: none; }
  .fd-versus[data-alt="2"] tr > :nth-child(3), .fd-versus[data-alt="3"] tr > :nth-child(4),
  .fd-versus[data-alt="4"] tr > :nth-child(5), .fd-versus[data-alt="5"] tr > :nth-child(6) { display: block; }
}
@container versus (width < 64.25rem) and (width >= 21.5rem) {
  /* The pair: names once, as the table's head row; each row's name across the top, the two values side by side. */
  .fd-versus[data-alt] .fd-table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; display: block; }
  .fd-versus[data-alt] .fd-table thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: var(--line) solid var(--line-regular); }
  .fd-versus[data-alt] .fd-table thead :is(th, td) { display: block; width: auto; border-bottom: 0; padding: var(--space-3) 10px; }
  .fd-versus[data-alt] .fd-table thead td { display: none; }
  .fd-versus[data-alt] .fd-table thead tr > :nth-child(n + 3) { display: none; }
  .fd-versus[data-alt="2"] .fd-table thead tr > :nth-child(3), .fd-versus[data-alt="3"] .fd-table thead tr > :nth-child(4),
  .fd-versus[data-alt="4"] .fd-table thead tr > :nth-child(5), .fd-versus[data-alt="5"] .fd-table thead tr > :nth-child(6) { display: block; }
  .fd-versus[data-alt] .fd-table tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fd-versus[data-alt] .fd-table th[scope="row"] { grid-column: 1 / -1; }
  .fd-versus[data-alt] .fd-table tbody td, .fd-versus[data-alt] .fd-table tbody td + td:not(.fd-ours) { margin: 0; padding: var(--space-2) 10px var(--space-4); border-radius: 0; }
  .fd-versus[data-alt] .fd-table td.fd-ours { box-shadow: none; }
  .fd-versus[data-alt] .fd-table td[data-label]::before { content: none; }
}
@container versus (width < 64.25rem) and (width >= 40rem) {
  /* Wide enough for row names at the side again (9rem beside two values of at least 15rem): a three-column table. */
  .fd-choose.segmented { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fd-versus[data-alt] .fd-table :is(thead, tbody) tr { grid-template-columns: 9rem repeat(2, minmax(0, 1fr)); }
  .fd-versus[data-alt] .fd-table thead td { display: block; }
  .fd-versus[data-alt] .fd-table th[scope="row"] { grid-column: auto; padding-block: var(--space-4); }
  .fd-versus[data-alt] .fd-table tbody td, .fd-versus[data-alt] .fd-table tbody td + td:not(.fd-ours) { padding: var(--space-4) var(--space-4); }
  .fd-versus[data-alt] .fd-table thead :is(th, td) { padding: var(--space-4); }
}
.fd-fine { max-width: min(100%, 52rem); margin-inline: auto; text-align: center; font: 400 var(--size-meta)/1.55 var(--font-structure); color: var(--text-muted); text-wrap: pretty; }
.fd-fit { max-width: min(100%, 44rem); margin-inline: auto; text-align: center; font: 400 var(--size-body)/1.55 var(--font-structure); color: var(--text-secondary); text-wrap: pretty; }

/* ---- FAQ: heading held at the left, the questions as an accordion at the right ---- */
.fd-faq { display: grid; gap: var(--space-6) var(--space-8); }
/* The held heading column keeps "Straight answers." on one line: 318 px at 960 in Doto 32 px, so at least 21rem. */
@media (min-width: 60em) { .fd-faq { grid-template-columns: minmax(21rem, 4fr) minmax(0, 7fr); } .fd-faq .fd-head { position: sticky; top: calc(var(--header-height) + var(--space-6)); } }
.fd-faq__list summary { min-height: 44px; font: 600 var(--size-body)/1.4 var(--font-structure); color: var(--text); }
.fd-faq__list .accordion__body { margin: 0; font: 400 var(--size-body)/1.6 var(--font-structure); text-wrap: pretty; }

/* ---- Closing: plain, on the page's ground, centred ---- */
.fd-closing__inner { display: grid; justify-items: center; text-align: center; gap: var(--space-5); }
.fd-display--closing { max-width: min(100%, 16ch); }
.fd-closing form { margin: var(--space-2) 0 0; }

/* ---- Footer: the wordmark and the five destinations, clear of the floating bar ---- */
.fd-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.fd-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.fd-footer__links a { display: inline-flex; align-items: center; min-height: 24px; color: var(--text-secondary); text-decoration: none; font: 400 var(--size-meta)/1.4 var(--font-label); }
.fd-footer__links a:hover { color: var(--text); }

/* ---- Floating bar: after the opening, away from the price block, the closing and the footer ---- */
.fd-bar { position: fixed; inset: auto 0 0 0; z-index: var(--layer-sticky); background: var(--fill-header); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: var(--line) solid var(--line-regular); transform: translateY(0); transition: transform var(--motion-regular) var(--ease-state), visibility 0s; }
.fd-bar[hidden] { display: block; visibility: hidden; transform: translateY(100%); transition: transform var(--motion-regular) var(--ease-state), visibility 0s var(--motion-regular); }
.fd-bar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); min-height: var(--header-height); padding-block: var(--space-2); }
.fd-bar__text { display: block; min-width: 0; padding-block: var(--space-2); color: var(--text); text-decoration: none; font: 400 var(--size-meta)/1.4 var(--font-label); }
@media (max-width: 45em) { .fd-bar__text { font-family: var(--font-structure); } }
.fd-bar__text::before { flex: none; content: ""; display: inline-block; vertical-align: 0.05em; margin-right: var(--space-2); width: var(--signal-size); height: var(--signal-size); border-radius: var(--radius-round); background: var(--signal); box-shadow: var(--signal-glow); }
.fd-bar form, .fd-bar__action { margin: 0; flex: none; }
.fd-bar .button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .fd-bar, .fd-bar[hidden] { transition: none; } }

/* ---- Offer states: <html data-offer> is live (the default), last or closed. Each state shows only its own text; once
   closed the purchase actions leave every page: those marked data-when, the header action and the floating bar. ---- */
:root:not([data-offer="last"], [data-offer="closed"]) [data-when]:not([data-when~="live"]),
:root[data-offer="last"] [data-when]:not([data-when~="last"]),
:root[data-offer="closed"] [data-when]:not([data-when~="closed"]),
:root[data-offer="closed"] :is(.fd-header__act, .fd-bar) { display: none !important; }
:root[data-offer="closed"] .fd-offer__list { padding-top: 0; border-top: 0; }
.fd-figure > [data-when="closed"] { display: block; font: 600 var(--size-heading)/1.3 var(--font-structure); letter-spacing: -0.015em; }

/* ---- Touch: the page's own pressed parts that the kit's link and button rules do not reach take its 44 px floor ---- */
@media (pointer: coarse) {
  .fd-deal { position: relative; }
  .fd-deal::after { content: ""; position: absolute; inset: -7px 0; } /* 46 px, so a fractional row position still leaves 44 */
  .fd-footer__links a { min-height: var(--target-floor); }
  .fd-bar__text { display: flex; align-items: center; min-height: var(--target-floor); padding-block: 0; }
  /* The campaign /terms/ (which carries this stylesheet): contents and referrals links inside list items (G-1). */
  [data-slot^="contents.item"][data-slot$=".action"], [data-slot="body.referrals.link"] { display: inline-flex; align-items: center; min-height: var(--target-floor); }
}
/* Phones: the footer's five links in two rows (three, then two); the timer follows the kit's left axis. */
@media (width < 37.5em) {
  .fd-footer__links { row-gap: 0; }
  .fd-footer__links::before { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .fd-footer__links a:nth-child(n+4) { order: 2; }
  .fd-timer { justify-self: start; justify-content: flex-start; text-align: left; }
}

/* Narrowest phones (under 360 px): the bar's line takes the full width above its action instead of wrapping beside it. */
@media (max-width: 22.49em) {
  .fd-bar__row { flex-wrap: wrap; row-gap: var(--space-1); }
  .fd-bar__text { flex: 1 1 100%; min-height: 0; padding-top: var(--space-1); }
  .fd-bar form, .fd-bar__action { flex: 1 1 100%; }
  .fd-bar form .button, .fd-bar__action { width: 100%; justify-content: center; }
}

/* Text a page script writes in place (the receipt's "@username" lines) cannot carry the build's kept last two words;
   pretty wrapping keeps its last line from one word (Purchase at 414 px under the kit's 17 px phone lead). */
[data-username] { text-wrap: pretty; }

/* Learn index on touch: an article title's link receives taps over the 44px floor without moving the list. */
@media (pointer: coarse) {
  .blog-entry .heading .link { display: inline-block; padding-block: max(0px, calc((44px - 1lh) / 2)); margin-block: min(0px, calc((1lh - 44px) / 2)); }
}

/* Static workspace: accepted Brand documents frame, list and filesystem parts. */
#demo .fd-fix { gap: var(--space-section); }
.fd-workspace { min-width: 0; }
.fd-workspace .wf-frame__content { padding: var(--space-module); }
.fd-workspace__heading { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.fd-workspace .list__item, .fd-workspace .wc-brand-file { font-size: var(--size-body); }
.fd-workspace .list__title { display: block; overflow-wrap: anywhere; text-wrap: balance; }
.fd-workspace .list__line { text-wrap: balance; }
.fd-workspace .wc-brand-file { cursor: default; }
/* Phones: a file name keeps its own line (rows at text height are the kit's). The tree's indent gives back its padding
   first (8 px row, 12 px per level); under 360 px the names return to the design system's file size (meta), since
   "potential-buyers.csv" needs 200 px at 16 px and the tree leaves it 180 px at 320. */
@media (width < 37.5em) {
  .fd-workspace .wc-brand-file { padding-inline: var(--space-2); }
  .fd-workspace .wc-brand-tree ul { margin-left: var(--space-1); padding-left: var(--space-2); }
}
@media (max-width: 22.49em) { .fd-workspace .wc-brand-file { font-size: var(--size-meta); } }

/* Beyond posts and copy: specialist coverage, followed by a worker's method and evidence. */
.rx-section { scroll-margin-top: var(--header-height); background: var(--canvas); --rx-tab-fill: var(--ink); --rx-tab-edge: color-mix(in oklab, var(--lean-red) 18%, var(--line-regular)); }
.rx-content { display: grid; gap: 32px; }
.rx-intro { max-width: 50rem; }
.rx-intro .fd-lead { max-width: 49rem; text-wrap: pretty; }
.rx-specialties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-gutter); }
.rx-specialty.card { display: grid; grid-row: auto; grid-template-rows: auto auto 1fr; gap: 12px; padding: 24px; align-content: start; }
.rx-specialty > .rx-symbol { width: 24px; height: 24px; color: var(--text); }
.rx-specialty .fd-name { font-size: 20px; line-height: 1.3; text-wrap: pretty; }
.rx-specialty .fd-text { font-size: 16px; line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
/* One vertical section: specialty value first, then compact supporting detail. */
.rx-primary { display: grid; gap: 28px; min-width: 0; }
.rx-primary .rx-specialties { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-gutter); }
.rx-primary .rx-specialty.card { grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 16px; padding: 20px 24px; }
.rx-primary .rx-symbol { grid-row: span 2; }
.rx-primary .rx-specialty .fd-text { grid-column: 2; }
.rx-depth.module { display: grid; gap: 16px; padding: 20px 24px; background: var(--ink); border-color: var(--ink); box-shadow: none; }
.rx-depth h3 { margin: 0; font: 400 18px/1.35 var(--font-structure); color: var(--text); }
.rx-depth-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin: 0; }
.rx-depth-spec > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line-regular); }
.rx-depth-spec dt { font: 400 14px/1.5 var(--font-label); color: var(--text-secondary); }
.rx-depth-spec dd { margin: 0; font: 400 16px/1.55 var(--font-structure); color: var(--text-secondary); text-wrap: pretty; }
@media(max-width: 47.999em) {
  .rx-primary { gap: 24px; }
  .rx-primary .rx-specialties { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rx-primary .rx-specialty.card { padding: 16px; gap: 8px 12px; }
  .rx-primary .rx-specialty .fd-name { font-size: 18px; }
  .rx-depth.module { padding: 16px; gap: 16px; }
  .rx-depth-spec { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rx-depth-spec > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

.rx-symbol .icon { display: block; width: 24px; height: 24px; }

.rx-depth { scroll-margin-top: var(--header-height); }
.rx-depth-spec > div:nth-child(n+3) dt { color: var(--text); font-weight: 400; }
.rx-depth-spec > div:nth-child(n+3) dd { color: var(--text); font-weight: 400; }

/* An attached file tab identifies the specialty the supporting detail belongs to. */
.rx-depth-file { min-width: 0; scroll-margin-top: var(--header-height); --text: var(--ink-muted); --text-secondary: var(--ink-muted); --line-regular: var(--terminal-line); }
.rx-file-tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 12px 18px; margin-bottom: -1px; border: 1px solid var(--rx-tab-fill); border-bottom-color: var(--rx-tab-fill); border-radius: 12px 12px 0 0; background: var(--ink); color: var(--text); font: 400 14px/1.5 var(--font-exact); }
.rx-file-tab > .icon { flex: none; width: 18px; height: 18px; color: var(--signal); }
.rx-file-tab > span:not(.icon) { min-width: 0; }
.rx-depth-file .rx-depth { border-top-left-radius: 0; }
@media(max-width:47.999em) { .rx-file-tab { padding: 10px 14px; gap: 8px; } }

/* The expanded persuasion example shares a restrained accent with its source card. */
.rx-specialty.card:first-child { background: var(--fill-raised); border-color: transparent; box-shadow: var(--edge-light), 0 6px 18px oklch(from var(--ink) l c h / 0.18); }
.rx-specialty:first-child .fd-name { color: var(--text); font-weight: 600; }
.rx-specialty:first-child .rx-symbol { color: var(--text); }

.rx-file-tab h3 { min-width: 0; margin: 0; color: inherit; font: inherit; }


/* Founding deal: owner-supplied desktop and phone references. */
.deal-section .timer{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 20px;background:var(--raised);border:1px solid var(--line-regular);border-radius:var(--radius-pill);box-shadow:var(--edge-light)}
.deal-section .timer__light{width:8px;height:8px;border-radius:50%;background:var(--signal);box-shadow:var(--signal-glow)}
.deal-section .timer__label{font:400 var(--size-meta)/1.2 var(--font-label);color:var(--text-secondary)}
.deal-section .timer__time{font:600 18px/1.2 var(--font-exact);font-variant-ligatures:none;font-variant-numeric:tabular-nums;color:var(--text)}
.deal-section .perks{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.deal-section .perks li{display:flex;align-items:baseline;gap:12px;font-size:var(--size-small);line-height:1.5;color:var(--text-secondary)}
.deal-section .perks li::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--text-muted);transform:translateY(-2px)}
.deal-section .maths{margin:0;padding:0;list-style:none}
.deal-section .maths li{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:10px 0;border-top:1px solid var(--line-subtle);font-size:var(--size-meta);line-height:1.45;color:var(--text-muted)}
.deal-section .maths .fig{font:400 var(--size-meta)/1.4 var(--font-exact);font-variant-ligatures:none;font-variant-numeric:tabular-nums;color:var(--text-secondary);white-space:nowrap}
.deal-section .maths .row-label{display:block}
.deal-section .maths .sum{display:block;margin-top:2px;font:400 12px/1.5 var(--font-exact);font-variant-ligatures:none;color:var(--text-muted)}
.deal-section .maths li.total{color:var(--text-secondary)}
.deal-section .maths li.total .fig{color:var(--text-secondary)}


.deal-section { scroll-margin-top: var(--header-height); }
@media(max-width:37.499em) {
.deal-section { max-width: 440px; padding: 32px 20px !important; margin-inline: auto; }
.deal-section .timer { gap: 8px; padding: 0 14px; white-space: nowrap; }
.deal-section .timer__label { font: 400 12px/1.2 var(--font-label); }
.deal-section .timer__time { font: 600 16px/1.2 var(--font-exact); }
.deal-section .deal-amount { font-size: 40px !important; }
}

/* Preserve the one-line timer at the longer last-step label on the narrowest phones. */
@media(max-width:22.499em) {
  html[data-offer="last"] .deal-section .timer { gap: 4px; padding-inline: 6px; }
}

/* Desktop closing trial: message on the left, checkout action on the right. */
@media(min-width:64em) {
  .fd-closing__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 64px; align-items: center; justify-items: start; text-align: left; }
  .fd-closing__inner > .fd-display { grid-column: 1; grid-row: 1; max-width: min(100%, 23ch); }
  .fd-closing__inner > .fd-lead { grid-column: 1; grid-row: 2; margin-inline: 0; }
  .fd-closing .fd-closing__inner > form { grid-column: 2; grid-row: 1 / span 2; justify-self: end; margin: 0; }
  .fd-closing__inner > .fd-note { grid-column: 2; grid-row: 3; }
  .fd-closing__inner > .fd-note:empty { display: none; }
  :root[data-offer="closed"] .fd-closing__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Give the desktop hero headline room to read as a single statement. */
@media(min-width:64em) {
  .fd-hero .fd-display { max-width: min(100%, 28ch); }
  .fd-hero .fd-lead { width: 100%; max-width: min(100%, 44em); }
}
