/*
  Prism: fintech card landing page (Screenery template)
  Security print and holographic foil: a pearl ground with guilloche line work, graphite ink, and oil-slick foil
  that only appears where light would catch it (the card, the hologram patches, hairlines). Michroma for the
  wide-tracked display voice, Rethink Sans for everything else.

  Contents
   1. Tokens (palette, foil, card finishes, type, space, shape)
   2. Base and browser surfaces
   3. Components: buttons, fields, segmented radios, select, checkbox, range, switch
   4. Header
   5. Hero and the stage
   6. The card (layers: base, lines, rosette, foil, sparkle, hologram, face, glare) and its four finishes
   7. Customiser
   8. Account: tax pot control, split, ledger, phone
   9. Invoices
  10. Fees
  11. Security (graphite)
  12. Sign-up
  13. Questions
  14. Footer
  15. Motion and narrow screens
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* Ground: pearl paper with a little warmth, like the stock of a cheque book */
  --pearl: #f4f2ee;
  --pearl-2: #ebe8e2;      /* raised panels */
  --pearl-3: #dfdbd3;      /* wells, rules */
  --paper: #fbfaf8;        /* the invoice sheet */

  /* Ink: graphite, never pure black */
  --ink: #1b1c20;          /* 16:1 on pearl */
  --ink-2: #474952;        /* secondary, 8.4:1 */
  --ink-3: #5e606a;        /* labels, 5.9:1 */
  --line: rgb(27 28 32 / 0.13);
  --line-strong: rgb(27 28 32 / 0.3);

  /* One solid accent for links, focus and the tax pot: security-print violet */
  --violet: #4338a8;       /* 8.6:1 on pearl */
  --violet-soft: #dcd8f6;
  --positive: #1e6a48;
  --error: #a8281f;        /* 6.4:1 on pearl */
  --error-soft: #f6e0dc;

  /* Graphite section */
  --g-ground: #17181c;
  --g-raised: #222328;
  --g-ink: #ece9e3;
  --g-ink-2: #b6b3ad;      /* 8.9:1 on graphite */
  --g-line: rgb(236 233 227 / 0.14);

  /* Holographic foil: the oil-slick sequence used everywhere light catches */
  --f-rose: #ff9fd0;
  --f-gold: #ffd58c;
  --f-lime: #c8f7b8;
  --f-cyan: #8ed6ff;
  --f-violet: #b8a2ff;
  --foil-bands: repeating-linear-gradient(118deg, var(--f-rose) 0%, var(--f-gold) 6%, var(--f-lime) 12%, var(--f-cyan) 18%, var(--f-violet) 24%, var(--f-rose) 30%);
  --foil-ring: conic-gradient(from 200deg, var(--f-rose), var(--f-gold), var(--f-lime), var(--f-cyan), var(--f-violet), var(--f-rose));

  /* Card pose and light. These are the still pose; script.js overwrites them while the pointer moves. */
  --rx: 9deg;
  --ry: -15deg;
  --mx: 32%;
  --my: 24%;
  --tilt: 0.35;            /* 0 at rest, 1 at the steepest angle: drives sparkle strength */

  /* Type */
  --display: "Michroma", "Eurostile", "Arial", sans-serif;
  --sans: "Rethink Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.0625rem;
  --fs-h2: clamp(1.55rem, 1.05rem + 1.7vw, 2.45rem);
  --fs-h1: clamp(1.95rem, 1.05rem + 2.75vw, 3.4rem);
  --track-wide: 0.04em;
  --track-caps: 0.22em;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: clamp(80px, 9vw, 136px);
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1240px;

  /* Shape: the card radius is the real ISO 7810 ratio (3.18mm on 85.6mm) */
  --r-1: 3px;
  --r-2: 6px;
  --r-3: 12px;
  --r-pill: 999px;

  /* Depth: soft, offset, warm-grey */
  --shadow-1: 0 1px 2px rgb(27 28 32 / 0.08), 0 4px 12px rgb(27 28 32 / 0.06);
  --shadow-2: 0 2px 6px rgb(27 28 32 / 0.08), 0 18px 40px -12px rgb(27 28 32 / 0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scrollbar-color: #9a97a6 var(--pearl);
}
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--sans);
  caret-color: var(--violet);
  accent-color: var(--violet);
  overflow-x: clip;
}
::selection { background: var(--violet); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--pearl); }
::-webkit-scrollbar-thumb { background: #a9a6b3; border: 3px solid var(--pearl); border-radius: 8px; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--violet); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: var(--r-1); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 100; background: var(--ink); color: var(--pearl); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s-4); }

.h2 { font: 400 var(--fs-h2)/1.18 var(--display); letter-spacing: 0.01em; max-width: 22ch; }
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin-top: var(--s-5); }

/* ---------- 3. Components ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  font: 600 var(--fs-sm)/1 var(--sans); letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: inherit; text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: 0 var(--s-4); }
.btn--wide { width: 100%; }
.btn--ink { --btn-bg: var(--ink); color: var(--pearl); box-shadow: var(--shadow-1); }
.btn--ink:hover { --btn-bg: #33343b; box-shadow: var(--shadow-2); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: rgb(27 28 32 / 0.04); }
.btn--line-light { border-color: rgb(236 233 227 / 0.35); color: var(--g-ink); }
.btn--line-light:hover { border-color: var(--g-ink); background: rgb(236 233 227 / 0.06); }
/* The foil hairline: a conic foil ring visible only as a 1.5px border */
.btn--foil {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--foil-ring) border-box;
  color: var(--pearl);
}
.btn--foil:hover { background: linear-gradient(#33343b, #33343b) padding-box, var(--foil-ring) border-box; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.field { display: grid; gap: var(--s-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend, .field__top label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); padding: 0; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.field__count { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.field__count.is-over { color: var(--error); font-weight: 600; }
.field__msg { font-size: var(--fs-xs); color: var(--ink-3); min-height: 1.3em; line-height: 1.45; }
.field__msg.is-error { color: var(--error); font-weight: 500; }
.field__msg.is-info { color: var(--violet); }

input[type="text"], input[type="email"], select {
  width: 100%; min-height: 50px; padding: 0 var(--s-4);
  font: 500 var(--fs-md)/1 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #6e707a; }
input:hover, select:hover { border-color: var(--ink-3); }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgb(67 56 168 / 0.18); }
input[aria-invalid="true"]:not([type="checkbox"]), select[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgb(168 40 31 / 0.12); }

.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--ink-3); }

/* Segmented radios: real radio inputs under drawn pills */
.seg { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper);
  font-weight: 500; font-size: var(--fs-sm); transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.seg label:hover span { border-color: var(--ink-3); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--pearl); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
.seg--stack { flex-direction: column; align-items: stretch; }
.seg--stack span { width: 100%; border-radius: var(--r-2); }
fieldset[aria-invalid="true"] .seg span { border-color: var(--error); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-weight: 400 !important; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }

/* Range: a foil track up to the thumb, graphite after it */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet) 0 var(--fill, 50%), var(--pearl-3) var(--fill, 50%)); }
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--pearl-3); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--violet); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--foil-ring) border-box; box-shadow: var(--shadow-2); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--violet); background: var(--paper); box-shadow: var(--shadow-2); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--violet); outline-offset: 3px; }
.range:focus-visible::-moz-range-thumb { outline: 2px solid var(--violet); outline-offset: 3px; }
.range__ticks { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: -4px; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0; border: 0; background: none; color: var(--g-ink); font: 600 var(--fs-md)/1 var(--sans); cursor: pointer; }
.switch__track { width: 52px; height: 30px; border-radius: 15px; background: #3a3b42; border: 1px solid var(--g-line); position: relative; transition: background-color 0.3s var(--ease-out); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--g-ink); transition: translate 0.35s var(--ease-out); }
.switch[aria-checked="true"] .switch__track { background: #8ed6ff; }
.switch[aria-checked="true"] .switch__thumb { translate: 22px 0; background: var(--g-ground); }

/* ---------- 4. Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-3) var(--gutter);
  background: var(--pearl);
  border-bottom: 1px solid var(--line);
}
.mark { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; min-height: 44px; }
.mark__glyph { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.mark__word { font: 400 1rem/1 var(--display); letter-spacing: var(--track-caps); text-transform: uppercase; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); color: var(--ink-2); font-weight: 500; font-size: var(--fs-sm); text-decoration: none; border-radius: var(--r-pill); }
.nav a:hover { color: var(--ink); background: rgb(27 28 32 / 0.05); }

/* ---------- 5. Hero and the stage ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--s-7) clamp(32px, 5vw, 88px);
  align-items: center;
  padding: clamp(40px, 6vw, 88px) max(var(--gutter), calc((100% - var(--wrap)) / 2)) var(--s-9);
}
/* A faint rosette behind the hero, as on the face of a cheque */
.hero__rose { position: absolute; z-index: -1; width: min(980px, 120vw); aspect-ratio: 1; right: -18%; top: 50%; translate: 0 -50%; color: #8b86b8; opacity: 0.34; pointer-events: none; }
.hero { grid-template-areas: "head stage" "copy stage" "custom stage"; grid-template-rows: auto auto auto; row-gap: 0; }
.hero__title { grid-area: head; align-self: end; font: 400 var(--fs-h1)/1.14 var(--display); letter-spacing: 0.005em; max-width: 15ch; }
.hero__copy { grid-area: copy; }
.hero__stage { grid-area: stage; align-self: start; position: sticky; top: 84px; }
.hero > .custom { grid-area: custom; margin-top: var(--s-7); }
.hero__lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; margin-top: var(--s-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.hero__facts li { display: flex; align-items: center; gap: var(--s-2); }
.hero__facts li::before { content: ""; width: 7px; height: 7px; rotate: 45deg; background: var(--foil-ring); flex: none; }

.hero__stage { display: grid; justify-items: center; gap: var(--s-4); min-width: 0; }
.stage { position: relative; width: 100%; max-width: 580px; perspective: 1500px; padding: clamp(16px, 3vw, 36px) clamp(8px, 2vw, 28px); touch-action: pan-y; }
.stage__hint { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }
.stage__motion { display: grid; justify-items: center; gap: var(--s-2); }
.stage__motion-note { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; max-width: 40ch; }
.stage__motion-note:empty { display: none; }
.card-shadow {
  position: absolute; left: 12%; right: 12%; bottom: 4%; height: 18%;
  border-radius: 50%; background: rgb(40 36 70 / 0.34); filter: blur(24px);
  transform: translateX(calc(var(--ry) * -0.9)) scaleX(calc(1 - var(--tilt) * 0.08));
  pointer-events: none;
}

/* ---------- 6. The card ---------- */
.card {
  /* finish defaults: Pearl */
  --c-base: linear-gradient(135deg, #f9f7f3 0%, #ebe7e1 38%, #f6f2ec 62%, #e3dfd9 100%);
  --c-ink: #2a2b31;
  --c-ink-soft: #5a5c66;
  --c-line: rgb(76 70 120 / 0.2);
  --c-rose: rgb(76 70 120 / 0.22);
  --foil-blend: multiply;
  --foil-alpha: 0.32;
  --sparkle-alpha: 0.55;
  --sparkle-blend: soft-light;
  --emboss-hi: rgb(255 255 255 / 0.9);
  --emboss-lo: rgb(40 36 70 / 0.35);
  --glare-blend: soft-light;
  --glare-a: 1;

  container-type: inline-size;
  position: relative; width: 100%; aspect-ratio: 85.6 / 54;
  border-radius: 3.7% / 5.9%; overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 1.5cqi 4cqi -1cqi rgb(30 28 50 / 0.28), 0 0 0 1px rgb(27 28 32 / 0.08);
  transition: box-shadow 0.4s;
  will-change: transform;
}
.card > * { position: absolute; inset: 0; }
.card__base { background: var(--c-base); transition: opacity 0.5s var(--ease-out); }
.card__lines { width: 100%; height: 100%; color: var(--c-line); }
.card__rose { width: 70cqi; height: 70cqi; inset: auto; left: -16cqi; top: -10cqi; color: var(--c-rose); }

/* The sheen: foil bands that slide with the light */
.card__foil {
  background: var(--foil-bands);
  background-size: 260% 260%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: var(--foil-blend);
  opacity: var(--foil-alpha);
}
/* Glitter: a thresholded noise of tiny points, brightest where the light falls */
.card__sparkle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 11 -7.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), var(--foil-bands);
  background-size: 220px 220px, 300% 300%;
  background-position: 0 0, calc(100% - var(--mx)) calc(100% - var(--my));
  background-blend-mode: multiply;
  mix-blend-mode: var(--sparkle-blend);
  opacity: calc(var(--sparkle-alpha) * (0.45 + var(--tilt)));
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgb(0 0 0 / 0.5) 30%, transparent 65%);
          mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgb(0 0 0 / 0.5) 30%, transparent 65%);
}
/* The hologram patch: full-strength foil with its own rosette, the way a security hologram sits on a card */
.card__holo {
  inset: auto; right: 7cqi; top: 22.5cqi; width: 15cqi; height: 11cqi; border-radius: 1.4cqi;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / 0.85), transparent 55%),
    conic-gradient(from calc(var(--ry) * 9 + var(--rx) * 5), var(--f-rose), var(--f-gold), var(--f-lime), var(--f-cyan), var(--f-violet), var(--f-rose));
  box-shadow: 0 0 0 0.3cqi rgb(255 255 255 / 0.35) inset, 0 0.3cqi 0.8cqi rgb(0 0 0 / 0.18);
  overflow: hidden;
}
.card__holo svg { position: absolute; width: 150%; height: 200%; left: -25%; top: -50%; color: rgb(30 28 60 / 0.4); }

.card__face { color: var(--c-ink); font-family: var(--display); }
.card__face > * { position: absolute; }
.card__brand { left: 7cqi; top: 6.5cqi; font-size: 4.6cqi; letter-spacing: 0.32em; text-transform: uppercase; line-height: 1; }
.card__kind { right: 7cqi; top: 7.2cqi; font-family: var(--sans); font-weight: 600; font-size: 2.6cqi; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-ink-soft); line-height: 1; }
/* The chip, drawn: gold contact pads with their etched divisions */
.card__chip {
  left: 7.5cqi; top: 22cqi; width: 12.5cqi; height: 9.5cqi; border-radius: 1.6cqi;
  background:
    linear-gradient(90deg, transparent 32%, rgb(90 64 20 / 0.45) 32% 34%, transparent 34% 66%, rgb(90 64 20 / 0.45) 66% 68%, transparent 68%),
    linear-gradient(0deg, transparent 32%, rgb(90 64 20 / 0.45) 32% 34%, transparent 34% 66%, rgb(90 64 20 / 0.45) 66% 68%, transparent 68%),
    linear-gradient(135deg, #f3dfa6, #c9a35c 40%, #f0d996 60%, #a9853f);
  box-shadow: 0 0 0 0.2cqi rgb(90 64 20 / 0.35) inset;
}
.card__contactless { left: 22.5cqi; top: 23.2cqi; width: 7cqi; height: 7cqi; fill: none; stroke: var(--c-ink); stroke-width: 1.5; stroke-linecap: round; opacity: 0.8; }
/* Embossed numerals: raised by a light edge above and a shadow below */
.card__number {
  left: 7cqi; top: 39.5cqi; font-size: 4.75cqi; letter-spacing: 0.05em; word-spacing: -0.1em; line-height: 1; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: -0.12cqi -0.14cqi 0 var(--emboss-hi), 0.14cqi 0.18cqi 0.12cqi var(--emboss-lo);
}
.card__valid { left: 40cqi; top: 48.5cqi; display: flex; align-items: center; gap: 1.2cqi; font-size: 3.2cqi; letter-spacing: 0.08em; text-shadow: -0.1cqi -0.12cqi 0 var(--emboss-hi), 0.12cqi 0.15cqi 0.1cqi var(--emboss-lo); }
.card__valid small { font-family: var(--sans); font-weight: 600; font-size: 1.5cqi; line-height: 1.1; letter-spacing: 0.1em; text-transform: uppercase; text-shadow: none; color: var(--c-ink-soft); }
.card__name {
  left: 7cqi; bottom: 6.6cqi; max-width: 74cqi; font-size: calc(3.5cqi * var(--name-fit, 1)); letter-spacing: 0.12em; line-height: 1; white-space: nowrap; overflow: hidden;
  text-shadow: -0.1cqi -0.12cqi 0 var(--emboss-hi), 0.12cqi 0.15cqi 0.1cqi var(--emboss-lo);
}
.card__name.is-placeholder { opacity: 0.55; }
.card__glyph { right: 7cqi; bottom: 5.5cqi; width: 9cqi; height: 9cqi; fill: none; stroke: var(--c-ink); stroke-width: 1.2; stroke-linejoin: round; }

.card__glare {
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgb(255 255 255 / calc(0.7 * var(--glare-a))) 0%, rgb(255 255 255 / calc(0.18 * var(--glare-a))) 26%, rgb(0 0 0 / 0.16) 85%);
  mix-blend-mode: var(--glare-blend);
  pointer-events: none;
}

/* Finishes */
.card[data-finish="graphite"] {
  --c-base: linear-gradient(135deg, #34353b 0%, #1d1e22 45%, #2b2c31 70%, #141518 100%);
  --c-ink: #ecebe6;
  --c-ink-soft: #b9b8b3;
  --c-line: rgb(236 233 227 / 0.16);
  --c-rose: rgb(236 233 227 / 0.14);
  --foil-blend: color-dodge;
  --foil-alpha: 0.26;
  --sparkle-alpha: 0.9;
  --sparkle-blend: color-dodge;
  --emboss-hi: rgb(255 255 255 / 0.28);
  --emboss-lo: rgb(0 0 0 / 0.7);
  --glare-blend: soft-light;
  --glare-a: 0.8;
}
.card[data-finish="aurora"] {
  --c-base: linear-gradient(140deg, #26205e 0%, #2f1f63 32%, #173f5c 70%, #0f3a43 100%);
  --c-ink: #f3f0fd;
  --c-ink-soft: #c9c3ec;
  --c-line: rgb(190 255 230 / 0.2);
  --c-rose: rgb(255 190 230 / 0.18);
  --foil-blend: overlay;
  --foil-alpha: 0.7;
  --sparkle-alpha: 1;
  --sparkle-blend: color-dodge;
  --emboss-hi: rgb(255 255 255 / 0.3);
  --emboss-lo: rgb(0 0 20 / 0.6);
  --glare-blend: soft-light;
  --glare-a: 0.8;
}
.card[data-finish="mint"] {
  /* Brushed metal bands under a silver-mint foil */
  --c-base: repeating-linear-gradient(100deg, rgb(255 255 255 / 0.18) 0 2px, transparent 2px 5px), linear-gradient(125deg, #e4f4ec 0%, #b9dfcd 30%, #e9f6ef 52%, #a9d5c2 78%, #d8efe4 100%);
  --c-ink: #133629;
  --c-ink-soft: #2f5a4a;
  --c-line: rgb(19 54 41 / 0.2);
  --c-rose: rgb(19 54 41 / 0.2);
  --foil-blend: multiply;
  --foil-alpha: 0.36;
  --sparkle-alpha: 0.8;
  --sparkle-blend: overlay;
  --emboss-hi: rgb(255 255 255 / 0.85);
  --emboss-lo: rgb(10 50 35 / 0.4);
  --glare-blend: soft-light;
}

/* ---------- 7. Customiser ---------- */
.custom {
  width: 100%; max-width: 560px; display: grid; gap: var(--s-4);
  padding: var(--s-5); border-radius: var(--r-3);
  background: rgb(251 250 248 / 0.86); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.custom__title { font: 400 0.95rem/1.2 var(--display); letter-spacing: var(--track-wide); }
.finishes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.finishes legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-2); padding: 0; }
.finish { position: relative; display: grid; justify-items: center; gap: 2px; padding: var(--s-3) var(--s-1) var(--s-2); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper); cursor: pointer; text-align: center; transition: border-color 0.2s, box-shadow 0.2s; min-height: 44px; }
.finish:hover { border-color: var(--ink-3); }
.finish input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.finish:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.finish:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 3px; }
.finish__swatch { width: 34px; height: 22px; border-radius: 4px; margin-bottom: var(--s-1); box-shadow: 0 0 0 1px rgb(27 28 32 / 0.18) inset, 0 1px 2px rgb(27 28 32 / 0.15); }
.finish__swatch--pearl { background: linear-gradient(120deg, #f7f4ef 20%, #f3d9ea 45%, #d8ecf5 65%, #ece8e2 85%); }
.finish__swatch--graphite { background: linear-gradient(120deg, #2c2d32 25%, #4b3f5d 45%, #2d4b55 62%, #1c1d21 85%); }
.finish__swatch--aurora { background: linear-gradient(120deg, #2a2163 15%, #6a3c94 40%, #2c7d86 70%, #123c46 95%); }
.finish__swatch--mint { background: linear-gradient(120deg, #d6efe3 15%, #9fd3bd 40%, #eef8f2 58%, #b6dcf0 80%); }
.finish__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; }
.finish__price { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.3; }
.custom__finish-note { font-size: var(--fs-sm); color: var(--ink-2); }
.custom input[name="cardName"] { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- 8. Account ---------- */
.account, .invoices, .fees, .join, .faq {
  max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-9) var(--gutter);
}
.account { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: start; border-top: 1px solid var(--line); }
.account__copy { display: grid; gap: var(--s-6); align-content: start; }
.account__copy .lede { margin-top: calc(var(--s-6) * -0.5); }

.pot-control { display: grid; gap: var(--s-1); max-width: 560px; }
.pot-control__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.pot-control__top label { font-weight: 600; }
.pot-control__value { font: 600 2.1rem/1 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--violet); }
.pot-control__hint { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-2); max-width: 56ch; }

.split { max-width: 560px; display: grid; gap: var(--s-3); }
.split figcaption { font-size: var(--fs-sm); color: var(--ink-2); }
.split figcaption strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.split__bar { display: flex; height: 18px; border-radius: 3px; overflow: hidden; background: var(--pearl-3); box-shadow: 0 0 0 1px var(--line) inset; }
.split__pot { width: var(--w); background: repeating-linear-gradient(135deg, var(--violet) 0 6px, #5a4fc0 6px 9px); transition: width 0.5s var(--ease-out); }
.split__spend { flex: 1; background: var(--ink); }
.split__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.split__legend div { display: grid; gap: 2px; }
.split__legend dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-3); }
.split__legend dd { font: 400 1.15rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.key { width: 12px; height: 12px; border-radius: 2px; }
.key--pot { background: var(--violet); }
.key--spend { background: var(--ink); }

.ledger { max-width: 560px; width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }
.ledger caption { text-align: left; font-size: var(--fs-xs); color: var(--ink-3); padding-bottom: var(--s-2); }
.ledger th { text-align: left; font-weight: 400; color: var(--ink-2); padding: var(--s-2) 0; border-bottom: 1px dashed var(--line-strong); }
.ledger td { text-align: right; padding: var(--s-2) 0; border-bottom: 1px dashed var(--line-strong); font-weight: 500; }
.ledger__total th, .ledger__total td { border-bottom: 0; border-top: 1.5px solid var(--ink); font-weight: 700; color: var(--ink); padding-top: var(--s-3); }

/* The phone, drawn in CSS: graphite frame, pearl screen */
.phone-wrap { display: grid; justify-items: center; gap: var(--s-3); position: sticky; top: 96px; }
.phone {
  width: min(330px, 100%); aspect-ratio: 330 / 680; padding: 11px;
  border-radius: 52px; background: linear-gradient(145deg, #3a3b41, #121316 60%, #2a2b30);
  box-shadow: 0 0 0 1.5px #55565d inset, 0 30px 60px -20px rgb(27 28 32 / 0.45), 0 8px 20px rgb(27 28 32 / 0.15);
}
.phone__screen { height: 100%; border-radius: 42px; background: var(--pearl); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-weight: 600; font-size: 0.8rem; }
.phone__notch { width: 92px; height: 26px; border-radius: 14px; background: #121316; }
.phone__icons { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.phone__icons i { width: 3px; background: var(--ink); border-radius: 1px; }
.phone__icons i:nth-child(1) { height: 5px; } .phone__icons i:nth-child(2) { height: 8px; } .phone__icons i:nth-child(3) { height: 11px; }
.phone__icons b { width: 20px; height: 10px; margin-left: 4px; border: 1.5px solid var(--ink); border-radius: 3px; background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) content-box; padding: 1px; }
.app { flex: 1; padding: 8px 16px 0; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.app__hello { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.app__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 400 0.62rem/1 var(--display); letter-spacing: 0.05em; border: 1.5px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--foil-ring) border-box; }
.app__balances { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app__bal { padding: 10px 12px; border-radius: 14px; }
.app__bal--spend { background: var(--ink); color: var(--pearl); }
.app__bal--pot { background: var(--violet-soft); color: #211a66; }
.app__bal-label { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; opacity: 0.92; }
.app__bal-label .icon { width: 14px; height: 14px; }
.app__bal-num { font: 400 0.98rem/1.3 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.app__bal-sub { font-size: 0.7rem; margin-top: 2px; }
.app__month { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.tx { display: grid; min-height: 0; overflow: hidden; }
.tx__row { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.78rem; line-height: 1.25; }
.tx__icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pearl-2); color: var(--ink-2); }
.tx__icon .icon { width: 15px; height: 15px; }
.tx__row--in .tx__icon { background: var(--violet-soft); color: var(--violet); }
.tx__who { font-weight: 600; min-width: 0; }
.tx__who small, .tx__amt small { display: block; font-weight: 400; font-size: 0.7rem; color: var(--ink-3); }
.tx__amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tx__row--in .tx__amt { color: var(--positive); }
.tx__amt small { color: var(--violet); }
.app__tabs { display: flex; justify-content: space-around; padding: 8px 8px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.app__tabs span { display: grid; justify-items: center; gap: 2px; font-size: 0.7rem; font-weight: 500; color: var(--ink-3); }
.app__tabs .icon { width: 18px; height: 18px; }
.app__tabs .is-on { color: var(--ink); }
.phone-wrap__note { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; max-width: 34ch; }

/* ---------- 9. Invoices ---------- */
.invoices { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; border-top: 1px solid var(--line); }
.terms { border: 0; margin: var(--s-6) 0 0; padding: 0; }
.terms legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-3); padding: 0; }
.timeline { margin-top: var(--s-5); display: grid; gap: 0; max-width: 520px; }
.timeline li { display: grid; grid-template-columns: 76px 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); }
.timeline time { font: 400 0.82rem/1.6 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.timeline li.is-changed time { color: var(--violet); }
.invoices__note { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); max-width: 52ch; }

.invoice {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--r-2);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  rotate: 1.2deg;
}
.invoice__ground { position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 34%; color: rgb(67 56 168 / 0.13); }
.invoice__head { display: flex; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-5); }
.invoice__from { font: 400 1.05rem/1.3 var(--display); letter-spacing: 0.04em; }
.invoice__small { font-size: var(--fs-xs); color: var(--ink-2); margin-top: var(--s-1); }
.invoice__id { text-align: right; }
.invoice__label { font-size: var(--fs-xs); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.invoice__no { font: 400 1.05rem/1.3 var(--display); font-variant-numeric: tabular-nums; }
.invoice__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-4) 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.invoice__meta dt { font-size: var(--fs-xs); color: var(--ink-3); }
.invoice__meta dd { font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.invoice__lines { width: 100%; border-collapse: collapse; margin-top: var(--s-4); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.invoice__lines th { text-align: left; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; padding: var(--s-2) 0; }
.invoice__lines td { padding: var(--s-3) 0; border-top: 1px solid var(--line); vertical-align: top; }
.invoice__lines th:nth-child(2), .invoice__lines td:nth-child(2) { text-align: center; width: 3.5em; }
.invoice__lines th:last-child, .invoice__lines td:last-child { text-align: right; white-space: nowrap; }
.invoice__lines tfoot th { text-align: left; font-size: var(--fs-sm); color: var(--ink); padding-top: var(--s-4); border-top: 1.5px solid var(--ink); }
.invoice__lines tfoot td { font: 400 1.15rem/1.3 var(--display); padding-top: var(--s-4); border-top: 1.5px solid var(--ink); }
.invoice__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); margin-top: var(--s-5); }
.invoice__vat { font-size: var(--fs-xs); color: var(--ink-2); max-width: 40ch; }
/* The paid stamp: a foil seal, the one place on the page the foil is printed flat */
.invoice__stamp {
  position: relative; flex: none;
  width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
  background: var(--foil-ring); rotate: -12deg;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgb(67 56 168 / 0.3), var(--shadow-1);
}
.invoice__stamp svg { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); color: rgb(27 28 32 / 0.35); }
.invoice__stamp span { position: relative; font: 400 0.95rem/1.1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; text-align: center; color: var(--ink); background: rgb(251 250 248 / 0.88); padding: 6px 8px 5px; border-radius: 4px; }
.invoice__stamp small { font-family: var(--sans); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; }

/* ---------- 10. Fees ---------- */
.fees { border-top: 1px solid var(--line); }
.fees__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: end; }
.fees__head .lede { margin-top: 0; }
.fees__wrap { margin-top: var(--s-7); border: 1px solid var(--line-strong); border-radius: var(--r-3); overflow: hidden; background: var(--paper); }
.fee-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.fee-table thead th { text-align: left; vertical-align: bottom; padding: var(--s-5); background: var(--pearl-2); border-bottom: 1.5px solid var(--ink); font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); }
.fee-table thead th:not(:first-child) { width: 30%; }
.plan { display: block; font: 400 1.05rem/1.2 var(--display); letter-spacing: 0.06em; color: var(--ink); }
.plan__price { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-1); font-variant-numeric: tabular-nums; }
.fee-table tbody th { text-align: left; font-weight: 500; padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.fee-table tbody td { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fee-table tbody tr:hover { background: rgb(67 56 168 / 0.04); }
.fees__foot { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 11. Security (graphite) ---------- */
.security { position: relative; isolation: isolate; overflow: hidden; background: var(--g-ground); color: var(--g-ink); }
.security__rose { position: absolute; z-index: -1; width: 900px; height: 900px; left: -260px; bottom: -380px; color: rgb(142 214 255 / 0.11); pointer-events: none; }
.security__inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-9) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--s-8); }
.security .lede { color: var(--g-ink-2); }
.security :focus-visible { outline-color: #8ed6ff; }
.freeze { margin-top: var(--s-7); display: grid; gap: var(--s-5); }
.mini-card { width: min(380px, 100%); perspective: 1200px; }
.card--mini { transform: rotateX(6deg) rotateY(-10deg); }
.card__frost { display: grid; place-items: center; background: rgb(214 232 245 / 0.22); -webkit-backdrop-filter: blur(5px) saturate(0.3); backdrop-filter: blur(5px) saturate(0.3); opacity: 0; transition: opacity 0.5s var(--ease-out); color: #fff; }
.card__frost .icon { width: 13cqi; height: 13cqi; stroke-width: 1.2; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.4)); }
.is-frozen .card__frost { opacity: 1; }
.freeze__controls { display: grid; gap: var(--s-3); justify-items: start; }
.freeze__status { font-size: var(--fs-sm); color: var(--g-ink-2); max-width: 46ch; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.freeze__status:empty { display: none; }
.guards { display: grid; gap: 0; align-content: start; }
.guards li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--g-line); }
.guards li:first-child { border-top: 0; padding-top: 0; }
.guards .icon { width: 28px; height: 28px; color: #8ed6ff; margin-top: 2px; }
.guards h3 { font-size: var(--fs-lg); font-weight: 600; line-height: 1.35; }
.guards p { color: var(--g-ink-2); margin-top: var(--s-1); max-width: 58ch; }

/* ---------- 12. Sign-up ---------- */
.join { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: start; }
.join__summary { margin-top: var(--s-6); display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-3); background: var(--paper); max-width: 460px; }
.card--tiny { width: 112px; flex: none; transform: none; }
.card--tiny .card__brand { font-size: 8cqi; left: 8cqi; top: 9cqi; }
.card--tiny .card__name { font-size: calc(6.4cqi * var(--name-fit, 1)); left: 8cqi; bottom: 10cqi; letter-spacing: 0.06em; max-width: 86cqi; }
.join__summary p { font-size: var(--fs-sm); color: var(--ink-2); }
.join__summary strong { color: var(--ink); font-weight: 600; }
.join__panel { padding: clamp(20px, 3.4vw, 40px); border-radius: var(--r-3); background: var(--pearl-2); border: 1px solid var(--line); }
.signup { display: grid; gap: var(--s-5); }
.signup__notice { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-2); background: var(--error-soft); border: 1px solid rgb(168 40 31 / 0.35); color: #7d1d16; font-size: var(--fs-sm); }
.signup__notice .icon { color: var(--error); margin-top: 1px; }
.signup__notice p + p { margin-top: var(--s-1); }
.btn__spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(244 242 238 / 0.35); border-top-color: var(--pearl); display: none; }
.is-loading .btn__spinner { display: inline-block; animation: spin 0.8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.done { display: grid; gap: var(--s-4); justify-items: start; }
.done:focus { outline: none; }
.done__seal { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--foil-ring); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--pearl-2), 0 0 0 5px var(--line-strong); }
.done__seal svg:first-child { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); color: rgb(27 28 32 / 0.3); }
.done__seal .icon { position: relative; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--ink); color: var(--pearl); stroke-width: 2; }
.done__title { font: 400 1.5rem/1.25 var(--display); letter-spacing: 0.01em; }
.done > p { color: var(--ink-2); max-width: 52ch; }
.done__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: var(--s-3) var(--s-6); padding: var(--s-4) 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); width: 100%; }
.done__facts dt { font-size: var(--fs-xs); color: var(--ink-3); }
.done__facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 13. Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); border-top: 1px solid var(--line); }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 60px; padding: var(--s-3) 0; font-weight: 600; font-size: var(--fs-lg); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet); }
.faq summary .icon { transition: rotate 0.3s var(--ease-out); color: var(--ink-3); }
.faq details[open] summary .icon { rotate: 180deg; }
.faq details p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 64ch; }

/* ---------- 14. Footer ---------- */
.foot { position: relative; isolation: isolate; overflow: hidden; background: var(--g-ground); color: var(--g-ink); padding: var(--s-8) var(--gutter) var(--s-6); }
.foot__lines { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; color: rgb(236 233 227 / 0.06); }
.foot__top, .foot__print { max-width: var(--wrap); margin: 0 auto; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid var(--g-line); }
.mark--light { color: var(--g-ink); align-self: start; }
.foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.foot__nav h3 { font: 400 0.78rem/1.2 var(--display); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--g-ink-2); margin-bottom: var(--s-3); }
.foot__nav a { display: flex; align-items: center; min-height: 40px; color: var(--g-ink); text-decoration: none; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.foot__nav a:hover { text-decoration: underline; }
.foot__nav p { font-size: var(--fs-sm); color: var(--g-ink-2); }
.foot :focus-visible { outline-color: #8ed6ff; }
.foot__print { padding-top: var(--s-6); display: grid; gap: var(--s-3); font-size: var(--fs-xs); color: var(--g-ink-2); }
.foot__print p { max-width: 110ch; }
.foot__print .foot__micro { max-width: none; }
.foot__print strong { color: var(--g-ink); }
/* Microtext: security printers hide lines of tiny repeated text in the border */
.foot__micro { font: 400 6px/1 var(--display); letter-spacing: 0.3em; white-space: nowrap; overflow: hidden; color: #9d9a95; margin-top: var(--s-4); }

/* ---------- 15. Motion and narrow screens ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The only entrance: the card settles into its pose once on load */
  .is-live .card[data-card]:not(.card--mini):not(.card--tiny) { animation: card-in 1.4s var(--ease-out) both; }
  @keyframes card-in { from { translate: 0 28px; scale: 0.95; filter: blur(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "custom" "copy"; gap: var(--s-5); padding-top: var(--s-6); }
  .hero__copy { max-width: 640px; margin-top: var(--s-5); }
  .hero__title { max-width: 18ch; }
  .hero > .custom { margin: 0 auto; }
  .hero__stage { position: static; }
  .account, .invoices, .join, .faq { grid-template-columns: 1fr; gap: var(--s-7); }
  .phone-wrap { position: static; }
  .security__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .fees__head { grid-template-columns: 1fr; gap: 0; }
  .fees__head .lede { margin-top: var(--s-5); }
  .invoice { rotate: 0deg; max-width: 620px; }
  .hero__rose { right: -40%; top: 30%; }
}
@media (max-width: 720px) {
  .hero { padding-top: var(--s-4); }
  .stage { padding: var(--s-4) 0 var(--s-5); }
  .custom { padding: var(--s-4); }
  .finishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish { grid-template-columns: 34px 1fr; justify-items: start; text-align: left; column-gap: var(--s-3); padding: var(--s-3); }
  .finish__swatch { grid-row: span 2; margin: 0; align-self: center; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__nav { grid-template-columns: 1fr 1fr; }
  .foot__nav div:last-child { grid-column: 1 / -1; }
  /* Fees: each row becomes a small block with the two plans side by side */
  .fee-table thead th:first-child { display: none; }
  .fee-table thead { display: grid; grid-template-columns: 1fr 1fr; }
  .fee-table thead tr { display: contents; }
  .fee-table thead th { padding: var(--s-4); width: auto !important; }
  .fee-table tbody, .fee-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .fee-table tbody tr { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .fee-table tbody th { grid-column: 1 / -1; padding: var(--s-3) var(--s-4) 0; border: 0; font-weight: 600; font-size: var(--fs-sm); }
  .fee-table tbody td { padding: var(--s-1) var(--s-4) var(--s-3); border: 0; font-size: var(--fs-sm); }
  .done__facts { grid-template-columns: 1fr 1fr; }
  .invoice__meta { grid-template-columns: 1fr 1fr; }
  .invoice__meta div:first-child { grid-column: 1 / -1; }
  .invoice__stamp { width: 88px; height: 88px; }
  .invoice__stamp span { font-size: 0.8rem; }
}
@media (max-width: 420px) {
  .top { gap: var(--s-3); }
  .mark__word { letter-spacing: 0.16em; }
  .hero__actions .btn { flex: 1 1 100%; }
  .timeline li { grid-template-columns: 64px 1fr; gap: var(--s-3); }
}
