/* Pay: AI credits (the paywall), the hosted checkout, the paid moment */

/* ---- paywall ---- */
.pw { display: grid; gap: 18px; padding-top: 14px; padding-bottom: 40px; }
.pw-back { padding-top: 4px; }
.pw-back .pw-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.pw-back .pw-link svg { width: 16px; height: 16px; }
.pw-head { display: grid; gap: 8px; }
.pw-kicker { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill, 999px); background: var(--ai-soft); color: var(--ai-ink); font: 500 11px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pw-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ai); }
.is-cancelled .pw-kicker { background: var(--free-soft); color: var(--free-ink); }
.is-cancelled .pw-kicker::before { background: var(--free); }
.pw-title { font: var(--display, 400) 36px/1.04 var(--serif); letter-spacing: var(--title-track, -0.01em); text-wrap: balance; }
.pw-sub { font-size: 16px; color: var(--soft); max-width: 36em; text-wrap: pretty; }
.pw-remind { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; padding: 11px 14px; border-radius: calc(14px * var(--round, 1)); background: var(--free-soft); font-size: 14px; color: var(--free-ink); }
.pw-remind svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.pw-remind b { font-weight: 500; overflow-wrap: anywhere; }

/* what they were about to do: lake, the colour of AI */
.pw-about { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: calc(18px * var(--round, 1)); background: var(--ai-soft); color: var(--ai-ink); }
.pw-about-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ai); color: #fff; }
.pw-about-ic svg { width: 20px; height: 20px; }
.pw-about-t { display: grid; gap: 1px; min-width: 0; }
.pw-about-k { font: 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.pw-about-t b { font: var(--display, 400) 21px/1.15 var(--serif); letter-spacing: var(--title-track, normal); color: var(--ink); text-wrap: balance; }
.pw-about-p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.pw-about-p .ai-badge { background: #fff; }
.pw-about-p b { font: 500 13px var(--mono); }

/* their session, above the price */
.pw-session { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: calc(22px * var(--round, 1)); background: var(--sheet); }
.pw-session-top { display: flex; align-items: center; justify-content: space-between; }
.pw-saved { display: inline-flex; align-items: center; gap: 4px; font: 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--free-ink); }
.pw-saved svg { width: 14px; height: 14px; }
.pw-saved.is-not { color: var(--muted); }
.pw-session-title { font: var(--display, 400) 27px/1.08 var(--serif); letter-spacing: var(--title-track, normal); text-wrap: balance; }
.pw-wish { margin: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--free); font: italic 400 19px/1.3 var(--serif); color: var(--deep); }
.pw-wish-q { color: var(--muted); }
.pw-yours { display: grid; gap: 8px; margin-top: 2px; padding: 14px 16px 15px; border-radius: calc(16px * var(--round, 1)); background: var(--ai-soft); }
.pw-yours-head .label { color: var(--ai-ink); }
.pw-line { font: 400 19px/1.3 var(--serif); color: var(--ink); text-wrap: pretty; }
.pw-line.is-wish { font-style: italic; color: var(--ai-ink); }
.pw-curve { min-width: 0; height: 64px; }
.pw-curve .curve { width: 100%; height: 100%; }
.pw-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pw-meta div { min-width: 0; }
.pw-meta dt { font: 10.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pw-meta dd { margin: 2px 0 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-made { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 12px/1.4 var(--mono); color: var(--free-ink); }
.pw-session .pw-curve, .pw-session .pw-meta { display: none; }

/* two ways: the plan and the packs */
.pw-ways { display: grid; gap: 12px; }
.pw-ways-h { font: var(--display, 400) 24px/1.15 var(--serif); letter-spacing: var(--title-track, normal); }
.pw-ways-row { display: grid; gap: 14px; }
.pw-way { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px 18px 16px; border: 1px solid var(--line); border-radius: calc(22px * var(--round, 1)); background: var(--sheet); text-align: left; color: var(--ink); }
.pw-way-k { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pw-radio { position: absolute; top: 18px; right: 16px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--sheet); }
.is-on > .pw-radio { border-color: var(--go-ink); background: radial-gradient(circle, var(--go-ink) 0 5px, #fff 5.5px); }

.pw-plan { cursor: pointer; border: 1.5px solid var(--go); background: var(--sheet); box-shadow: inset 0 7px 0 var(--go-soft); }
.pw-plan:hover { border-color: #d68f28; }
.pw-plan.is-on { background: var(--go-soft); box-shadow: inset 0 0 0 1.5px var(--go); }
.pw-plan.is-has { box-shadow: none; }
.pw-plan.is-has { cursor: default; border-color: var(--free); background: var(--free-soft); }
.pw-tag { position: absolute; top: -11px; left: 16px; padding: 3px 10px; border-radius: var(--pill, 999px); background: var(--go); color: #2a1a02; font: 600 10.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.pw-plan .pw-way-k { color: var(--go-ink); }
.pw-plan-usd { display: flex; align-items: baseline; gap: 6px; }
.pw-plan-usd b { font: 500 40px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pw-plan-usd small { font-size: 15px; color: var(--soft); }
.pw-plan-credits { font-size: 16px; color: var(--ink); }
.pw-plan-credits b { font: 500 16px var(--mono); }
.pw-plan-more { justify-self: start; margin-top: 2px; padding: 5px 10px; border-radius: calc(10px * var(--round, 1)); background: #fff; color: var(--go-ink); font-size: 13px; line-height: 1.35; }
.pw-plan-more b { font: 600 13px var(--mono); }
.pw-plan-facts { margin: 6px 0 0; padding: 10px 0 0; list-style: none; display: grid; gap: 6px; border-top: 1px dashed #e7c98f; }
.pw-plan-facts li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--soft); }
.pw-plan-facts svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--free); }
.pw-plan-has { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--free-ink); }
.pw-plan-has svg { width: 18px; height: 18px; }

.pw-packs-sub { font-size: 14px; color: var(--soft); margin-bottom: 4px; }
.pw-pack-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pw-pack { position: relative; display: grid; gap: 2px; align-content: start; padding: 11px 12px 10px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--paper); text-align: left; cursor: pointer; color: var(--ink); }
.pw-pack:hover { border-color: #bfb6a5; }
.pw-pack.is-on { border-color: var(--go-ink); box-shadow: inset 0 0 0 1px var(--go-ink); background: #fff; }
.pw-pack .pw-radio { top: 12px; right: 11px; width: 16px; height: 16px; }
.pw-pack.is-on .pw-radio { background: radial-gradient(circle, var(--go-ink) 0 4px, #fff 4.5px); }
.pw-pack-usd { font: 500 21px/1.15 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pw-pack-credits { font-size: 13px; color: var(--soft); }
.pw-pack-credits b { font: 500 13px var(--mono); color: var(--ink); }
.pw-pack-credits em { font: normal 11px var(--mono); color: var(--free-ink); white-space: nowrap; }
.pw-pack-tag { justify-self: start; margin-top: 4px; padding: 1px 7px; border-radius: var(--pill, 999px); background: var(--free-soft); color: var(--free-ink); font: 500 10px/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }

.pw-custom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; margin-top: 4px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--paper); }
.pw-custom.is-on { border-color: var(--go-ink); box-shadow: inset 0 0 0 1px var(--go-ink); background: #fff; }
.pw-custom-label { font-size: 13px; color: var(--soft); }
.pw-custom-row { display: flex; align-items: center; gap: 6px; }
.pw-custom-usd { font: 500 18px/1 var(--sans); color: var(--muted); }
.pw-custom-input { flex: 1; min-width: 0; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 4px 2px; font: 500 18px/1.2 var(--sans); color: var(--ink); }
.pw-custom-input:focus { outline: none; border-bottom-color: var(--go-ink); }
.pw-custom-use { flex: none; min-height: 44px; padding: 5px 14px; border-radius: var(--pill, 999px); border: 1px solid var(--line); background: var(--sheet); cursor: pointer; font-size: 14px; }
.pw-custom-use[disabled] { opacity: 0.45; cursor: not-allowed; }
.pw-custom-note { grid-column: 1 / -1; font: 11.5px/1.3 var(--mono); color: var(--muted); }
.pw-custom-note b { font-weight: 500; color: var(--ink); }
.pw-custom-note.is-warn { color: var(--signal-text); }

/* the close: the one honey button, the receipt, the promise, what stays free */
.pw-close { display: grid; gap: 12px; }
.pw-go .btn { width: 100%; }
.pw-link { border: 0; background: none; padding: 0; color: var(--deep); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; cursor: pointer; }
.pw-who { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.pw-who svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--deep); }
.pw-who b { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.pw-assure { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--sheet); }
.pw-proof { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pw-proof i { font: italic 400 15px/1 var(--serif); color: var(--soft); }
.pw-proof b { font: 500 12.5px var(--mono); color: var(--ink); }
.pw-free { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: calc(14px * var(--round, 1)); background: var(--free-soft); color: var(--free-ink); font-size: 14px; line-height: 1.45; }
.pw-free svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pw-free b { font-weight: 600; }
/* room under the page for the dock: its exact height, measured by the shell */
.pw-end { height: var(--dock-room, 96px); }

.pw-dock { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: var(--pill, 999px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 40px rgb(27 26 36 / 0.22); }
.pw-dock-sum { flex: none; display: grid; line-height: 1.15; font-size: 12.5px; color: var(--muted); }
.pw-dock-sum b { font: 500 18px/1.1 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.pw-dock-sum b.pw-dock-n { font: 500 12.5px/1.15 var(--mono); letter-spacing: 0; color: var(--soft); }
.pw-dock .btn { flex: 1; min-width: 0; padding-inline: 14px; font-size: 15px; }
.pw-dock .btn span { overflow: hidden; text-overflow: ellipsis; }

@container app (min-width: 700px) {
  .pw { max-width: 1000px; margin-inline: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; row-gap: 22px; padding-top: 26px; padding-bottom: 72px; }
  .pw-head { grid-column: 1; align-self: center; gap: 10px; }
  .pw-about { grid-column: 2; align-self: center; }
  .pw:not(:has(.pw-about)) .pw-head { grid-column: 1 / -1; }
  .pw-title { font-size: 46px; }
  .pw-sub { font-size: 17px; }
  .pw-session .pw-curve, .pw-session .pw-meta { display: grid; }
  .pw-session .pw-curve { display: block; }
  .pw-session { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; padding: 22px 26px 18px; }
  .pw-session-top, .pw-session-title, .pw-wish, .pw-yours { grid-column: 1; }
  .pw-session.is-empty { grid-template-columns: minmax(0, 1fr); }
  .pw-curve { grid-column: 2; grid-row: 1 / 4; align-self: center; height: 96px; }
  .pw-meta { grid-column: 1 / -1; }
  .pw-made { grid-column: 1 / -1; }
  .pw-session-title { font-size: 32px; }
  .pw-ways { grid-column: 1 / -1; }
  .pw-ways-h { font-size: 28px; }
  .pw-ways-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .pw-way { padding: 24px 24px 20px; }
  .pw-close { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; align-items: start; }
  .pw-go { grid-column: 1 / -1; display: flex; justify-content: center; }
  .pw-go .btn { width: auto; min-width: 380px; min-height: 54px; font-size: 17px; }
  .pw-who { grid-column: 1 / -1; justify-content: center; text-align: center; margin-top: -4px; }
  .pw-close > :only-child { grid-column: 1 / -1; }
}

/* ---- checkout: a hosted page, calm and plain ---- */
.app[data-screen="checkout"] { background: #fff; }
.co { min-height: 100cqh; background: #fff; color: #1d1d22; font-family: var(--sans); }
.co-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid #ecebe8; font-size: 12.5px; color: #6b6a72; }
.co-secure { display: inline-flex; align-items: center; gap: 6px; color: #2d6a4f; font-weight: 500; }
.co-secure svg { width: 14px; height: 14px; }
.co-host { font: 12px var(--mono); }
.co-grid { display: grid; }
.co-summary { display: grid; gap: 14px; padding: 18px 20px 20px; background: #f7f6f3; border-bottom: 1px solid #ecebe8; }
.co-merchant { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; padding: 4px 0; cursor: pointer; font: 500 15px var(--sans); color: #1d1d22; }
.co-merchant > svg { width: 18px; height: 18px; color: #6b6a72; }
.co-what { display: grid; gap: 2px; }
.co-what-label { font-size: 14.5px; color: #6b6a72; }
.co-what-total { font: 600 34px/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.co-what-total small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: #6b6a72; }
.co-row-then { color: #6b6a72; }
.co-lines { display: grid; gap: 8px; font-size: 14px; }
.co-row { display: flex; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.co-row-bonus span:last-child { color: #2d6a4f; font-weight: 500; }
.co-row-note { margin-top: -4px; font-size: 12.5px; color: #8a8991; }
.co-row-total { padding-top: 10px; border-top: 1px solid #e3e1dc; font-weight: 600; }
.co-legal { font-size: 12px; line-height: 1.5; color: #8a8991; }

.co-form { display: grid; gap: 18px; padding: 20px 20px 36px; }
.co-express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-apple, .co-gpay { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 46px; border-radius: calc(8px * var(--round, 1)); cursor: pointer; font: 500 18px/1 -apple-system, var(--sans); }
.co-apple { border: 0; background: #000; color: #fff; }
.co-apple svg { width: 20px; height: 20px; margin-top: -3px; }
.co-gpay { border: 1px solid #d6d5d2; background: #fff; color: #3c4043; }
.co-gpay b { font: 700 19px/1 var(--sans); }
.co-gpay i { font-style: normal; }
.co-or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #8a8991; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: #ecebe8; }
.co-block { display: grid; gap: 8px; }
.co-h { font-size: 14px; font-weight: 500; }
.co-static { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid #e3e1dc; border-radius: calc(8px * var(--round, 1)); background: #fafaf8; font-size: 15px; color: #3d3c44; }
.co-static svg { width: 18px; height: 18px; color: #8a8991; }
.co-methods { display: grid; border: 1px solid #e3e1dc; border-radius: calc(10px * var(--round, 1)); overflow: hidden; }
.co-method { display: grid; gap: 14px; padding: 14px; }
.co-method + .co-method { border-top: 1px solid #e3e1dc; }
.co-method.is-on { background: #fff; }
.co-method-row { background: #fafaf8; gap: 12px; }
.co-method-row.is-suggested { background: #f3f8f5; box-shadow: inset 3px 0 0 #2d6a4f; }
.co-method-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.co-method-head > svg { width: 20px; height: 20px; color: #3d3c44; }
.co-method-row .co-method-head span:last-child { font-weight: 400; color: #6b6a72; font-size: 14px; }
.co-radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c9c7c2; }
.co-radio.is-on { border-color: #1d1d22; background: radial-gradient(circle, #1d1d22 0 4px, #fff 4.5px); }
.co-brands { margin-left: auto; display: flex; gap: 4px; }
.co-brands i { font: 600 9px/1 var(--mono); font-style: normal; padding: 4px 5px; border: 1px solid #e3e1dc; border-radius: 4px; color: #5d5c63; }
.co-ideal { flex: none; display: inline-grid; place-items: center; width: 40px; white-space: nowrap; height: 26px; border-radius: 5px; background: #fff; border: 1px solid #e3e1dc; font: 700 11px/1 var(--sans); color: #cc0066; }
.co-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-field { display: grid; gap: 5px; min-width: 0; }
.co-field-wide { grid-column: 1 / -1; }
.co-field-label { font-size: 13px; color: #5d5c63; }
.co-input { width: 100%; padding: 11px 12px; border: 1px solid #d6d5d2; border-radius: calc(8px * var(--round, 1)); background: #fff; font: 16px var(--sans); color: #1d1d22; box-shadow: 0 1px 1px rgb(0 0 0 / 0.03); }
.co-input:focus { outline: 2px solid #1d1d22; outline-offset: -1px; border-color: transparent; }
.co-method.is-declined .co-card .co-field:first-child .co-input { border-color: #c4422b; }
.co-error { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; border-radius: calc(8px * var(--round, 1)); background: #fdf3f0; color: #8c2f1b; font-size: 14px; line-height: 1.4; }
.co-error svg { width: 20px; height: 20px; }
.co-error b { display: block; font-weight: 500; }
.co-error span { color: #6b4a42; }
.co-pay { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 0; border-radius: calc(8px * var(--round, 1)); background: var(--deep); color: #fff; font: 600 16.5px var(--sans); cursor: pointer; }
.co-pay svg { width: 17px; height: 17px; }
.co-pay:hover { background: var(--deep-2); }
.co-ideal-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid #d6d5d2; border-radius: calc(8px * var(--round, 1)); background: #fff; font: 500 15px var(--sans); cursor: pointer; }
.co-ideal-go svg { width: 18px; height: 18px; }
.co-hosted { align-content: center; }
.co-wait { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid #e3e1dc; border-radius: calc(10px * var(--round, 1)); background: #fafaf8; }
.co-wait div { display: grid; gap: 4px; }
.co-wait b { font-weight: 600; font-size: 15.5px; color: #1a1a1f; }
.co-wait span:not(.co-dots) { font-size: 14px; line-height: 1.45; color: #5d5c63; }
.co-dots { display: inline-flex; gap: 4px; padding-top: 7px; flex: none; }
.co-dots i { width: 6px; height: 6px; border-radius: 50%; background: #635bff; }
.co-again { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #635bff; font: 500 14.5px var(--sans); text-decoration: none; }
.co-again svg { width: 16px; height: 16px; }
.co-cancel { justify-self: center; min-height: 44px; border: 0; background: none; padding: 8px 12px; color: #3d3c44; font: 500 14.5px var(--sans); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; cursor: pointer; }
.co-test { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; color: #8a8991; text-align: center; }
.co-test em { font-style: normal; text-wrap: balance; }
.co-test code { font: 11.5px var(--mono); color: #5d5c63; white-space: nowrap; }
.co-test span { padding: 2px 6px; border-radius: 4px; background: #f2efe9; font: 500 10px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #8a6d3b; }

@container app (min-width: 700px) {
  .co { display: flex; flex-direction: column; }
  .co-top { padding: 14px 40px; }
  .co-grid { flex: 1; grid-template-columns: 1fr 1fr; }
  .co-summary { align-content: start; justify-items: stretch; gap: 22px; padding: 56px 72px 40px max(40px, calc(50% - 400px)); border-bottom: 0; border-right: 1px solid #ecebe8; }
  .co-summary > * { max-width: 380px; width: 100%; justify-self: end; }
  .co-merchant { justify-self: end; }
  .co-what-total { font-size: 42px; }
  .co-lines { gap: 10px; margin-top: 8px; }
  .co-legal { margin-top: 8px; }
  .co-form { align-content: start; padding: 56px max(40px, calc(50% - 400px)) 48px 72px; }
  .co-form > * { max-width: 420px; }
}

/* ---- paid ---- */
.pd { display: grid; justify-items: center; gap: 22px; padding-top: 44px; padding-bottom: 48px; text-align: center; }
.pd-mark { position: relative; width: 112px; height: 112px; }
.pd-mark svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pd-ring-bg { fill: var(--sheet); stroke: var(--line); stroke-width: 1.5; }
.pd-ring { fill: none; stroke: var(--go); stroke-width: 2.5; stroke-linecap: round; }
.pd-gami { position: absolute; inset: 0; display: grid; place-items: center; }
.pd-text { display: grid; gap: 6px; justify-items: center; }
.pd-title { font: var(--display, 400) 54px/1 var(--serif); letter-spacing: var(--title-track, -0.01em); }
.pd-credits { font-size: 17px; color: var(--soft); }
.pd-credits b { font: 500 22px var(--mono); color: var(--ai-ink); }
.pd-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; width: 100%; max-width: 440px; text-align: left; }
.pd-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: calc(14px * var(--round, 1)); background: var(--sheet); font-size: 14.5px; color: var(--soft); line-height: 1.4; }
.pd-facts svg { width: 18px; height: 18px; margin-top: 1px; color: var(--deep); }
.pd-facts b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.pd-facts .pd-got { border-color: transparent; background: var(--ai-soft); color: var(--ai-ink); }
.pd-facts .pd-got svg { color: var(--ai); }
.pd-facts .pd-got b { color: var(--ai-ink); }
.pd-next { width: 100%; max-width: 440px; display: grid; gap: 10px; padding: 16px; border-radius: calc(16px * var(--round, 1)); background: var(--deep); color: var(--paper); text-align: left; }
.pd-next-t { display: grid; gap: 4px; font-size: 15px; }
.pd-next-t .label { color: #b9cbc1; }
.pd-next-k { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.pd-next-t i { font: italic 400 19px/1.2 var(--serif); }
.pd-go .btn { min-width: 240px; }
.pd-offer { width: 100%; max-width: 440px; }

.pd-passkey { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: center; padding: 14px; border: 1px dashed var(--line); border-radius: calc(16px * var(--round, 1)); text-align: left; }
.pd-passkey-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wash); color: var(--deep); }
.pd-passkey-ic svg { width: 20px; height: 20px; }
.pd-passkey-t { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.pd-passkey-t b { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.pd-passkey .btn { grid-column: 1 / -1; min-height: 44px; padding: 8px 16px; font-size: 14.5px; }
.pd-passkey.is-done { display: flex; gap: 8px; border-style: solid; background: var(--sheet); font-size: 14px; color: var(--soft); }
.pd-passkey.is-done svg { width: 18px; height: 18px; color: var(--deep); flex: none; }
@container app (min-width: 700px) {
  .pd { padding-top: 72px; }
  .pd-title { font-size: 72px; }
  .pd-passkey { grid-template-columns: 36px 1fr auto; }
  .pd-passkey .btn { grid-column: auto; }
}
.co-legal-links { display: flex; gap: 14px; white-space: nowrap; }
.co-legal-links .legal-link { display: inline-flex; align-items: center; min-height: 44px; }

/* the go-ahead after paying: what Generate will spend, and a way back first */
.pd-next-bill { margin: 0; font-size: 14px; line-height: 1.45; color: #cfdcd4; }
.pd-next-acts { display: grid; gap: 8px; }
.pd-next-acts .btn { width: 100%; white-space: normal; }
.co-legal-links .legal-link { min-width: 44px; justify-content: center; padding-inline: 6px; }

/* the paid page on a phone: compact enough that the go-ahead is in view on arrival */
@container app (max-width: 699px) {
  .pd { gap: 16px; padding-top: 22px; }
  .pd-mark { width: 84px; height: 84px; }
  .pd-title { font-size: 44px; }
}
