/* Clerq — clerq.nz marketing site.
   ---------------------------------------------------------------------------
   Deliberately separate from webapp/frontend/src/styles.css. The portal's
   design language is "ledger, not lifestyle-app" — tight radii, borders doing
   the elevation, dense type — which is right for a screen an adviser works in
   all day and wrong for a page whose whole job is to explain and persuade.

   What IS shared is the identity: the same --brand Sorbet orange (#FF7A59),
   the same charcoal ink (#363b40), the same Lexend Deca type, the same
   mark. Somebody arriving at app.clerq.nz after reading this page should
   recognise it as the same product, and test_brand_palette.py asserts the
   hexes rather than trusting anyone to remember.

   2026-08-06: the radii here were softened to match the app's, not because the
   two surfaces should look identical but because 14/20/28px with pill buttons
   is the silhouette of a generated landing page. The paragraph above still
   holds — this page persuades and the app is worked in — but that difference
   belongs in type, rhythm and imagery, not in corner radius.

   Type is self-hosted throughout. No CDN, no Google Fonts request: a marketing
   page for a privacy product should not leak its visitors to a third party on
   first paint, and privacy.html says so in as many words. Lexend Deca for
   text (2026-08-17, the HubSpot Canvas rebrand — it replaced Geist), Geist
   Mono still for data/monospaced runs. Both under the SIL Open Font License,
   self-hosted beside this file. */

/* ── Font ──────────────────────────────────────────────────────────────── */
/* One variable file covers 100–900, so the whole weight range costs a single
   ~70KB request instead of one per weight. */

@font-face {
  font-family: "Lexend Deca";
  src: url("assets/fonts/LexendDeca-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* ── Tokens ────────────────────────────────────────────────────────────── */

:root {
  /* Sorbet orange — the HubSpot Canvas ("Trellis") brand hue, adopted
     2026-08-17 on both surfaces together (violet #4b2e83 → Sorbet #ff7a59).
     --brand is the mark and the large brand moments, where a bright hue can
     breathe. --accent is the darkened Sorbet used for interactive things —
     links, filled buttons, focus — because Sorbet itself only clears ~2.3:1
     on white and an interactive colour must pass WCAG AA. #c74a2c gives 4.7:1
     against white; --accent-hover is a step darker again. If you change these
     hexes, change these words — and remember www is the source of truth the
     app's tokens are asserted against. */
  --brand: #ff7a59;
  /* Interactive accent is TEAL — the HubSpot app interior's link colour
     (2026-08-17 second pass). Filled CTAs stay in the brand's orange via
     --cta below; #007a8c clears AA on white at 5.1:1. */
  --accent: #007a8c;
  --accent-hover: #00606e;
  --accent-tint: rgba(0, 145, 174, 0.09);
  --cta: #c74a2c;
  --cta-hover: #a63b22;

  /* Oxford slate — the Canvas ink. Cool, professional, never dead black;
     clears AA on the canvas ground by a wide margin (9.6:1 / 5.2:1). */
  --ink: #363b40;
  --ink-2: #516f90;
  --ink-3: #7d93a8;

  /* The faint-blue Canvas ground. White cards sit ON it, which is what makes
     them read as cards; the ground itself is never white. */
  --bg: #f5f8fa;
  --bg-soft: #eef3f8;
  --surface: #ffffff;
  --border: #cbd6e2;
  --border-2: #b9c8d8;

  /* The dark surface — the marketing site's trust/security band and (via the
     app's --rail-bg) the portal's navigation rail. Deep Oxford slate, the
     Canvas dark neutral: a darker step of the INK hue, not the brand hue, so a
     future brand-hue move does not strand it — the lesson of its old
     "--teal-deep" name, which stayed teal through two brand moves. Sorbet
     remains the one warm colour on top of it. (Was near-black #14181d under
     violet; Oxford now, to match the Canvas rail.) */
  --panel-deep: #26292e;
  --panel-deep-2: #1a1d21;

  --red: #b42318;
  --red-tint: #fdece9;
  --amber: #8a6300;
  --amber-tint: #fbf1d6;
  --green: #15803d;
  --green-tint: #e6f6ec;

  --font: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-1: none;
  --shadow-2: 0 1px 2px rgba(15, 40, 48, 0.05);

  /* Small radii, deliberately. 14/20/28 with pill buttons is the silhouette of
     every generated landing page; considered work is squarer. Borders carry the
     elevation, so the shadows below are nearly flat. */
  --r: 4px;
  --r-lg: 6px;
  --r-xl: 10px;

  --wrap: 72rem;
  --gap: clamp(4rem, 2rem + 7vw, 8.5rem);
  --pad: clamp(1.15rem, 0.4rem + 2.6vw, 2.5rem);

  --ease: 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7edf3;
    --ink-2: #93a6b8;
    --ink-3: #6f8496;
    --bg: #101922;
    --bg-soft: #16212c;
    --surface: #1b2733;
    --border: #2b3a49;
    --border-2: #35485a;
    --brand: #ff9478;
    --accent: #4cc7d6;
    --accent-hover: #6fd6e2;
    --accent-tint: rgba(76, 199, 214, 0.16);
    --cta: #ff9478;
    --cta-hover: #ffb09a;
    --panel-deep: #1a1d21;
    --panel-deep-2: #0f1114;
    --red: #f0837a;
    --red-tint: rgba(240, 131, 122, 0.16);
    --amber: #e2b451;
    --amber-tint: rgba(226, 180, 81, 0.16);
    --green: #5ecb8b;
    --green-tint: rgba(94, 203, 139, 0.16);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.5);
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  /* clip, because the dark band breaks out to 100vw and 100vw includes the
     scrollbar gutter — without this, every page with the band gets a 15px
     horizontal scroll on Windows. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--pad);
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
}

/* ── Type ──────────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; letter-spacing: -0.028em; text-wrap: balance; }

/* The display tier.

   The SIZE increase is the part that worked and it survives: the old ceiling of
   4.15rem put the largest thing on the page at about 4x body, and that ratio —
   not the typeface — is what makes a page read as assembled rather than
   designed. 2026-08-06 (second pass, against the typography-led references —
   Apple, Starlink): pushed further, to ~6x body, and the weight comes DOWN as
   the size goes up. Big-and-lighter is the optical habit of every commissioned
   display setting; big-and-bolder is the habit of a template. Lexend Deca
   100–900 is variable, so the in-between weight costs nothing.

   The serif does not survive. Two were tried on 2026-08-06, Instrument Serif
   and then Source Serif 4, and neither landed. Worth recording as a constraint
   rather than a matter of taste: the reference this was chasing uses a
   COMMISSIONED cut, and no off-the-shelf open-licence serif carries the same
   refinement at display size. A free serif cannot buy that quality, and a third
   attempt would have been the same mistake a third time. If the premium
   register is still wanted, the honest route is licensing a real display face,
   which costs money rather than effort. */
.display {
  font-size: clamp(2.9rem, 1.4rem + 5.6vw, 5.9rem);
  line-height: 1.01;
  font-weight: 570;
  letter-spacing: -0.034em;
}

/* Emphasis inside a display line. Lexend Deca has no italic worth setting at
   this size, so emphasis is carried by ink: the phrase drops to the brand
   colour rather than changing style. */
.display em,
.display .em {
  font-style: normal;
  color: var(--brand);
}

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.3rem);
  line-height: 1.06;
  font-weight: 580;
  letter-spacing: -0.028em;
}

.h3 {
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.lede {
  font-size: clamp(1.06rem, 0.98rem + 0.45vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body { font-size: 0.985rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--ink-3); }

/* Tracked mono caps, and nothing else. The eyebrow used to carry a glowing dot
   ornament — a component-kit habit; the references label sections with type
   alone and let the tracking do the work. Muted rather than accent-coloured:
   a label is wayfinding, and wayfinding should not compete with the headline
   two lines below it. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

/* Flat, and they hold still. The old primary carried a coloured glow — still in
   the TEAL rgba years after the hue moved, which is its own argument against
   decorative shadows — and both buttons hopped 1px on hover. The references do
   neither: a premium button is a confident rectangle that darkens. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.btn--primary {
  /* Filled CTAs wear the brand's orange, not the teal link accent — the
     HubSpot-interior split (2026-08-17). */
  background: var(--cta, var(--accent));
  color: #fff;
}
.btn--primary:hover {
  background: var(--cta-hover, var(--accent-hover));
  color: #fff;
}

.btn--ghost { background: var(--surface); border-color: var(--border-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }

.btn--on-dark { background: #fff; color: var(--panel-deep-2); }
.btn--on-dark:hover { background: #ffece5; color: var(--panel-deep-2); }

@media (prefers-color-scheme: dark) {
  /* Near-black violet ink on the lavender dark-mode accent — NOT the teal-cast
     #04211f that sat here from the teal era and survived two brand moves. */
  .btn--primary, .btn--primary:hover { color: #10141a; }
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 640; font-size: 1.12rem; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; }

.site-nav { display: none; gap: 1.6rem; margin-left: 1rem; }
.site-nav a { color: var(--ink-2); font-size: 0.92rem; font-weight: 480; }
.site-nav a:hover { color: var(--ink); }

.site-header__cta { margin-left: auto; display: flex; align-items: center; gap: 0.7rem; }

@media (min-width: 56rem) { .site-nav { display: flex; } }
@media (max-width: 30rem) { .site-header__cta .btn--ghost { display: none; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */

/* The hero. More room above the headline and a much quieter ground.
   The two radial washes were at accent-tint and 9% brand, which read as a
   coloured haze behind the type — the visual habit of a 2021 SaaS landing page,
   and the thing most at odds with a page meant to read as considered. Cut to a
   single wash at a third of the strength: enough that the section is not a flat
   white rectangle, not enough to be a decoration competing with the words. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 2.5rem + 8vw, 9rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
  /* On the centre axis, matching the centred composition — at 15% -10% it was
     a leftover from the left-set hero and read as a smudge in one corner. */
  background:
    radial-gradient(70% 60% at 50% -15%,
      color-mix(in srgb, var(--brand) 3.5%, transparent) 0%, transparent 65%);
}

.hero__grid { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4rem); align-items: center; }
/* Single column: the product shot moved to its own full-width band below. */

/* Centred, per the typography-led references: a centred display line over a
   centred measure, with the full-width product band directly beneath, is the
   composition Apple has run for a decade — headline, then proof. Left-set was
   fine; centred is the register this page is being asked to hold. */
.hero { text-align: center; }
.hero h1 { margin: 1.5rem auto 1.4rem; max-width: 17ch; }
.hero .lede { max-width: 40rem; margin: 0 auto 2.1rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: center; }
.cta-note { margin: 1.35rem 0 0; }

/* ── Hero product card ─────────────────────────────────────────────────── */

.shot {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

/* The hero video. `object-fit: cover` with a fixed aspect so a re-record at a
   different size cannot change the hero's height and reflow the page. */
.section--shot { padding-block: 0 var(--gap); }
.shot--video { margin: 0; }
.shot__video {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  background: var(--bg-soft);
}
.shot__caption {
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* Reduced motion is handled in index.html, not here: `autoplay` is a property
   of the element and no CSS rule can withdraw it. The poster is a real frame of
   the same footage, so a visitor who has asked for stillness sees the product
   rather than a gap. */

.shot__bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.shot__bar b { color: var(--ink); font-family: var(--font); font-size: 0.85rem; font-weight: 600; }
.shot__bar span { margin-left: auto; }

.shot__rows { padding: 0.55rem; display: flex; flex-direction: column; gap: 0.3rem; }

.row {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
}
.row:hover { background: var(--bg-soft); }
.row__ref { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }
.row__name { font-size: 0.9rem; font-weight: 520; }
.row__meta { font-size: 0.78rem; color: var(--ink-3); font-weight: 400; }

.chip {
  padding: 0.14rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 560;
  white-space: nowrap;
}
.chip--red { background: var(--red-tint); color: var(--red); }
.chip--amber { background: var(--amber-tint); color: var(--amber); }
.chip--green { background: var(--green-tint); color: var(--green); }

.shot__foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ── Sections ──────────────────────────────────────────────────────────── */

/* The header is sticky, so an anchored section would otherwise scroll its own
   heading underneath it. Header is 66px; this clears it with room to breathe. */
:where(#product, #compliance, #security, #connections, #pricing, #contact) { scroll-margin-top: 5.5rem; }

.section { padding-block: var(--gap); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }

/* Centred section heads, matching the hero. The alternation the page keeps is
   in the FEATURE rows (prose left / footage right, flipped); the heads that
   introduce each act sit on the centre line so the page reads as staged rather
   than filled. */
.section__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 1.4rem + 2.4vw, 3.75rem);
  text-align: center;
}
.section__head .h2 { margin: 1.1rem 0 1rem; }

/* ── Trust strip ───────────────────────────────────────────────────────── */

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.strip > div { background: var(--bg); padding: 1.4rem 1.5rem; }
.strip dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.strip dd { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.strip dd b { color: var(--ink); font-weight: 600; }

/* ── Feature blocks ────────────────────────────────────────────────────── */

.feature {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.feature:first-of-type { border-top: 0; }

@media (min-width: 58rem) {
  /* The media column is given the larger share since it became real footage.
     At the previous 1 / 1.05 split a clip sat about 495px wide, which renders
     the application at 44% and makes its labels unreadable — the same mistake
     the hero band already had to be moved to fix, and there is no reason to
     ship it three more times. The prose column holds a comfortable measure at
     this width; the clip needed the room more. */
  .feature { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); }
  .feature--flip > *:first-child { order: 2; }
}

.feature__body .h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); margin: 1rem 0 0.9rem; }

.ticks { margin: 1.3rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.ticks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.65rem; font-size: 0.94rem; line-height: 1.55; color: var(--ink-2); }
.ticks svg { width: 1.1rem; height: 1.1rem; color: var(--accent); margin-top: 0.22rem; }
.ticks b { color: var(--ink); font-weight: 580; }

/* ── Card grid ─────────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }

.card {
  padding: 1.55rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color var(--ease);
}
/* No hover hop. These cards are prose, not controls — a lift implies a click
   that goes nowhere, and stillness is half of what "considered" looks like. */
.card:hover { border-color: var(--border-2); }
.card__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 1.1rem;
  border-radius: 11px; background: var(--accent-tint); color: var(--accent);
}
.card__icon svg { width: 20px; height: 20px; }
.card .h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.9rem; line-height: 1.62; color: var(--ink-2); }

/* ── Dark panel ────────────────────────────────────────────────────────── */

/* Full-bleed, not an inset card. A near-black band that runs edge to edge is
   how the references stage their gravity section; a rounded rectangle floating
   inside the margins reads as a component dropped onto the page. The breakout
   works because .wrap is centred: pulling both margins to the viewport edge
   makes the band 100vw while its CONTENT stays on the wrap's grid. */
.panel {
  margin-inline: calc(50% - 50vw);
  padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  padding-inline: max(var(--pad), calc(50vw - var(--wrap) / 2 + var(--pad)));
  border-radius: 0;
  background:
    radial-gradient(80% 110% at 100% 0%, color-mix(in srgb, var(--brand) 22%, transparent) 0%, transparent 55%),
    linear-gradient(155deg, var(--panel-deep) 0%, var(--panel-deep-2) 100%);
  color: #e9f6f5;
}
.panel .eyebrow { color: color-mix(in srgb, var(--brand) 72%, #fff); }
.panel .h2 { color: #f3fbfa; }
.panel .lede { color: rgba(233, 246, 245, 0.8); }
.panel__head {
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  text-align: center;
}

.panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; }
.panel__item {
  padding: 1.35rem;
  border: 1px solid rgba(233, 246, 245, 0.14);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.045);
}
.panel__item h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.5rem; color: #f3fbfa; }
.panel__item p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: rgba(233, 246, 245, 0.78); }

/* ── Pricing ───────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.15rem; align-items: start; }

.plan {
  position: relative;
  padding: 1.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.plan--featured { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow-2); }

.plan__tag {
  position: absolute; top: -0.7rem; left: 1.85rem;
  padding: 0.2rem 0.65rem; border-radius: 3px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { .plan__tag { color: #10141a; } }

.plan__name { font-size: 1.15rem; font-weight: 620; letter-spacing: -0.02em; }
.plan__price { margin: 0.65rem 0 0.35rem; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; }
.plan__price small { font-size: 0.85rem; font-weight: 450; color: var(--ink-3); letter-spacing: 0; }
.plan__note { margin: 0 0 1.35rem; font-size: 0.85rem; color: var(--ink-3); }
.plan .ticks { margin-top: 1.35rem; }
.plan .btn { width: 100%; justify-content: center; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-size: 0.99rem;
  font-weight: 560;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 1.3rem 1.25rem; font-size: 0.93rem; line-height: 1.65; color: var(--ink-2); max-width: 46rem; }

/* ── Closing CTA ───────────────────────────────────────────────────────── */

/* Plain centred type on the page ground. This was a bordered card with a
   radial tint — a third box competing with the pricing cards above it. The
   references end on typography: a big line, a sentence, two buttons, air. */
.close {
  text-align: center;
  padding: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) var(--pad);
}
.close .lede { max-width: 36rem; margin: 1rem auto 2rem; }
.close .cta-row { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding-block: 3rem 2.5rem; background: var(--bg-soft); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; margin-bottom: 2.5rem; }
.site-footer h4 { margin: 0 0 0.85rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { color: var(--ink-2); font-size: 0.9rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.site-footer__base p { margin: 0; font-size: 0.83rem; color: var(--ink-3); }

/* ── Long-form documents (privacy, terms) ──────────────────────────────── */
/* A reading column, not a landing page. Narrower measure, plainer type, and
   no gradients: someone on these pages is checking a fact, not being sold to. */

.doc { padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) var(--gap); }
.doc__head { max-width: 44rem; margin-bottom: clamp(2rem, 1.2rem + 2vw, 3rem); }
.doc__head h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); line-height: 1.08; margin-bottom: 1rem; }
.doc__meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ink-3); }

.doc__body { max-width: 44rem; }
.doc__body h2 {
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 620;
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.doc__body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__body h3 { font-size: 1.02rem; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.doc__body p { margin: 0 0 1.05rem; font-size: 0.99rem; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body ul { margin: 0 0 1.15rem; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.55rem; }
.doc__body li { font-size: 0.99rem; line-height: 1.65; color: var(--ink-2); }
.doc__body a { text-decoration: underline; text-underline-offset: 2px; }

/* The plain-language summary at the top. Not a substitute for the text below
   it, and says so — but most people read one thing, and it should be true. */
.doc__tldr {
  padding: 1.5rem 1.65rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--bg-soft);
}
.doc__tldr h2 { margin: 0 0 0.85rem; padding: 0; border: 0; font-size: 1.02rem; }
.doc__tldr ul { margin: 0; }
.doc__tldr li { font-size: 0.94rem; }

/* Document tables — the sub-processor list, and anything else that is genuinely
   tabular. Scoped to .tbl rather than bare `table` so adding one to a legal page
   never restyles something else by surprise.

   The wrapper scrolls, not the page: a three-column table with real prose in the
   middle column does not fit a phone, and a body that scrolls sideways is worse
   than a table that does. */
.tbl-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
.tbl-wrap .tbl { margin: 0; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0 1.5rem;
}
.tbl th, .tbl td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.tbl th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-width: 2px;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { width: 22%; min-width: 9.5rem; }
.tbl td:last-child { width: 22%; min-width: 8.5rem; }
.tbl__sub { display: inline-block; color: var(--ink-3); font-size: 0.82rem; }

/* Code on document pages (developers.html): the block scrolls, not the page —
   a curl line does not fit a phone, and sideways body scroll is the worse of
   the two. Inline code gets just enough of a chip to read as literal text. */
.doc__body pre {
  overflow-x: auto;
  margin: 1.1rem 0 1.4rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.55;
}
.doc__body code { font-family: var(--mono); font-size: 0.88em; }
.doc__body p code, .doc__body li code, .doc__body td code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-soft);
}

/* An aside that qualifies the thing immediately above it. Quieter than the
   tl;dr box, which is a summary of a whole page. */
.note {
  border-left: 3px solid var(--border);
  padding: 0.15rem 0 0.15rem 1rem;
  color: var(--ink-2);
  font-size: 0.92rem;
}

@media (max-width: 620px) {
  .tbl { font-size: 0.86rem; }
  .tbl th, .tbl td { padding: 0.55rem 0.6rem; }
  .tbl td:first-child, .tbl td:last-child { width: auto; min-width: 7rem; }
}
