/* Styles for the landing page, the setup guide, the legal pages and the 404 page. Adapted from crm-sheet-sync's public/styles.css (D-01), cut to what
   these pages use; the app (step 4) brings its own app.css.
   Colors: components use the --color-text-*, --color-bg-*, --color-border-* and --color-fg-* roles from brand-tokens.css (policies/brand.md "Color roles"),
   never a raw color or a hex value (test/pages/colors.test.ts). Plain CSS, system fonts, no third-party requests (policies/web.md).
   Spacing: every margin, padding, gap and inset is a --space-* token from brand-tokens.css, and the layout width, side padding, gutter and
   paragraph width are --container-max, --container-pad, --gutter and --paragraph-max (policies/brand.md "Spacing and grid";
   test/pages/spacing.test.ts fails on a typed number). Sizes of controls, borders and radii are not spacing and stay typed.
   Type: every font-size, line-height and heading letter-spacing is a --text-* or --display-* token (policies/brand.md "Type"; test/pages/type.test.ts).
   Layout variables below are ours and start with --l- so they can't be mistaken for brand tokens.
   Mobile first: base rules are for 320 to 767px; the tablet step is 768px (the tokens' own breakpoint); the two-column hero and the three- and
   four-across cards wait for 1024px, because three cards or a table beside text are too narrow on a 768px tablet. */
:root {
  --l-section: var(--space-16);   /* 64px between page sections on a phone */
  /* Two content widths and no third (crm-sheet-sync UX review 2026-11-14): the full container for grids, and this one for a table and the FAQ. */
  --l-medium: 55rem;              /* 880px */
  /* The height of the top bar. It is fixed over the page (the mesh runs up behind it), so the first block of each page adds this much padding. */
  --l-bar: 56px;
}
@media (min-width: 768px) { :root { --l-section: var(--space-24); --l-bar: 72px; } }  /* 96px from tablet up; the bar is 72px high */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-text);
  font-size: var(--text-md);
  line-height: var(--text-md-lh);
  font-weight: var(--weight-regular);
}
img, svg { max-width: 100%; }
a { color: var(--color-text-brand-primary); }
/* Headings: Untitled UI's display steps, sized the way policies/brand.md "Responsive headings" says. The sizes from 1024px are the desktop sizes.
   Tablet (768 to 1023px) is one step smaller on the scale and a phone (below 768px) two steps smaller, but never as small as the level below, so
   h1 > h2 > h3 > body holds at every width. Only display-md and up have a letter-spacing token. */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--weight-semibold); text-wrap: balance; margin: 0 0 var(--space-3); }
/* page title (legal pages, setup, 404): desktop display-md, tablet display-sm, phone display-xs */
h1 { font-size: var(--display-xs); line-height: var(--display-xs-lh); }
/* hero title: desktop display-xl, tablet display-lg, phone display-md */
.hero h1 { font-size: var(--display-md); line-height: var(--display-md-lh); letter-spacing: var(--display-md-ls); }
/* section title: desktop display-md, tablet display-sm, phone display-xs */
h2 { font-size: var(--display-xs); line-height: var(--display-xs-lh); }
/* card title: desktop text-xl, then text-lg (one more step would be body size) */
h3 { font-size: var(--text-lg); line-height: var(--text-lg-lh); }
h4 { font-size: var(--text-lg); line-height: var(--text-lg-lh); }
@media (min-width: 768px) {
  h1 { font-size: var(--display-sm); line-height: var(--display-sm-lh); }
  .hero h1 { font-size: var(--display-lg); line-height: var(--display-lg-lh); letter-spacing: var(--display-lg-ls); }
  h2 { font-size: var(--display-sm); line-height: var(--display-sm-lh); }
}
@media (min-width: 1024px) {
  h1 { font-size: var(--display-md); line-height: var(--display-md-lh); letter-spacing: var(--display-md-ls); }
  .hero h1 { font-size: var(--display-xl); line-height: var(--display-xl-lh); letter-spacing: var(--display-xl-ls); }
  h2 { font-size: var(--display-md); line-height: var(--display-md-lh); letter-spacing: var(--display-md-ls); }
  h3 { font-size: var(--text-xl); line-height: var(--text-xl-lh); }
}
/* Body text never runs longer than 720px, however wide the container is. */
p { margin: 0 0 var(--space-4); max-width: var(--paragraph-max); }
code, .mono { font-family: var(--font-mono); font-size: var(--text-sm); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-border-brand);
  outline-offset: 2px;
}

.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
/* Hidden above the window until focused. It is moved with transform, not a typed negative offset, so no raw length is needed. */
.skip { position: absolute; left: var(--space-2); top: var(--space-2); transform: translateY(-300%); background: var(--color-bg-brand-solid); color: var(--color-text-primary_on-brand); padding: var(--space-2) var(--space-4); border-radius: 8px; z-index: 10; }
.skip:focus { transform: none; }
.muted { color: var(--color-text-secondary); }
.small { font-size: var(--text-sm); line-height: var(--text-sm-lh); }

/* icons (policies/brand.md "Icons"): Untitled UI SVGs that draw with currentColor, so the color is set here from a --color-fg-* role. */
.icon { flex: none; vertical-align: middle; color: var(--color-fg-primary); }
.icon--brand { color: var(--color-fg-brand-primary); }
.icon--error { color: var(--color-fg-error-primary); }
/* B-02 (policies/brand.md "More colour"): green for a good outcome only. On these sales pages yellow is the main button's alone (amended
   2026-11-18, "Yellow button"), so no icon or tile is yellow here. */
.icon--good { color: var(--color-fg-success-primary); }
/* Icon tiles: feature and problem icons sit in a soft square, indigo by default, green where the outcome is good. The tile is 48px, a control size, so it is typed; the radius is the logo radius. A grid, not a centred flex row: audit.js
   (layout-review) reads a centring flex box as a block meant to sit on the section's centre line. */
.tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--color-bg-brand-primary); }
.tile--good { background: var(--color-bg-success-primary); }
/* The marker: one key phrase of the hero h1 (at most one per page). Soft indigo with the text colour, not yellow: on a sales page yellow is
   kept for the main button (B-02 amended 2026-11-18). It wraps line by line (box-decoration-break: clone).
   The tint covers only the lower part of the inline box: a plain background paints the font's whole content area, which is taller than the
   h1's line height and rose 2px (phone) to 4px (desktop) into the line above when the h1 wrapped (Valentin, on crm-sheet-sync's marker,
   2026-11-18: "the indigo highlighter is overflowing on the letters on the line on top"). The stops are measured on our system font:
   0.18em off the top and 0.1em off the bottom keep the tint inside its own line at 320 to 1280px (test/browser/colour.spec.ts).
   No vertical padding, so the h1 keeps its own line height. Square corners: the tint starts 0.18em below the box top, so a radius rounded only
   the bottom corners (Valentin, 2026-11-18: "it's not fully squared"; ai-work brand.md a086be2). */
.marker {
  background: linear-gradient(transparent 0.18em, var(--color-bg-brand-primary) 0.18em, var(--color-bg-brand-primary) calc(100% - 0.1em), transparent 0);
  color: var(--color-text-primary); padding: 0 var(--space-1); border-radius: 0;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 1024px) { .marker { padding: 0 var(--space-2); } }
/* Dark mode: the lilac brand step instead of the dark soft indigo (Valentin, 2026-11-19, on "HubSpot company": "try with the lila brand
   color instead in dark mode"): --color-bg-brand-solid (--accent, #748ffc in dark mode) with --color-text-primary_on-brand (#0f1220) text, 6.2:1. The soft indigo hardly stood out
   on the dark mesh. */
@media (prefers-color-scheme: dark) {
  .marker { color: var(--color-text-primary_on-brand);
    background: linear-gradient(transparent 0.18em, var(--color-bg-brand-solid) 0.18em, var(--color-bg-brand-solid) calc(100% - 0.1em), transparent 0); }
}
.btn .icon { color: var(--color-fg-white); }

/* header: logo, the section links and one action. The page has one goal (policies/content.md section 1). */
.site-header { border-bottom: 1px solid var(--color-border-primary); background: var(--color-bg-primary); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--color-text-primary); font-weight: var(--weight-semibold); text-decoration: none; white-space: nowrap; }
/* The mark: the kit's small-cut symbol (the same file as the favicon), drawn as an image at 32 px. Its colours are fixed in the SVG, so it needs no
   CSS colour, and it is not clipped: the kit guidelines forbid cropping the mark. */
.mark { display: block; flex: none; width: 32px; height: 32px; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
/* The public pages' bar: logo, plain words in the text colour at weight 500 with a 2px line that draws under the word on hover and focus, one pill
   button at the right. It is fixed over the top of the page, not in the flow (the mesh behind the hero runs up to the top edge, Valentin
   2026-11-19), and its look at the top of the page and when scrolled is the block "The header" at the end of this file. 72px high (56px below
   768px); the section links show from 768px; below, the bar keeps the logo and the one button (no script, so no menu). Nothing here depends on an
   exact fit: the heights are minimums, the button's words may wrap on a phone (its label is long), and on a tablet the words and the button are
   one size smaller (crm-sheet-sync lessons 2026-11-14: a font wider than ours scrolled sideways). */
.site-header--bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; min-height: var(--l-bar); }
.site-header--bar .wrap { flex: 1 1 auto; min-width: 0; min-height: 0; }
/* An in-page link lands its section under the pill (12px from the top, then the bar's height), not behind it. */
html:has(.site-header--bar) { scroll-padding-top: calc(var(--space-3) + var(--l-bar) + var(--space-2)); }
.site-nav { display: none; }
@media (max-width: 767px) { .site-header--bar .btn--small { padding-inline: var(--space-3); text-align: center; } }
@media (min-width: 768px) {
  .site-header--bar .btn { white-space: nowrap; }
  .site-nav { display: flex; align-items: center; margin-right: auto; }
  .site-nav a { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-2); border-radius: 8px;
    font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-medium);
    color: var(--color-text-primary); text-decoration: none; white-space: nowrap; }
  .site-nav__line { position: absolute; left: var(--space-2); right: var(--space-2); bottom: 0; height: 2px; border-radius: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.2s ease; pointer-events: none; }
  .site-nav a:hover .site-nav__line, .site-nav a:focus-visible .site-nav__line { transform: scaleX(1); transform-origin: left; }
}
@media (min-width: 1024px) {
  .site-nav { gap: var(--space-1); margin-left: var(--space-8); }
  .site-nav a { padding: 0 var(--space-3); font-size: var(--text-md); line-height: var(--text-md-lh); }
  .site-nav__line { left: var(--space-3); right: var(--space-3); }
  .site-header--bar .btn--small { min-height: 44px; padding: var(--space-2) var(--space-6); font-size: var(--text-md); line-height: var(--text-md-lh); }
}
/* Tablet (768-1023px): the buttons' words are bolder since 2026-11-19 (brand --weight-button, 600), so the bar is a
   little wider. CI's Linux font, wider than Segoe UI, then made the page scroll sideways at 768px. Tighter sides on the
   words and the button give the bar its room back; from 1024px the desktop sizes below apply as before. */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-nav a { padding: 0 var(--space-1); }
  .site-nav__line { left: var(--space-1); right: var(--space-1); }
  .site-header--bar .btn--small { padding-inline: var(--space-3); }
  .site-header--bar .wrap { gap: var(--space-2); }
}
@media (min-width: 1280px) { .site-nav { margin-left: var(--space-12); } }
@media (prefers-reduced-motion: reduce) { .site-nav__line { transition: none; } }

/* buttons: pills (policies/brand.md), flat, one primary action per view */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-5);
  border-radius: 999px; border: 1px solid var(--color-border-brand);
  background: var(--color-bg-brand-solid); color: var(--color-text-primary_on-brand);
  font: inherit; font-weight: var(--weight-button); text-decoration: none; cursor: pointer; touch-action: manipulation;
}
.btn:hover { background: color-mix(in srgb, var(--color-bg-brand-solid) 86%, var(--color-text-primary)); }
/* The main call to action ("Start 14-day free trial", every place it appears on the public pages) is the one yellow thing on the page
   (B-02 amended by Valentin 2026-11-18, "Yellow button"), dark ink on it (12.04:1); in light mode a darker edge keeps the pill 3:1 against
   the off-white page. Other buttons, the app's included, stay indigo. */
.btn--cta { background: var(--color-bg-cta); color: var(--color-text-on-cta); border-color: var(--color-border-cta); }
.btn--cta:hover { background: var(--color-bg-cta-hover); }
.btn--big { min-height: 52px; padding: var(--space-3) var(--space-8); font-size: var(--text-lg); line-height: var(--text-lg-lh); }
.btn--small { min-height: 40px; padding: var(--space-1) var(--space-4); font-size: var(--text-sm); line-height: var(--text-sm-lh); }
/* On a phone the label is long ("Start 14-day free trial"): the button may wrap and never pushes the page sideways. */
.btn--big { text-align: center; max-width: 100%; }

/* sections */
.section { padding: var(--l-section) 0; }
.section--band, .section--brand { background: none; border: 0; }
/* No alternating bands (Valentin, 2026-11-19: "I want the same styling work applied to CRM sheet sync and MRR projects. The gradiant, the
   backgrounds ...", the hub's D-41): the page has one ground in each mode, light in light mode and the hero's own ground (#0b0d12) in dark mode, so
   the sections sit on it and are separated by their spacing. The classes stay as the hooks for the section order; they paint nothing. The soft
   indigo "who it is for" band of B-02 is gone with them: its card, the fit check, carries the colour. */
.section-lead { color: var(--color-text-secondary); font-size: var(--text-lg); line-height: var(--text-lg-lh); max-width: var(--paragraph-max); }
.kicker { margin: 0 0 var(--space-3); font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-semibold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-brand-primary); }

/* The hero sits on the page ground with a mesh gradient behind its text (block "Mesh hero" at the end of this file). In light mode it is light and
   in dark mode it is the page's one dark ground, so it sets no colours of its own: every role is the page's, in each mode. Until 2026-11-19 it
   was a dark ground with dark-mode values in both modes (brand.md "Hero ground"); Valentin, the same day: "the lightmode looks very much like the
   darkmode now ... should use light backgrounds" (hub D-41). */
/* hero: one column on a phone and tablet (the row gap separates the text from the picture); from 1024px a 12-column grid,
   text on columns 1 to 7 and the example record on 8 to 12 */
.hero { padding: calc(var(--l-bar) + var(--space-10)) 0 var(--l-section); }
.hero-grid { display: grid; gap: var(--space-10) var(--gutter); align-items: center; }
.hero .lead { font-size: var(--text-xl); line-height: var(--text-xl-lh); color: var(--color-text-secondary); }
/* On the mesh's light the grey secondary text fell under 4.5:1 (hub D-41 measured 3.2:1 on its dark mesh); the lead is mostly the text colour, a little
   of the secondary one, so it stays a step quieter than the h1. Both are roles. */
.hero .lead { color: color-mix(in srgb, var(--color-text-primary) 80%, var(--color-text-secondary)); }
/* The notes under the button sit on the same light: the plain tertiary grey was 3.5:1 to 4.2:1 on the dark mesh (measured 2026-11-19, 320 to 768px). */
.hero .cta-note { color: color-mix(in srgb, var(--color-text-primary) 80%, var(--color-text-tertiary)); }
.cta-note { margin: var(--space-3) 0 0; font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); }
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--l-bar) + var(--space-20)); }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-grid > :first-child { grid-column: 1 / span 7; }
  .hero-grid > :last-child { grid-column: 8 / span 5; }
}

/* The example company record (web/components/RecordArt.astro): an inline SVG drawn with brand roles. Its text sizes are tokens in SVG user units
   (the viewBox is 340 wide, so a 14px label is about 12px on a 288px phone column and about 16px at its 24rem cap). */
.record { margin: 0; }
.record-art { display: block; width: 100%; max-width: 24rem; height: auto; margin-inline: auto; }
.record figcaption { margin-top: var(--space-4); text-align: center; font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); }
.rec__card { fill: var(--color-bg-primary_alt); stroke: var(--color-border-primary); stroke-width: 1; }
.rec__name { fill: var(--color-text-primary); font-size: var(--text-xl); line-height: var(--text-xl-lh); font-weight: var(--weight-semibold); }
.rec__sub { fill: var(--color-text-tertiary); font-size: var(--text-sm); line-height: var(--text-sm-lh); }
.rec__group { fill: var(--color-bg-brand-primary); }
.rec__group-label { fill: var(--color-text-brand-primary); font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-semibold); }
.rec__label { fill: var(--color-text-secondary); font-size: var(--text-sm); line-height: var(--text-sm-lh); }
.rec__value { fill: var(--color-text-primary); font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-semibold); }
.rec__value--key { fill: var(--color-text-brand-primary); }
/* Pills: red on the notice tint for a real problem, green for what is right (B-02 "Product visuals"). */
.rec__pill { stroke-width: 1; }
.rec__pill--stop { fill: var(--color-bg-warning-primary); stroke: var(--color-border-error); }
.rec__pill--good { fill: var(--color-bg-success-primary); stroke: var(--color-border-success); }
.rec__pill-label { font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-semibold); }
.rec__pill-label--stop { fill: var(--color-text-error-primary); }
.rec__pill-label--good { fill: var(--color-text-success-primary); }
.rec__rule { stroke: var(--color-border-primary); stroke-width: 1; }

/* example tables: a real HTML table, so it reads with JavaScript off and to screen readers */
.sheet { margin: 0; border: 1px solid var(--color-border-primary); border-radius: var(--radius); background: var(--color-bg-primary_alt); overflow: hidden; }
.sheet figcaption { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); border-bottom: 1px solid var(--color-border-primary); background: var(--color-bg-secondary); }
.sheet table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--text-sm-lh); }
.sheet th, .sheet td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border-primary); vertical-align: top; }
.sheet tbody tr:last-child td, .sheet tbody tr:last-child th { border-bottom: 0; }
.sheet thead th { background: var(--color-bg-brand-primary); font-size: var(--text-xs); line-height: var(--text-xs-lh); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.04em; }
.sheet tbody th { font-weight: var(--weight-semibold); }
.sheet td.clean { font-weight: var(--weight-semibold); }
/* "Always first" (D-14): the five fields we create before any other when a HubSpot plan limits custom properties. A pill after the field name (a real space sits between them, so a screen reader hears two words). */
.tag { display: inline-block; padding: var(--space-0-5) var(--space-2); border-radius: 999px; background: var(--color-bg-brand-primary); color: var(--color-text-primary); font-size: var(--text-xs); line-height: var(--text-xs-lh); font-weight: var(--weight-medium); white-space: nowrap; }
.sheet-wrap { overflow-x: auto; }
.sheet-note { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-medium); color: var(--color-text-primary); border-top: 1px solid var(--color-border-primary); }
/* The problem table (the one example company: what Stripe knows, what HubSpot shows): grid lines, and the empty HubSpot cells in the notice
   colour, as a highlighted cell in a spreadsheet. The cell is crm-sheet-sync's flagged cell (Valentin, 2026-11-18: "I'd like the colors of
   the cells to be like on CRM Sheet Sync on MRR. Not the red on yellow one."): the notice background with the normal cell text, regular
   weight, the same padding and size. "Empty" is not an error, so not red; and not a good outcome, so not green (B-02). */
.sheet--cells th, .sheet--cells td { border-right: 1px solid var(--color-border-primary); }
.sheet--cells tr > :last-child { border-right: 0; }
.sheet--cells thead th { background: none; font-size: var(--text-sm); line-height: var(--text-sm-lh); text-transform: none; letter-spacing: normal; }
.sheet--cells tbody th { font-weight: var(--weight-regular); }
.sheet--cells .cells__stale { background: var(--color-bg-warning-primary); color: var(--color-text-primary); font-weight: var(--weight-regular); }
@media (max-width: 767px) { .sheet--cells th, .sheet--cells td { padding-inline: var(--space-2); } }
.stale, .field-table { max-width: var(--l-medium); margin-inline: auto; }

/* cards and grids. Three cards go from one column straight to three (never two and one); four go 1, 2, 4. */
.grid { display: grid; gap: var(--gutter); }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid + p { margin-top: var(--space-6); }
.card { background: var(--color-bg-primary_alt); border: 1px solid var(--color-border-primary); border-radius: var(--radius); padding: var(--space-6); }
/* Small cards keep their fill and border and take Untitled UI's shadow-md in the brand indigo (Valentin, 2026-11-19: "that card was a big one on the hub, for
   other smaller cards, use shadow-md"; hub D-42). Sheet mockups and icon tiles are not cards. */
.card, .fit-card { --shadow-color: var(--brand); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: var(--space-3); border-radius: 50%; background: var(--color-bg-brand-primary); color: var(--color-text-brand-primary); font-weight: var(--weight-semibold); }
.checks { list-style: none; margin: 0; padding: 0; max-width: var(--paragraph-max); }
/* The tick is an Untitled UI "check" icon (20px) drawn into the HTML at build time (web/components/Icon.astro). It sits in the 32px left padding;
   its top is 2px so the 20px icon centres on the 24px text line. */
.checks li { position: relative; padding-left: var(--space-8); margin-bottom: var(--space-3); }
.checks li > .icon { position: absolute; left: 0; top: var(--space-0-5); }

/* The three pains and the facts: an icon, a title, one or two sentences. No boxes. */
.pains, .facts { gap: var(--space-8) var(--gutter); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); } .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pain > .tile, .fact > .tile { margin-bottom: var(--space-4); }
.pain h3, .fact h3 { margin-bottom: var(--card-title-gap); }
.pain p, .fact p { margin: 0; color: var(--color-text-secondary); }
.facts { width: 100%; }

/* The fit check: one card at the medium width. The six fits sit in two columns from 768px; what the product does not do is one quiet line. */
.fit-card { max-width: var(--l-medium); margin-inline: auto; }
.fit-card--yes { border-color: var(--color-border-brand); }
.fit-card .fit-list { max-width: none; }
.fit-list li { margin-bottom: var(--space-3); }
@media (min-width: 768px) { .fit-list { columns: 2; column-gap: var(--gutter); } .fit-list li { break-inside: avoid; } }
.fit-scope { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border-primary);
  font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); }

/* price: one centred column. Heading and note, the four bands side by side at equal height, one button, then the facts. */
.price { display: grid; gap: var(--space-10) var(--gutter); justify-items: center; }
.price-head { text-align: center; max-width: var(--paragraph-max); }
.price-head .price-note { margin: var(--space-3) auto 0; }
.price-body { width: 100%; }
.price-cta { text-align: center; margin: var(--space-6) 0 0; }
.price-tag { font-size: var(--display-lg); line-height: var(--display-lg-lh); font-weight: var(--weight-semibold); letter-spacing: var(--display-lg-ls); margin: 0 0 var(--space-1); }
.price-unit { color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.price-note { color: var(--color-text-secondary); margin: 0 0 var(--space-4); }
.plans { display: grid; gap: var(--gutter); align-items: stretch; }
@media (min-width: 560px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan { display: flex; flex-direction: column; padding: var(--space-6); border: 1px solid transparent; border-radius: var(--radius); background: none; }
/* The price cards are the big ones: no fill, no border, Untitled UI's shadow-xl in the brand indigo marks each card instead (Valentin, 2026-11-19: "I'm not a
   fan of the card's solid background", "try adding a soft indigo like shadow behind it", "try with shadow-xl for the card"; hub D-42). The 1px border stays,
   transparent, so the card keeps its size. .plan-band is a line inside the card, not a card. Valentin, 2026-11-21: shadow-sm, then shadow-md, then "shadow-lg?"
   (was shadow-xl). */
/* The same 1px indigo edge as the scrolled header pill (Valentin, 2026-11-21: "add the 1px indigo border like on the header"). */
.plan { --shadow-color: var(--brand); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--color-border-brand) 40%, transparent); }
.plan h3 { margin: 0 0 var(--space-2); }
.plan .price-unit { margin-bottom: var(--space-3); }
/* What differs between the bands is the one line at the bottom of the card, pushed down so the four lines sit level. */
.plan-band { margin: auto 0 0; padding-top: var(--space-3); border-top: 1px solid var(--color-border-primary); font-weight: var(--weight-semibold); }
.plan-note { margin: 0; font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); }

/* The FAQ is the shared component (brand-components.css, .wis-faq). The medium width keeps its rows beside the table's. */
.landing .faq .wis-faq { max-width: var(--l-medium); }

/* closing band */
.close { text-align: center; }
.close .section-lead { margin-inline: auto; }

/* footer */
.site-footer { border-top: 1px solid var(--color-border-primary); padding: var(--space-8) 0 var(--space-12); color: var(--color-text-tertiary); font-size: var(--text-sm); line-height: var(--text-sm-lh); }
.site-footer .wrap { display: grid; gap: var(--space-4); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* document pages (setup guide, privacy, terms, legal notice, 404): one column of text, left-aligned, paragraph width plus the container's side padding */
.legal { max-width: calc(var(--paragraph-max) + 2 * var(--container-pad)); padding-block: var(--space-10) var(--l-section); }
.site-header--bar + .legal { padding-top: calc(var(--l-bar) + var(--space-10)); }
.legal h2 { font-size: var(--text-xl); line-height: var(--text-xl-lh); letter-spacing: normal; margin-top: var(--space-10); }
@media (min-width: 1024px) { .legal h2 { font-size: var(--display-xs); line-height: var(--display-xs-lh); } }
.legal li { margin-bottom: var(--space-2); }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--text-sm-lh); margin: var(--space-3) 0 var(--space-5); }
.legal th, .legal td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border-primary); vertical-align: top; }
/* At 320px a three-column table is wider than the window (its longest words can't wrap), so below 480px the table scrolls inside its own box
   instead of the page scrolling sideways (WCAG reflow allows two-dimensional content like tables to scroll). */
@media (max-width: 479px) { .legal table { display: block; overflow-x: auto; } }
.legal thead th { background: var(--color-bg-brand-primary); }
/* A table's source line (the ClearSync comparison, D-34) reads with the left-aligned text of a document page, not centred over the table. */
.legal caption { text-align: left; padding-bottom: var(--space-2); }
.legal nav ol { padding-left: var(--space-6); }
.legal .btn { margin-top: var(--space-2); }

/* print: the legal pages get printed */
@media print { .site-header, .site-footer, .skip { display: none; } body { background: none; } }

/* Home page alignment (crm-sheet-sync, Valentin 2026-11-14: "Layout is chaotic overall when sections are not centered"). Untitled UI's marketing
   sections put the header (heading and supporting text) on the centre line at a readable width, and the content under it on the same line.
   Every section after the hero centres its heading and its lead sentences; grids keep their full width. The hero keeps its two columns.
   Document pages (setup, legal) are untouched: they read top to bottom, left-aligned. */
.landing .section > .wrap > h2,
.landing .section > .wrap > .kicker { text-align: center; }
.landing .section > .wrap > .section-lead { text-align: center; margin-inline: auto; }

/* Space after headings: the brand rule in rem (policies/brand.md "Space after headings"). A section header is the h2 plus its lead:
   --heading-lead-gap between them, --after-h2 before the content. Lead sentences that follow the content sit --after-h3 below it.
   Card titles keep --card-title-gap. */
.landing .section > .wrap > h2 { margin-bottom: var(--heading-lead-gap); }
.landing .section > .wrap > h2:not(:has(+ .section-lead)) { margin-bottom: var(--after-h2); }
.landing .section > .wrap > h2 + .section-lead { margin-bottom: var(--after-h2); }
.landing .price { row-gap: var(--after-h1); }
.landing .price-head h2 { margin-bottom: var(--heading-lead-gap); }
.landing .section > .wrap > :is(.grid, .fit-card, .sheet-wrap) + .section-lead { margin-top: var(--after-h3); }
/* The source line under the comparison table (home page, id=compare): small, centred like the lead above it, set apart from it by one step. */
.landing .compare-source { text-align: center; margin: var(--space-4) auto 0; }
.landing .card h3, .landing .plan h3 { margin-bottom: var(--card-title-gap); }
.landing .stale + .pains { margin-top: var(--after-h2); }
/* The picture's caption and the plans' band line are inside their boxes. */
.landing .plans { margin-bottom: 0; }
.landing .price-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-top: var(--after-h3); }
/* The four facts under the price stand apart (Valentin, 2026-11-21: "add much more space like 160px top and bottom of the 4 icon cards",
   after "like 64px"): 160px above them (from "No card needed.") and below them (to the FAQ's heading) from 768px, 96px on
   phones, where 160px is a fifth of the screen. Above: the section's 48px row gap (--after-h1) plus the CTA's margin. Below: this
   section's bottom padding plus the FAQ's top padding (--l-section). */
.landing #price { --l-facts: var(--space-24); }
@media (min-width: 768px) { .landing #price { --l-facts: calc(var(--space-20) * 2); } }
.landing .price-cta { margin-bottom: calc(var(--l-facts) - var(--after-h1)); }
.landing #price { padding-bottom: calc(var(--l-facts) - var(--l-section)); }
.landing .close .wrap > h2 + .section-lead { margin-bottom: var(--after-h3); }

/* Hero spacing: the kicker, h1 and lead are one header block with room inside it, then --after-h1 before the button, then the notes close under the button. */
.hero { padding-top: calc(var(--l-bar) + var(--space-16)); }
.hero-head .kicker { margin-bottom: var(--space-4); }
/* On the mesh the indigo eyebrow was 4.35:1 on the brightest part at 375px, under 4.5 (test/browser/hero.spec.ts);
   the secondary text colour keeps it readable everywhere. */
.hero-head .kicker { color: var(--color-text-secondary); }
.hero-head h1 { margin-bottom: var(--space-6); }
.hero-head .lead { margin: 0; }
.hero-cta { margin: var(--after-h1) 0 var(--space-4); }
.hero-text .cta-note { margin-top: var(--space-2); }

/* ---------------------------------------------------------------- Mesh hero (Valentin, 2026-11-19: "I want the same styling work applied to CRM sheet sync
   and MRR projects. The gradiant, the backgrounds, the cards styling and the header", after the hub's: "A mesh gradiant effect (still with our colors). It must
   fade shortly after the hero, the rest of the page would have a unified dark background"; hub D-41). Replaces the bottom sunrise (--hero-glow, D-21).
   A layer behind the hero, taller than the hero by --mesh-fade and masked so it fades out shortly after the hero. The section after the hero has no background, so it
   shows the end of the mesh through it and paints its own content above. The light sits behind the text, not in empty space (a glow with nothing on it looks
   like it highlights nothing, Valentin 2026-11-19); the values are the hub's, measured there on the lightest and darkest pixel behind each text. */
.hero { --mesh-fade: 18rem; --mesh-indigo: var(--brand); --mesh-light: color-mix(in srgb, var(--brand) 60%, #fff); --mesh-sky: #748ffc;
  position: relative; isolation: isolate; background: none; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(100% + var(--mesh-fade)); z-index: -1; pointer-events: none;
  /* The two-column mesh (Valentin, 2026-11-19: "For the two column hero, try another gradiant since the layout is positioned
     differently the gradiant should reflect that"). The hub's mesh is centred on one centred text block; here the text is on
     the left (columns 1 to 7) and the product example on the right (columns 8 to 12), so the light follows them: one spot
     behind the text, a second as a halo behind the example. Below 1024px the two stack, text above the example, and so do
     the spots. Positions are shares of the layer (the hero plus --mesh-fade). Light mode: the hub's palette B colours,
     the soft yellow (--color-bg-cta) behind the text and the lighter indigo (--mesh-sky) behind the example. */
  background:
    radial-gradient(ellipse 95% 22% at 40% 18%, color-mix(in srgb, var(--color-bg-cta) 38%, transparent), transparent 74%),
    radial-gradient(ellipse 90% 24% at 60% 52%, color-mix(in srgb, var(--mesh-sky) 34%, transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--mesh-fade)), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--mesh-fade)), transparent);
}
.hero + .section { position: relative; }
/* The yellow button on the light mesh: its shape (the edge, --color-border-cta) was 2.8:1 to 2.9:1 against the mesh's soft yellow behind it at 320 to 768px, under the 3:1 of
   WCAG 1.4.11 that test/browser/hero.spec.ts holds it to. A darker edge, a mix of the edge and the text colour, in light mode; in dark mode the yellow itself is the shape. */
.hero .btn--cta { border-color: color-mix(in srgb, var(--color-border-cta) 70%, var(--color-text-primary)); }
@media (prefers-color-scheme: dark) { .hero .btn--cta { border-color: var(--color-border-cta); } }
@media (max-width: 767px) { .hero { --mesh-fade: 12rem; } }
@media (min-width: 1024px) {
  .hero::before { background:
    radial-gradient(ellipse 34% 40% at 26% 30%, color-mix(in srgb, var(--color-bg-cta) 38%, transparent), transparent 74%),
    radial-gradient(ellipse 42% 56% at 77% 33%, color-mix(in srgb, var(--mesh-sky) 40%, transparent), transparent 72%); }
}
/* dark mode: indigo behind the text, a lighter indigo halo behind the example, a faint CTA yellow above the start of the
   headline, and a wide indigo wash that joins the two columns */
@media (prefers-color-scheme: dark) {
  .hero::before { background:
    radial-gradient(ellipse 90% 22% at 30% 20%, color-mix(in srgb, var(--mesh-indigo) 60%, transparent), transparent 72%),
    radial-gradient(ellipse 90% 24% at 70% 52%, color-mix(in srgb, var(--mesh-light) 42%, transparent), transparent 72%),
    radial-gradient(ellipse 60% 10% at 40% 6%, color-mix(in srgb, var(--color-bg-cta) 20%, transparent), transparent 72%),
    radial-gradient(ellipse 110% 40% at 50% 38%, color-mix(in srgb, var(--mesh-indigo) 24%, transparent), transparent 75%); }
}
@media (prefers-color-scheme: dark) and (min-width: 1024px) {
  .hero::before { background:
    radial-gradient(ellipse 32% 40% at 24% 30%, color-mix(in srgb, var(--mesh-indigo) 60%, transparent), transparent 72%),
    radial-gradient(ellipse 30% 42% at 77% 32%, color-mix(in srgb, var(--mesh-light) 45%, transparent), transparent 72%),
    radial-gradient(ellipse 22% 16% at 18% 8%, color-mix(in srgb, var(--color-bg-cta) 20%, transparent), transparent 72%),
    radial-gradient(ellipse 70% 40% at 50% 40%, color-mix(in srgb, var(--mesh-indigo) 24%, transparent), transparent 75%); }
}

/* ---------------------------------------------------------------- One ground (hub D-41). Dark mode: the whole page, header and footer included, is the hero's ground
   (--hero-ground, #0b0d12), never the lighter page colour (#12141b) in one place and a darker one in another. It is done by pointing the page role at it
   on the public pages' <body> (class "site", Layout.astro), so every part that asks for the page colour gets the ground, and the app, which has no "site"
   class, keeps its own colours. Light mode keeps the off-white page. */
@media (prefers-color-scheme: dark) { body.site { --color-bg-primary: var(--hero-ground); } }
/* The plain header (the 404 page) is on the ground like everything else, with no line under it. */
body.site .site-header:not(.site-header--bar) { border-bottom: 0; }

/* ---------------------------------------------------------------- The header (Valentin, 2026-11-19: "for the header, the background should be transparent at scrollY 0,
   then it should animation into a pill like background, with a 12px padding on top and sides"; hub D-43). At the top of the page the bar has no background, no
   line and no shadow, so the hero's mesh runs up to the top edge. Over the first 64px of scroll it moves 12px (--space-3) in from the top and both sides and becomes
   a pill: the page colour a little see-through, a 1px edge in the accent at 40% (the grey line hardly showed on the dark page), the brand's shadow-lg in the indigo.
   CSS only, tied to the scroll position (animation-timeline: scroll()), so no script is added. A browser without scroll-driven animations (Firefox today)
   shows the pill all the time, which is the safe state: the bar never sits see-through over text. */
.site-header--bar {
  --shadow-color: var(--brand);
  /* The pill hugs the bar: on wide screens it stops at the 1280px bar (whose own 32px padding keeps the words in) instead of
     running to the screen edges (Valentin, 2026-11-19: "the pill like header should stop around the header and not continue to
     grow on large screens"). Below 1304px wide the 12px inset wins. Written out in each rule: the colour guard test allows no custom property of our own. */
  top: var(--space-3); left: max(var(--space-3), calc((100% - var(--container-max)) / 2)); right: max(var(--space-3), calc((100% - var(--container-max)) / 2));
  border: 1px solid color-mix(in srgb, var(--color-border-brand) 40%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--color-bg-primary) 86%, transparent); box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* in dark mode the page colour is the ground (above), and the pill is a touch more solid so the mesh behind it does not show through the words */
@media (prefers-color-scheme: dark) { .site-header--bar { background: color-mix(in srgb, var(--color-bg-primary) 82%, transparent); } }
/* The flat state is the base wherever the scroll animation can run (it needs scroll-driven animations AND no reduced-motion preference), and the animation
   goes TO the pill. Turned around on 2026-11-19 (supervisor, after the first build): with the pill as the base and the flat state as the animation's start, a page
   too short to scroll (the legal notice at 1280x900) has no scroll timeline, so the animation never ran and the bar showed the pill at the top. Now an inactive
   timeline leaves the base, which is flat. Everywhere else (Firefox today, reduced motion) the rule above stays: the pill all the time. The pill values in `to` are
   the rule above's, written out because keyframes can not point at it; dark mode has its own copy (82%). */
@keyframes bar-to-pill {
  to { top: var(--space-3); left: max(var(--space-3), calc((100% - var(--container-max)) / 2)); right: max(var(--space-3), calc((100% - var(--container-max)) / 2)); border-radius: 999px;
       border-color: color-mix(in srgb, var(--color-border-brand) 40%, transparent);
       background: color-mix(in srgb, var(--color-bg-primary) 86%, transparent); box-shadow: var(--shadow-lg);
       -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (prefers-color-scheme: dark) {
  @keyframes bar-to-pill {
    to { top: var(--space-3); left: max(var(--space-3), calc((100% - var(--container-max)) / 2)); right: max(var(--space-3), calc((100% - var(--container-max)) / 2)); border-radius: 999px;
         border-color: color-mix(in srgb, var(--color-border-brand) 40%, transparent);
         background: color-mix(in srgb, var(--color-bg-primary) 82%, transparent); box-shadow: var(--shadow-lg);
         -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .site-header--bar { top: 0; left: 0; right: 0; border-radius: 0; border-color: transparent; background: transparent; box-shadow: none;
      -webkit-backdrop-filter: none; backdrop-filter: none;
      animation: bar-to-pill linear both; animation-timeline: scroll(root block); animation-range: 0 64px; }
  }
}
