/* Shared styles for the landing page, the legal pages and the app pages.
   Colors: components use the --color-text-*, --color-bg-*, --color-border-* and --color-fg-* roles from brand-tokens.css (policies/brand.md "Color roles"),
   never the raw colors or a hex value; only the logo mark below uses --brand, --brand-ink and --highlight (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"; a test
   in 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 price
   blocks and the three-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 */
  /* The home page has two content widths and no third (UX review 2026-11-14: 1201, 880 and 720px blocks made the left edge
     jump from section to section): the full container for grids, and this one for a table, the plans and the FAQ. */
  --l-medium: 55rem;              /* 880px */
}
@media (min-width: 768px) { :root { --l-section: var(--space-24); } }  /* 96px from tablet up */

* { 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 (Valentin, 2026-11-11). 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 (test/browser/type.spec.ts). Scale: text-lg < text-xl < display-xs < display-sm < display-md
   < display-lg < display-xl. 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, 404, app): 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, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-border-brand);
  outline-offset: 2px;
}

/* The hidden attribute must win over rules like .btn and .notice that set display (found by the browser tests: the Log out button and the empty billing notice showed while signed out). */
[hidden] { display: none !important; }

.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 (a tick for what you get, a "Yes" in a comparison). */
.icon--good { color: var(--color-fg-success-primary); }
/* Soft icon tiles (B-02 "Tint the structure, not the text"): indigo. No yellow tile on a sales page since the amendment of
   2026-11-18: yellow is kept for the main button. 48px holds a 24px icon, as Untitled UI's "light" featured icon. */
.tile { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--color-bg-brand-primary); }
.tile .icon { color: var(--color-fg-brand-primary); }
/* The marker behind one key phrase of the hero headline, at most one per page (B-02). Soft indigo with the text colour, not
   yellow: on a sales page yellow is the main button's alone (amendment 2026-11-18).
   An inline background fills the whole content area, which is taller than the h1's line height, so a plain background rose into
   the descenders of the line above when the h1 wraps (Valentin 2026-11-18: "the indigo highlighter is overflowing on the letters
   on the line on top"). So: no vertical padding, the h1's own line height, and the tint drawn only from 0.22em below the top of
   the content area to 0.06em above its bottom. "clone" gives each line of a wrapped phrase its own box. Square corners
   (Valentin 2026-11-18, "it's not fully squared"): the tint starts below the box top, so a radius rounded only its bottom corners.
   test/browser/marker.spec.ts measures it at 320 to 1280px in both modes. */
.marker { color: var(--color-text-primary); padding: 0 var(--space-1); border-radius: 0;
  background: linear-gradient(transparent 0.22em, var(--color-bg-brand-primary) 0.22em, var(--color-bg-brand-primary) calc(100% - 0.06em), transparent 0);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Dark mode: the lilac brand step instead of the dark soft indigo (Valentin, 2026-11-19, on MRR Sync's marker: "try with the lila
   brand color instead in dark mode", then "That's better with this highlighting in dark mode if it keeps the minimum contrast ratio"):
   #748ffc with #0f1220 text, 6.28:1 (WCAG formula; the tint is solid, so every pixel behind the words is that colour). */
@media (prefers-color-scheme: dark) {
  .marker { color: var(--color-text-primary_on-brand);
    background: linear-gradient(transparent 0.22em, var(--color-bg-brand-solid) 0.22em, var(--color-bg-brand-solid) calc(100% - 0.06em), transparent 0); }
}
/* A good outcome as a small green pill: the hero's measured delays ("4.7 s later"). */
.good-badge { display: inline-block; padding: var(--space-0-5) var(--space-2); border-radius: 999px; background: var(--color-bg-success-primary);
  color: var(--color-text-success-primary); font-weight: var(--weight-semibold); }
.btn .icon { color: var(--color-fg-white); }
.btn--secondary .icon { color: var(--color-fg-brand-primary); }

/* header: logo 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 drawn "Row S" from the logo kit (brand/kit/guidelines.md), the small cut, as an image. Its colours are
   fixed (--brand and --highlight in both modes), so it needs no CSS colour. Below 40 px the guidelines ask for the small cut. */
.mark { display: block; flex: none; width: 32px; height: 32px; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
/* The public pages' bar, in the style of the company hub's (Valentin, 2026-11-14: "http://localhost:4174/ header style should be
   applied to 4175"; measured there the same day): it stays at the top of the window, opaque, one hairline under it, 72px high
   (56px below 768px); plain words after the logo in the text colour at weight 500, 36px high, with a 2px line that draws
   under the word from the left on hover and focus; one pill button at the right, 44px high from 1024px.
   Differences, on purpose: sticky instead of fixed (no padding to add under it); the words are --text-md, the nearest size
   token to the hub's 15px (policies/brand.md: sizes are tokens; the hub's words moved to the same token); the line is an
   empty span in the link, not a ::before (this stylesheet draws nothing with pseudo-elements). Only .site-header--bar: the
   app keeps its plain header. The section links show from 768px; below, the bar keeps the logo and the one button (no
   script, so no menu).
   Room for other fonts: the first version fitted Windows' Segoe UI and scrolled sideways at 320px in the Linux system font
   (CI, 2026-11-14). So nothing here depends on an exact fit: the heights are minimums (the bar grows if the button wraps);
   on a phone the button's words may wrap; on a tablet, where four words, the name and the button share 704px, the words
   and the button are one size smaller, which leaves about a quarter of the text's width spare. Browser tests widen the
   words by about 12% at five widths. */
/* Since 2026-11-19 (D-47) the bar is fixed, not sticky, so it can float over the hero and, once the page scrolls, sit 12px in from the top and
   both sides as a pill (the block "The bar floats" below). --l-bar is its height: 56px on a phone, 72px from 768px. */
:root { --l-bar: 56px; }
.site-header--bar { position: fixed; 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: the bar's height, its 12px from the top and a gap of 8px. */
html:has(.site-header--bar) { scroll-padding-top: calc(var(--l-bar) + var(--space-3) + var(--space-2)); }
.site-nav { display: none; }
/* phone: 12px at each side of the button, as on the hub; its words wrap only if they must */
@media (max-width: 767px) { .site-header--bar .btn--small { padding-inline: var(--space-3); text-align: center; } }
@media (min-width: 768px) {
  :root { --l-bar: 72px; }
  .site-header--bar .btn { white-space: nowrap; }
  /* tablet: the words sit close, as the hub's do on a small laptop, and are one size smaller */
  .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; }
  /* the line: as wide as the word, drawn from the left on hover and focus, leaving to the right */
  .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) {
  /* desktop: the hub's sizes. Words 16px with 12px at each side and 4px between; the button 44px high with 24px at each side. */
  .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; } }

/* ---------------------------------------------------------------- The bar floats (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"; the hub's D-43, from his
   "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"). At the top of the page the bar has no background, line or shadow and overlays the top of the hero, so the
   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 ground a little see-through, a 12px backdrop blur, a 1px indigo edge (--color-border-brand at 40%, the hub's --accent
   at 40%) and Untitled UI's shadow-lg in the brand indigo (brand-tokens.css --shadow-lg, --shadow-color).
   CSS only, tied to the scroll position (animation-timeline: scroll()), so no script is added (policies/web.md; CSP script-src 'self').
   The rules below are the pill itself and are the base: a browser without scroll-driven animations (Firefox today) or a visitor who
   prefers reduced motion keeps the pill all the time, the safe state, because the bar never sits see-through over text.
   The flat state is set only where the animation can run (@supports scroll() and no reduced-motion preference), and the animation
   goes TO the pill (supervisor, 2026-11-19: a page too short to scroll has an inactive scroll timeline, which would otherwise
   leave it on its first keyframe or, with the pill as base, show the pill at scrollY 0 on /legal; now the flat state is the base
   wherever the animation runs, so a short page is flat too). */
.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);
}
/* dark mode: the page ground is --hero-ground, so the pill is that colour at 82% (the hub's D-43) */
@media (prefers-color-scheme: dark) { .site-header--bar { background: color-mix(in srgb, var(--hero-ground) 82%, transparent); } }
@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); }
}
/* A second @keyframes of the same name replaces the first whole, so the dark one repeats every value and changes only the background. */
@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(--hero-ground) 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; }
  }
}
/* The bar is out of the flow, so a page that starts with text (setup, privacy, terms, legal, the site map) leaves room for it; the
   pages that start with a hero don't, the hero runs under the bar. The sign-in error banner, shown above the hero when a sign-in
   fails, also gets that room so the pill doesn't cover it. */
.ground:has(.site-header--bar) main:not(:has(> .hero-ground)), .ground main:has(#signin-error:not([hidden])) { margin-top: var(--l-bar); }

/* buttons: 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)); }
.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); }
.btn--secondary { background: transparent; color: var(--color-text-brand-primary); }
.btn--secondary:hover { background: var(--color-bg-brand-primary); }
.btn--danger { background: transparent; color: var(--color-text-error-primary); border-color: var(--color-border-error); }
.btn--danger:hover { background: var(--color-bg-warning-primary); }
/* The main call to action of a sales page is yellow (B-02 amended by Valentin 2026-11-18, "Yellow button"): the one yellow element
   on screen, so nothing else yellow competes with it. Only "Start free trial" takes it; plan buttons, secondary buttons and links
   stay indigo, and the app (no sales button) keeps indigo. Dark ink on yellow in both modes; a darker yellow edge in light mode
   (3.27:1 on the page, WCAG 1.4.11), none needed in dark mode. */
.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[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.textbtn { background: none; border: 0; padding: 0 var(--space-1); min-height: 44px; font: inherit; font-weight: var(--weight-medium); color: var(--color-text-brand-primary); cursor: pointer; text-decoration: underline; }

/* messages (the app pages and the sign-in error banner on the landing page) */
.msg { padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid var(--color-border-primary); background: var(--color-bg-brand-primary); }
.msg--error { background: var(--color-bg-warning-primary); border-color: var(--color-border-error); color: var(--color-text-primary); }
.msg--ok { background: var(--color-bg-success-primary); } /* "Done. Your sheet is up to date.": a good outcome (B-02) */
.banner { margin: var(--space-4) 0 0; }
.banner p { margin: 0 0 var(--space-1); }

/* sections */
.section { padding: var(--l-section) 0; }
/* No bands (Valentin, 2026-11-19, the hub's D-41: "the rest of the page would have a unified dark background", and in light mode one
   light page): the sections, the closing call to action and the footer sit on the page ground and are separated by their spacing.
   The old .section--band (grey, with lines) and .section--brand (indigo tint) are gone from the markup (D-47). */
.ground { background: var(--color-bg-primary); }
/* dark mode: one ground for the whole page, --hero-ground (#0b0d12), the same as the hero's, so nothing steps to the lighter --bg */
@media (prefers-color-scheme: dark) { .ground { background: var(--hero-ground); } }
.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); }

/* hero: one column on a phone and tablet (the row gap separates the text from the sheet); from 1024px a 12-column grid,
   text on columns 1 to 7 and the example sheet on 8 to 12 */
.hero { padding: var(--space-10) 0 var(--l-section); }
/* The hero ground: a mesh gradient behind the hero (Valentin, 2026-11-19: "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", the hub's D-41; applied here by "I want the same
   styling work applied to CRM sheet sync and MRR projects"). The hero has no background of its own: its ::before layer is taller than
   it by --l-mesh-fade (18rem, 12rem on a phone) and a mask fades the layer to nothing over that last stretch, so the light ends shortly
   after the hero. The section after the hero has no background either and is positioned, so it shows the end of the mesh through it
   and paints its content above it. Several soft spots of brand colours, with the hub's values (its D-41, measured there).
   Dark mode: --brand at 60% behind the start of the h1, a lighter indigo (--brand mixed with white, 60/40) at 42% behind its end, a
   faint --color-bg-cta yellow above, a 28% indigo wash under the lead. Light mode is light ("the lightmode looks very much like the
   darkmode now, it shouldn't be the case and the background should use light backgrounds instead of dark"): palette B, the one he
   chose of three, a broad soft --color-bg-cta yellow at 38% behind the text and a touch of the light indigo at 18%. That light indigo
   is the dark mode's --accent, handed to us by /hero-ground.css as --l-accent-dark so no hex is typed here. The brand's one yellow
   is also the main button's, which keeps its darker edge and dark text, so it still reads as the action. */
.hero-ground { --l-mesh-fade: 18rem; position: relative; isolation: isolate; background: transparent; color: var(--color-text-primary); }
.hero-ground::before {
  content: ""; position: absolute; inset: 0 0 auto; height: calc(100% + var(--l-mesh-fade)); z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 46% 30%, color-mix(in srgb, var(--color-bg-cta) 38%, transparent), transparent 74%),
    radial-gradient(ellipse 30% 34% at 78% 40%, color-mix(in srgb, var(--l-accent-dark) 18%, transparent), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - var(--l-mesh-fade)), transparent);
          mask-image: linear-gradient(to bottom, black calc(100% - var(--l-mesh-fade)), transparent);
}
.hero-ground + * { position: relative; background: transparent; }
/* The mesh's lighter indigo (--brand mixed with white, 60/40), used by the dark mode's second spot. */
.hero-ground { --l-mesh-light: color-mix(in srgb, var(--brand) 60%, var(--brand-ink)); }
@media (max-width: 767px) {
  .hero-ground { --l-mesh-fade: 12rem; }
  .hero-ground::before { background:
    radial-gradient(ellipse 95% 34% at 40% 30%, color-mix(in srgb, var(--color-bg-cta) 38%, transparent), transparent 74%),
    radial-gradient(ellipse 60% 26% at 92% 46%, color-mix(in srgb, var(--l-accent-dark) 18%, transparent), transparent 72%); }
}
@media (prefers-color-scheme: dark) {
  .hero-ground::before { background:
    radial-gradient(ellipse 34% 36% at 30% 32%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 72%),
    radial-gradient(ellipse 34% 38% at 72% 28%, color-mix(in srgb, var(--l-mesh-light) 42%, transparent), transparent 72%),
    radial-gradient(ellipse 26% 18% at 50% 10%, color-mix(in srgb, var(--color-bg-cta) 20%, transparent), transparent 72%),
    radial-gradient(ellipse 58% 40% at 50% 42%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 75%); }
}
@media (prefers-color-scheme: dark) and (max-width: 767px) {
  .hero-ground::before { background:
    radial-gradient(ellipse 70% 30% at 20% 30%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 72%),
    radial-gradient(ellipse 70% 30% at 82% 42%, color-mix(in srgb, var(--l-mesh-light) 40%, transparent), transparent 72%),
    radial-gradient(ellipse 55% 14% at 50% 9%, color-mix(in srgb, var(--color-bg-cta) 20%, transparent), transparent 72%),
    radial-gradient(ellipse 100% 40% at 50% 46%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 75%); }
}
/* The home hero has two columns from 1024px, text on columns 1 to 7 and the example sheet on 8 to 12, and the two stack below that
   (Valentin, 2026-11-19: "For the two column hero, try another gradiant since the layout is positioned differently the gradiant should
   reflect that"; the layers are MRR Sync's, the sister site with the same hero). The hub's mesh is centred on one centred text block, so
   here the light follows the layout: one spot behind the text, a second as a halo behind the example; stacked, the spots stack too.
   Positions are shares of the layer (the hero plus --l-mesh-fade). Same colours, same fade and mask as above. The search pages' hero
   (.guide-hero) is one centred column and keeps the centred mesh above. */
.hero.hero-ground::before { 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(--l-accent-dark) 34%, transparent), transparent 72%); }
@media (min-width: 1024px) {
  .hero.hero-ground::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(--l-accent-dark) 40%, transparent), transparent 72%); }
}
@media (prefers-color-scheme: dark) {
  .hero.hero-ground::before { background:
    radial-gradient(ellipse 90% 22% at 30% 20%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 72%),
    radial-gradient(ellipse 90% 24% at 70% 52%, color-mix(in srgb, var(--l-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(--brand) 24%, transparent), transparent 75%); }
}
@media (prefers-color-scheme: dark) and (min-width: 1024px) {
  .hero.hero-ground::before { background:
    radial-gradient(ellipse 32% 40% at 24% 30%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 72%),
    radial-gradient(ellipse 30% 42% at 77% 32%, color-mix(in srgb, var(--l-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(--brand) 24%, transparent), transparent 75%); }
}
/* The yellow button on the light mesh: its plain edge (--color-border-cta) was 2.8:1 to 2.9:1 against the mesh's soft yellow at 320 to 768px on
   MRR Sync's identical hero, under the 3:1 of WCAG 1.4.11 for the shape of a control. A darker edge, the edge mixed 70/30 with the text colour,
   measures 4.9:1 to 5.1:1 here at 320 to 1280px (test/browser/heroContrast.spec.ts); in dark mode the yellow itself is the shape. */
.hero-ground .btn--cta { border-color: color-mix(in srgb, var(--color-border-cta) 70%, var(--color-text-primary)); }
@media (prefers-color-scheme: dark) { .hero-ground .btn--cta { border-color: var(--color-border-cta); } }
.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); }
.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; }
}

/* example sheet: 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.raw { font-family: var(--font-mono); color: var(--color-text-secondary); overflow-wrap: anywhere; }
.sheet td.clean { font-weight: var(--weight-semibold); }
.sheet-wrap { overflow-x: auto; }

/* cards and grids. Tablet is a 6-column grid (cards two across), desktop a 12-column grid (three across). */
.grid { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The line under a grid of cards ("Here is how it works") is a separate group, so it gets 24px, not none. */
.grid + p { margin-top: var(--space-6); }
/* Cards (Valentin, 2026-11-19, the hub's D-42: "that card was a big one on the hub, for other smaller cards, use shadow-md"): the small cards keep
   their fill and border and take Untitled UI's shadow-md in the brand indigo; the big ones (the plans, below) lose fill and border and take
   shadow-xl. Scoped to .ground, the public pages, so the signed-in app's cards (also .card) don't change. Sheet mockups, tables and icon tiles are not cards. */
.ground :is(.card, .fit-card, .flow__step, .pic-card) { --shadow-color: var(--brand); box-shadow: var(--shadow-md); }
.card { background: var(--color-bg-primary_alt); border: 1px solid var(--color-border-primary); border-radius: var(--radius); padding: var(--space-6); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }
.quote { margin: 0 0 var(--space-2); font-weight: var(--weight-semibold); }
.quote-src { margin: 0; font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); }
.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); }

/* price (Valentin 2026-11-14: "looks very chaotic"): one centred column. Heading, the two plans side by side at equal height,
   the trial facts in two columns, one button, then the comparison table on its own line. */
.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%; max-width: var(--l-medium); }
.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); }
/* two plans side by side; stacked on a phone */
.plans { display: grid; gap: var(--gutter); margin-bottom: var(--space-6); align-items: stretch; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { padding: var(--space-6); border: 1px solid var(--color-border-primary); border-radius: var(--radius); background: var(--color-bg-primary_alt); }
/* The big card: no fill, no border; Untitled UI's shadow-xl in the brand indigo marks it (the hub's D-42, Valentin 2026-11-19: "try with shadow-xl for the card"). */
.ground .plan { --shadow-color: var(--brand); border-color: transparent; background: transparent; box-shadow: var(--shadow-xl); }
.plan h3 { margin: 0 0 var(--space-2); }
.plan .price-unit { margin-bottom: var(--space-3); }
.plan .checks { margin: 0; }
/* Plan buttons (contract v1.12 item 40): the card is a flex column and the button row is pushed to the bottom with margin-top:auto, so both
   buttons sit level whatever the length of the two lists. The row is a <div>: a <p> would be capped at the paragraph width. The small text
   under a button is centred like the button, and may wrap on a narrow phone or in a wider font; nothing in the row has a fixed width. */
.plan { display: flex; flex-direction: column; }
.plan-cta { margin-top: auto; padding-top: var(--space-6); display: grid; gap: var(--space-2); justify-items: stretch; text-align: center; }
.plan-cta .btn { white-space: normal; text-align: center; }
.plan-note { margin: 0; font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-tertiary); }

/* FAQ: <details> works without JavaScript. Questions are short lines, so they stay at paragraph width beside their heading instead of stretching across the container. */
.faq h2 { text-align: center; }
/* The questions themselves are the shared FAQ (/brand-components.css, B-01 in ai-work); this page only centres its heading. */

/* closing band */
.close { text-align: center; }
.close .section-lead { margin-inline: auto; }
.close .btn { margin-top: var(--space-2); }

/* 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; }
/* The "Guides" group in the footer: its label sits in the same row as the links, as tall as they are. */
.footer-links strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--weight-semibold); color: var(--color-text-secondary); }

/* legal pages: one column of text, paragraph width plus the container's side padding (padding-inline stays from .wrap) */
.legal { max-width: calc(var(--paragraph-max) + 2 * var(--container-pad)); padding-block: var(--space-10) var(--l-section); }
.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); }
/* Guide pages (the four search pages) put a comparison table in the legal column, styled like the home page's price table (.sheet). It keeps the .sheet look: the rules above for plain legal tables would turn it into a scrolling block below 480px and add a margin inside its box. */
.legal .sheet-wrap { margin: var(--space-3) 0 var(--space-5); }
.legal .sheet table { display: table; margin: 0; }
.draft { background: var(--color-bg-warning-primary); border: 1px solid var(--color-border-primary); border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-8); }
.draft strong { display: block; margin-bottom: var(--space-1); }
.todo { background: var(--color-bg-warning-primary); padding: 0 var(--space-1); border-radius: 4px; }

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

/* ---------------------------------------------------------------- the data-flow figure in How it works (ported from the hub,
   2026-11-13, redrawn the same day). Three cards in reading order (an <ol>), joined by lines; a dashed return line with the two
   sync facts. Side by side from 1024px, stacked below. Motion, once, when public/flow.js sees half the figure on screen: card 1's
   border draws from its top-left corner round to the same corner (an SVG rect with pathLength 1, so the dash runs 1 to 0), the
   line to card 2 draws, card 2's border, the line to card 3, card 3's border; then it stays drawn. 3.8 s in all. At rest, drawn,
   without JavaScript or under reduced motion (flow.js only arms the figure when motion is allowed). */
.flow { position: relative; margin: var(--space-8) 0 var(--space-12); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-10); }
.flow__step { position: relative; display: grid; align-content: start; gap: var(--space-1); padding: var(--space-4) var(--space-5);
  background: var(--color-bg-primary_alt); border: 1px solid var(--color-border-primary); border-radius: var(--radius); }
.flow__step--ours { background: var(--color-bg-brand-primary); }
.flow__name { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); color: var(--color-text-primary); }
.flow__what { font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-secondary); }
.mark--small { width: 20px; height: 20px; }
.brand-inline { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); }
/* the drawn border sits exactly on the card's own 1px border; overflow visible so the 2px stroke is not cut at the edge */
.flow__draw { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* HubSpot and Google Sheets draw in the quiet foreground role, our card in the brand accent, so it stands out (Valentin, 2026-11-13) */
.flow__draw rect { fill: none; stroke: var(--color-fg-secondary); stroke-width: 2; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.flow__step--ours .flow__draw rect { stroke: var(--color-border-brand); }
/* the joining line: down between stacked cards, across between side-by-side cards */
.flow__link { position: absolute; left: 50%; top: 100%; width: 2px; height: var(--space-10); background: var(--color-fg-secondary);
  transform: translateX(-50%); transform-origin: top center; --l-flow-link-off: 1 0; }
.flow__loop { margin: var(--space-5) 0 0; }
.flow__sync { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* The two sync facts, as the hub's Products card shows them (Valentin 2026-11-19): green good-outcome badges with a 16px check,
   a 24px pill with 12px sides (the hub's .badge). The check draws in currentColor, the badge's green. */
.flow__fact { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 24px; padding: 0 var(--space-3);
  border-radius: 999px; background: var(--color-bg-success-primary);
  font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-medium); color: var(--color-text-success-primary); }
.flow__fact .icon { color: currentColor; }
@media (min-width: 1024px) {
  .flow__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-12); row-gap: 0; }
  .flow__link { left: 100%; top: 50%; width: var(--space-12); height: 2px; transform: translateY(-50%); transform-origin: left center; --l-flow-link-off: 0 1; }
  /* the return line: from under Google Sheets back to under HubSpot */
  .flow__loop { position: relative; margin: 0 calc((100% - 2 * var(--space-12)) / 6); height: var(--space-8);
    border: 2px dashed var(--color-border-primary); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
  .flow__sync { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); justify-content: center; width: max-content; max-width: 100%; }
}
/* armed by flow.js (JavaScript on, motion allowed): the drawing waits, undrawn, until the figure is half on screen */
.flow--armed .flow__draw rect { stroke-dashoffset: 1; }
.flow--armed .flow__link { scale: var(--l-flow-link-off); }
/* one pass: border 1 for 1 s, line 1 for 0.4 s, border 2, line 2, border 3; ends at 3.8 s and stays drawn (fill both) */
@media (prefers-reduced-motion: no-preference) {
  .flow--play .flow__step--1 .flow__draw rect { animation: flow-draw 1s ease-in-out 0s both; }
  .flow--play .flow__link--1 { animation: flow-line 0.4s ease-in-out 1s both; }
  .flow--play .flow__step--2 .flow__draw rect { animation: flow-draw 1s ease-in-out 1.4s both; }
  .flow--play .flow__link--2 { animation: flow-line 0.4s ease-in-out 2.4s both; }
  .flow--play .flow__step--3 .flow__draw rect { animation: flow-draw 1s ease-in-out 2.8s both; }
}
@keyframes flow-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flow-line { from { scale: var(--l-flow-link-off); } to { scale: 1; } }

/* The fit check (#fit, docs/research/2026-11-14-who-is-this-for.md): one card at the medium width (Valentin, 2026-11-14: the
   second card, "Not the right tool if", gave "too many reasons to not pick us"). The six fits sit in two columns from 768px;
   what the product does not do is one quiet line of scope under them. */
.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); }

/* Home page alignment (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. Here: every section after the hero centres its heading and its lead sentences; grids keep
   their full width; single lists and the privacy link sit in a centred block, their text still left-aligned for reading.
   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; }
.landing #how .flow { margin-inline: auto; }

/* Space after headings: the brand rule in rem (../policies/brand.md "Space after headings", Valentin 2026-11-14). 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-h2); }
.landing .price-head h2 { margin-bottom: var(--heading-lead-gap); }
.landing .section > .wrap > :is(.grid, .fit-card, .flow, .checks) + .section-lead { margin-top: var(--after-h3); }
.landing .flow { margin-top: 0; }
.landing .card h3, .landing .plan h3 { margin-bottom: var(--card-title-gap); }

/* Hero spacing (Valentin, 2026-11-14: "the hero is very stacked"): the kicker, h1 and lead are one header block with room
   inside it, then --after-h1 before the button, then the two 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 hero ground the indigo eyebrow measured 4.28:1 at 375px, where the glow is brightest behind it (test/browser/heroContrast.spec.ts),
   under the 4.5:1 of WCAG AA; the muted text colour, as the lead's, measures 5.57:1 at worst there. */
.hero-ground .kicker { color: var(--color-text-secondary); }
/* The lead and the small notes sit on the mesh's light, where the grey text colour fell to 3.5:1 in dark mode (measured 2026-11-19 on the
   lightest pixel behind them, 320 to 1280px, test/browser/heroContrast.spec.ts). Mostly the text colour and a little of the grey, as the hub's
   lead (its D-41, "80% --ink, 20% --muted"): still a step quieter than the h1, and over 4.5:1 on every pixel. */
.hero-ground :is(.lead, .section-lead, .cta-note) { color: color-mix(in srgb, var(--color-text-primary) 80%, 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); }

/* Price and comparison spacing (Valentin, 2026-11-14: "add more space after the description, under the 2 cards", "center the
   Start free trial CTA"). The comparison table now has its own section (#compare). */
.landing .price { row-gap: var(--after-h1); }
.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); }
.landing .compare-table { max-width: var(--l-medium); margin-inline: auto; }

.landing .close .wrap > h2 + .section-lead { margin-bottom: var(--after-h3); }
.landing .close .btn { margin-top: 0; }

/* ---------------------------------------------------------------- UX review 2026-11-14 (docs/reviews/2026-11-14-landing-ux.md).
   Measured against five other landing pages, ours had the most words per screen and no picture; these rules add the pictures
   and cut the number of looks and widths. */

/* Hero: one bar per measured delay, against the 60 s between two checks. An SVG whose rect width is the number in the cell
   beside it, stretched to the cell (preserveAspectRatio none), so no width is typed here. Decorative: the number is the content. */
.sheet .delay { width: 34%; vertical-align: middle; }
.sheet td.clean { white-space: nowrap; }
.sheet .delay-head { white-space: nowrap; }
.delay__bar { display: block; width: 100%; min-width: 64px; height: 8px; border-radius: 999px; overflow: hidden; }
.delay__track { fill: var(--color-bg-brand-primary); }
.delay__fill { fill: var(--color-fg-brand-primary); }

/* Three cards never sit two and one: the steps and the three places go from one column straight to three (at 768px two
   columns left a lone third card). */
@media (min-width: 768px) and (max-width: 1023px) { .steps, .places { grid-template-columns: minmax(0, 1fr); } }
.card .kicker { margin-bottom: var(--space-2); }

/* Our two rows in the comparison table. */
.sheet tr.ours th, .sheet tr.ours td { background: var(--color-bg-brand-primary); font-weight: var(--weight-semibold); }

/* The FAQ shares the medium width with the table and the plans; answers keep the paragraph width. */
.landing .faq .wis-faq { max-width: var(--l-medium); }

/* Problem section: the stale sheet (Valentin, 2026-11-14; the page comment has the story). It reuses the example-sheet box of the
   hero and the comparison (.sheet) and adds what makes it read as a spreadsheet at a glance: grid lines, column letters, row
   numbers. A cell that is no longer true has the notice background (the yellow of a highlighted cell) and, under its value, what
   HubSpot says now. Since B-02 (policies/brand.md: "green for what is right, yellow for what changed, red only for an error")
   that correct value is green, not the error red: nothing here is an error of ours. */
.stale { max-width: var(--l-medium); margin-inline: auto; }
.sheet--cells th, .sheet--cells td { border-right: 1px solid var(--color-border-primary); }
.sheet--cells tr > :last-child { border-right: 0; }
.sheet--cells tbody tr:last-child td, .sheet--cells tbody tr:last-child th { border-bottom: 1px solid var(--color-border-primary); }
.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 .cells__letters td, .sheet--cells .cells__n { background: var(--color-bg-secondary); color: var(--color-text-tertiary);
  font-size: var(--text-xs); line-height: var(--text-xs-lh); text-align: center; vertical-align: middle; }
.sheet--cells .cells__n { width: 36px; }
.sheet--cells tbody th { font-weight: var(--weight-regular); }
.sheet--cells .cells__stale { background: var(--color-bg-warning-primary); }
.cells__now { display: block; margin-top: var(--space-1); font-size: var(--text-xs); line-height: var(--text-xs-lh);
  font-weight: var(--weight-semibold); color: var(--color-text-success-primary); }
.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); }
@media (max-width: 767px) {
  .sheet--cells th, .sheet--cells td { padding-inline: var(--space-2); }
  .sheet--cells .cells__n { width: 28px; }
}
/* The four pains: an icon, a title, one sentence. No boxes. One column on a phone, two on a tablet, four on a desktop. */
.landing .stale + .pains { margin-top: var(--after-h2); }
.pains, .facts { gap: var(--space-8) var(--gutter); }
@media (min-width: 768px) { .pains, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pains, .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); }
/* Price section (Valentin, 2026-11-14: "rework the price section"): the two plans, the one button right under them, then what
   holds for both plans as four points in the same shape as the four pains (an icon in a soft indigo tile, a title,
   one or two sentences). The points take the full container, like the pains; the plans keep the medium width. */
.facts { width: 100%; }

/* ---------------------------------------------------------------- the four search pages, made visual and short (brief SP2, 2026-11-15).
   Valentin, after the first preview: "It's a lot of text without infographics, very hard to read as the attention span is lower than before".
   Measured with the layout-review structure.js at 1280px: 224 to 242 words per screen and no picture in any section; the benchmark landing
   pages have 40 to 104. Each section is now one idea with one picture made of the page's own facts, a lead of one line, and the rarely needed
   detail folded in one <details>. The pages are marketing-style (centred section headers, one content width for a picture), not documents. */
.guide .section { padding: var(--space-16) 0; }
@media (min-width: 768px) { .guide .section { padding: var(--space-24) 0; } }
/* Hero: h1, a two-sentence lead, the one button and the "On this page" links, centred. The page title is one step above a section title:
   desktop display-lg, tablet display-md, phone display-sm (brand.md "Responsive headings": one step smaller on a tablet, two on a phone). */
.guide-hero { padding: calc(var(--l-bar) + var(--space-12)) 0 var(--space-10); text-align: center; }
@media (min-width: 768px) { .guide-hero { padding: calc(var(--l-bar) + var(--space-16)) 0 var(--space-12); } }
.guide h1 { font-size: var(--display-sm); line-height: var(--display-sm-lh); letter-spacing: normal; margin-bottom: var(--heading-lead-gap); }
@media (min-width: 768px) { .guide h1 { font-size: var(--display-md); line-height: var(--display-md-lh); letter-spacing: var(--display-md-ls); } }
@media (min-width: 1024px) { .guide h1 { font-size: var(--display-lg); line-height: var(--display-lg-lh); letter-spacing: var(--display-lg-ls); } }
.guide-hero .section-lead { margin: 0 auto var(--after-h3); }
.guide-cta { display: flex; justify-content: center; margin: 0 0 var(--after-h3); }
.guide-cta--end { margin: var(--after-h3) 0 0; }
.guide-hero .cta-note { margin: var(--space-3) auto 0; }
/* "On this page": the section links as a row of small pills. */
.guide nav[aria-label="On this page"] ol { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.guide nav[aria-label="On this page"] a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-1) var(--space-4); border: 1px solid var(--color-border-primary); border-radius: 999px;
  background: var(--color-bg-primary_alt); color: var(--color-text-primary); font-size: var(--text-sm); line-height: var(--text-sm-lh); font-weight: var(--weight-medium); text-decoration: none; }
.guide nav[aria-label="On this page"] a:hover { background: var(--color-bg-brand-primary); }
/* Section header after the hero: centred, then the after-heading tokens (brand.md "Space after headings"). */
.guide .section > .wrap > h2 { text-align: center; margin-bottom: var(--after-h2); }
.guide .section > .wrap > h2:has(+ .section-lead) { margin-bottom: var(--heading-lead-gap); }
.guide .section > .wrap > .section-lead { text-align: center; margin: 0 auto var(--after-h2); }
.guide .section > .wrap > .pic-cap { text-align: center; margin: var(--after-h3) auto 0; color: var(--color-text-secondary); }
.guide .section > .wrap > .pic-cap + .pic-cap { margin-top: var(--space-2); }

/* The picture card: one figure holding an inline SVG, at a width where its words stay about as big as body text (the SVG is drawn 360 units
   wide and shown 288 to 480px wide). Its words are real text in the HTML. Colours are the brand roles, so dark mode follows. */
.pic-card { margin: 0 auto; max-width: 32rem; padding: var(--space-4); border: 1px solid var(--color-border-primary); border-radius: var(--radius); background: var(--color-bg-primary_alt); }
.pic-card figcaption { margin-top: var(--space-3); text-align: center; font-size: var(--text-sm); line-height: var(--text-sm-lh); color: var(--color-text-secondary); }
.pic { display: block; width: 100%; height: auto; overflow: visible; }
.pic text { fill: var(--color-text-primary); font-size: var(--text-sm); }
.pic .xs { font-size: var(--text-xs); }
.pic .xl { font-size: var(--text-xl); }
.pic .b { font-weight: var(--weight-semibold); }
.pic .mute { fill: var(--color-text-secondary); }
.pic .brandtx { fill: var(--color-text-brand-primary); }
.pic .errtx { fill: var(--color-text-error-primary); }
.pic .shape { fill: var(--color-bg-primary); stroke: var(--color-border-primary); }
.pic .shape--soft { fill: var(--color-bg-secondary); stroke: var(--color-border-primary); }
.pic .shape--ours { fill: var(--color-bg-brand-primary); stroke: var(--color-border-brand); }
.pic .shape--note { fill: var(--color-bg-warning-primary); stroke: var(--color-border-brand); }
.pic .track { fill: var(--color-bg-secondary); stroke: var(--color-border-primary); }
.pic .dash { fill: none; stroke: var(--color-border-primary); }
.pic .line { fill: none; stroke: var(--color-border-primary); }
.pic .bar { fill: var(--color-fg-brand-primary); }
.pic .bar--rival { fill: var(--color-fg-secondary); }
.pic .fill-brand { fill: var(--color-fg-brand-primary); }
.pic .fill-rival { fill: var(--color-fg-secondary); }
.pic .stroke-brand { fill: none; stroke: var(--color-fg-brand-primary); }
.pic .stroke-rival { fill: none; stroke: var(--color-fg-secondary); }

/* The detail folded under a picture: one <details> per section. It stays in the static HTML. */
.more { max-width: var(--l-medium); margin: var(--after-h3) auto 0; }
.more > summary { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; cursor: pointer; list-style: none; font-weight: var(--weight-semibold); color: var(--color-text-brand-primary); }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary .more__icon { rotate: 180deg; }
.more__icon { transition: rotate 0.2s ease; }
@media (prefers-reduced-motion: reduce) { .more__icon { transition: none; } }
.more > :not(summary) { margin-top: var(--space-4); }
.more .sheet-wrap { margin: var(--space-4) 0 0; }
.more ul { padding-left: var(--space-5); margin: var(--space-3) 0 0; }
.more li { margin-bottom: var(--space-2); }

/* One line under the overview table: what no row shows (brief SP3). The five-ways cards and the "Choose ... if" columns that were here became rows of the feature table. */
.way-note { text-align: center; margin: var(--after-h3) auto 0; color: var(--color-text-secondary); }
.guide .section > .wrap > .cta-note { text-align: center; margin: var(--space-3) auto 0; }
/* On a phone the picture card runs edge to edge (the container's side padding is taken back) and loses its side border, so the SVG is as wide as
   the window allows: its words are scaled with it, and at 320px every pixel counts (12px words drawn at 0.84 are about 10px). */
@media (max-width: 599px) {
  .pic-card { max-width: none; margin-inline: calc(-1 * var(--container-pad)); padding-inline: var(--space-2); border-inline: 0; border-radius: 0; }
}
/* A picture card and the block after it never touch (Valentin, 2026-11-15, two screenshots: the card grid sat flush under the picture).
   --after-h3 is the "content to a follow-up" gap of the layout-review rules. Specific enough to beat `.ways { margin: 0 }`. */
.guide .pic-card + * { margin-top: var(--after-h3); }

/* "Why choose CRM Sheet Sync" (WhyChoose.astro; Valentin, 2026-11-15): an Untitled UI icon on top, centered, no border, 24px (--space-6) down to the
   title and description, everything centered; one column on a phone, three side by side from 768px. The icon sits on a soft brand circle (Untitled UI's
   "light" featured icon, without its border ring). */
.reasons { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: var(--space-8) var(--gutter); max-width: var(--container-max); }
@media (min-width: 768px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reasons li { text-align: center; }
.reasons__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; background: var(--color-bg-brand-primary); margin-bottom: var(--space-6); }
.reasons h3 { margin: 0 0 var(--card-title-gap); }
.reasons p { margin: 0 auto; max-width: 22rem; color: var(--color-text-secondary); }
.guide .reasons + * { margin-top: var(--after-h3); }

/* ---------------------------------------------------------------- the feature comparison table (brief SP3, 2026-11-15).
   Valentin: "the simplest way to put it is a comparison table, comparing features (first column) CRM Sheet Sync (second column) and the competitor
   (third column)". It is the .sheet box of the home page's price table with our column tinted (the brand role of tr.ours, as a column). One medium
   width for a table of three columns, the full container for the overview's six. A yes or no is an icon and the word; "Yes" is green (a good outcome, B-02), "No" is neutral, not red. */
.feature { margin: 0 auto; max-width: var(--l-medium); }
.feature--wide { max-width: none; }
.feature table { table-layout: fixed; }
.feature th, .feature td { overflow-wrap: break-word; }
.feature thead th { background: var(--color-bg-secondary); font-size: var(--text-sm); line-height: var(--text-sm-lh); text-transform: none; letter-spacing: normal; }
.feature thead th:first-child { width: 30%; }
.feature--wide thead th:first-child { width: 16%; }
.feature tbody th { font-weight: var(--weight-semibold); }
.feature th.col-ours, .feature td.col-ours { background: var(--color-bg-brand-primary); }
.feature thead th.col-ours { color: var(--color-text-brand-primary); font-weight: var(--weight-semibold); }
.feature td.col-ours { font-weight: var(--weight-semibold); }
.feature td.col-ours .cell-note { font-weight: var(--weight-regular); }
.icon--quiet { color: var(--color-fg-secondary); }
.yn { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: var(--weight-semibold); }
.cell-line, .cell-note { display: block; }
.cell-note { color: var(--color-text-secondary); font-size: var(--text-xs); line-height: var(--text-xs-lh); margin-top: var(--space-1); }
.cell-label, .cell-tool { display: none; }
@media (max-width: 599px) {
  .feature th, .feature td { padding-inline: var(--space-2); }
}
/* A table with many tool columns (the overview's five) becomes one card per tool below 768px, CSS only: the rows stop being rows, the cells of
   one tool are put next to each other with `order` (the tool is the cell's position in its row), and the first row's cells open each card with
   the tool's name. Ours is the second cell, so its card is first. Every cell shows its feature name, from its own <span class="cell-label">. */
@media (max-width: 767px) {
  .feature--cards { border: 0; background: none; border-radius: 0; }
  .feature--cards table, .feature--cards tbody { display: block; }
  .feature--cards thead { display: none; }
  .feature--cards tbody { display: grid; grid-template-columns: minmax(0, 1fr); }
  .feature--cards tr { display: contents; }
  .feature--cards tbody th { display: none; }
  .feature--cards td { display: block; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border-primary); border-top: 0; background: var(--color-bg-primary_alt); }
  .feature--cards td:nth-child(2) { order: 2; background: var(--color-bg-brand-primary); border-color: var(--color-border-brand); }
  .feature--cards td:nth-child(3) { order: 3; }
  .feature--cards td:nth-child(4) { order: 4; }
  .feature--cards td:nth-child(5) { order: 5; }
  .feature--cards td:nth-child(6) { order: 6; }
  .feature--cards tbody tr:first-child td { margin-top: var(--space-6); border-top: 1px solid var(--color-border-primary); border-radius: var(--radius) var(--radius) 0 0; }
  .feature--cards tbody tr:first-child td:nth-child(2) { margin-top: 0; border-top-color: var(--color-border-brand); }
  .feature--cards tbody tr:last-child td { border-radius: 0 0 var(--radius) var(--radius); }
  .feature--cards .cell-tool { display: block; margin-bottom: var(--space-2); font-size: var(--text-md); line-height: var(--text-md-lh); font-weight: var(--weight-semibold); color: var(--color-text-primary); }
  .feature--cards .cell-label { display: block; margin-bottom: var(--space-1); font-size: var(--text-xs); line-height: var(--text-xs-lh); font-weight: var(--weight-medium); color: var(--color-text-tertiary); }
  .feature--cards td.col-ours { font-weight: var(--weight-regular); }
  .feature--cards .yn { font-weight: var(--weight-semibold); }
}
