/* Hallmark · shape: kept (the client's reference: hero card + request step, press panel, benefits band with layered waves, legal footer) · genre: playful · theme: brand (Simple Borrowing logo sheet)
 * paper: white · accent: spruce actions with a pink badge, mint band · display: Rubik · body: Figtree · signature: the piggy, the pressable request button and the three brand illustrations on cream blobs · v3 */

/* Self-hosted fonts (latin subset), declared at the same weights the design loads */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/rubik-latin.woff2") format("woff2"); }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/rubik-latin.woff2") format("woff2"); }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Brand palette, from the client's logo sheet */
  --brand-spruce: #062824;
  --brand-pink: #FF89AD;
  --brand-green: #77CAA3;
  --brand-cream: #FAF3E6;
  --brand-white: #FFFFFF;

  /* Roles */
  --color-page: var(--brand-white);
  --color-surface: var(--brand-white);
  --color-ink: var(--brand-spruce);
  --color-ink-2: oklch(36% 0.045 184);
  --color-muted: oklch(45% 0.028 184);
  --color-line: oklch(90% 0.012 184);
  --color-line-soft: oklch(94% 0.008 184);
  --color-field-edge: oklch(46% 0.03 184);
  --color-field-hover: oklch(98.6% 0.005 184);
  --color-track: oklch(91% 0.012 184);
  --color-accent: var(--brand-pink);
  --color-accent-text: oklch(52% 0.18 2);
  --color-cta: var(--brand-spruce);
  --color-cta-hover: oklch(32% 0.055 184);
  --color-cta-edge: oklch(15% 0.03 184);
  --color-cta-ink: var(--brand-white);
  --color-sheen: oklch(100% 0 0 / 0.24);
  /* A deeper cut of the brand green so white text on the band passes 4.5:1 (5.0:1) */
  --color-band: #0A6343;
  --color-band-ink: var(--brand-white);
  --color-blob: var(--brand-white);
  --color-press: var(--brand-white);
  --color-mint-soft: oklch(95.5% 0.03 163);
  --color-mascot-ground: var(--brand-cream);
  --color-mascot-shadow: #DADADA;
  --color-amount: #EA5489;
  --color-figures: oklch(97.2% 0.045 95);
  --color-figures-line: oklch(86% 0.06 90);
  --color-banner: #CE3871;
  --color-banner-ink: var(--brand-white);
  --color-tick: oklch(80% 0.015 184);
  --color-tick-strong: oklch(55% 0.025 184);
  --color-focus: var(--brand-spruce);
  --color-error: oklch(50% 0.19 27);
  --shadow-card: 0 4px 24px oklch(25% 0.04 184 / 0.07);
  --shadow-soft: 0 2px 12px oklch(25% 0.04 184 / 0.06);
  --shadow-thumb: 0 1px 4px oklch(25% 0.04 184 / 0.35);
  /* The solid shapes of the two waves, used as masks for the band pattern */
  --mask-wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 112 C 300 74 600 78 860 100 C 1120 122 1300 104 1440 82 L1440 140 L0 140 Z'/%3E%3C/svg%3E");
  --mask-wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 140' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0 H1440 V30 C 1140 68 840 66 580 42 C 330 20 160 34 0 58 Z'/%3E%3C/svg%3E");
  --shadow-text: 0 1px 2px oklch(15% 0.03 170 / 0.55), 0 2px 10px oklch(15% 0.03 170 / 0.25);

  /* Type */
  --font-display: "Rubik", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-hero: clamp(1.625rem, 0.98rem + 2.6vw, 2.5rem);
  --text-section: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);

  /* Space, radius, motion */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;
  --track-h: 11px;
  --thumb-size: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --container: 1200px;
  --gutter: 16px;
  --wave-h: 32px;

  /* Inner pages and forms */
  --color-error-soft: oklch(97% 0.02 27);
  --toc-width: 300px;
}

@media (min-width: 48rem) {
  :root { --gutter: 24px; --wave-h: 44px; }
}
@media (min-width: 64rem) {
  :root { --gutter: 32px; --wave-h: 56px; }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--space-lg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-synthesis: none;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
/* The animated SVGs sit in <picture> so reduced motion can swap in their still frame */
picture { display: block; }
[hidden] { display: none !important; }
button, input { font: inherit; }
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.card {
  border: 1px solid var(--color-line-soft);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   The request button. Adapted from the "let's go!" button by vinodjangid07 on
   Uiverse.io (MIT): a spruce pill with a pink circle and a dotted arrow
   ========================================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 60px;
  padding: 6px 6px 6px var(--space-xl);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-cta);
  color: var(--color-cta-ink);
  box-shadow: 0 8px 18px -8px oklch(25% 0.04 184 / 0.55);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.cta__label { flex: 1; text-align: center; }
.cta__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 3px solid var(--color-cta);
  border-radius: 50%;
  background: var(--color-accent);
  transition: transform var(--dur-short) var(--ease-out);
}
.cta__arrow { width: 16px; height: 19px; animation: cta-arrow-idle 2.6s var(--ease-out) infinite; }
.cta__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-ink);
  border-right-color: transparent;
  border-radius: 50%;
}
.cta:hover {
  background: var(--color-cta-hover);
  box-shadow: 0 14px 24px -10px oklch(25% 0.04 184 / 0.6);
  transform: translateY(-2px);
}
.cta:hover .cta__icon { transform: scale(1.08); }
.cta:hover .cta__arrow { animation: cta-arrow 1s linear infinite; }
.cta:active { box-shadow: 0 4px 10px -6px oklch(25% 0.04 184 / 0.55); transform: translateY(1px); }
.cta:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.cta:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.cta[aria-busy="true"] { cursor: progress; }
.cta[aria-busy="true"] .cta__arrow { display: none; }
.cta[aria-busy="true"] .cta__spinner { display: block; animation: spin 700ms linear infinite; }

/* From the original button: on hover the arrow fades in as it slides right, on a loop */
@keyframes cta-arrow {
  0% { opacity: 0; transform: translateX(-5px); }
  100% { opacity: 1; transform: translateX(5px); }
}
/* At rest the arrow gives one short nudge every few seconds */
@keyframes cta-arrow-idle {
  0%, 62%, 100% { opacity: 1; transform: translateX(0); }
  70% { opacity: 0; transform: translateX(8px); }
  71% { opacity: 0; transform: translateX(-8px); }
  82% { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.top {
  padding-bottom: var(--wave-h);
  background: url("../images/hero-bg.svg") no-repeat center / 100% 100%;
}
.hero { padding-block: var(--space-md) var(--space-xl); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 40rem);
  justify-content: center;
  gap: var(--space-lg);
}

/* Intro card: logo and headline; the piggy and the facts join it from 1024px */
.intro { padding: var(--space-md) var(--space-lg) var(--space-lg); border-radius: var(--radius-m); }
.intro__logo { display: inline-block; border-radius: var(--space-2xs); }
.intro__logo img { width: 256px; }
.intro__title {
  margin-top: var(--space-sm);
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.intro__line { display: block; white-space: nowrap; }
.intro__amount { color: var(--color-amount); }
.intro__line--big { font-size: 1.265em; line-height: 1.05; }
.intro { display: grid; align-content: start; }
.intro__logo, .intro__title { justify-self: center; }
.intro__title { text-align: center; }
.intro__body { display: none; }

.checks {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.checks li::before {
  content: "";
  width: 21px;
  height: 19px;
  background: url("../images/simple-borrowing-banknote.svg") no-repeat center / contain;
}

.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--space-xl) 0 0;
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-lg);
  border-radius: var(--radius-m);
  background: var(--color-figures);
}
.figures__item { display: flex; flex-direction: column; gap: var(--space-2xs); }
.figures__item:first-child { padding-right: var(--space-md); }
.figures__item + .figures__item { padding-left: var(--space-md); border-left: 1px solid var(--color-figures-line); }
.figures__item { min-width: 0; }
.figures dd { font-size: var(--text-2xl); }
.figures dd {
  order: -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.figures dt { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.4; }

/* Request step */
.request { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-content: start; }
.request__head { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); }
.request__title { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.request__note {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  font-size: var(--text-sm);
}

.info-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1.5px solid var(--color-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink);
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.info-button::after { content: ""; position: absolute; inset: -14px; }
.info-button:hover, .info-button[aria-expanded="true"] { background: var(--color-ink); color: var(--color-surface); }
.info-button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.news {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm);
  border-radius: var(--radius-m);
}
.news__icon { width: 56px; height: 56px; }
.news__title { font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.news__text { margin-top: var(--space-2xs); }
.news__text strong { color: var(--color-accent-text); font-weight: 800; }
.news__count { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
/* The digits are drawn from data-count, so text-only readers get "96" once, from the visually hidden copy */
.news__count::before { content: attr(data-count); }
.news__count.is-done { animation: count-pop 420ms var(--ease-out); }
@keyframes count-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* The amount: a field with its label inside, like the reference, and a slider under it */
.amount-form { display: grid; gap: var(--space-xs); margin-top: var(--space-xs); }
/* "Loan amount" is a pink tab sitting on top of the field; the amount is centred in the field */
.amount-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin: 0 var(--space-xl) calc(-1 * var(--space-xs));
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-s) var(--radius-s) 0 0;
  background: var(--color-banner);
  color: var(--color-banner-ink);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.3;
}
.amount-banner::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 20px;
  background: url("../images/simple-borrowing-banknote.svg") no-repeat center / contain;
}
.amount-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 72px;
  padding: 0 var(--space-md);
  border: 1px solid var(--color-field-edge);
  border-radius: var(--radius-s);
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: var(--color-surface);
  cursor: text;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.amount-box:hover { background: var(--color-field-hover); }
.amount-box:focus-within { outline-color: var(--color-focus); }
.amount-box:has(.amount-box__input[aria-invalid="true"]) { border-color: var(--color-error); }
.amount-box__currency {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
}
.amount-box__input {
  field-sizing: content;
  min-width: 2ch;
  max-width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.amount-range {
  --fill: 11.11%;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.amount-range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-s); }
.amount-range::-webkit-slider-runnable-track {
  height: var(--track-h);
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--color-accent) 0 var(--fill), var(--color-track) var(--fill) 100%);
}
.amount-range::-webkit-slider-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin-top: calc((var(--track-h) - var(--thumb-size)) / 2);
  border: 1px solid var(--color-field-edge);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-thumb);
  -webkit-appearance: none;
  appearance: none;
}
.amount-range::-moz-range-track { height: var(--track-h); border-radius: var(--radius-pill); background: var(--color-track); }
.amount-range::-moz-range-progress { height: var(--track-h); border-radius: var(--radius-pill); background: var(--color-accent); }
.amount-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-field-edge);
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-thumb);
}

/* Tick marks every $500 under the track, longer ticks at the labelled amounts */
.amount-scale {
  margin-top: calc(-1 * (var(--space-xs) + 22px - var(--track-h) / 2));
  padding-inline: calc(var(--thumb-size) / 2);
}
.amount-scale__ticks {
  display: block;
  height: 12px;
  border-right: 2px solid var(--color-tick-strong);
  background:
    repeating-linear-gradient(to right, var(--color-tick-strong) 0 2px, transparent 2px calc(100% / 3)) top left / 100% 12px no-repeat,
    repeating-linear-gradient(to right, var(--color-tick) 0 1px, transparent 1px calc(100% / 9)) top left / 100% 7px no-repeat;
}
.amount-scale__labels {
  position: relative;
  height: 1.5em;
  margin: var(--space-2xs) 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}
.amount-scale__labels li { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.amount-scale__labels li:nth-child(1) { left: 0; transform: translateX(calc(-1 * var(--thumb-size) / 2)); }
.amount-scale__labels li:nth-child(2) { left: 33.333%; }
.amount-scale__labels li:nth-child(3) { left: 66.667%; }
.amount-scale__labels li:nth-child(4) { left: 100%; transform: translateX(calc(-100% + var(--thumb-size) / 2)); }
.amount-help { color: var(--color-error); font-size: var(--text-sm); font-weight: 700; }
.amount-help:empty { display: none; }
.amount-form__submit { justify-self: center; width: auto; min-width: 300px; margin-top: var(--space-2xs); }

/* Seals and secure badges under the button, as on the reference */
.trust-marks { display: grid; justify-items: center; gap: var(--space-sm); margin-top: var(--space-sm); }
.seals {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.seals img { width: 93px; height: auto; }
.ssl-badge { width: auto; height: 34px; }

/* ==========================================================================
   As seen on: a soft mint panel inside the page width
   ========================================================================== */
.press { padding-bottom: var(--space-2xl); }
.press__panel {
  display: grid;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-l);
  background: var(--color-press);
  text-align: center;
}
.press__title {
  color: var(--color-amount);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.press__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.press__logo { width: auto; }
.press__logo--bloomberg { height: 18px; }
.press__logo--fox { height: 36px; }
.press__logo--forbes { height: 22px; }
.press__logo--yahoo { height: 17px; }
.press__logo--marketwatch { height: 42px; }

/* ==========================================================================
   Benefits band
   ========================================================================== */
.benefits {
  position: relative;
  margin-bottom: var(--wave-h);
  padding-block: 0 var(--space-lg);
  isolation: isolate;
  background: var(--color-band);
  color: var(--color-band-ink);
  text-align: center;
}
.benefits::before, .benefits::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--wave-h);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}
.benefits::before { bottom: calc(100% - 1px); background-image: url("../images/wave-top.svg"); }
/* The doodle pattern runs through the band and the solid part of both waves, masked to their shapes */
.benefits__pattern {
  position: absolute;
  top: calc(-1 * var(--wave-h) + 1px);
  bottom: calc(-1 * var(--wave-h) + 1px);
  left: 0;
  right: 0;
  z-index: 1;
  background: url("../images/band-pattern.webp") no-repeat center / cover;
  pointer-events: none;
  -webkit-mask:
    var(--mask-wave-top) top / 100% var(--wave-h) no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) center / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat,
    var(--mask-wave-bottom) bottom / 100% var(--wave-h) no-repeat;
  mask:
    var(--mask-wave-top) top / 100% var(--wave-h) no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) center / 100% calc(100% - 2 * var(--wave-h) + 2px) no-repeat,
    var(--mask-wave-bottom) bottom / 100% var(--wave-h) no-repeat;
}
.benefits > .container { position: relative; z-index: 2; }
.benefits::after { top: calc(100% - 1px); background-image: url("../images/wave-bottom.svg"); }
.benefits__title {
  max-width: 22ch;
  margin-inline: auto;
  font-size: var(--text-section);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.benefits__lede {
  max-width: 44ch;
  margin: var(--space-xs) auto 0;
  font-size: var(--text-lg);
  font-weight: 500;
}
.benefits__list {
  display: grid;
  gap: var(--space-xl);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}
.benefits__item { display: grid; justify-items: center; align-content: start; }
.benefits__figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 132px;
}
.benefits__figure::before {
  content: "";
  position: absolute;
  inset: 4% 6% 2% 4%;
  border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  background: var(--color-blob);
  transform: rotate(-6deg);
}
.benefits__item:nth-child(2) .benefits__figure::before { border-radius: 44% 56% 38% 62% / 58% 42% 58% 42%; transform: rotate(8deg); }
.benefits__item:nth-child(3) .benefits__figure::before { border-radius: 63% 37% 52% 48% / 41% 55% 45% 59%; transform: rotate(-12deg); }
.benefits__art { position: relative; width: 124px; height: 124px; }
.benefits__item-title {
  margin-top: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.benefits__item p { max-width: 36ch; margin-top: var(--space-2xs); font-weight: 500; text-wrap: balance; }
.benefits__cta { width: 100%; margin-top: var(--space-xl); }
.benefits .cta { background: var(--brand-white); color: var(--color-ink); text-shadow: none; }
.benefits .cta .cta__icon { border-color: var(--brand-white); }
.benefits .cta:hover { background: var(--brand-cream); }
.benefits .cta:hover .cta__icon { border-color: var(--brand-cream); }
.benefits .cta:focus-visible { outline-color: var(--color-band-ink); }
/* A soft shadow under the band's text lifts it off the green and its pattern */
.benefits__title, .benefits__lede, .benefits__item-title, .benefits__item p { text-shadow: var(--shadow-text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: var(--space-md) var(--space-2xl);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.disclosures p { margin-bottom: var(--space-md); }
.disclosures a { color: var(--color-ink); text-decoration-thickness: 1px; transition: color var(--dur-short) var(--ease-out); }
.disclosures a:hover { color: var(--color-accent-text); }
.site-footer__base {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  text-align: center;
}
.site-footer__logo { border-radius: var(--space-2xs); }
.site-footer__logo img { width: 150px; }
.site-footer__copyright { color: var(--color-muted); }

/* ==========================================================================
   768px and up
   ========================================================================== */
@media (min-width: 48rem) {
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .intro { padding: var(--space-lg) var(--space-xl) var(--space-xl); border-radius: var(--radius-l); }
  .intro__logo, .intro__title { justify-self: start; }
  .intro__title { text-align: left; }
  .intro__logo img { width: 240px; }
  .request__head { justify-content: flex-start; }
  .request__title { font-size: var(--text-2xl); }
  .news { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-md); padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-md); }
  .news__icon { width: 64px; height: 64px; }

  .press__panel { padding: var(--space-xl) var(--space-xl); }
  .press__logos { flex-wrap: nowrap; justify-content: space-between; gap: var(--space-lg); }
  .press__logo--bloomberg { height: 24px; }
  .press__logo--fox { height: 46px; }
  .press__logo--forbes { height: 28px; }
  .press__logo--yahoo { height: 21px; }
  .press__logo--marketwatch { height: 54px; }

  .benefits__title, .benefits__lede { max-width: none; white-space: nowrap; }
  .benefits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
  .benefits__cta { width: auto; min-width: 340px; }

  .site-footer__base { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; }
  .site-footer__copyright { justify-self: end; }
}

/* ==========================================================================
   1024px and up
   ========================================================================== */
@media (min-width: 64rem) {
  .hero { padding-block: var(--space-3xl) var(--space-2xl); }
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    justify-content: stretch;
    align-items: start;
    gap: var(--space-2xl);
  }
  .intro {
    padding: var(--space-lg) var(--space-2xl) 0;
    box-shadow: var(--shadow-card);
  }
  .intro__logo img { width: 270px; }
  .intro__title { margin-top: var(--space-md); }
  .intro__body {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
    gap: var(--space-lg);
    align-items: end;
    margin-top: var(--space-xl);
  }
  /* The piggy stands on a grey oval whose bottom lines up with the yellow card's bottom;
     the painted swash starts 20px above the top of the bill (measured from the SVGs:
     bill top at 11.85% of the animated piggy's resting frame, paint at 17.78% of the swash's height) */
  .intro__mascot { position: relative; align-self: end; margin-left: calc(-1 * var(--space-lg)); padding-bottom: 45px; container-type: inline-size; }
  .intro__mascot::before {
    content: "";
    position: absolute;
    top: calc(-9.53cqw - 30px);
    left: 50%;
    width: 128cqw;
    aspect-ratio: 400 / 360;
    z-index: 0;
    background: url("../images/piggy-paint.svg") no-repeat center / contain;
    transform: translateX(-50%);
  }
  .intro__mascot::after {
    content: "";
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    z-index: 0;
    width: 80%;
    height: 24px;
    border-radius: 50%;
    background: var(--color-mascot-shadow);
    transform: translateX(-50%);
  }
  .intro__mascot img { position: relative; z-index: 1; width: 100%; max-width: 220px; margin-inline: auto; }
  .intro__facts { padding-bottom: var(--space-2xl); }

  .request { padding-top: var(--space-xs); }

  .press__panel {
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-2xl);
  }
  .press__title { font-size: var(--text-xl); }
  .press__logo--bloomberg { height: 28px; }
  .press__logo--fox { height: 52px; }
  .press__logo--forbes { height: 33px; }
  .press__logo--yahoo { height: 25px; }
  .press__logo--marketwatch { height: 62px; }

  .benefits { padding-block: 0 var(--space-xl); }
  .benefits__list { gap: var(--space-2xl); margin-top: var(--space-xl); }
  .benefits__figure { width: 160px; height: 140px; }
  .benefits__art { width: 132px; height: 132px; }
  .benefits__item-title { font-size: var(--text-xl); }

  .site-footer { padding-block: var(--space-xl) var(--space-3xl); }
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures__item:first-child { padding-right: 0; }
  .figures__item + .figures__item { margin-top: var(--space-sm); padding: var(--space-sm) 0 0; border-left: 0; border-top: 1px solid var(--color-figures-line); }
}
@media (min-width: 80rem) {
  .figures dd { font-size: 1.75rem; }
  .figures dt { white-space: nowrap; }
}

/* ==========================================================================
   Inner pages: logo bar, page intro, prose with a side column, forms.
   Built from the home page's tokens, type and components.
   ========================================================================== */
.page-header { border-bottom: 1px solid var(--color-line-soft); background: var(--color-surface); }
.page-header__bar { display: flex; align-items: center; min-height: 64px; padding-block: var(--space-sm); }
.page-header__logo { display: inline-block; border-radius: var(--space-2xs); }
.page-header__logo img { width: 170px; }

.page-intro {
  padding-block: var(--space-xl) var(--space-2xl);
  background: url("../images/hero-bg.svg") no-repeat center / 100% 100%;
}
.page-intro__title {
  max-width: 22ch;
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-intro__lede {
  max-width: 62ch;
  margin-top: var(--space-md);
  color: var(--color-ink-2);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "toc" "prose" "cta";
  gap: var(--space-xl);
  padding-block: var(--space-xl) var(--space-2xl);
}
.page-body--no-toc { grid-template-areas: "prose" "cta"; }

/* Long-form text */
.prose { grid-area: prose; min-width: 0; max-width: 72ch; }
.prose > * + * { margin-top: var(--space-md); }
.prose h2 {
  margin-top: var(--space-2xl);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  scroll-margin-top: var(--space-lg);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-xl); font-size: var(--text-lg); font-weight: 700; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-sm); }
.prose p, .prose li { color: var(--color-ink-2); line-height: 1.65; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.25em; }
.prose li + li { margin-top: var(--space-xs); }
.prose li::marker { color: var(--color-accent-text); }
.prose strong { color: var(--color-ink); }
.prose a, .form-note a, .field__hint a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  transition: color var(--dur-short) var(--ease-out);
}
.prose a:hover, .form-note a:hover, .field__hint a:hover { color: var(--color-accent-text); }
/* Buttons inside text keep their own colours */
.prose a.cta, .prose a.cta:hover { color: var(--color-cta-ink); }

/* The APR and term lines, in the same yellow card as the hero figures */
.fine-print {
  display: grid;
  gap: var(--space-2xs);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-m);
  background: var(--color-figures);
  list-style: none;
}
.prose .fine-print { padding-left: var(--space-lg); }
.prose .fine-print li { color: var(--color-ink); font-weight: 700; line-height: 1.45; }
.prose .fine-print li + li { margin-top: 0; }

/* Label and value tables (the representative example, the request summary) */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption {
  padding-bottom: var(--space-xs);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-align: left;
}
.data-table th, .data-table td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}
.data-table th { color: var(--color-ink-2); font-weight: 600; }
.data-table td {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.data-table td.data-table__text { font-family: var(--font-body); font-weight: 600; }

/* A quoted block of consent or notice text */
.notice {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  background: var(--color-surface);
}
.notice > * + * { margin-top: var(--space-sm); }

/* "On this page": a closed list on phones, open beside the text from 1024px */
.toc-wrap { grid-area: toc; }
.toc {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  background: var(--color-surface);
}
.toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-m);
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-short) var(--ease-out);
}
.toc[open] .toc__title::after { margin-top: 4px; transform: rotate(-135deg); }
.toc__title:hover { color: var(--color-accent-text); }
.toc__title:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.toc__list {
  display: grid;
  margin: 0;
  padding: 0 var(--space-md) var(--space-sm);
  list-style: none;
  font-size: var(--text-sm);
}
.toc__list a {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-ink-2);
  line-height: 1.35;
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
.toc__list a:hover { color: var(--color-accent-text); text-decoration: underline; }

/* The request card beside the text */
.page-cta {
  grid-area: cta;
  display: grid;
  gap: var(--space-xs);
  align-content: start;
  padding: var(--space-lg);
  border-radius: var(--radius-m);
  background: var(--color-mint-soft);
}
.page-cta__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.page-cta__text { color: var(--color-ink-2); }
.page-cta__button { width: 100%; margin-top: var(--space-sm); }

/* Forms */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.form-intro { color: var(--color-ink-2); font-size: var(--text-sm); }
.field { display: grid; gap: var(--space-xs); }
.field__label { color: var(--color-ink); font-weight: 700; }
.field__req { color: var(--color-accent-text); }
.field__optional { color: var(--color-muted); font-weight: 400; }
.field__hint { color: var(--color-muted); font-size: var(--text-sm); }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-field-edge);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: var(--text-md);
  line-height: 1.4;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.field__input:hover { background: var(--color-field-hover); }
.field__input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error); }
textarea.field__input { min-height: 180px; resize: vertical; }
.field__error { color: var(--color-error); font-size: var(--text-sm); font-weight: 700; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--color-ink-2); font-size: var(--text-sm); }
.form__submit { width: 100%; white-space: normal; line-height: 1.2; }
/* On inner pages the button arrow nudges once instead of on a loop */
.page-inner .cta__arrow { animation-iteration-count: 1; }

.form-alert {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-m);
  background: var(--color-error-soft);
}
.form-alert:focus { outline: none; }
.form-alert__title { color: var(--color-error); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; }
.form-alert p { margin-top: var(--space-2xs); }
.form-alert ul { margin: var(--space-xs) 0 0; padding-left: 1.25em; }
.form-alert a { color: var(--color-ink); text-decoration-thickness: 1px; }
.form-alert a:hover { color: var(--color-accent-text); }

.form-success {
  display: grid;
  justify-items: start;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-m);
  background: var(--color-mint-soft);
}
.form-success:focus { outline: none; }
.form-success__title { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.form-success p { color: var(--color-ink-2); }
.form-success .cta { margin-top: var(--space-xs); }

/* The page-missing screen */
.not-found {
  padding-block: var(--space-2xl) var(--space-3xl);
  background: url("../images/hero-bg.svg") no-repeat center / 100% 100%;
}
.not-found__code {
  color: var(--color-amount);
  font-family: var(--font-display);
  font-size: clamp(6rem, 3.6rem + 12vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.not-found__title { margin-top: var(--space-md); font-size: var(--text-section); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.not-found__text { max-width: 52ch; margin-top: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-lg); }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); }
.text-link { color: var(--color-ink); font-weight: 700; text-decoration-thickness: 1px; transition: color var(--dur-short) var(--ease-out); }
.text-link:hover { color: var(--color-accent-text); }

.disclosures a[aria-current="page"] { font-weight: 700; }

@media (min-width: 40rem) {
  .form__submit { justify-self: start; width: auto; min-width: 280px; }
}

@media (min-width: 48rem) {
  .page-header__logo img { width: 200px; }
  .page-intro { padding-block: var(--space-2xl) var(--space-3xl); }
  .page-body { padding-block: var(--space-2xl) var(--space-3xl); }
  .not-found { padding-block: var(--space-3xl) var(--space-4xl); }
}

@media (min-width: 64rem) {
  .page-body {
    grid-template-columns: minmax(0, 1fr) var(--toc-width);
    grid-template-rows: auto 1fr;
    grid-template-areas: "prose toc" "prose cta";
    align-items: start;
    column-gap: var(--space-3xl);
    row-gap: var(--space-lg);
    padding-block: var(--space-3xl) var(--space-4xl);
  }
  .page-body--no-toc { grid-template-rows: auto; grid-template-areas: "prose cta"; }
  .page-cta { position: sticky; top: var(--space-lg); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
