/* Checkout (checkout.html) and its chrome, shared by order-confirmed.html.
   Loaded after clear-brand.css and page.css (the page colour, its tokens,
   the header base, the theme toggle, the toast). A focused app screen, not
   a product page: a slim header (logo, "Secure checkout", the phone line,
   the theme toggle), the order summary straight on the page beside one
   form card and a slim footer. The field
   styles follow contact.css (the 3:1 control edge, the field fill, 16 px
   text, the green focus edge and soft ring); a picked or ticked control is
   Clear's selection blue, never green. Every colour is a Clear token or a
   page.css token. No opacity on text. */

:root, .theme-light {
  --co-well: var(--background);   /* the card fields' well, set into the form's paper */
}
.theme-dark {
  --co-well: var(--muted);
}

[hidden] { display: none !important; }
.co-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.co-skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-lg); background: var(--paper); color: var(--card-foreground); font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: var(--lift-1); }
.co-skip:focus { top: 12px; outline: 2px solid var(--ring); outline-offset: 2px; }

/* Links in running text are underlined, so they never rely on colour. */
.co-inline { font-weight: 600; color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.co-inline:hover { text-decoration-thickness: 2px; }
.co-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--primary-text); text-decoration: none; text-underline-offset: 4px; }
.co-link:hover { text-decoration: underline; }
.co-inline:focus-visible, .co-link:focus-visible, .co-back:focus-visible, .co-textbtn:focus-visible, .co-reveal:focus-visible, .co-pass__show:focus-visible, .co-help:focus-visible, .co-footer__links a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* ── Header ──────────────────────────────────────────────────────
   Always solid, with a hairline: an app bar, not a hero overlay. */
.site-header.co-header { background: var(--page); border-bottom-color: var(--hair-soft); }
.co-header__inner { max-width: 1160px; }
.co-header__left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.co-header__rule { width: 1px; height: 22px; background: var(--hair); }
.co-secure { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--card-foreground); white-space: nowrap; }
.co-secure svg, .co-sec__aside--quiet svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.co-header__right { gap: 4px; }
.co-help { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: var(--radius-lg); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--card-foreground); text-decoration: none; white-space: nowrap; }
.co-help:hover { background: var(--nav-hover); }
.co-help svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; flex-shrink: 0; }
.co-help__narrow { display: none; }

/* ── Layout ──────────────────────────────────────────────────────
   Desktop: the summary on the page (left), the form card (right).
   Narrower: one column, the summary first. */
.co-main { padding: 40px 0 0; }
/* Until the page's script has drawn the real order (checkout.js,
   order-confirmed.js: #top's .is-ready), the column doesn't paint, so a slow
   script never shows the HTML's empty or stand-in state. A script that never
   runs lets it show after 4 s: the HTML's own words, true of any order. */
.js .co-main:not(.is-ready) > .wrap { visibility: hidden; animation: co-ready 0s 4s forwards; }
@keyframes co-ready { to { visibility: visible; } }
/* Checkout without scripts: its note, and no form (checkout.html). The note
   gives way only once checkout.js has run (.is-ready), so a checkout.js that
   never runs leaves it, not an empty column, after the 4 s above; and the
   form shows then even if head.js failed to load. */
.co-main.is-ready .co-nojs, html:not(.js) .co-main:not(.is-ready) .co-grid { display: none; }
.co-wrap { max-width: 1080px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); column-gap: 72px; align-items: start; }
/* Until the first priced render (checkout.js): out of sight, and a quiet
   line once that is slow. Without script the page keeps its markup. */
.js .co-grid.is-loading { visibility: hidden; }
.co-loading { margin: 24px auto 0; max-width: 620px; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .co-loading { animation: co-appear 300ms ease-out both; }
}
@keyframes co-appear { from { opacity: 0; } }

/* ── Order summary ─────────────────────────────────────────────── */
.co-sum { padding-top: 4px; }
@media (min-width: 961px) and (min-height: 700px) {
  .co-sum { position: sticky; top: 96px; }
}
.co-back { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-left: -6px; padding: 0 8px 0 4px; border-radius: var(--radius-lg); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--muted-foreground); text-decoration: none; }
.co-back:hover { color: var(--card-foreground); background: var(--nav-hover); }
.co-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-sum__label { margin-top: 28px; font-size: 13px; line-height: 16px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); }
.co-sum__code { margin-top: 10px; font-size: 40px; line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.co-sum__name { margin-top: 8px; max-width: 26em; font-size: 17px; line-height: 1.45; color: var(--muted-foreground); text-wrap: pretty; }
.co-sum__class { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 15.5px; line-height: 22px; color: var(--card-foreground); }
.co-sum__class b { display: block; font-weight: 650; }
.co-sum__class svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

.co-terms { margin-top: 28px; border-bottom: 1px solid var(--hair-soft); }
.co-terms__row { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; padding: 13px 0; border-top: 1px solid var(--hair-soft); }
.co-terms dt { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--muted-foreground); }
.co-terms dd { margin: 0; font-size: 15.5px; line-height: 22px; color: var(--card-foreground); text-wrap: pretty; }

.co-lines { margin-top: 14px; }
.co-lines__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; }
.co-lines dt { font-size: 15.5px; line-height: 22px; color: var(--muted-foreground); }
.co-lines dd { margin: 0; font-size: 15.5px; line-height: 22px; font-weight: 600; color: var(--card-foreground); white-space: nowrap; }
.co-lines dd.is-saving { color: var(--success); }
.co-lines__total { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hair); align-items: center; }
/* No discount: the total stands alone under the terms' own rule. */
.co-lines__total:first-child { margin-top: 0; padding-top: 8px; border-top: 0; }
.co-lines__total dt { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.co-lines__total dd { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.co-lines__total dd.is-text { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.co-cur { margin-left: 6px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted-foreground); }

/* ── Free course (P, FM): no checkout ─────────────────────────── */
.co-freecourse { max-width: 620px; margin: 24px auto 0; padding: 36px 36px 32px; border-radius: var(--radius-2xl); border: 1px solid var(--art-edge); background: var(--paper); box-shadow: var(--art-lift-front); }
.co-freecourse__title { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.co-freecourse__copy { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--muted-foreground); }
.co-freecourse__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.co-freecourse .btn:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ring); }

/* ── The form card ─────────────────────────────────────────────── */
.co-card { container-type: inline-size; overflow-anchor: none; padding: 8px 32px 32px; border-radius: var(--radius-2xl); border: 1px solid var(--art-edge); background: var(--paper); box-shadow: var(--art-lift-front); }
.co-sec { padding: 24px 0 26px; border-top: 1px solid var(--hair-soft); }
.co-errors + .co-sec, .co-card > h2 + .co-errors[hidden] + .co-sec { border-top: 0; }
/* Back from the payment page: Account and the code are hidden, so Payment
   opens the card. */
.co-card > h2 + .co-errors[hidden] + .co-sec[hidden] + .co-sec[hidden] + .co-sec { border-top: 0; }
.co-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.co-sec__title { font-size: 19px; line-height: 26px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.co-sec__aside { font-size: 15px; line-height: 22px; color: var(--muted-foreground); }
.co-sec__aside--quiet { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.co-sec--code { padding: 14px 0 16px; }
.co-sec--code:has(.co-code:not([hidden])) { padding-bottom: 24px; }
.co-sec--code:has(.co-applied:not([hidden]), .co-notice:not([hidden])) { padding: 22px 0 24px; }

/* Signed in: who, and a way out. */
.co-who { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--co-well); }
.co-who__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); font-size: 14px; font-weight: 650; letter-spacing: 0.02em; color: var(--ink); }
.co-who__text { font-size: 15px; line-height: 21px; color: var(--muted-foreground); min-width: 0; }
.co-who__text b { font-weight: 650; color: var(--card-foreground); }
.co-who__email { display: block; color: var(--card-foreground); overflow-wrap: anywhere; }
.co-who__out { font-size: 14.5px; line-height: 20px; color: var(--muted-foreground); white-space: nowrap; }

/* Text buttons (Sign out, Remove): a link's look on a real button. */
.co-textbtn { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0 2px; border: 0; background: none; font: 600 14.5px/20px var(--font-sans); color: var(--primary-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.co-textbtn:hover { text-decoration-thickness: 2px; }

/* ── Fields (contact.css's) ────────────────────────────────────── */
.co-fields { margin-top: 4px; }
.fld { margin-top: 18px; }
.fld__label { display: block; margin-bottom: 7px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--card-foreground); }
.fld__control { box-sizing: border-box; display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border: 1px solid var(--input-border); border-radius: var(--radius-xl); background: var(--field-bg); color: var(--card-foreground); font: 16px/22px var(--font-sans); transition: border-color 150ms ease, box-shadow 150ms ease; }
.fld__control::placeholder { color: var(--muted-foreground); opacity: 1; }
.fld__control:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ring) 22%, transparent); }
.fld__hint { margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); text-wrap: pretty; }
.co-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.co-row > .fld { min-width: 0; }

/* Errors: the edge turns danger red and the message sits under it with a
   mark, so it never relies on colour alone. */
.fld__err { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--danger); }
.fld__err::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; background: var(--danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.6'/%3E%3Cpath d='M8 4.6v4.2M8 11.2v.2'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.6'/%3E%3Cpath d='M8 4.6v4.2M8 11.2v.2'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
.fld.is-invalid .fld__control { border-color: var(--danger); }
.fld.is-invalid .fld__control:focus { box-shadow: 0 0 0 4px color-mix(in oklab, var(--danger) 22%, transparent); }

/* Password: a Show button inside the field. */
.co-pass { position: relative; }
.co-pass .fld__control { padding-right: 84px; }
/* Edge adds its own eye to password fields; Show is ours, so hide it. */
.co-pass .fld__control::-ms-reveal { display: none; }
.co-pass__show { position: absolute; right: 5px; top: 5px; height: 38px; min-width: 64px; padding: 0 12px; border: 0; border-radius: var(--radius-lg); background: transparent; font: 600 14.5px/20px var(--font-sans); color: var(--primary-text); cursor: pointer; }
.co-pass__show:hover { background: var(--nav-hover); }

/* Terms: a real checkbox, ticked in selection blue. */
.fld--check { margin-top: 20px; }
.co-check { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; line-height: 22px; color: var(--card-foreground); cursor: pointer; }
.co-check input { flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--selection-solid); cursor: pointer; }
.co-check input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.fld--check.is-invalid .co-check input { outline: 2px solid var(--danger); outline-offset: 1px; }

/* ── Code ──────────────────────────────────────────────────────── */
.co-reveal { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0 0 0 -4px; padding: 0 6px 0 4px; border: 0; border-radius: var(--radius-lg); background: none; font: 600 15.5px/22px var(--font-sans); color: var(--primary-text); cursor: pointer; }
.co-reveal:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-reveal svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 200ms var(--ease-signature); }
.co-reveal[aria-expanded="true"] svg { transform: rotate(45deg); }
.co-code .fld { margin-top: 8px; }
.co-code__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; }
.co-code__input { text-transform: uppercase; letter-spacing: 0.02em; }
.co-code__input::placeholder { text-transform: none; }
.co-code__apply { min-height: 48px; padding: 0 20px; border-color: var(--input-border); font-size: 15px; border-radius: var(--radius-xl); }
.co-code__apply:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ring); }

/* Applied (student or class): a success tint, ink text, a tick. */
.co-applied, .co-notice { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; grid-template-areas: "mark body act" ". note note"; column-gap: 12px; align-items: start; padding: 14px 16px 15px; border-radius: var(--radius-xl); color: var(--card-foreground); }
.co-applied__mark, .co-notice__mark { grid-area: mark; }
.co-applied__body, .co-notice__body { grid-area: body; min-width: 0; }
.co-applied > .co-textbtn, .co-notice > .co-textbtn { grid-area: act; }
.co-applied { border: 1px solid color-mix(in srgb, var(--success) 45%, var(--paper)); background: color-mix(in srgb, var(--success) 9%, var(--paper)); }
.co-applied:focus, .co-notice:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.co-applied__mark, .co-notice__mark { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.co-applied__mark { stroke: var(--success); }
.co-applied__title, .co-notice__title { font-size: 15.5px; line-height: 22px; font-weight: 700; color: var(--card-foreground); }
.co-applied__copy, .co-notice__copy { margin-top: 2px; font-size: 15px; line-height: 21px; color: var(--card-foreground); }
.co-applied__copy b { font-weight: 650; }
.co-applied__code { margin-top: 4px; font-size: 13.5px; line-height: 19px; color: var(--on-tint-muted); }
.co-applied__mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--card-foreground); overflow-wrap: anywhere; }
.co-applied__note { grid-area: note; margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--success) 28%, var(--paper)); font-size: 14px; line-height: 20px; color: var(--on-tint-muted); }
.co-applied__note .co-inline, .co-notice .co-inline { color: var(--card-foreground); }
.co-applied .co-textbtn, .co-notice .co-textbtn { color: var(--card-foreground); margin-top: -5px; }
.co-applied .co-textbtn:focus-visible, .co-notice .co-textbtn:focus-visible { outline-offset: 1px; }
/* A narrow form: the action drops under the words, so they keep the width. */
@container (max-width: 460px) {
  .co-applied, .co-notice { grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "mark body" ". act" ". note"; }
  .co-applied > .co-textbtn, .co-notice > .co-textbtn { justify-self: start; margin-top: 6px; }
}

/* Already in the class: information, in selection blue (not success:
   nothing was applied). */
.co-notice { border: 1px solid color-mix(in srgb, var(--selection) 45%, var(--paper)); background: color-mix(in srgb, var(--selection) 9%, var(--paper)); }
.co-notice__mark { stroke: var(--selection); stroke-width: 1.8; }

/* ── Payment ───────────────────────────────────────────────────── */
/* Payment not finished: danger edge, a mark, ink words. */
.co-alert { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; margin-top: 14px; padding: 14px 16px 15px; border: 1.5px solid var(--danger); border-radius: var(--radius-xl); background: var(--paper); color: var(--card-foreground); }
.co-alert:focus { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ring); }
.co-alert__mark { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--danger); stroke-width: 1.8; stroke-linecap: round; }
.co-alert__title { font-size: 15.5px; line-height: 22px; font-weight: 700; }
.co-alert__copy { margin-top: 2px; font-size: 15px; line-height: 21px; }

.co-nopay { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--co-well); font-size: 15.5px; line-height: 22px; color: var(--card-foreground); }
.co-nopay svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--success); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* The card: TIA's own fields in a well (John, 2026-11-04). */
.co-cardbox { margin-top: 14px; padding: 4px 18px 20px; border-radius: var(--radius-xl); background: var(--co-well); }
.co-cardbox > .fld:first-child { margin-top: 14px; }
.co-cardnum { position: relative; }
.co-cardnum .fld__control { padding-right: 48px; letter-spacing: 0.02em; }
.co-cardnum__ico { position: absolute; right: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; fill: none; stroke: var(--muted-foreground); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.fld__opt { font-weight: 400; color: var(--muted-foreground); }
.co-cardnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.co-cardnote svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Country: the field's own look with a chevron (contact.css's select). */
.co-select { position: relative; }
.co-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; text-overflow: ellipsis; }
.co-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--muted-foreground); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
@media (forced-colors: active) { .co-select::after { background: CanvasText; } }
/* On a phone, Country takes the full width so its name isn't cut off. */
@media (max-width: 480px) { .co-row--place { grid-template-columns: minmax(0, 1fr); } }

/* ── Pay ───────────────────────────────────────────────────────── */
.co-submit { padding-top: 22px; border-top: 1px solid var(--hair-soft); }
.co-bot { margin-bottom: 16px; }
.co-bot[hidden] { display: none; }
.co-pay { min-height: 54px; font-size: 17px; line-height: 24px; }
.co-pay:focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ring); }
.co-pay.is-busy { cursor: progress; }
.co-pay.is-busy:hover { background: var(--primary); }
.co-pay__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: co-spin 800ms linear infinite; }
.co-pay.is-busy .co-pay__spin { display: inline-block; }
@keyframes co-spin { to { transform: rotate(360deg); } }
.co-fine { margin-top: 14px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); text-align: center; text-wrap: balance; }

/* ── Error summary (contact.css's) ─────────────────────────────── */
.co-errors { margin-top: 18px; padding: 16px 18px 16px 20px; border-radius: var(--radius-xl); border: 1.5px solid var(--danger); background: var(--paper); }
.co-errors:focus { outline: none; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ring); }
.co-errors__title { display: flex; align-items: center; gap: 8px; font-size: 15.5px; line-height: 22px; font-weight: 700; color: var(--card-foreground); }
.co-errors__title::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; background: var(--danger);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.6'/%3E%3Cpath d='M8 4.6v4.2M8 11.2v.2'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.6'/%3E%3Cpath d='M8 4.6v4.2M8 11.2v.2'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
.co-errors__list { display: grid; row-gap: 4px; margin-top: 8px; padding-left: 26px; }
.co-errors__list a { display: inline-block; padding: 2px 0; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--card-foreground); text-decoration: underline; text-underline-offset: 3px; }
.co-errors__list a:hover { text-decoration-thickness: 2px; }
.co-errors__list a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 3px; }
.co-errors + .co-sec { margin-top: 6px; }

/* ── Footer: one quiet line ────────────────────────────────────── */
.co-footer { margin-top: 72px; padding: 22px 0 24px; border-top: 1px solid var(--hair-soft); }
.co-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; max-width: 1080px; }
.co-footer__legal { font-size: 13.5px; line-height: 20px; color: var(--muted-foreground); }
.co-footer__links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.co-footer__links a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--muted-foreground); text-decoration: none; }
.co-footer__links a:hover { color: var(--card-foreground); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .fld__control, .co-reveal svg { transition: none; }
  .co-pay__spin { animation: none; border-right-color: currentColor; border-style: dotted; }
}
@media (forced-colors: active) {
  .co-applied, .co-notice, .co-alert, .co-cardbox, .co-who, .co-nopay { border: 1px solid CanvasText; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .co-grid { column-gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
}
@media (max-width: 960px) {
  .co-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; max-width: 600px; margin: 0 auto; }
  .co-sum__label { margin-top: 18px; }
  .co-sum__code { font-size: 34px; }
}
@media (max-width: 640px) {
  .co-help__wide { display: none; }
  .co-help__narrow { display: inline; }
  .co-header .brand__name { display: none; }
  .co-main { padding-top: 20px; }
  .co-sum__label { margin-top: 14px; }
  .co-sum__code { font-size: 30px; }
  .co-sum__name { font-size: 16px; }
  .co-terms { margin-top: 20px; }
  .co-terms__row { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; }
  .co-terms dd { font-size: 15px; }
  .co-lines__total dd { font-size: 26px; }
  .co-card { padding: 4px 18px 22px; border-radius: var(--radius-xl); }
  .co-cardbox { padding: 2px 14px 18px; }
  .co-who { grid-template-columns: 40px minmax(0, 1fr); row-gap: 8px; }
  .co-who__out { grid-column: 2; }
  .co-freecourse { padding: 26px 20px 22px; border-radius: var(--radius-xl); }
  .co-freecourse__title { font-size: 28px; }
  .co-freecourse .btn { width: 100%; }
  .co-footer { margin-top: 48px; }
  .co-footer__links { gap: 0 18px; }
  .co-footer__links a { min-height: 44px; }
}
@media (max-width: 380px) {
  .co-secure { font-size: 13.5px; }
  .co-header__left { gap: 10px; }
}
