/* All AI v2 "Business Notebook": shared design system for Log in, Sign up, Plans, Checkout, /audit, 404 pages.
   Warm paper, ink floating header pill, white cards with a hairline rule, Instrument Serif headings, ONE blue (#2563FF) for buttons.
   NO green, NO yellow, no gradients, no glow, no photo backdrop. CSP-safe: no inline styles/scripts, same-origin assets only.
   Served at /auth-assets/auth-v2.css. Loaded after /static/fonts.css and /static/buttons.css, before auth-brand.css / audit.css / checkout-extra.css.
   Hooks kept from the backend markup: .btn .primary .provider .plan .plan--selected .plan__* .method .method--selected .method__* .flash .ok/.err
   .badge .test-banner .site-link .impersonation-banner, body[data-page]. */
:root {
  color-scheme: light;
  --paper: #f2f0ed; --paper2: #e8e5e0; --card: #fff; --ink: #0b0f1e; --ink2: #161b30;
  --blue: #2563ff; --blue2: #1d4ed8; --navy: #0f2a8a; --sky: #d6e2ff; --sky2: #b4c8ff;
  --mute: #575f78; --faint: #5f6680; --mute-d: #aab4d2; --rule: #cfcac2; --rule2: #9a9489;
  --red: #b42318; --red-bg: #fbe9e7; --red-line: #e3a49c;
  /* legacy names used by the older markup/CSS hooks */
  --bg0: var(--paper); --bg1: var(--paper2); --bg2: var(--card); --glass: var(--card); --glass-2: var(--paper);
  --line: var(--rule); --line-2: var(--rule2); --text: var(--ink); --muted: var(--mute);
  --blue-d: var(--navy); --blue-s: var(--blue); --blue-l: var(--blue2);
  --font: 'DM Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --head: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --serif: var(--head);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body.auth { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--paper); overflow-x: clip; position: relative; -webkit-font-smoothing: antialiased; }
.auth > * { position: relative; z-index: 2; }
[hidden] { display: none !important; }
.auth img, .auth svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.auth p { margin: 0 0 .8rem; }
.auth h1, .auth h2, .auth h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1; color: var(--ink); margin: 0 0 .5rem; }
.auth a { color: var(--blue2); text-underline-offset: 4px; transition: color .2s; }
.auth a:hover { color: var(--ink); }
.auth :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--mute); }

/* ---------- backdrop: one big pale-blue circle (the logo's dot), nothing else ---------- */
body.auth::before { content: ""; position: fixed; z-index: 0; right: -22vmax; top: -22vmax; width: 62vmax; height: 62vmax; border-radius: 50%; background: var(--sky); opacity: .65; pointer-events: none; }
body.auth::after { content: ""; position: fixed; z-index: 0; left: -9vmax; bottom: -9vmax; width: 24vmax; height: 24vmax; border-radius: 50%; background: var(--paper2); pointer-events: none; }

/* ---------- header: floating ink pill with the white logo ---------- */
.auth-top { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem .75rem; white-space: nowrap; width: calc(100% - 24px); max-width: 1180px; min-height: 64px; margin: 12px auto 0; padding: 0 10px 0 16px; background: var(--ink); border-radius: 14px; box-shadow: 0 20px 40px -26px rgba(11, 15, 30, .75); position: sticky !important; top: 12px; z-index: 60 !important; }
a.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; border-radius: 10px; }
.brand__logo { display: block; height: 34px; width: auto; transition: transform .3s var(--ease); }
a.brand:hover .brand__logo, a.brand:focus-visible .brand__logo { transform: translateY(-1px) rotate(-3deg); }
.auth-top a.brand:focus-visible { outline-color: var(--sky2); }
.auth-top nav { margin-left: auto; display: flex; align-items: center; gap: .15rem .3rem; flex-wrap: nowrap; justify-content: flex-end; }
.auth-top nav a { color: #c6cde4; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .55rem .85rem; border-radius: 8px; transition: background-color .2s, color .2s; }
.auth-top nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.auth-top nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
.auth-top nav a:focus-visible, .auth-top .site-link:focus-visible { outline-color: var(--sky2); }
.auth-top nav form.inline { display: inline; margin: 0; }
.auth-top nav form.inline .btn { min-height: 36px; padding: 0 14px; margin: 0; width: auto; color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.auth-top nav form.inline .btn:hover { background: var(--blue); border-color: var(--blue); }
.auth-top .badge { background: transparent; color: var(--sky2); border-color: rgba(180, 200, 255, .5); }
.back-mobile { display: block; }
@media (min-width: 700px) { .back-mobile { display: none; } }
@media (max-width: 699px) { .site-link { display: none; } .auth-top .badge { display: none; } }
.site-link { font-size: .9rem; text-decoration: none; color: #c6cde4 !important; padding: .4rem .7rem; border-radius: 8px; transition: color .15s, background-color .15s; }
.site-link:hover { color: #fff !important; background: rgba(255, 255, 255, .08); }
.site-foot { margin-top: auto; background: var(--ink); color: var(--mute-d); padding: 1.2rem max(1rem, calc((100% - 70rem) / 2)) 1.4rem; font-size: .9rem; display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.site-foot a { color: var(--sky2); }
.site-foot a:hover { color: #fff; }
.auth .site-foot :focus-visible { outline-color: var(--sky2); }
/* phones: footer links (Privacy / Terms / Refunds) are 44px-tall tap targets; footer padding trimmed so it stays light */
@media (max-width: 640px) {
  .site-foot { padding-top: .6rem; padding-bottom: .6rem; row-gap: 0; }
  .site-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .55rem; }
  .site-foot .legal-links { gap: 0 .2rem; }
}
main#main { width: 100%; max-width: 31rem; margin: 0 auto; padding: 1.4rem 1rem 3rem; }
body[data-page=checkout] main#main { max-width: 62rem; }
body[data-page=plans] main#main { max-width: 74rem; }

/* ---------- card ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 1.5rem 1.25rem 1.4rem; box-shadow: 0 30px 50px -40px rgba(11, 15, 30, .45); }
.card--auth { margin-top: .3rem; }
/* the white logo sits on a blue tile (white logo only ever appears on ink or blue).
   logo-full.png carries a tagline line along its bottom edge that is far too small to read at tile size, so the tile shows the top of the
   file only (symbol + ALL Ai wordmark, cropped by object-fit, never stretched). The tagline stays in the alt text. */
.auth-logo { display: block; margin: 0 0 1.1rem; box-sizing: content-box; width: 88px; height: auto; aspect-ratio: 480 / 352; padding: 16px; object-fit: cover; object-position: 50% 0; background: var(--blue); border-radius: 16px; }
.card h1 { font-size: clamp(2.3rem, 9vw, 3.1rem); margin-bottom: .4rem; }
.lead { color: var(--mute); margin-bottom: 1.2rem !important; font-size: 1.05rem; line-height: 1.5; }

/* ---------- form fields ---------- */
.field { display: block; margin: 0 0 1rem; position: relative; }
.field > label, label.field { display: block; margin: 0 0 .35rem; font-weight: 700; font-size: .92rem; color: var(--ink); }
.field__wrap { position: relative; }
.auth input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { display: block; width: 100%; min-height: 52px; padding: .8rem 1rem; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--rule2); border-radius: 10px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.auth input::placeholder, .auth textarea::placeholder { color: #7a8099; }
.auth input:not([type=checkbox]):not([type=radio]):hover { border-color: var(--ink); }
.auth input:not([type=checkbox]):not([type=radio]):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 255, .22); }
.auth input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 40px #fff inset; caret-color: var(--ink); }
.field--pw input { padding-right: 3.4rem !important; }
.auth button.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; min-height: 42px; height: 42px; padding: 0; margin: 0; background: transparent; border: 0; box-shadow: none; color: var(--mute); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.auth button.pw-toggle:hover { color: var(--ink); background: rgba(11, 15, 30, .06); }
.pw-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .i-off { display: none; } .pw-toggle[aria-pressed=true] .i-on { display: none; } .pw-toggle[aria-pressed=true] .i-off { display: block; }
.hint { font-size: .84rem; color: var(--faint); margin: .35rem 0 0 !important; display: flex; align-items: center; gap: .4rem; transition: color .25s; }
.hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .25s; flex: none; }
.hint.ok { color: var(--blue2); } .hint.ok::before { background: var(--blue); border-color: var(--blue); }

/* ---------- notices: soft red for errors, pale blue for ok/info ---------- */
.flash { position: relative; padding: .8rem 1rem .8rem 2.6rem; margin: 0 0 1rem; border-radius: 12px; border: 1px solid var(--sky2); background: var(--sky); color: var(--ink); font-size: .95rem; }
.flash::before { content: ""; position: absolute; left: .95rem; top: 1.15rem; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.flash.err { background: var(--red-bg); border-color: var(--red-line); color: #5c140e; }
.flash.err::before { background: var(--red); }
.test-banner { position: relative; z-index: 60; margin: 0; padding: .55rem 1rem; text-align: center; font-size: .88rem; color: var(--sky); background: var(--ink2); }
.test-banner strong { color: #fff; letter-spacing: .02em; }
.badge { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 999px; color: var(--blue2); background: var(--sky); border: 1px solid var(--sky2); font-weight: 500; vertical-align: middle; }
.badge:empty { display: none; }
.test-chip { display: flex; align-items: flex-start; gap: .7rem; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; border: 1px dashed var(--blue); background: var(--sky); color: var(--ink); font-size: .93rem; }
.test-chip svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--blue2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.test-chip strong { color: var(--ink); display: block; }

/* ---------- social buttons + divider ---------- */
.or { display: flex; align-items: center; gap: .9rem; margin: 1.2rem 0 1rem; color: var(--faint); font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.providers { display: grid; gap: .65rem; margin: 0; }
.auth .btn.provider { width: 100%; min-height: 50px; margin: 0; justify-content: flex-start; padding: .6rem 1.1rem; gap: .85rem; font-weight: 700; font-size: .98rem; background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.auth .btn.provider svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.auth .btn.provider .provider__label { flex: 1; text-align: center; padding-right: 22px; }
.auth .btn.provider:has(small) .provider__label { padding-right: 0; }
.auth .btn.provider small { opacity: .8; font-weight: 500; }
.auth .btn.provider.disabled { opacity: .55; border-style: dashed; cursor: not-allowed; }
.alt { text-align: center; margin: 1.2rem 0 0 !important; color: var(--mute); font-size: .95rem; }
.alt a { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.1rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--ink); border: 1px solid var(--sky2); background: var(--sky); text-transform: none; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: var(--blue2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chip b { text-transform: capitalize; color: var(--ink); }
.form-gap { height: .2rem; }
.sep-title { text-align: center; font-size: 1rem !important; color: var(--mute) !important; font-family: var(--font) !important; font-weight: 700 !important; letter-spacing: 0 !important; margin: 1.1rem 0 .8rem !important; }
.notfound__links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }

/* ---------- checkout ---------- */
.page-head { margin: .6rem 0 1.4rem; }
.page-head h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); margin: 0 0 .5rem; }
.page-head p { color: var(--mute); margin: 0; max-width: 46ch; }
.co-grid { display: grid; gap: 1rem; align-items: start; }
.order { padding: 1.4rem 1.3rem; }
.eyebrow { font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue2); margin: 0 0 .8rem !important; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.order h2 { font-size: 2.1rem; margin: 0; }
.order .blurb { color: var(--mute); margin: .35rem 0 1rem; font-size: .95rem; }
.order__price { display: flex; align-items: baseline; gap: .6rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.order__amt { font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 4.6rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.order__per { font: 500 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.order dl { margin: 0; display: grid; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--rule); font-size: .95rem; }
.order dl div { display: flex; justify-content: space-between; gap: 1rem; } .order dt { color: var(--mute); } .order dd { margin: 0; font-weight: 700; color: var(--ink); }
.summary { margin: 1rem 0 0 !important; font-size: .86rem; color: var(--faint); }
.pay { padding: 1.4rem 1.2rem 1.3rem; }
.pay .methods, .methods { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; display: grid; gap: .7rem; }
.methods legend { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); padding: 0; margin: 0 0 .7rem; }
.method { position: relative; display: grid; grid-template-columns: 26px 46px 1fr; align-items: center; gap: .85rem; min-height: 84px; margin: 0; padding: .9rem 1rem; cursor: pointer; background: var(--card); border: 1.5px solid var(--rule); border-radius: 14px; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.method input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; display: grid; place-content: center; border: 2px solid var(--rule2); border-radius: 50%; background: var(--card); cursor: pointer; transition: border-color .2s, background-color .2s; }
.method input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s var(--ease); }
.method input:checked { border-color: var(--blue); background: var(--blue); } .method input:checked::after { transform: scale(1); }
.method__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue2); transition: background-color .2s, color .2s; }
.method__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.method__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; row-gap: .15rem; align-items: center; min-width: 0; }
.method__top { overflow-wrap: break-word; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; min-width: 0; }
.method__name { font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.2; }
.method__price { font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--ink); text-align: right; }
.method__hint { grid-column: 1 / -1; font-size: .88rem; line-height: 1.4; color: var(--mute); }
.method--selected, .method:has(input:checked) { border-color: var(--blue); background: #f3f6ff; box-shadow: inset 0 0 0 1px var(--blue); }
.method--selected .method__icon, .method:has(input:checked) .method__icon { background: var(--blue); color: #fff; }
.method:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) { .method:hover { border-color: var(--blue); transform: translateY(-2px); } }
.method-fields { margin: 0 0 1rem; padding: 1rem; border: 1px dashed var(--rule2); border-radius: 12px; background: var(--paper); }
.method-fields .field { margin: 0 0 .4rem; } .method-fields p { margin: 0; font-size: .86rem; }
.secure { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .8rem 0 0 !important; font-size: .86rem; color: var(--faint); }
.secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- plans ---------- */
.plans { display: grid; gap: 1.1rem; margin: 1.6rem 0 1.4rem; }
.plan, .plan-biz { position: relative; display: flex; flex-direction: column; margin: 0; padding: 1.5rem 1.35rem 1.4rem; color: var(--ink); cursor: pointer; background: var(--card); border: 1.5px solid var(--rule); border-radius: 18px; transition: transform .3s var(--ease), border-color .2s, background-color .2s; }
.plan input { appearance: none; -webkit-appearance: none; position: absolute; right: 1.1rem; top: 1.35rem; width: 26px; height: 26px; margin: 0; display: grid; place-content: center; border: 2px solid var(--rule2); border-radius: 50%; background: var(--card); cursor: pointer; transition: border-color .2s, background-color .2s; }
.plan input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s var(--ease); }
.plan input:checked { border-color: #fff; background: var(--blue); } .plan input:checked::after { transform: scale(1); }
.plan__body { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.plan__name, .plan-biz h3 { font-family: var(--serif); font-size: 2.1rem; line-height: 1; color: var(--ink); padding-right: 2.4rem; margin: 0; }
.plan__price { margin-top: 1rem; display: flex; flex-direction: column; gap: 4px; }
.plan__amt { font-family: var(--serif); font-size: clamp(3.8rem, 10vw, 4.6rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.plan__per { font: 500 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.plan__blurb { margin-top: .9rem; font-size: .98rem; line-height: 1.45; }
.plan__cta { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.3rem; min-height: var(--btn-h-lg, 52px); border-radius: 8px; font-weight: 700; font-size: 1.0625rem; color: var(--ink); border: 1.5px solid var(--ink); background: transparent; transition: background .2s, border-color .2s, color .2s; }
.plan__cta::after { content: "\2192"; display: inline-block; transition: transform .3s var(--ease); }
.plan__cta::before { content: "Choose"; } .plan--selected .plan__cta::before { content: "Selected"; }
.plan--selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan--selected .plan__name, .plan--selected .plan__amt { color: #fff; } .plan--selected .plan__per, .plan--selected .plan__blurb { color: var(--mute-d); }
.plan--selected .plan__cta { color: #fff; background: var(--blue); border-color: var(--blue); }
.plan--selected input { border-color: #fff; }
.plan:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.plan__pick { display: none; }
@media (hover: hover) {
  .plan:hover { border-color: var(--blue); transform: translateY(-4px); }
  .plan--selected:hover { border-color: var(--ink); }
  .plan:hover .plan__cta { background: var(--blue); border-color: var(--blue); color: #fff; }
  .plan:hover .plan__cta::after { transform: translateX(6px); }
}
/* fourth tier */
.plan-biz { cursor: default; background: var(--sky); border-style: dashed; border-color: var(--blue); }
.plan-biz .plan__tag { font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: .4rem 0 .6rem; }
.plan-biz .plan__desc { color: var(--ink2); font-size: .96rem; line-height: 1.5; flex: 1; }
.plan-biz .plan__big { font-family: var(--serif); font-size: 2rem; line-height: 1.05; color: var(--ink); margin: .5rem 0 .7rem; }
.plan-biz .btn { width: 100%; margin-top: 1.1rem; }
.plan-biz .btn--secondary { background: transparent; }
.continue { max-width: 26rem; margin: 0 auto; }
.plans-foot { text-align: center; color: var(--mute); }
.plans-foot h2 { font-size: 1.9rem; margin: 1.6rem 0 .3rem; }
.plans-foot .providers { max-width: 26rem; margin: .9rem auto 0; text-align: left; }
.price-note { text-align: center; font-size: .86rem; color: var(--faint); margin-top: 1rem !important; }

/* ---------- admin impersonation banner (injected by the server on every HTML page) ---------- */
.impersonation-banner { position: sticky; top: 0; z-index: 1000; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .6rem 1rem; background: #8f1d14; color: #fff; font-weight: 700; }
.impersonation-banner form { margin: 0; display: inline; }
.auth button.impersonation-banner__exit { background: #fff; color: #8f1d14; border: 1.5px solid #fff; min-height: 36px; padding: .25rem .9rem; width: auto; font-size: .95rem; border-radius: 8px; font-weight: 700; cursor: pointer; }
.impersonation-banner__timer { margin-left: auto; font-weight: 400; opacity: .9; }

/* ---------- layout breakpoints ---------- */
@media (min-width: 600px) { .card { padding: 2rem 2rem 1.7rem; } main#main { padding-top: 2rem; } }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .plans { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .co-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.4rem; }
  .order { position: sticky; top: 92px; padding: 1.7rem 1.6rem; }
  .pay { padding: 1.7rem 1.6rem 1.5rem; }
}
@media (max-width: 440px) { .method { gap: .7rem; padding: .85rem; } .method__name { font-size: .96rem; } .method__price { font-size: 1.45rem; } .pay { padding: 1.2rem .95rem 1.15rem; } }
@media (max-width: 380px) { .method { grid-template-columns: 24px 40px 1fr; gap: .65rem; padding: .8rem; } .method__icon { width: 40px; height: 40px; } }

/* ---------- motion: one gentle reveal, all of it off for prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .card--auth, .order, .pay, .page-head, .plans > *, .audit-head, .thanks { animation: rise .7s var(--ease) both; }
  .pay { animation-delay: .1s; }
  .plans > :nth-child(2) { animation-delay: .07s; } .plans > :nth-child(3) { animation-delay: .14s; } .plans > :nth-child(4) { animation-delay: .21s; }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .method, .plan, .plan-biz, .brand__logo, .plan__cta::after { transition: none !important; }
}
.cap { text-transform: capitalize; }

/* form submit buttons in cards are full width */
.auth form .btn--primary[type=submit], .auth .continue .btn { width: 100%; }
/* link-coloured buttons inside .auth: `.auth a` (0,1,1) would beat .btn--* (0,1,0). These (0,2,1) rules put the button text colours back. */
.auth a.btn--primary, .auth a.btn--violet { color: #fff; text-decoration: none; }
.auth a.btn--secondary, .auth a.btn--silver, .auth a.btn--ghost { color: var(--ink); text-decoration: none; }
.auth a.btn--inverse { color: var(--navy); text-decoration: none; }
.auth a.btn--danger { color: var(--red); text-decoration: none; }
.auth a.btn:not(.provider):hover { text-decoration: none; }
.auth a.btn--primary:hover, .auth a.btn--violet:hover, .auth a.btn--secondary:hover, .auth a.btn--silver:hover, .auth a.btn--ghost:hover { color: #fff; }
.auth a.btn--inverse:hover { color: var(--navy); }
.auth a.btn--danger:hover { color: #fff; }
.auth a.btn:not([class*="btn--"]):not(.provider) { color: var(--ink); }
.auth a.plan__cta { color: inherit; }

/* QA 4: 44px tap targets on the sign-in / plans / checkout header and links (phone and desktop). */
a.brand { min-height: 44px; min-width: 44px; }
.auth-top nav a, .site-link { display: inline-flex; align-items: center; min-height: 44px; }
.alt.back-mobile a, .alt a.back-link, .back-mobile a { display: inline-flex; align-items: center; min-height: 44px; }
.auth button.pw-toggle { width: 44px; min-height: 44px; height: 44px; }
.alt.continue__note a { display: inline-block; padding: .7rem .25rem; margin: -.7rem -.25rem; }
