/* The look of the site since 2026-11-16. Three design files met here: Apple, Stripe and Notion.
   It loads last (see includes/head.php). ?design=off shows the look before it.
   The brand blue stays the one accent: all three files agree on one accent. The owner's rules stay:
   a section is as tall as its content, and a capture is a real App screen that shows whole.

   From Apple:  bands that go edge to edge, where the change of ground is the divider; text at 17px; a head at
                weight 600 with tight tracking; one shadow in the system, under a capture.
   From Stripe: the cool soft ground of a band; figures that line up (tabular numbers) where a price shows;
                a soft wash of colour behind the hero; shadows with a blue tint.
   From Notion: a card is a hairline with a shadow you can hardly see; one dark band on a page.
   Not taken:   Stripe's thin head (it disagrees with the two others), Notion's warm paper (the App captures are
                cool), and the sticker colours (the site shows real screens only). */

:root {
  --display-weight: 600;
  --display-tracking: -0.032em;
  --display-tracking-xl: -0.038em;
  --t-body: 17px;
  --m-tile: #f5f7fa;                                        /* the soft band */
  --m-hair: color-mix(in oklab, var(--ink) 9%, transparent);
  --m-card-shadow: 0 0 0 1px rgb(0 40 90 / .05), 0 1px 2px rgb(0 40 90 / .04), 0 4px 18px rgb(0 40 90 / .05);
  --m-shot-shadow: 0 0 0 1px rgb(0 30 70 / .07), 0 6px 34px -4px rgb(0 30 70 / .20);
  --m-wash-a: #dfe9ff; --m-wash-b: #ece4ff; --m-wash-c: #fdf1e3;
}
html[data-theme="dark"] {
  --m-tile: #16181d;
  --m-card-shadow: 0 0 0 1px rgb(255 255 255 / .06);
  --m-shot-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 10px 40px -6px rgb(0 0 0 / .6);
  --m-wash-a: #16254a; --m-wash-b: #241d44; --m-wash-c: #131519;
}

/* Text: 17px with room between the lines. */
body { line-height: 1.5; }
main p, main li, main dd { line-height: 1.5; }
h1, h2, .t-h1, .t-h2 { font-weight: 600; }

/* Figures line up wherever a price or a count shows. */
/* only the price figures: in this typeface the setting also widens the space before a comma in a sentence */
.plans__price { font-variant-numeric: tabular-nums; }

/* Bands: each second section sits on the soft ground, edge to edge. No rule between sections.
   A page with one section under its hero (a page to read: documentation, questions, a legal page) stays white. */
main:has(> section.section:nth-of-type(3)) > section.section:nth-of-type(even):not(.ground-inverse, .statement) { background: var(--m-tile); --band: var(--m-tile); }
main > section.section { border-top: 0; }
main > section.section + section.section { margin-top: 0; }

/* A capture rests on the band: the coloured mat goes, and the capture keeps the one shadow of the system. */
.mat.lit, .hero--centred .hero__window.lit { background: none; padding: 0; overflow: visible; }
main > .hero.hero--centred .hero__window { padding: 0 !important; }
.shotwin { border-radius: 14px; box-shadow: var(--m-shot-shadow); }
.ground-inverse .shotwin { box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 10px 40px -6px rgb(0 0 0 / .55); }
.mat.lit > .device, .phone-only > .device, .hero-phone > .device { filter: drop-shadow(0 10px 28px rgb(0 30 70 / .16)); }

/* The hero: a soft wash of colour in the upper part, behind the words. */
main > .hero { position: relative; isolation: isolate; }
main > .hero::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: min(720px, 92%);
  background: linear-gradient(100deg, var(--m-wash-a) 0%, var(--m-wash-b) 52%, var(--m-wash-c) 100%);
  -webkit-mask-image: linear-gradient(#000 0%, rgb(0 0 0 / .55) 45%, transparent 100%); mask-image: linear-gradient(#000 0%, rgb(0 0 0 / .55) 45%, transparent 100%); pointer-events: none; }
/* the kit paints a shader and a ground colour on the hero window: both go, so the capture rests on the wash */
main > .hero .hero__window > canvas { display: none !important; }
main > .hero .hero__window { background-color: transparent !important; }

/* A card: a hairline and a shadow you can hardly see. */
.card:not(.card--open) { background: var(--bg); border: 0; box-shadow: var(--m-card-shadow); border-radius: 14px; }

/* The row of logos sits on the soft ground, as one band with the hero's end. */
main > .usedby { padding-block: var(--s-7) var(--s-8); }

/* Polish (Impeccable, 2026-11-16). The parts the browser draws take the palette too. */
::selection { background: color-mix(in oklab, var(--action) 22%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
input, textarea { caret-color: var(--action); }
h1, h2, h3 { text-wrap: balance; }
main p { text-wrap: pretty; }
a.link, .prose a { text-underline-offset: 3px; }

/* Polish from the review of all 30 pages (Impeccable, 2026-11-16). */
/* A band has the same room above and below its content. On white the short lower edge did not show. */
main:has(> section.section:nth-of-type(3)) > section.section { padding-block: clamp(72px, 6.5vw, 96px); }
/* A hero with no capture ends with room before the first band. */
main:has(> section.section:nth-of-type(3)) > .hero--page:not(:has(.hero__window)) { padding-bottom: var(--s-8); }
/* A capture in a card starts at the edge of its text: with no frame, a centred capture floats. */
@media (min-width: 900px) { .card > .mat.lit:has(> .shotwin) { align-items: start; justify-items: start; } }
/* The head of the plan table takes the ground of its band. */
.plans--full > thead, .plans--full thead th { background: var(--band, var(--bg)); }
/* A text link wraps with its words, and its arrow stays after the last word. The padding keeps a 44px tap area. */
.link { display: inline; padding-block: 10px; }
.link::after { display: inline-block; margin-left: .4em; vertical-align: -0.04em; }
/* The row of jump links: no chip alone on a row. */
.jump { display: block; text-align: center; text-wrap: balance; }
.jump a { margin: calc(var(--s-2) / 2); }
/* Two columns stand apart. */
@media (min-width: 900px) { .contact { column-gap: var(--s-8); } }
/* A small head has more room above it than a paragraph has. */
.stack-4 > .stack-2:has(> h3) { margin-top: var(--s-6); }
/* A price line breaks into even lines. */
.plans--tiers thead small { text-wrap: balance; }
/* The card beside the questions follows the card of the look. */
@media (min-width: 1024px) { .read--aside .qmore { padding: var(--s-5); border-top: 0; background: var(--bg); box-shadow: var(--m-card-shadow); border-radius: 14px; } }
/* A long list of sections fades at its lower edge, so no line is cut in half. */
@media (min-width: 1024px) { .read__nav { padding-bottom: 28px; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); } }

/* ---------------------------------------------------------------- Impeccable bolder, 2026-11-16
   Target: the hero of each page. It is the first thing a visitor sees, and it was the quietest part of the new
   look: a head the size of a section head, on a wash you could hardly see. It takes the full display size and a
   wash with colour in it. Nothing below the hero changes. No new colour: the wash is the brand blue and its two
   neighbours, as before, at more strength. */
:root { --m-wash-a: #cfdfff; --m-wash-b: #e2d6ff; --m-wash-c: #ffe9d2; }
html[data-theme="dark"] { --m-wash-a: #1b3270; --m-wash-b: #33246a; --m-wash-c: #171a22; }
main > .hero h1 { font-size: clamp(42px, 5.6vw + 14px, 92px); line-height: 1.0; letter-spacing: -0.04em; max-width: 16ch; margin-inline: auto; }
main > .hero.hero--page h1 { font-size: clamp(38px, 4.2vw + 14px, 72px); max-width: 18ch; }
main > .hero .hero__lead { font-size: clamp(18px, 0.5vw + 16px, 22px); max-width: 44ch; margin-inline: auto; }
main > .hero::before { height: min(860px, 100%); }

/* ---------------------------------------------------------------- Impeccable animate, 2026-11-16
   One authored moment for the new look: the capture of the hero comes to rest on the page. It is on the page
   from the first paint, so the largest picture is never held back: it only rises 16px and grows from 98.5%.
   No fade and no blur: a blur over a picture this large is slow in Safari, and a fade delays the first view.
   The stage tour of the homepage keeps its wipe.
   The row of logos arrives as a list, 45ms apart, the first time it comes on screen (site.js marks the row).
   Each element is visible by default, so a page with no script or no animation shows everything. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) main > .hero .hero__window > .ly-piece { animation: hero-rest .7s cubic-bezier(0.23, 1, 0.32, 1) both; }
  html:not([data-motion="off"]) .usedby.is-waiting .logos > li { opacity: 0; }
  html:not([data-motion="off"]) .usedby.is-in .logos > li { animation: logo-in .32s cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(var(--n, 0) * 45ms); }
}
@keyframes hero-rest { from { transform: translateY(16px) scale(.985); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(8px); } }

/* The large word of the closing band: at the heavier weight it was 1px wider than a 320px screen. */
@media (max-width: 479px) { .close__word { font-size: clamp(34px, 11vw, 52px); } }

/* ---------------------------------------------------------------- The offer band (Black Friday 2026)
   A black band under the navigation, on each page, for the days of the offer. It is black in both themes: that
   is the subject, so the two colours are written here and are not theme tokens. The one action keeps the brand
   blue. Joey asked for a band that is clear but not very large (2026-11-16): from 900px it is one row, the words
   at the left and the code with the button at the right. The visitor can close it. */
.bf { position: relative; margin-top: var(--nav); background: #000; color: #fff; }
.bf[hidden] { display: none; }
.bf__in { display: grid; justify-items: center; gap: var(--s-4); padding-block: var(--s-6); padding-right: 44px; text-align: center; }
.bf__words { display: grid; gap: var(--s-2); }
.bf__head { font: 600 clamp(24px, 1.5vw + 18px, 38px)/1.08 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.bf__text { max-width: 60ch; font-size: 17px; line-height: 1.45; color: rgb(255 255 255 / .78); text-wrap: pretty; }
.bf__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-3); }
@media (min-width: 900px) {
  .bf__in { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: var(--s-6); text-align: left; padding-block: var(--s-5); padding-right: 56px; }
  .bf__row { flex-wrap: nowrap; }
}
.bf__code { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-4) 0 var(--s-5); border: 1px dashed rgb(255 255 255 / .55); border-radius: 999px;
  background: none; color: #fff; font: 600 17px/1 var(--font-text); letter-spacing: 0.06em; white-space: nowrap; cursor: pointer; transition: transform .14s cubic-bezier(0.23, 1, 0.32, 1), border-color .15s ease; }
.bf__code small { font: 500 16px/1 var(--font-text); letter-spacing: 0; color: rgb(255 255 255 / .7); }
.bf__code:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .bf__code:hover { border-color: #fff; } }
.bf :focus-visible { outline-color: #fff; }
.bf__close { position: absolute; top: 50%; right: var(--s-2); translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: rgb(255 255 255 / .75); cursor: pointer; }
@media (max-width: 899px) { .bf__close { top: var(--s-2); translate: none; } }
@media (hover: hover) and (pointer: fine) { .bf__close:hover { color: #fff; background: rgb(255 255 255 / .12); } }
/* the hero under the band needs no room for the navigation bar */
.bf:not([hidden]) ~ main > .hero:first-child { padding-top: var(--s-8); }
