/* ============================================================
   PathFin.ai co-funding — the landing page (pathfin.html), 12 Nov 2026.

   A grown-up take on the "Friendly" study from the PathFin landing-page
   round: the same story, calculator, eligibility check and demo, without
   the illustrations, waves, bobbing stamps, offset shadows and spring
   easing. The coin jar became a measured column with the cap marked on it.

   Static HTML + js/pathfin.js, no React. Every colour, size, space and
   easing comes from the token layer (css/design-system.css). Motion hangs
   off html.anim, set in the page head after the site's motion switch, so
   without it everything sits in its resting state.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font: var(--weight-medium) var(--type-body-size)/var(--type-body-lh) var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: var(--weight-semibold); }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }

:root {
  --pf-pad: var(--margin-desktop);
  --pf-max: 1200px;
}
@media (max-width: 900px) { :root { --pf-pad: var(--space-10); } }
@media (max-width: 640px) { :root { --pf-pad: var(--space-6); } }
@media (max-width: 400px) { :root { --pf-pad: var(--space-4); } }

.pf-wrap { max-width: calc(var(--pf-max) + 2 * var(--pf-pad)); margin: 0 auto; padding: 0 var(--pf-pad); }

.pf-skip {
  position: absolute; left: var(--space-4); top: -96px; z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent); color: var(--accent-on);
  font-weight: var(--weight-semibold); text-decoration: none;
}
.pf-skip:focus { top: var(--space-4); }

/* ---------- type ---------- */
.pf-h1 {
  font: var(--weight-bold) var(--type-title-size)/var(--type-title-lh) var(--font-sans);
  letter-spacing: var(--type-title-track);
  max-width: 18ch;
}
.pf-h1 em { font-style: normal; color: var(--text-accent); }
/* the Pints lockup closes the headline; its wordmark baseline sits 63% down the artwork */
.pf-h1__logo { display: inline-block; height: 1.4em; width: auto; vertical-align: -0.51em; margin-left: -.04em; }
.pf-h2 {
  font: var(--weight-bold) var(--type-h2-size)/var(--type-h2-lh) var(--font-sans);
  letter-spacing: var(--type-h2-track);
}
.pf-h3 {
  font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans);
  letter-spacing: var(--type-h3-track);
}
.pf-label {
  display: block;
  margin-bottom: var(--space-3);
  font: var(--weight-semibold) var(--type-label-size)/var(--type-label-lh) var(--font-sans);
  letter-spacing: var(--type-label-track);
  text-transform: uppercase;
  color: var(--text-accent-small);
}
.pf-label--muted { color: var(--text-secondary); }
.pf-label--warm { color: var(--chart-4); }
/* sand as small text on white is 3.5:1; the small warning orange holds AA */
[data-theme="light"] .pf-label--warm { color: var(--color-warning-text-small); }
.pf-muted { color: var(--text-secondary); }
.pf-measure { max-width: 60ch; }
.pf-narrow { max-width: 26ch; }
.pf-gap { margin-top: var(--space-4); }
.pf-gap-lg { margin-top: var(--space-8); }
.pf-lede { margin: var(--space-4) 0; font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); }
.pf-fine {
  margin-top: var(--space-4);
  font: var(--weight-medium) var(--type-caption-size)/var(--type-caption-lh) var(--font-sans);
  color: var(--text-secondary);
}
.pf-fine a { color: var(--text-primary); text-underline-offset: 3px; }
.pf-head { margin-bottom: var(--space-12); }

/* Body-size links stay in the text colour with a mint underline: deep mint
   as text on white is 4.2:1, under AA at this size. */
.pf-link {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-micro) var(--ease-in-out);
}
.pf-link:hover { text-decoration-color: currentColor; }
.pf-arrow { display: inline-block; transition: transform var(--dur-micro) var(--ease-out); }
a:hover .pf-arrow { transform: translateX(4px); }

/* ---------- buttons ---------- */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  border: 1px solid transparent; border-radius: var(--radius-button);
  font: var(--weight-semibold) var(--type-button-size)/1 var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-in-out),
              border-color var(--dur-micro) var(--ease-in-out),
              color var(--dur-micro) var(--ease-in-out);
}
.pf-btn--primary { background: var(--button-fill); color: var(--accent-on); }
.pf-btn--primary:hover { background: var(--button-fill-hover); }
.pf-btn--ghost { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.pf-btn--ghost:hover { border-color: var(--text-primary); }
.pf-btn--ink { background: var(--color-pints-ink); color: var(--color-off-white); }
.pf-btn--ink:hover { background: var(--color-deep-carbon); }
.pf-btn--ink:disabled { cursor: progress; background: var(--color-elevated-graphite); }
.pf-btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: var(--type-caption-size); }

/* ---------- bands ----------
   Dark bands match the rest of the site (css/page.css, the Solutions
   pages): the ink grey, a soft light from the top of each band, and a film
   grain over the whole page. Same values, kept local because this page does
   not load page.css. The lift is declared on each theme so its var()
   resolves against that band's own text colour. */
:root, [data-theme="dark"], [data-theme="light"] {
  --pf-lift: radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, var(--text-primary) 5%, transparent) 0%, transparent 62%);
}
.pf-band { background: var(--bg-base); color: var(--text-primary); padding: var(--section-pad) 0; }
.pf-band[data-theme="dark"], .pf-hero { background-image: var(--pf-lift); }
.pf-grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 190px 190px;
  opacity: .045;
  mix-blend-mode: overlay;
}
@media (max-width: 720px) { .pf-band { padding: var(--space-16) 0; } }

.pf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
@media (max-width: 900px) { .pf-two { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); } }

/* ============================================================
   Header — focused: the logo goes home, the links stay on the page
   ============================================================ */
.pf-top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-base) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.pf-top__in { display: flex; align-items: center; gap: var(--space-6); height: 72px; }
.pf-top__logo { flex: none; }
.pf-top__logo img { height: 28px; width: auto; }
.pf-top__tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding-left: var(--space-6);
  border-left: 1px solid var(--border-strong);
  font: var(--weight-semibold) var(--type-label-size)/24px var(--font-sans);
  letter-spacing: var(--type-label-track);
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}
/* PathFin.ai's logo (the Partners page's file) is navy for light grounds;
   on the dark header it is reversed to a single white. Swap in a white SVG
   when PathFin supplies one. */
.pf-top__pf { height: 20px; width: auto; filter: brightness(0) invert(1); }
.pf-top__nav { display: flex; gap: var(--space-6); margin-left: auto; font: var(--weight-semibold) 15px/1 var(--font-sans); }
.pf-top__nav a {
  position: relative; padding: var(--space-2) 0;
  color: var(--text-secondary); text-decoration: none;
  transition: color var(--dur-micro) var(--ease-in-out);
}
.pf-top__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}
.pf-top__nav a:hover, .pf-top__nav a.is-on { color: var(--text-primary); }
.pf-top__nav a.is-on::after { transform: scaleX(1); }
@media (max-width: 1080px) { .pf-top__nav { display: none; } .pf-top .pf-btn { margin-left: auto; } }
@media (max-width: 520px) { .pf-top__tag { display: none; } }

/* ============================================================
   Hero
   ============================================================ */
.pf-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--bg-base); color: var(--text-primary);
  padding: var(--space-24) 0;
}
/* A faint measuring grid with a mint wash behind the card: an instrument,
   not an illustration. */
.pf-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(56% 64% at 82% 30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 72%),
    linear-gradient(to right, color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, color-mix(in srgb, var(--text-primary) 5%, transparent) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
  mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
}
.pf-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--space-16); align-items: center;
}
.pf-kick {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  font: var(--weight-semibold) var(--type-label-size)/var(--type-label-lh) var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase;
}
.pf-kick span:first-child { color: var(--text-accent-small); }
.pf-kick span + span { color: var(--text-secondary); padding-left: var(--space-4); border-left: 1px solid var(--border-strong); }
.pf-hero__sub { margin-top: var(--space-6); max-width: 50ch; color: var(--text-secondary); }
.pf-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* The four-step card, after the "Friendly" study: a slate offset shadow,
   a dashed rule under the heading, open rings for the steps and a filled
   one for the outcome. On load the rows come up one after another. */
.pf-track {
  position: relative;
  padding: var(--space-6);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  box-shadow: 8px 8px 0 var(--color-brand-slate);
}
.pf-track__hd {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-4); border-bottom: 2px dashed var(--border-strong);
}
.pf-track__hd h2 { font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); letter-spacing: var(--type-h3-track); }
.pf-track__hd .pf-label { margin: 0; }
.pf-track__list li {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle);
}
.pf-track__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-brand-slate-light); }
.pf-track__n {
  font: var(--weight-semibold) var(--type-label-size)/1 var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase; white-space: nowrap;
  color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
.pf-track__list li.is-done { grid-template-columns: 20px minmax(0, 1fr); align-items: start; padding-top: var(--space-4); border-bottom: 0; }
.pf-track__list li.is-done .pf-track__dot { margin-top: 1px; background: var(--accent); border-color: var(--accent); }
.pf-track__k {
  display: block; margin-bottom: var(--space-1);
  font: var(--weight-semibold) var(--type-label-size)/1.6 var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase; color: var(--text-accent-small);
}
.pf-track__list li.is-done b { display: block; font: var(--weight-semibold) 20px/1.3 var(--font-sans); }
.pf-track__list li.is-done b + span { display: block; margin-top: var(--space-1); color: var(--text-secondary); }

@media (max-width: 960px) {
  .pf-hero { padding-top: var(--space-16); }
  .pf-hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .pf-track { max-width: 560px; }
}
@media (max-width: 640px) {
  .pf-hero { padding-top: var(--space-12); }
  .pf-kick { flex-direction: column; gap: var(--space-2); }
  .pf-kick span + span { padding-left: 0; border-left: 0; }
  .pf-track { padding: var(--space-4); box-shadow: 4px 4px 0 var(--color-brand-slate); }
  .pf-track__n { display: none; }
  .pf-track__list li { grid-template-columns: 20px minmax(0, 1fr); }
}

/* ============================================================
   The deal + calculator
   ============================================================ */
.pf-deal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.pf-deal > div { min-width: 0; padding-top: var(--space-6); border-top: 2px solid var(--text-primary); }
.pf-deal dt {
  font: var(--weight-bold) 72px/1 var(--font-sans); letter-spacing: -2px;
  color: var(--text-accent); font-variant-numeric: tabular-nums;
}
.pf-deal dt small { font-size: .4em; font-weight: var(--weight-semibold); letter-spacing: 0; }
.pf-deal dd { margin-top: var(--space-4); max-width: 34ch; color: var(--text-secondary); }
@media (max-width: 1020px) { .pf-deal dt { font-size: 56px; } }
@media (max-width: 720px) { .pf-deal { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } .pf-deal dt { font-size: 48px; } }

.pf-calc { margin-top: var(--space-16); padding: var(--space-12); background: var(--surface-card); }
.pf-calc__hd {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2) var(--space-6);
  margin-bottom: var(--space-10); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-strong);
}
.pf-calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.pf-calc__grid > * { min-width: 0; }

.pf-field-label { display: block; padding: 0; margin-bottom: var(--space-3); font: var(--weight-semibold) 15px/1.4 var(--font-sans); }
.pf-amt {
  display: flex; align-items: center;
  background: var(--bg-base); border: 1px solid var(--border-strong);
  transition: border-color var(--dur-micro) var(--ease-in-out);
}
.pf-amt:hover { border-color: var(--text-secondary); }
.pf-amt:focus-within { border-color: var(--text-primary); outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.pf-amt span { padding-left: var(--space-4); font: var(--weight-bold) 22px/1 var(--font-sans); color: var(--text-secondary); }
.pf-amt input {
  flex: 1; min-width: 0; padding: var(--space-4) var(--space-3);
  border: 0; background: none; color: var(--text-primary);
  font: var(--weight-bold) 32px/1 var(--font-sans); letter-spacing: -.5px; font-variant-numeric: tabular-nums;
}
.pf-amt input:focus { outline: none; }

/* The slider: a 4px rule, filled in ink up to the thumb (--p set by the script) */
.pf-range {
  --p: 40%;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 32px; margin: var(--space-4) 0 var(--space-1);
  background: transparent; cursor: pointer;
}
.pf-range:focus-visible { outline: none; }
.pf-range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(to right, var(--text-primary) var(--p), var(--border-strong) var(--p));
}
.pf-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -10px; border-radius: 50%;
  background: var(--bg-base); border: 2px solid var(--text-primary); box-shadow: var(--shadow-card);
  transition: transform var(--dur-micro) var(--ease-out);
}
.pf-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.pf-range:focus-visible::-webkit-slider-thumb { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.pf-range::-moz-range-track { height: 4px; background: var(--border-strong); }
.pf-range::-moz-range-progress { height: 4px; background: var(--text-primary); }
.pf-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg-base); border: 2px solid var(--text-primary);
}
.pf-range:focus-visible::-moz-range-thumb { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
.pf-scale { display: flex; justify-content: space-between; font-size: var(--type-caption-size); color: var(--text-secondary); font-variant-numeric: tabular-nums; }


/* Segmented control: provider location here, the sector tabs in the demo */
.pf-seg {
  display: inline-flex; flex-wrap: wrap; gap: var(--space-1);
  padding: var(--space-1);
  background: var(--bg-base); border: 1px solid var(--border-strong); border-radius: var(--radius-button);
}
.pf-seg label { position: relative; cursor: pointer; }
.pf-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pf-seg span,
.pf-seg button {
  display: block; padding: var(--space-2) var(--space-6);
  border: 0; border-radius: var(--radius-button); background: none;
  font: var(--weight-semibold) 15px/1.5 var(--font-sans); color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-in-out), color var(--dur-micro) var(--ease-in-out);
}
.pf-seg label:hover span, .pf-seg button:hover { color: var(--text-primary); }
.pf-seg input:checked + span { background: var(--text-primary); color: var(--bg-base); }
.pf-seg input:focus-visible + span { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }

/* The measured column: project cost in slate, the MAS share in mint from
   the bottom, the cap as a dashed rule the mint can't pass. */
.pf-calc__viz { display: flex; justify-content: center; }
.pf-col { width: 100%; max-width: 280px; height: auto; overflow: visible; }
.pf-col__axis line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.pf-col__axis text,
.pf-col__cap text {
  font: var(--weight-semibold) 11px var(--font-sans);
  fill: var(--text-secondary); text-anchor: end; font-variant-numeric: tabular-nums;
}
.pf-col__cap text { text-anchor: start; fill: var(--text-primary); }
.pf-col__cap line { stroke: var(--text-primary); stroke-width: 1.5; stroke-dasharray: 6 4; }
.pf-col__you, .pf-col__mas { transform-box: fill-box; transform-origin: 50% 100%; }
.pf-col__you { fill: var(--color-brand-slate); }
.pf-col__mas { fill: var(--accent); }
.pf-col__frame { fill: none; stroke: var(--text-primary); stroke-width: 1.5; }
.anim .pf-col__you, .anim .pf-col__mas { transition: transform var(--dur-section) var(--ease-out); }
/* the column fills from empty when the calculator scrolls in */
.anim .pf-calc.pf-rv:not(.in) .pf-col__you,
.anim .pf-calc.pf-rv:not(.in) .pf-col__mas { transform: scaleY(0) !important; }

.pf-calc__lead { font-weight: var(--weight-semibold); }
.pf-calc__out output {
  display: block; margin: var(--space-2) 0 var(--space-6);
  font: var(--weight-bold) 56px/1 var(--font-sans); letter-spacing: -2px; font-variant-numeric: tabular-nums;
}
.pf-key { border-top: 1px solid var(--border-strong); }
.pf-key div { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-strong); font-size: 16px; }
.pf-key dt { display: flex; align-items: center; gap: var(--space-3); }
.pf-key dd { margin-left: auto; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; text-align: right; }
.pf-sw { flex: none; width: 12px; height: 12px; border: 1px solid var(--border-strong); }
.pf-sw--mas { background: var(--accent); border-color: var(--accent); }
.pf-sw--you { background: var(--color-brand-slate); border-color: var(--color-brand-slate); }
.pf-why { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--bg-base); border-left: 2px solid var(--accent); font-size: 15px; line-height: 1.5; }

@media (max-width: 1080px) {
  .pf-calc__grid { grid-template-columns: minmax(0, 1fr) 240px; }
  .pf-calc__in { grid-column: 1; grid-row: 1; }
  .pf-calc__out { grid-column: 1; grid-row: 2; }
  .pf-calc__viz { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 720px) {
  .pf-calc { padding: var(--space-6); margin-top: var(--space-12); }
  .pf-calc__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .pf-calc__in, .pf-calc__out, .pf-calc__viz { grid-column: auto; grid-row: auto; }
  .pf-calc__out { order: 2; }
  .pf-calc__viz { order: 3; }
  .pf-col { max-width: 240px; }
  .pf-calc__out output { font-size: 44px; }
}

/* ============================================================
   What is PathFin.ai
   ============================================================ */
.pf-numlist li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-6) 0; border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.pf-numlist li:last-child { border-bottom: 1px solid var(--border-subtle); }
.pf-numlist__n {
  font: var(--weight-semibold) var(--type-label-size)/2.4 var(--font-sans);
  letter-spacing: var(--type-label-track); color: var(--text-accent-small); font-variant-numeric: tabular-nums;
}
.pf-numlist b { display: block; margin-bottom: var(--space-1); font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); color: var(--text-primary); }

/* ============================================================
   Eligibility
   ============================================================ */
.pf-ticks { margin-top: var(--space-8); border-top: 1px solid var(--border-strong); }
.pf-tick {
  display: flex; align-items: flex-start; gap: var(--space-4);
  padding: var(--space-4) 0; border-bottom: 1px solid var(--border-strong);
  cursor: pointer;
}
.pf-tick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-tick__box {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; margin-top: 1px;
  background: var(--bg-base); border: 2px solid var(--text-primary);
  transition: background-color var(--dur-micro) var(--ease-in-out), border-color var(--dur-micro) var(--ease-in-out);
}
.pf-tick__box svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--accent-on); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20;
  transition: stroke-dashoffset var(--dur-ui) var(--ease-out);
}
.pf-tick:hover .pf-tick__box { border-color: var(--accent-hover); }
.pf-tick input:checked + .pf-tick__box { background: var(--accent); border-color: var(--accent); }
.pf-tick input:checked + .pf-tick__box svg { stroke-dashoffset: 0; }
.pf-tick input:focus-visible + .pf-tick__box { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }

.pf-tickstatus { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: var(--space-6); font-size: 16px; font-weight: var(--weight-semibold); }
.pf-tickstatus__meter { display: inline-flex; gap: var(--space-1); }
.pf-tickstatus__meter i { width: 24px; height: 4px; background: var(--border-strong); transition: background-color var(--dur-ui) var(--ease-out); }
.pf-tickstatus__meter i.is-on { background: var(--accent); }
.pf-tickstatus .pf-link { white-space: nowrap; }

.pf-note { padding: var(--space-8); background: var(--surface-card); border-top: 2px solid var(--accent); }
.pf-note h3 { margin-bottom: var(--space-3); }
.pf-note li { padding: var(--space-4) 0; border-top: 1px solid var(--border-strong); font-size: 16px; color: var(--text-secondary); }
.pf-note b { color: var(--text-primary); }
@media (max-width: 640px) { .pf-note { padding: var(--space-6); } }

/* ============================================================
   How it works + the catch
   ============================================================ */
.pf-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
/* connectors: each step draws the rule from its number to the next one's */
.pf-steps li:not(:last-child)::before,
.pf-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 23px; height: 2px;
  left: calc(48px + var(--space-2)); right: calc(var(--space-2) - var(--space-8));
  background: var(--border-strong);
}
.pf-steps li:not(:last-child)::after { background: var(--accent); transform-origin: left; }
.anim .pf-steps li::after { transition: transform var(--dur-section) var(--ease-in-out); }
.anim .pf-steps li:nth-child(2)::after { transition-delay: var(--dur-section); }
.anim .pf-steps li:nth-child(3)::after { transition-delay: calc(var(--dur-section) * 2); }
.anim .pf-steps.pf-rv:not(.in) li::after { transform: scaleX(0); }
.pf-steps li { position: relative; min-width: 0; color: var(--text-secondary); }
.pf-steps__n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: var(--space-6); border-radius: 50%;
  background: var(--bg-base); border: 2px solid var(--text-primary); color: var(--text-primary);
  font: var(--weight-bold) 20px/1 var(--font-sans);
}
.pf-steps li:last-child .pf-steps__n { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.pf-steps b { display: block; margin-bottom: var(--space-2); font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); color: var(--text-primary); }
.pf-steps a { color: var(--text-accent-small); font-weight: var(--weight-semibold); word-break: break-word; }

.pf-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); margin-top: var(--space-10); }
.pf-phases__a { grid-column: 1 / span 3; }
.pf-phases__b { grid-column: 4; }
.pf-phases i { display: block; height: 4px; margin-bottom: var(--space-3); background: var(--border-strong); }
.pf-phases__b i { background: var(--accent); }
.pf-phases span {
  font: var(--weight-semibold) var(--type-label-size)/var(--type-label-lh) var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase; color: var(--text-secondary);
}
.pf-phases__b span { color: var(--text-accent-small); }

.pf-catch {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-10); align-items: end;
  margin-top: var(--space-16); padding-top: var(--space-10); border-top: 1px solid var(--border-strong);
}
.pf-catch .pf-link { display: inline-block; margin-top: var(--space-3); }

@media (max-width: 1020px) {
  .pf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-10) var(--space-8); }
  .pf-steps li::before, .pf-steps li::after { display: none; }
  .pf-phases { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .pf-phases__a, .pf-phases__b { grid-column: auto; }
}
@media (max-width: 720px) {
  .pf-catch { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-16); }
}
@media (max-width: 640px) {
  .pf-steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .pf-steps li { min-height: 48px; padding-left: var(--space-16); }
  .pf-steps__n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ============================================================
   Tokens
   ============================================================ */
/* How AI sees text: the phrase types out as one plain line; a mint cut marks
   each token boundary and that token takes its box, pushing the rest along;
   then each token's number scrambles in under it and the count ticks up
   (js/pathfin.js). The markup's resting state is the finished one. The
   numbers are illustrative, like the split. */
.pf-toks { display: flex; flex-wrap: wrap; row-gap: var(--space-10); margin-top: var(--space-1); padding-bottom: var(--space-8); }
.pf-toks li { position: relative; margin-right: var(--space-1); }
/* each token its own colour, as tokenizer views do: light pastels taken
   from the chart palette's hues (oklch relative colour keeps the hue and sets
   the lightness and chroma; older browsers get the color-mix tint above it) */
.pf-toks li:nth-child(1) { --tk: var(--chart-1); }
.pf-toks li:nth-child(2) { --tk: var(--chart-2); }
.pf-toks li:nth-child(3) { --tk: var(--chart-4); }
.pf-toks li:nth-child(4) { --tk: var(--chart-5); }
.pf-tok {
  display: block; padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--tk, var(--accent)) 12%, var(--bg-base));
  background: oklch(from var(--tk, var(--accent)) 0.96 0.04 h);
  border: 1px solid color-mix(in srgb, var(--tk, var(--accent)) 22%, var(--bg-base));
  border-color: oklch(from var(--tk, var(--accent)) 0.91 0.05 h);
  font: var(--weight-semibold) 20px/1.4 var(--font-sans); white-space: nowrap;
  color: var(--color-pints-ink);  /* the pastels are light on either ground */
}
.pf-toks b {
  position: absolute; left: 50%; top: calc(100% + var(--space-2)); transform: translateX(-50%);
  font: var(--weight-semibold) 13px/1 var(--font-sans); letter-spacing: .5px;
  color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pf-toks i { font-style: normal; }
.pf-tokcount { font-size: var(--type-caption-size); color: var(--text-secondary); }
.pf-tokcount__approx { margin-right: var(--space-2); font: var(--weight-bold) 20px/1 var(--font-sans); color: var(--text-primary); }
.pf-tokcount b { margin-right: var(--space-1); font: var(--weight-bold) 20px/1 var(--font-sans); color: var(--text-primary); font-variant-numeric: tabular-nums; }

.anim .pf-toks li { transition: margin var(--dur-ui) var(--ease-out); }
.anim .pf-tok { transition: padding var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out); }
.anim .pf-toks b { transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.anim .pf-tokcount { transition: opacity var(--dur-ui) var(--ease-out); }
.pf-tokviz.is-reset * { transition: none !important; }
/* joined: one plain line. The -2px takes up the two hidden borders so
   "Under" + "writing" reads as one word; .sp tokens carry the word space. */
.pf-toks li.is-joined { margin-right: -2px; }
.pf-toks li.is-joined.sp { margin-left: .28em; }
.pf-toks li.is-joined .pf-tok { padding-left: 0; padding-right: 0; background: transparent; border-color: transparent; color: var(--text-primary); }
.pf-toks li.is-noid b { opacity: 0; transform: translate(-50%, -4px); }
.pf-tokviz.is-typing i { visibility: hidden; }
.pf-tokviz.is-typing i.on { visibility: visible; }
.pf-toks i.cur, .pf-toks i.cut { position: relative; }
.pf-toks i.cur::after { content: ""; position: absolute; right: -3px; top: 10%; bottom: 10%; width: 2px; background: var(--accent); }
.pf-toks i.cut::after {
  content: ""; position: absolute; right: -2px; top: -30%; bottom: -30%; width: 2px;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.pf-tokviz.is-quiet .pf-tokcount { opacity: 0; }
.pf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.pf-tier { padding: var(--space-8); background: var(--surface-card); }
.pf-tier__hd { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-3); }
.pf-tier__hd .pf-label { margin: 0; }
.pf-tier li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); align-items: baseline;
  padding: var(--space-4) 0; border-top: 1px solid var(--border-strong);
}
.pf-tier li > span:first-child i { display: block; font-style: normal; font-size: var(--type-caption-size); color: var(--text-secondary); }
.pf-tier strong { font: var(--weight-bold) 28px/1.2 var(--font-sans); letter-spacing: -.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-bar { grid-column: 1 / -1; height: 8px; background: var(--bg-base); }
.pf-bar i { display: block; width: calc(var(--w) * 100%); height: 100%; background: var(--color-brand-slate); transform-origin: left; }
.pf-tier li:last-child .pf-bar i { background: var(--accent); }
.anim .pf-bar i { transition: transform 1s var(--ease-out) .2s; }
.anim .pf-tier.pf-rv:not(.in) .pf-bar i { transform: scaleX(0); }
@media (max-width: 640px) { .pf-tier { padding: var(--space-6); } .pf-tier strong { font-size: 22px; } }

/* ============================================================
   Example use cases — one line and one visual per tab: the live
   underwriting tour, and an illustrative credit run until there is a
   credit demo
   ============================================================ */
.pf-uc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6) var(--space-10); }
.pf-seg--tabs button { padding: var(--space-3) var(--space-6); font-size: 16px; line-height: 1.3; }
.pf-seg--tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-on); }

.pf-panel:focus-visible { outline-offset: var(--space-2); }
/* per tab: the workflow and one figure, four features, then the visual */
.pf-uc {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6) var(--space-12); align-items: end;
  padding-bottom: var(--space-8); border-bottom: 1px solid var(--border-subtle);
}
.pf-uc__intro h3 { margin: var(--space-4) 0 var(--space-2); }
.pf-uc__intro p { max-width: 56ch; }
.pf-chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border: 1px solid var(--border-strong);
  font: var(--weight-semibold) var(--type-label-size)/1.6 var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase; color: var(--text-secondary);
}
.pf-chip--live { color: var(--text-accent-small); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pf-chip--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pf-uc__stat { display: grid; justify-items: end; gap: var(--space-2); text-align: right; }
.pf-uc__stat b { font: var(--weight-bold) 56px/1 var(--font-sans); letter-spacing: -2px; color: var(--text-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-uc__stat small { font-size: .45em; letter-spacing: 0; }
.pf-uc__stat span { max-width: 26ch; font-size: var(--type-caption-size); line-height: var(--type-caption-lh); color: var(--text-secondary); }
.pf-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); padding-top: var(--space-8); }
.pf-feats li { min-width: 0; padding-top: var(--space-3); border-top: 1px solid var(--border-strong); font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.pf-feats b { display: block; margin-bottom: var(--space-1); font: var(--weight-semibold) 17px/1.3 var(--font-sans); color: var(--text-primary); }
.pf-demo__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-6);
  margin: var(--space-8) 0 var(--space-3);
  font: var(--weight-semibold) var(--type-label-size)/1 var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase; color: var(--text-secondary);
}
.pf-uc__visual { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-10); align-items: start; margin-top: var(--space-8); }
.pf-uc__note { padding: var(--space-6); background: var(--surface-card); border-left: 2px solid var(--accent); }
.pf-uc__note .pf-label { margin-bottom: var(--space-2); }
@media (max-width: 900px) {
  .pf-uc { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pf-uc__stat { justify-items: start; text-align: left; }
  .pf-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-uc__visual { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}
@media (max-width: 560px) {
  .pf-feats { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .pf-uc__stat b { font-size: 44px; }
}

/* The interactive underwriting tour. Layerpath draws the tour on a black
   container whose edge shows round its rounded window; the box clips it.
   6px and a 20px radius are the demos page's measurements (.dm-embed in
   css/page.css). */
.pf-demo__open {
  color: var(--text-accent-small); text-decoration: none;
  transition: color var(--dur-micro) var(--ease-in-out);
}
.pf-demo__open:hover { color: var(--text-primary); }
.pf-demo__embed { position: relative; overflow: hidden; aspect-ratio: 149 / 100; border-radius: 20px; background: var(--bg-deepest); }
.pf-demo__embed iframe {
  position: absolute; left: -6px; top: -6px;
  display: block; width: calc(100% + 12px); height: calc(100% + 12px);
  border: 0; background: transparent;
}

/* the illustrative credit run */
.pf-agent { padding: var(--space-6); background: var(--surface-card); border: 1px solid var(--border-subtle); }
.pf-agent__hd {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  padding-bottom: var(--space-4); border-bottom: 1px solid var(--border-subtle);
}
.pf-agent__hd b { font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); }
.pf-agent__tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong); color: var(--text-secondary);
  font: var(--weight-semibold) var(--type-label-size)/1 var(--font-sans);
  letter-spacing: var(--type-label-track); text-transform: uppercase; white-space: nowrap;
}
.pf-agent__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pf-agent__tag:empty { visibility: hidden; }
.pf-agent__tag.is-run { color: var(--text-primary); }
.pf-agent__tag.is-run::before { background: var(--accent); animation: pf-pulse 1s var(--ease-in-out) infinite alternate; }
.pf-agent__tag.is-ok { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.pf-run li {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); align-items: center;
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color var(--dur-ui) var(--ease-out);
}
.pf-run li::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor;
  transition: background-color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.pf-run li.is-active, .pf-run li.is-done { color: var(--text-primary); }
.pf-run li.is-active::before { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.pf-run li.is-done::before { background: var(--accent); border-color: var(--accent); }
.pf-run time { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pf-run small { grid-column: 2 / -1; font-size: 13px; color: var(--text-secondary); }
.pf-agent__ft { margin-top: var(--space-4); }
.pf-agent__ft .pf-label { margin: 0; }

.pf-demo-ft {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8);
  margin-top: var(--space-12); padding-top: var(--space-10); border-top: 1px solid var(--border-subtle);
}

@keyframes pf-pulse { from { opacity: 1; } to { opacity: .35; } }

@media (max-width: 640px) {
  .pf-seg--tabs { display: flex; width: 100%; }
  .pf-seg--tabs button { flex: 1 1 100%; text-align: left; }
  .pf-demo__embed { border-radius: 12px; }
  .pf-agent { padding: var(--space-4); }
}

/* ============================================================
   Not a pilot
   ============================================================ */
.pf-strike { margin-bottom: var(--space-3); font: var(--weight-bold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); color: var(--text-secondary); }
.pf-strike s { position: relative; text-decoration: none; }
.pf-strike s::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 55%; height: 2px;
  background: var(--text-primary); transform-origin: left;
}
.anim .pf-strike s::after { transition: transform var(--dur-section) var(--ease-out) .3s; }
.anim .pf-rv:not(.in) .pf-strike s::after { transform: scaleX(0); }
.pf-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10); margin-top: var(--space-12); }
.pf-cols3 li { min-width: 0; padding-top: var(--space-4); border-top: 2px solid var(--text-primary); color: var(--text-secondary); }
.pf-cols3 b { display: block; margin-bottom: var(--space-2); font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); color: var(--text-primary); }
@media (max-width: 720px) { .pf-cols3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* ============================================================
   Why Pints
   ============================================================ */
.pf-why-pints { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-12); }
.pf-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-10); }
.pf-checks li { position: relative; min-width: 0; padding-left: var(--space-10); color: var(--text-secondary); }
.pf-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.pf-checks li::after {
  content: ""; position: absolute; left: 9px; top: 7px; width: 6px; height: 11px;
  border: solid var(--accent-on); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pf-checks b { display: block; margin-bottom: var(--space-1); font: var(--weight-semibold) var(--type-h3-size)/var(--type-h3-lh) var(--font-sans); color: var(--text-primary); }
@media (max-width: 900px) { .pf-why-pints { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }
@media (max-width: 640px) { .pf-checks { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   For more info — the official sources, under the eligibility check
   ============================================================ */
.pf-more { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--border-subtle); }
.pf-more__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.pf-more__list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: var(--space-2) var(--space-3);
  height: 100%; padding: var(--space-4);
  border: 1px solid var(--border-subtle); text-decoration: none;
  transition: border-color var(--dur-micro) var(--ease-in-out), background-color var(--dur-micro) var(--ease-in-out);
}
.pf-more__list a:hover { border-color: var(--border-strong); background: var(--surface-card); }
.pf-more__list .pf-label { grid-column: 1; margin: 0; }
.pf-more__list b { grid-column: 1; font: var(--weight-semibold) 16px/1.35 var(--font-sans); color: var(--text-primary); }
.pf-more__go { grid-column: 2; grid-row: 1; color: var(--text-primary); transition: transform var(--dur-micro) var(--ease-out); }
.pf-more__list a:hover .pf-more__go { transform: translate(2px, -2px); }
.pf-more .pf-fine { margin-top: var(--space-6); }
@media (max-width: 900px) { .pf-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pf-more__list { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Contact — on the mint gradient, with the enquiry form
   ============================================================ */
.pf-contact { background: var(--accent-gradient); color: var(--color-pints-ink); padding: var(--section-pad) 0; }
.pf-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.pf-contact__grid > * { min-width: 0; }
.pf-contact__h { max-width: 16ch; font: var(--weight-bold) var(--type-contact-size)/var(--type-h2-lh) var(--font-sans); letter-spacing: var(--type-h2-track); }
.pf-contact__p { max-width: 44ch; margin-top: var(--space-4); }

.pf-form {
  --pf-critical: color-mix(in srgb, var(--color-critical) 75%, var(--color-pints-ink));
  padding: var(--space-8);
  background: var(--bg-base); color: var(--text-primary);
  box-shadow: var(--shadow-raised);
}
.pf-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.pf-f { display: grid; gap: var(--space-2); min-width: 0; align-content: start; }
.pf-f--span { grid-column: 1 / -1; }
.pf-f label { font: var(--weight-semibold) 15px/1.3 var(--font-sans); }
.pf-f label span { font-weight: var(--weight-medium); color: var(--text-secondary); }
.pf-f input,
.pf-f textarea {
  width: 100%; min-height: 48px; padding: var(--space-3);
  background: var(--bg-base); color: var(--text-primary);
  border: 1px solid var(--border-strong); border-radius: 0;
  font: var(--weight-medium) 16px/1.4 var(--font-sans);
  transition: border-color var(--dur-micro) var(--ease-in-out);
}
.pf-f textarea { min-height: 96px; resize: vertical; }
.pf-f input::placeholder, .pf-f textarea::placeholder { color: var(--text-secondary); }
.pf-f input:hover, .pf-f textarea:hover { border-color: var(--text-secondary); }
.pf-f input:focus, .pf-f textarea:focus { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: 0; border-color: var(--focus-ring); }
.pf-f [aria-invalid="true"] { border-color: var(--pf-critical); }
.pf-err { font-size: var(--type-caption-size); line-height: var(--type-caption-lh); color: var(--pf-critical); }
.pf-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }
.pf-form__fine { margin-top: var(--space-4); font-size: var(--type-caption-size); line-height: var(--type-caption-lh); color: var(--text-secondary); }
.pf-form__fine a { color: var(--text-primary); text-underline-offset: 3px; }
.pf-form__done h3:focus { outline: none; }
.pf-form__done p { margin-top: var(--space-2); color: var(--text-secondary); }

@media (max-width: 900px) {
  .pf-contact__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); }
}
@media (max-width: 640px) {
  .pf-contact { padding: var(--space-16) 0; }
  .pf-form { padding: var(--space-6); }
  .pf-form__fields { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Footer
   ============================================================ */
.pf-foot { padding: var(--space-10) 0 var(--space-12); background: var(--bg-deepest); background-image: var(--pf-lift); color: var(--text-secondary); font-size: var(--type-caption-size); line-height: var(--type-caption-lh); }
.pf-foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4) var(--space-10); align-items: start; }
.pf-foot img { height: 24px; width: auto; }
.pf-foot p { max-width: 72ch; }
.pf-foot__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); white-space: nowrap; }
.pf-foot__legal a { color: var(--text-primary); text-decoration: none; }
.pf-foot__legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .pf-foot__in { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Motion — only under html.anim. Each piece has a full resting state.
   ============================================================ */
.anim .pf-in { animation: pf-rise var(--dur-section) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
@keyframes pf-rise { from { opacity: 0; transform: translateY(16px); } }

.anim .pf-rv { transition: opacity var(--dur-section) var(--ease-out), transform var(--dur-section) var(--ease-out); }
.anim .pf-rv:not(.in) { opacity: 0; transform: translateY(24px); }

/* the card's rows come up one after another once it lands */
.anim .pf-track__list li { animation: pf-rise var(--dur-ui) var(--ease-out) both; animation-delay: calc(500ms + var(--s, 0) * var(--stagger)); }
