/* The site's pages besides the landing (get, downloads, terms, privacy, checkout, partner, report an issue), on kz-site.css
   and in the landing's language (landing-v3.css): the 1360 px column, pure black, Inter titles in bold with tight tracking,
   one grey for copy, small capitals for labels, cards and fields drawn by a very dark grey edge with no fill. Green only for
   what is done (a payment received, a step that worked), red only for an error.
   Four page shapes, each a few blocks:
   - a head: a label, the statement, its copy (.kzp-head);
   - prose for the legal pages: sections under a hairline (.kzp-prose);
   - a status page (a payment, a redemption, a report): split, the statement with its keys on the left, the next steps, a
     receipt and a note on the right (.kzp-split, .kzp-side, .kzp-steps, .kzp-receipt, .kzp-note, .kzp-acts, .kzp-help);
     a payment done shows the animated check in the receipt's first row (.kzp-paid, .kzp-done);
   - forms: labels over fields, a field's hint and its error (.kzp-form, .kzp-field), and cards for choices (.kzp-card). */
.kzp {
  --p-grey: var(--kz-copy);                     /* every line of copy */
  --p-dim: var(--kz-dim);                       /* labels, fine print */
  --p-acc: #5ff09a;                             /* done */
  --p-err: #ff7a7a;                             /* an error */
  --p-edge: var(--kz-edge);                     /* a card's, a note's edge */
  --p-field: rgba(255, 255, 255, .12);          /* a field's edge */
  --p-h1: clamp(36px, 4.8vw, 60px);             /* refined studio display size */
  --p-h2: clamp(24px, 2.5vw, 34px);             /* a section */
  --p-h3: clamp(18px, 1.4vw, 21px);             /* an item's title */
  --p-copy: clamp(16px, 1.25vw, 18px);
  --p-list: 15.5px;
  --p-small: 14.5px;
  --p-note: 13px;
  --p-measure: 58ch;
  --p-t1: 16px; --p-act: 28px; --p-in: clamp(28px, 2.8vw, 40px); --p-block: clamp(44px, 4.6vw, 64px); --p-pad: clamp(64px, 6.4vw, 96px);
  display: block; min-height: 70vh; padding: clamp(48px, 6vw, 88px) 0 var(--p-pad); background: var(--kz-bg);
  font-family: var(--kz-ui); font-size: var(--p-copy); line-height: 1.6; color: var(--kz-text);
}
.kzp *, .kzp *::before, .kzp *::after { box-sizing: border-box; }
:where(.kzp) :where(h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure) { margin: 0; padding: 0; }
:where(.kzp) :where(h1, h2, h3) { font-weight: 600; text-wrap: balance; }
:where(.kzp) :where(p, li, dd) { text-wrap: pretty; }
:where(.kzp) :where(ul, ol) { list-style: none; }
/* prose links: ink, a thin underline that firms on hover */
.kzp :where(a:not(.kzk)) { color: var(--kz-text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, .26); text-underline-offset: 4px; transition: text-decoration-color var(--kz-t); }
.kzp :where(a:not(.kzk)):hover { text-decoration-color: currentColor; }
.kzp :where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--kz-focus); outline-offset: 2px; }
.kzp-w { width: 100%; max-width: var(--kz-max); margin: 0 auto; padding: 0 var(--g); }
.kzp-narrow { max-width: calc(760px + var(--g) * 2); }

/* ---------------------------------------------------------------- the head */
/* a label: small capitals in the dim grey; on: done, in green */
.kzp-label { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--p-dim); }
.kzp-label.on { color: var(--p-acc); }
.kzp-head .kzp-label { margin-bottom: 14px; }
.kzp-head h1 { font-size: var(--p-h1); line-height: 1.04; letter-spacing: -.035em; }
.kzp-head h1 + p, .kzp-lead { max-width: var(--p-measure); margin-top: 18px; color: var(--p-grey); }
.kzp-meta { margin-top: var(--p-t1); font-size: var(--p-note); color: var(--p-dim); }
.kzp-head + * { margin-top: var(--p-block); }

/* ---------------------------------------------------------------- prose (terms, privacy) */
.kzp-prose { max-width: 760px; }
.kzp-prose > section { padding-top: 24px; border-top: 1px solid var(--kz-line2); }
.kzp-prose > section + section { margin-top: var(--p-in); }
.kzp-prose h2 { font-size: var(--p-h2); line-height: 1.1; letter-spacing: -.03em; }
.kzp-prose h3 { margin-top: 28px; font-size: var(--p-h3); line-height: 1.25; letter-spacing: -.02em; }
.kzp-prose p, .kzp-prose li { font-size: var(--p-list); line-height: 1.65; color: var(--p-grey); }
.kzp-prose h2 + p, .kzp-prose h2 + ul, .kzp-prose h3 + p, .kzp-prose h3 + ul { margin-top: 12px; }
.kzp-prose p + p, .kzp-prose p + ul, .kzp-prose ul + p { margin-top: 12px; }
.kzp-prose ul li { position: relative; padding-left: 20px; }
.kzp-prose ul li + li { margin-top: 6px; }
.kzp-prose ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--p-dim); }
.kzp-prose strong { font-weight: 600; color: #fff; }

/* ---------------------------------------------------------------- status pages */
.kzp-status { max-width: 640px; margin: 0 auto; }
.kzp-status .kzp-head h1 { font-size: clamp(36px, 4.6vw, 60px); }
.kzp-status .kzp-head + * { margin-top: var(--p-in); }
/* the next steps: a list in an elevated card, numbered */
.kzp-steps { counter-reset: kzp-step; border: 1px solid var(--p-edge); border-radius: var(--kz-r); background: var(--kz-bg2); }
.kzp-steps li { counter-increment: kzp-step; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 18px 22px; }
.kzp-steps li + li { border-top: 1px solid var(--p-edge); }
.kzp-steps li::before { content: counter(kzp-step); display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--kz-line3); font-size: 12.5px; font-weight: 600; color: var(--kz-text); }
.kzp-steps b { display: block; font-size: 16px; font-weight: 600; line-height: 1.35; }
.kzp-steps span { display: block; margin-top: 4px; font-size: var(--p-list); line-height: 1.55; color: var(--p-grey); }
.kzp-steps strong { font-weight: 600; color: var(--kz-text); }
/* a note: an elevated card with its label */
.kzp-note { margin-top: var(--p-in); padding: 20px 22px; border: 1px solid var(--p-edge); border-radius: var(--kz-r); background: var(--kz-bg2); }
.kzp-note .kzp-label { margin-bottom: 8px; }
.kzp-note p:not(.kzp-label) { font-size: var(--p-list); line-height: 1.55; color: var(--p-grey); }
.kzp-note p + p { margin-top: 8px; }
.kzp-note.err { border-color: rgba(255, 122, 122, .45); }
.kzp-note.err .kzp-label { color: var(--p-err); }
/* the keys, then the support line */
.kzp-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--p-act); }
.kzp-status .kzp-acts { margin-top: var(--p-in); }
.kzp-help { margin-top: var(--p-act); font-size: var(--p-small); line-height: 1.5; color: var(--p-grey); }

/* ---------------------------------------------------------------- the split: a statement on 5 columns (its label, its copy, the keys,
   the support line), what it hands over on the other 6 (the next steps, a receipt, a form); stacked on a narrow screen */
.kzp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 96px); align-items: start; }
.kzp-split > .kzp-head { position: sticky; top: 108px; }
.kzp-split > .kzp-head + * { margin-top: 0; }   /* the two columns start level */
.kzp-split > .kzp-head h1 { font-size: var(--p-h1); }
.kzp-split .kzp-head .kzp-acts { margin-top: var(--p-in); }
.kzp-side > * + * { margin-top: var(--p-in); }
.kzp-side > .kzp-label { margin-bottom: -18px; }
/* a receipt: key over value in an elevated card, two columns */
.kzp-receipt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--p-edge); border-radius: var(--kz-r); background: var(--kz-bg2); overflow: hidden; }
.kzp-receipt > div { min-width: 0; padding: 16px 22px; border-bottom: 1px solid var(--p-edge); }
.kzp-receipt > div:nth-child(odd) { border-right: 1px solid var(--p-edge); }
.kzp-receipt > div:nth-last-child(-n+2):nth-child(odd), .kzp-receipt > div:last-child { border-bottom: 0; }
.kzp-receipt dt { font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--p-dim); }
.kzp-receipt dd { margin-top: 4px; font-size: var(--p-list); line-height: 1.4; color: #fff; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kzp-receipt dd.mono { font-family: var(--kz-mono); font-size: var(--p-note); }
/* a price bought with an offer: the struck price before it, the offer's chip, Monthly's discounted months under it */
.kzp-receipt .kzp-was { color: var(--p-dim); text-decoration-thickness: 1px; }
.kzp-receipt .kzp-sub { display: block; margin-top: 2px; font-size: var(--p-note); color: var(--p-dim); }
.kzp-chip { display: inline-flex; align-items: center; height: 20px; margin-left: 6px; padding: 0 8px; border-radius: 999px; vertical-align: 1px;
  background: var(--kz-blue); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; }
/* a payment done: the receipt's first row across both columns, the check with «Paid» and when; the pairs after it
   are one place later, so their edges are counted from it */
.kzp-receipt > div.kzp-paid { grid-column: 1 / -1; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: center; border-right: 0; }
.kzp-paid .kzp-done { grid-row: span 2; width: 32px; height: 32px; }
.kzp-receipt .kzp-paid dt { font-size: var(--p-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-transform: none; color: #fff; }
.kzp-receipt .kzp-paid dd { margin-top: 2px; font-size: var(--p-note); color: var(--p-dim); }
.kzp-paid ~ div:nth-child(odd) { border-right: 0; }
.kzp-paid ~ div:nth-child(even) { border-right: 1px solid var(--p-edge); }
.kzp-paid ~ div:nth-last-child(-n+2):nth-child(even) { border-bottom: 0; }

/* ---------------------------------------------------------------- a payment done (partials/kz_done_mark.html)
   The check: the ring drawn from the top in .42 s, the tick in .26 s from .38 s, a settle from .62 s (≈ .92 s, once);
   finished at once with reduced motion. */
.kzp-done { display: block; flex: none; width: 72px; height: 72px; animation: kzp-settle .3s cubic-bezier(.2, .7, .2, 1) .62s; }
.kzp-done circle, .kzp-done path { fill: none; stroke: var(--p-acc); stroke-linecap: round; stroke-linejoin: round; }
.kzp-done circle { stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: 50% 50%;
  animation: kzp-draw .42s cubic-bezier(.65, 0, .35, 1) forwards; }
.kzp-done path { stroke-width: 3.4; stroke-dasharray: 36; stroke-dashoffset: 36; animation: kzp-draw .26s cubic-bezier(.65, 0, .35, 1) .38s forwards; }
@keyframes kzp-draw { to { stroke-dashoffset: 0; } }
@keyframes kzp-settle { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .kzp-done, .kzp-done circle, .kzp-done path { animation: none; stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- forms */
.kzp-form { display: grid; row-gap: 22px; }
.kzp-field { display: grid; row-gap: 8px; }
.kzp-field label, .kzp-field legend { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--p-dim); }
.kzp input[type="text"], .kzp input[type="email"], .kzp input[type="number"], .kzp input[type="search"], .kzp input:not([type]), .kzp select, .kzp textarea {
  width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid var(--p-field); border-radius: 12px; background: #0d0d10;
  font-family: var(--kz-ui); font-size: var(--p-list); line-height: 1.4; color: var(--kz-text); transition: border-color var(--kz-t), background-color var(--kz-t); }
.kzp select { background-color: #0d0d10; }
.kzp textarea { min-height: 140px; resize: vertical; }
.kzp input::placeholder, .kzp textarea::placeholder { color: var(--p-dim); }
.kzp input:hover, .kzp select:hover, .kzp textarea:hover { border-color: rgba(255, 255, 255, .24); background: #111116; }
.kzp input:focus, .kzp select:focus, .kzp textarea:focus { outline: none; border-color: rgba(255, 255, 255, .55); background: #111116; }
.kzp input[aria-invalid="true"], .kzp .is-invalid { border-color: var(--p-err); }
.kzp-hint { font-size: var(--p-small); line-height: 1.5; color: var(--p-grey); }
.kzp-err { font-size: var(--p-small); line-height: 1.5; color: var(--p-err); }
.kzp-ok { font-size: var(--p-small); line-height: 1.5; color: var(--p-acc); }
.kzp-check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--p-list); line-height: 1.5; color: var(--p-grey); }
.kzp-check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: #f5f5f7; }

/* ---------------------------------------------------------------- cards */
.kzp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.kzp-card { display: flex; flex-direction: column; min-width: 0; padding: 24px 28px 28px; border: 1px solid var(--p-edge); border-radius: var(--kz-r); background: var(--kz-bg2); }
.kzp-card.on { border-color: #4a4a52; }
.kzp-card h2, .kzp-card h3 { margin-top: 12px; font-size: var(--p-h3); line-height: 1.25; letter-spacing: -.02em; }
.kzp-card p { margin-top: 8px; font-size: var(--p-list); line-height: 1.55; color: var(--p-grey); }
.kzp-card .kzk { align-self: flex-start; margin-top: var(--p-act); }
.kzp-card .kzp-meta { margin-top: 12px; }

@media (max-width: 960px) {
  .kzp-split { grid-template-columns: minmax(0, 1fr); row-gap: var(--p-block); }
  .kzp-split > .kzp-head { position: static; }
}
@media (max-width: 640px) {
  .kzp-receipt { grid-template-columns: minmax(0, 1fr); }
  .kzp-receipt > div:nth-child(odd), .kzp-paid ~ div:nth-child(even) { border-right: 0; }
  .kzp-receipt > div:nth-last-child(-n+2):nth-child(odd), .kzp-paid ~ div:nth-last-child(-n+2):nth-child(even) { border-bottom: 1px solid var(--p-edge); }
  /* one column: a line under every row but the last (its selectors as strong as the two above) */
  .kzp-receipt > div:nth-last-child(-n+2):last-child, .kzp-paid ~ div:nth-last-child(-n+2):last-child { border-bottom: 0; }
  .kzp-acts .kzk { width: 100%; }
  .kzp-steps li { padding: 16px 18px; }
  .kzp-card { padding: 20px 22px 24px; }
}
