/*
 * flogit.app — layout
 *
 * The previous version was a poster: three solid colour fields running edge to
 * edge, and enormous type doing all the work. This one is built from OBJECTS —
 * cards, slabs and pills resting on a pale ground, each with corners and a
 * coloured shadow. Same content, same class names, different physics.
 *
 * Three rules hold it together:
 *
 *   1. NOTHING TOUCHES THE EDGE. Dark and brand blocks are inset slabs with 36px
 *      corners, not full-bleed bands. This is the single biggest difference
 *      between the two versions and most of what reads as "expensive".
 *   2. SHADOWS ARE BLUE, NOT GREY. A grey shadow on a blue-tinted ground looks
 *      like dirt. The tinted ones in tokens.css look like light.
 *   3. THE SPARK APPEARS ONCE PER VIEWPORT. Amber is the thing to press. Two
 *      ambers on one screen and neither means anything.
 *
 * Motion is entrances and hover only. Nothing loops. Ambient perpetual movement
 * is what people reach for first when asked to make a page feel premium, and it
 * is the fastest way to make it feel cheap instead.
 */

/* ── Fields ─────────────────────────────────────────────────────────────── */
.field { padding-block: clamp(var(--s8), 10vw, var(--s10)); position: relative; }

/* A soft wash, edge to edge — this one stays a band because it is the ground
   the cards sit ON, not an object itself. */
.field--soft {
  background:
    radial-gradient(70rem 40rem at 15% -10%, var(--brand-wash), transparent 60%),
    radial-gradient(50rem 30rem at 95% 110%, var(--spark-wash), transparent 60%),
    var(--sunk);
}

/* The two coloured blocks became slabs: inset, rounded, self-contained. */
.field--brand,
.field--ink {
  margin-inline: var(--gutter);
  border-radius: clamp(var(--r-xl), 3vw, 2.25rem);
  overflow: clip;
  padding-block: clamp(var(--s8), 8vw, var(--s9));
  isolation: isolate;
}
.field--brand > .wrap,
.field--ink > .wrap { padding-inline: clamp(var(--s5), 6vw, var(--s9)); }

.field--brand {
  background-color: var(--brand-deep);   /* the floor if the gradient never paints */
  background-image:
    radial-gradient(45rem 30rem at 85% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  --ink: #ffffff;
  --ink-2: rgba(255,255,255,.88);
  --ink-3: rgba(255,255,255,.70);
  --rule: rgba(255,255,255,.22);
  color: var(--ink);
}
.field--ink {
  background:
    radial-gradient(40rem 26rem at 12% 0%, rgba(81,100,174,.34), transparent 62%),
    radial-gradient(34rem 22rem at 92% 100%, rgba(245,158,11,.16), transparent 60%),
    #0b1020;
  --ink: #ffffff;
  --ink-2: rgba(255,255,255,.84);
  --ink-3: rgba(255,255,255,.62);
  --rule: rgba(255,255,255,.16);
  color: var(--ink);
}
/* These two are FIXED compositions — a deep-blue block and a near-black block,
   each with white text. They pull --brand/--brand-deep, which are now always the
   light values, so the base rule above is the whole story; the dark-mode guards
   that used to re-pin them (white copy was landing on pale blue at 1.7:1 when the
   tokens lightened) went with dark mode itself. */

.wrap { padding-inline: var(--edge); }
.measure { max-width: var(--measure); }

/* ── The tag voice ──────────────────────────────────────────────────────── */
/* Section markers now sit in a soft pill. The mono is still there — it is the
   one thing on this page nobody else has — but it no longer shouts. */
.tag {
  padding: 0.3rem var(--s3);
  border-radius: var(--r-pill);
  background: var(--brand-wash);
  color: var(--brand-deep);
}
.field--brand .tag,
.field--ink .tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.86); }

.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
}
.tagline > span {
  padding: 0.3rem var(--s3);
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--raised);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tagline b { color: var(--ink); font-weight: 600; }

.rule-top { padding-block-start: var(--s3); border-block-start: 1px solid var(--rule); }

/* ── Display type ───────────────────────────────────────────────────────── */
/* The compression is the point. −0.07em at the top end is far past a default,
   and it is doing more of the work here than any effect on the page. */
.poster {
  font-size: clamp(2.75rem, 9vw, 7.5rem);
  line-height: 0.94;
  /* Display type wants a touch of negative tracking so the words read as shapes,
     but -0.055em (and -0.07em wide) had the letters visibly touching. Opened up
     so they breathe without losing the poster feel. */
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
@media (min-width: 64rem) { .poster { letter-spacing: -0.032em; } }
.poster em {
  font-style: normal;
  /* Solid brand blue, the wordmark's own colour — so the emphasis reads as the
     product's voice, not a separate gradient accent. */
  color: var(--brand);
}
.field--brand .poster em, .field--ink .poster em {
  color: rgba(255,255,255,.55);
}

.statement {
  font-size: clamp(1.625rem, 3.2vw + 0.5rem, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

.lede { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem); color: var(--ink-2); line-height: 1.55; }
.body { color: var(--ink-2); }
.body + .body { margin-block-start: var(--s4); }

/* ── Header: a floating pill, not a bar ─────────────────────────────────── */
.masthead {
  position: sticky; top: var(--s3); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  width: min(calc(100% - 2 * var(--gutter)), var(--page));
  margin-inline: auto;
  padding: var(--s2) var(--s2) var(--s2) var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Only becomes a surface once you have scrolled past the top. At rest it is
   invisible furniture; a permanent floating bar over a hero is clutter. */
.masthead[data-stuck] {
  background: color-mix(in srgb, var(--raised) 82%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border-color: var(--rule);
  box-shadow: var(--lift);
}
.masthead-mark { color: var(--brand); display: flex; }
.masthead-mark svg { display: block; }
.masthead nav { display: flex; align-items: center; gap: clamp(var(--s3), 2vw, var(--s5)); }
/* :not(.btn) is load-bearing. Without it this rule outranks .btn on specificity
   and repaints the primary button's label in body-copy grey — which measured
   3.9:1 on amber and looked, wrongly, like a disabled control. */
.masthead nav a:not(.btn) { font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.masthead nav a:not(.btn):hover { color: var(--ink); }
.masthead nav a[aria-current]:not(.btn) { color: var(--ink); font-weight: 600; }
@media (max-width: 46rem) {
  .masthead { padding-left: var(--s4); }
  .masthead nav a:not(.btn) { display: none; }
}

/* ── Buttons: pills ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap);
  padding-inline: var(--s6);
  border: 0; border-radius: var(--r-pill);
  background: var(--spark); color: var(--on-spark);
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  box-shadow: var(--glow-spark);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { background: var(--spark-deep); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(245,158,11,.55); }
.btn:active { transform: translateY(0); }

.btn--sm { min-height: 2.375rem; padding-inline: var(--s5); font-size: 0.9375rem; }
/* 38px is fine under a mouse and too small under a thumb, so the compact button
   grows back to the 44px floor wherever a thumb is likely: a coarse pointer, or
   a phone-width viewport. The width test matters because an emulated mobile
   viewport still reports a fine pointer. */
@media (pointer: coarse), (max-width: 46rem) {
  .btn--sm { min-height: var(--tap); padding-inline: var(--s5); }
}
.btn--lg { min-height: 3.5rem; padding-inline: var(--s7); font-size: 1.0625rem; }

/* Quiet: an outline pill for the secondary choice. */
.btn--quiet {
  background: var(--raised); color: var(--ink);
  border: 1px solid var(--rule-firm);
  box-shadow: var(--lift);
}
.btn--quiet:hover { background: var(--sunk); color: var(--ink); box-shadow: var(--lift-md); }

/* On a coloured slab the spark would fight the ground, so white takes over. */
.btn--onfield { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.field--ink .btn--onfield { color: #0b1020; }
.btn--onfield:hover { background: rgba(255,255,255,.9); }
.field--brand .btn--quiet,
.field--ink .btn--quiet {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none;
}
.field--brand .btn--quiet:hover,
.field--ink .btn--quiet:hover { background: rgba(255,255,255,.16); color: #fff; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.cta small { font-size: 0.9375rem; color: var(--ink-3); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* The washes below sit outside this box on purpose, and a blur adds another
     60px on every side. Without clipping here they extend the page's scrollable
     width and every page gains a horizontal scrollbar — which is exactly what
     happened the first time. */
  overflow: clip;
  padding-block: clamp(var(--s8), 11vw, var(--s10)) clamp(var(--s8), 10vw, var(--s10));
}
/* Two soft washes behind the headline. Sized in rem and pinned to the top so
   they cannot chase the viewport on a long page, and marked aria-hidden by
   virtue of being pseudo-elements. */
.hero::before,
.hero::after {
  content: '';
  position: absolute; z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  inset-block-start: -6rem; inset-inline-start: -8rem;
  width: 38rem; height: 30rem;
  background: radial-gradient(closest-side, rgba(81,100,174,.30), transparent);
}
.hero::after {
  inset-block-start: 2rem; inset-inline-end: -10rem;
  width: 34rem; height: 28rem;
  background: radial-gradient(closest-side, rgba(245,158,11,.24), transparent);
}
.hero .poster { margin-block: var(--s5) var(--s6); }
.hero .lede { max-width: 36rem; }
.hero .cta { margin-block-start: var(--s6); }

/* ── Two-part sections: statement left, argument right ──────────────────── */
.split { display: grid; gap: var(--s5); }
@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(var(--s6), 6vw, var(--s8));
    align-items: start;
  }
  .split > :first-child { position: sticky; top: 7rem; }
}
.split-body > * + * { margin-block-start: var(--s4); }

/* ── Numbered ledger: the listing sequence ──────────────────────────────── */
/* Steps are cards now. The number is the spark's other job: it marks sequence,
   which is information, not decoration. */
.ledger { display: grid; gap: var(--s4); margin-block-start: var(--s7); padding: 0; }
.ledger > li {
  display: grid;
  gap: var(--s3);
  padding: clamp(var(--s5), 3vw, var(--s6));
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--raised);
  box-shadow: var(--lift);
  list-style: none;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.ledger > li:hover { transform: translateY(-3px); box-shadow: var(--lift-md); }
@media (min-width: 48rem) {
  .ledger > li { grid-template-columns: 3rem minmax(0, 18rem) minmax(0, 1fr); gap: var(--s5); align-items: start; }
}
.ledger-n {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--r-pill);
  background: var(--spark-wash);
  color: var(--spark-ink);
  font-family: var(--mono); font-size: 0.8125rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.field--brand .ledger > li,
.field--ink .ledger > li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.field--brand .ledger-n,
.field--ink .ledger-n { background: rgba(255,255,255,.14); color: #fff; }
.ledger h3 { font-size: 1.25rem; letter-spacing: -0.025em; }
.ledger p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

/* ── Pledge: what it refuses to do ──────────────────────────────────────── */
.pledge { display: grid; gap: var(--s3); margin-block-start: var(--s7); }
.pledge > div {
  display: grid; gap: var(--s2);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--rule);
}
@media (min-width: 42rem) {
  .pledge > div { grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s5); align-items: baseline; }
}
.pledge dt {
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.pledge dd { margin: 0; font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.1875rem); }

/* ── Feature grid: cards ────────────────────────────────────────────────── */
/* A fixed 3-up on desktop, so the six cards read as two clean rows of three
   rather than auto-fit's 4 + 2. Steps down to 2 on tablet, 1 on phone. */
.grid {
  display: grid; gap: var(--s4);
  grid-template-columns: 1fr;
  margin-block-start: var(--s7);
}
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid article {
  display: grid; gap: var(--s2); align-content: start;
  padding: clamp(var(--s5), 2.5vw, var(--s6));
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--raised);
  box-shadow: var(--lift);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
}
.grid article:hover { transform: translateY(-4px); box-shadow: var(--lift-md); border-color: var(--rule-firm); }
.grid article > .tag { justify-self: start; margin-block-end: var(--s2); }
.grid h4 { font-size: 1.125rem; letter-spacing: -0.02em; }
.grid p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); }
.field--brand .grid article,
.field--ink .grid article { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.field--brand .grid article:hover,
.field--ink .grid article:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); }
/* Card headings that lead somewhere. Underline on hover only — a grid of
   permanently underlined links reads as a list of errors. */
.grid h4 a { text-decoration: none; }
.grid h4 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.grid article:has(a) { position: relative; }
.grid article:has(a):hover h4 { color: var(--brand); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: var(--s4); margin-block-start: var(--s7); }
/* No align-items: the cards must stretch to the tallest in the row, which is
   what lets each feature list absorb the difference and land the four buttons
   on the same line. */
@media (min-width: 62rem) { .plans { grid-template-columns: repeat(4, 1fr); } }

.plan {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s3);
  padding: clamp(var(--s5), 2.5vw, var(--s6));
  border: 1px solid var(--rule);
  border-radius: var(--r-2xl);
  background: var(--raised);
  box-shadow: var(--lift);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--lift-md); }
/* The recommended plan is raised and outlined in brand, not filled: on a page
   whose primary action is already amber, another filled block would read as a
   second call to action rather than as emphasis. */
.plan[data-featured] {
  border-color: var(--brand);
  box-shadow: var(--lift-lg), 0 0 0 1px var(--brand);
}
@media (min-width: 62rem) {
  .plan[data-featured] { margin-block: calc(var(--s5) * -1); padding-block: calc(var(--s6) + var(--s3)); }
}

/* Pinned to the light brand in BOTH themes. --brand lightens in dark mode, and
   white on that measured 2.4:1 — a badge that is unreadable exactly where it is
   meant to draw the eye. */
.plan-flag {
  position: absolute; inset-block-start: 0; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem var(--s4);
  border-radius: var(--r-pill);
  background: #5164ae; color: #fff;
  font-family: var(--mono); font-size: 0.625rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--glow-brand);
}
.plan-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }
.plan-for { font-size: 0.875rem; color: var(--ink-3); margin-block-start: calc(var(--s2) * -1); }
.plan-price {
  font-size: 2.5rem; font-weight: 700; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.plan-price small { font-size: 0.875rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

.plan-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); align-content: start; flex: 1; }
.plan-list li {
  display: grid; grid-template-columns: 1.125rem minmax(0, 1fr); gap: var(--s2);
  font-size: 0.9375rem; line-height: 1.4; color: var(--ink-2);
}
.plan-list b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* State as shape, not only colour: a tick and a dash are different marks, so the
   included/excluded distinction survives being read in greyscale. */
.plan-list svg { inline-size: 1.125rem; block-size: 1.125rem; margin-block-start: 0.15rem; color: var(--brand); }
.plan-list [data-off] { color: var(--ink-3); }
.plan-list [data-off] svg { color: var(--rule-firm); }
/* The home page's summary cards carry no ticks — there is nothing to exclude, so
   a column of ticks would be decoration. A rule instead of an icon column. */
.plan-list--plain li { grid-template-columns: minmax(0, 1fr); padding-block-start: var(--s2); border-block-start: 1px solid var(--rule); }
.plan-note { font-size: 0.8125rem; color: var(--ink-3); }
.plan .btn { width: 100%; margin-block-start: var(--s2); }
.plan[data-featured] .btn--quiet {
  background: var(--brand); color: #fff; border-color: transparent; box-shadow: var(--glow-brand);
}
.plan[data-featured] .btn--quiet:hover { background: var(--brand-deep); color: #fff; }

/* ── The comparison table ───────────────────────────────────────────────── */
/* Cards sell one plan; only a table answers "what do I actually get for the
   extra nine euros". It scrolls in its own container so the page body never
   scrolls sideways on a phone. */
.compare-scroll {
  overflow-x: auto;
  margin-block-start: var(--s7);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--raised);
  box-shadow: var(--lift);
  -webkit-overflow-scrolling: touch;
}
.compare { width: 100%; min-width: 44rem; border-collapse: collapse; text-align: left; }
.compare th, .compare td { padding: var(--s3) var(--s4); border-block-end: 1px solid var(--rule); }
.compare thead th {
  font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 600;
  position: sticky; top: 0; background: var(--raised);
}
.compare tbody th { font-weight: 400; color: var(--ink-2); font-size: 0.9375rem; }
.compare td {
  font-size: 0.9375rem; text-align: center;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.compare thead th:not(:first-child) { text-align: center; }
.compare [data-col] { background: var(--brand-wash); }
.compare tbody tr:hover th, .compare tbody tr:hover td { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.compare tbody tr:hover [data-col] { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.compare .sec th {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
  padding-block-start: var(--s5);
  background: var(--sunk);
}
.compare .sec td { background: var(--sunk); }
.compare svg { inline-size: 1.0625rem; block-size: 1.0625rem; color: var(--brand); }
.compare .no svg { color: var(--rule-firm); }

/* ── Mockup placement ───────────────────────────────────────────────────── */
.showcase { margin-block-start: var(--s7); }
.showcase--wide { width: min(56rem, 100%); }
.showcase--center { display: grid; justify-items: center; }
/* The product shots get the deepest shadow on the page — they are the thing the
   visitor came to look at, and lifting them says so without a caption. */
.showcase .mock { border-radius: var(--r-xl); box-shadow: var(--lift-lg); }
.showcase .fg-modal, .showcase .fg-slip { box-shadow: var(--lift-lg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { padding-block: var(--s8); margin-block-start: var(--s7); border-block-start: 1px solid var(--rule); }
.foot-grid { display: grid; gap: var(--s6); }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot p, .foot a { font-size: 0.875rem; color: var(--ink-3); }
.foot a { text-decoration: none; display: block; padding-block: var(--s1); transition: color .15s ease; }
.foot a:hover { color: var(--brand); }
.foot h4 { margin-block-end: var(--s2); color: var(--ink); }

/* ── Motion: entrances only ─────────────────────────────────────────────── */
/* The class is added by script, so with JS off or broken everything is simply
   visible — content must never depend on an animation having run. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal[data-shown] {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.js .reveal[data-shown][style*="--d"] { transition-delay: var(--d); }
/* Grids and card rows stagger by position, so a row arrives as a sequence rather
   than a block. Capped at eight: past that the last card is late enough to feel
   broken rather than choreographed. */
.js .grid > .reveal:nth-child(1),  .js .plans > .reveal:nth-child(1)  { transition-delay: .00s; }
.js .grid > .reveal:nth-child(2),  .js .plans > .reveal:nth-child(2)  { transition-delay: .06s; }
.js .grid > .reveal:nth-child(3),  .js .plans > .reveal:nth-child(3)  { transition-delay: .12s; }
.js .grid > .reveal:nth-child(4),  .js .plans > .reveal:nth-child(4)  { transition-delay: .18s; }
.js .grid > .reveal:nth-child(5)  { transition-delay: .24s; }
.js .grid > .reveal:nth-child(6)  { transition-delay: .30s; }
.js .grid > .reveal:nth-child(7)  { transition-delay: .36s; }
.js .grid > .reveal:nth-child(n+8) { transition-delay: .42s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .ledger > li:hover, .grid article:hover, .plan:hover, .btn:hover { transform: none; }
}

/* Prose pages: a readable measure, with room between paragraphs. */
.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--s4); }
.prose h3 { margin-block-start: var(--s6); }
.prose ul { padding-inline-start: var(--s5); margin: 0; color: var(--ink-2); }
.prose li + li { margin-block-start: var(--s2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--mono); font-size: 0.875em;
  padding: 0.15em 0.4em; border-radius: var(--r-sm);
  background: var(--brand-wash); color: var(--brand-deep);
}

/* A page's opening block, under the masthead. */
.pagehead { position: relative; overflow: clip; padding-block: clamp(var(--s8), 9vw, var(--s9)) clamp(var(--s6), 5vw, var(--s7)); }
.pagehead::before {
  content: ''; position: absolute; z-index: -1;
  inset-block-start: -4rem; inset-inline-start: -6rem;
  width: 34rem; height: 24rem; border-radius: 50%; filter: blur(60px);
  background: radial-gradient(closest-side, rgba(81,100,174,.22), transparent);
  pointer-events: none;
}
.pagehead .poster { font-size: clamp(2.25rem, 6.5vw, 4.5rem); margin-block: var(--s4) var(--s5); }
.pagehead .lede { max-width: 38rem; }

/* Where a page hands off to the next one. */
.onward {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: baseline; margin-block-start: var(--s7);
}
.onward a {
  font-weight: 600; color: var(--brand); text-decoration: none;
  transition: gap .15s ease;
}
.onward a:hover { text-decoration: underline; text-underline-offset: 4px; }
.field--brand .onward a, .field--ink .onward a { color: #fff; }

/* ── Feature blocks: one shot, a few bullets ────────────────────────────────
 *
 * The pages used to argue in paragraphs. They were good paragraphs, and almost
 * nobody read them — a visitor deciding whether to install something scans for
 * "what does it do", and prose makes them work for it.
 *
 * So each capability now gets one picture of itself and four or five lines. The
 * shot alternates sides down the page so the eye has somewhere to go, and on a
 * phone it always follows its own copy rather than jumping order.
 */
.feature { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 62rem) {
  .feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(var(--s6), 5vw, var(--s8)); }
  /* Reversed rows put the shot first in the source too, so a screen reader and a
     sighted reader meet the copy and the picture in the same order. */
  .feature--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.feature + .feature { margin-block-start: clamp(var(--s8), 8vw, var(--s10)); }
.feature-copy > * + * { margin-block-start: var(--s4); }
.feature-shot { min-width: 0; }
.feature-shot .mock { border-radius: var(--r-xl); box-shadow: var(--lift-lg); }

/* Bullets. A tick would imply a checklist of things you get; these are
   statements about behaviour, so the marker is a small brand dot — present
   enough to separate the lines, quiet enough not to be read as a feature tick. */
.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); }
/* The marker is positioned, NOT a grid cell.
 *
 * This was `display: grid` with the dot as the first column, and it shattered
 * every bullet containing inline markup: a grid container makes each child its
 * own item, so `Press <b>Fill in</b> and…` laid out as three stacked cells.
 * Padding plus an absolute marker is indifferent to what the text contains. */
.bullets li {
  position: relative;
  padding-inline-start: 1.4rem;
  font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2);
}
.bullets li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.58em;
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%; background: var(--brand);
}
.bullets b, .bullets strong { color: var(--ink); font-weight: 600; }
/* The one line worth reading twice on a block gets the warm marker. */
.bullets li[data-key]::before { background: var(--spark); box-shadow: 0 0 0 3px var(--spark-wash); }
.field--brand .bullets li::before, .field--ink .bullets li::before { background: rgba(255,255,255,.55); }
.field--brand .bullets li[data-key]::before, .field--ink .bullets li[data-key]::before { background: var(--spark); box-shadow: none; }

/* A caption under a shot, for the thing the picture cannot say by itself. */
.shot-note {
  margin-block-start: var(--s3);
  font-size: 0.875rem; color: var(--ink-3);
  text-align: center;
}

/* ── Questions, folded ──────────────────────────────────────────────────────
 *
 * Native <details>, not a script. It is keyboard-operable, announced correctly,
 * findable by the browser's own find-in-page (which opens the section it lands
 * in), and it works with JavaScript switched off. Every hand-built accordion
 * gives up at least one of those.
 *
 * The first is left open so the pattern is obvious without a click.
 */
.qa { border-block-end: 1px solid var(--rule); }
.qa:first-child { border-block-start: 1px solid var(--rule); }
.qa summary {
  display: flex; align-items: baseline; gap: var(--s4);
  padding-block: var(--s4);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .15s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brand); }
.field--ink .qa summary:hover, .field--brand .qa summary:hover { color: rgba(255,255,255,.75); }
/* The marker is a plus that becomes a minus. Two strokes, one of which is hidden
   when open — cheaper than swapping glyphs and it cannot fall out of sync. */
.qa summary::after {
  content: '';
  margin-inline-start: auto;
  flex: none;
  inline-size: 0.75rem; block-size: 0.75rem;
  align-self: center;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  opacity: .55;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), opacity .15s ease;
}
.qa[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  transform: rotate(180deg);
  opacity: .9;
}
.qa p {
  padding-block-end: var(--s5);
  max-width: var(--measure);
  color: var(--ink-2);
}
/* Content slides rather than snapping. Guarded, because a browser without
   interpolate-size simply gets the instant version, which is fine. */
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .3s cubic-bezier(.2,.7,.3,1), content-visibility .3s allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; }
}

/* ── The privacy policy ─────────────────────────────────────────────────────
 *
 * Generated from PRIVACY.md by apps/backend/scripts/gen-privacy.mjs, which emits
 * this fragment and the Worker's fallback page from one parse. The markup is
 * plain semantic HTML with no classes, so everything below is element-scoped and
 * confined to .policy — a legal document is the one place on the site where the
 * shape of the content is fixed and the styling has to come to it.
 */
.policy { max-width: 46rem; }
.policy > * + * { margin-block-start: var(--s4); }
.policy h2 {
  margin-block-start: var(--s8);
  font-size: clamp(1.375rem, 1.4vw + 1rem, 1.75rem);
  letter-spacing: -0.028em;
}
.policy h3 { margin-block-start: var(--s6); font-size: 1.125rem; }
.policy p, .policy li { color: var(--ink-2); }
.policy strong { color: var(--ink); font-weight: 600; }
.policy ul { margin: 0; padding-inline-start: var(--s5); display: grid; gap: var(--s2); }
.policy hr { border: 0; border-block-start: 1px solid var(--rule); margin-block: var(--s7); }
.policy a { color: var(--brand); text-underline-offset: 3px; }

/* The "who we are" and similar asides. */
.policy blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--brand);
  border-radius: var(--r-lg);
  background: var(--brand-wash);
}
.policy blockquote p { margin: 0; color: var(--ink-2); }

.policy code {
  font-family: var(--mono); font-size: 0.875em;
  padding: 0.15em 0.4em; border-radius: var(--r-sm);
  background: var(--brand-wash); color: var(--brand-deep);
}

/* Tables scroll inside themselves, like every other wide thing on the site. */
.policy table {
  display: block; overflow-x: auto; width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
}
.policy th, .policy td {
  padding: var(--s3) var(--s4);
  border-block-end: 1px solid var(--rule);
  text-align: left; vertical-align: top;
}
.policy th { background: var(--sunk); color: var(--ink); font-weight: 600; white-space: nowrap; }
.policy td { color: var(--ink-2); }
.policy tbody tr:last-child th, .policy tbody tr:last-child td { border-block-end: 0; }
