/* Preamble · Greenhouse components. Plain CSS, no framework. Load after tokens.css.
   Every color, space, radius and shadow is a token; classes start with pa-. */

body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
:where(a) { color: var(--link); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.pa-icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Button ─────────────────────────────────────────── */
.pa-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; min-height: var(--target-min); height: 56px; padding: 0 30px; border: 2px solid transparent; border-radius: var(--radius-pill); background: none; font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pa-btn .pa-icon { width: 18px; height: 18px; stroke-width: 2; }
.pa-btn--primary { background: var(--primary); color: var(--on-primary); }
.pa-btn--primary:hover { background: var(--primary-hover); }
.pa-btn--secondary { border-color: var(--primary); color: var(--text); }
.pa-btn--secondary:hover { background: var(--tint); }
.pa-btn--ink { height: 48px; padding: 0 22px; font-size: 16px; background: var(--invert); color: var(--on-invert); }
.pa-btn--quiet { height: 52px; padding: 0 20px; font-size: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.pa-btn--quiet:hover { border-color: var(--line-strong); }
.pa-btn--danger { height: var(--target-min); padding: 0 16px; font-size: 15px; border: 1px solid var(--danger-line); background: var(--surface); color: var(--danger); }
.pa-btn--small { height: var(--target-min); padding: 0 18px; font-size: 15px; }
.pa-btn--block { display: flex; width: 100%; }
.pa-status-pill { display: inline-flex; width: fit-content; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; height: 56px; padding: 0 30px; border-radius: var(--radius-pill); background: var(--track); color: var(--text-2); font-size: 17px; font-weight: 700; }
.pa-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target-min); color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.pa-link .pa-icon { width: 16px; height: 16px; stroke-width: 2; }

/* ── Segmented: audience tabs, size tabs, view toggle, theme switch ── */
.pa-seg { display: inline-flex; width: fit-content; max-width: 100%; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-pill); background: var(--track); }
.pa-seg--fill { display: grid; width: auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.pa-seg__opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; min-height: var(--target-min); padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-2); font-family: var(--font-body); font-size: 15px; font-weight: 400; white-space: nowrap; cursor: pointer; }
.pa-seg__opt:hover { color: var(--text); }
.pa-seg__opt .pa-icon { width: 16px; height: 16px; }
.pa-seg__opt[aria-selected="true"], .pa-seg__opt[aria-checked="true"], .pa-seg__opt[aria-pressed="true"] { background: var(--raised); color: var(--text); font-weight: 700; box-shadow: var(--shadow-seg); }
.pa-seg__opt[aria-selected="true"] .pa-icon--check { color: var(--primary); stroke-width: 2.6; }
.pa-seg--ink .pa-seg__opt[aria-pressed="true"], .pa-seg--ink .pa-seg__opt[aria-checked="true"] { background: var(--invert); color: var(--on-invert); box-shadow: none; }
.pa-seg__badge { padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: 12px; font-weight: 700; }

/* ── Text field ─────────────────────────────────────── */
.pa-field { display: flex; flex-direction: column; gap: 6px; }
.pa-field__label { font-size: 15px; font-weight: 700; color: var(--text); }
.pa-input { box-sizing: border-box; width: 100%; height: 54px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-field); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 17px; }
.pa-input::placeholder { color: var(--text-3); opacity: 1; }
.pa-input:focus, .pa-input:focus-visible { border: 2px solid var(--primary); outline: 3px solid var(--tint); outline-offset: 0; }
.pa-input[aria-invalid="true"] { border: 2px solid var(--danger); }
.pa-field__hint { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.pa-field__error { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--danger); }
.pa-field__error .pa-icon { width: 15px; height: 15px; stroke-width: 2; }
.pa-inline-form { display: flex; gap: var(--space-2); }
.pa-inline-form .pa-input { flex: 1 1 auto; }

/* ── Checkbox and switch ────────────────────────────── */
.pa-check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--target-min); font-size: 16px; line-height: 1.4; cursor: pointer; }
.pa-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.pa-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: var(--target-min); font-size: 16px; cursor: pointer; }
.pa-switch input { position: absolute; left: 0; top: 50%; width: 56px; height: 32px; margin: -16px 0 0; opacity: 0; cursor: pointer; }
.pa-switch__track { position: relative; flex: none; box-sizing: border-box; width: 56px; height: 32px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--track); }
.pa-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 23px; height: 23px; border-radius: 50%; background: var(--line-strong); transition: transform 0.15s ease; }
.pa-switch input:checked + .pa-switch__track { border-color: var(--primary); background: var(--primary); }
.pa-switch input:checked + .pa-switch__track::after { transform: translateX(24px); background: var(--on-primary); }
.pa-switch input:focus-visible + .pa-switch__track { outline: 3px solid var(--focus); outline-offset: 3px; }
.pa-switch input:checked ~ .pa-switch__off, .pa-switch input:not(:checked) ~ .pa-switch__on { display: none; }
.pa-switch__on, .pa-switch__off { font-weight: 700; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .pa-switch__track::after { transition: none; } }

/* ── Choice card: one answer (radio) or several (checkbox) ── */
.pa-choice { display: flex; align-items: flex-start; gap: 12px; box-sizing: border-box; min-height: 56px; padding: 14px 16px; border: 2px solid transparent; border-radius: var(--radius-choice); background: var(--surface); color: var(--text); font-size: 17px; line-height: 1.35; cursor: pointer; }
.pa-choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); }
.pa-choice input:focus-visible { outline: none; }
.pa-choice:has(input:checked) { border-color: var(--primary); }
.pa-choice:has(input:checked) .pa-choice__label { font-weight: 700; }
.pa-choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.pa-choice__text { display: flex; flex-direction: column; gap: 2px; }
.pa-choice__title { font-size: 16px; font-weight: 700; }
.pa-choice__desc { font-size: 14px; line-height: 1.4; color: var(--text-2); }
.pa-choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--space-2); }

/* ── Chip and badge ─────────────────────────────────── */
.pa-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--tint); color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.2; }
.pa-chip .pa-icon { width: 14px; height: 14px; stroke-width: 2.6; color: var(--tint-ink); }
.pa-chip--outline { padding: 6px 12px; border: 1px solid var(--line); background: transparent; font-size: 14px; }
.pa-chip--strong { padding: 6px 12px; font-size: 14px; font-weight: 700; }
.pa-badge { display: inline-flex; width: fit-content; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-icon); background: var(--warm-bg); color: var(--warm); font-size: 14px; font-weight: 700; line-height: 1.2; }
.pa-badge .pa-icon { width: 14px; height: 14px; stroke-width: 2; }

/* ── Tier card and the nested size box ──────────────── */
.pa-tier { display: flex; flex-direction: column; gap: 14px; padding: var(--space-6); border-radius: var(--radius-tier); background: var(--surface); box-shadow: var(--shadow-2); color: var(--text); }
.pa-tier__head { display: flex; align-items: center; gap: 14px; }
.pa-tier__name { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.pa-tier__sizes { font-size: 14px; color: var(--text-2); }
.pa-tier__price { display: flex; align-items: baseline; gap: 6px; }
.pa-tier__amount { font-family: var(--font-display); font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.pa-tier__per { font-size: 16px; font-weight: 700; color: var(--text-2); }
.pa-tier__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.pa-tier__list li { display: flex; gap: 10px; }
.pa-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); }
.pa-tick .pa-icon { width: 13px; height: 13px; stroke-width: 3; }
.pa-sizebox { flex: none; width: 52px; height: 52px; }
.pa-sizebox .l { fill: var(--size-l); }
.pa-sizebox .m { fill: var(--size-m); }
.pa-sizebox .s { fill: var(--size-s); }
.pa-sizebox .off { fill: none; stroke-width: 2; stroke-dasharray: 4 4; }
.pa-sizebox .l.off { stroke: var(--size-l); }
.pa-sizebox .m.off { stroke: var(--size-m); }
.pa-sizekey { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-2); }
.pa-sizekey li { display: flex; align-items: center; gap: 8px; }
.pa-sizekey b { color: var(--text); }
.pa-sizekey__swatch { flex: none; width: 16px; height: 16px; border-radius: 5px; }
.pa-sizekey__swatch.s { background: var(--size-s); }
.pa-sizekey__swatch.m { background: var(--size-m); }
.pa-sizekey__swatch.l { background: var(--size-l); }

/* ── Definition note, callout, deep card ────────────── */
.pa-note { margin: 0; display: flex; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--surface); color: var(--text-2); font-size: 15px; line-height: 1.45; }
.pa-note .pa-icon { margin-top: 1px; color: var(--primary); }
.pa-note dfn, .pa-note b { color: var(--text); font-style: normal; font-weight: 700; }
.pa-callout { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: 320px; padding: 16px 18px; border-radius: 6px 24px 24px 24px; background: var(--surface); box-shadow: var(--shadow-float); color: var(--text); }
.pa-callout__label { font-size: 13px; font-weight: 700; color: var(--text-3); }
.pa-callout__quote { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.2; }
.pa-callout__cap { font-size: 13px; color: var(--text-3); }
.pa-deep { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border-radius: var(--radius-card); background: var(--deep); color: var(--on-deep); }
.pa-deep__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.pa-deep p, .pa-deep li { margin: 0; color: var(--on-deep-2); font-size: 15px; line-height: 1.45; }
.pa-deep ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.pa-deep a { color: var(--on-deep); }

/* ── Tile (account) ─────────────────────────────────── */
.pa-tile { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-1); color: var(--text); }
a.pa-tile { text-decoration: none; }
a.pa-tile:hover { box-shadow: var(--shadow-2); }
.pa-tile__head { display: flex; align-items: center; gap: 12px; }
.pa-tile__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-icon); background: var(--tint); color: var(--tint-ink); }
.pa-tile__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.15; }
.pa-tile__meta { font-size: 14px; line-height: 1.4; color: var(--text-2); }

/* ── Fits meter ─────────────────────────────────────── */
.pa-meter { display: flex; flex-direction: column; gap: 8px; }
.pa-meter__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pa-meter__label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.pa-meter__label .pa-icon { width: 16px; height: 16px; stroke-width: 2.6; color: var(--primary); }
.pa-meter__count { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pa-meter__bar { position: relative; height: 8px; border-radius: var(--radius-pill); background: var(--line); }
.pa-meter__fill { display: block; width: 0; max-width: 100%; height: 100%; border-radius: var(--radius-pill); background: var(--primary); }
.pa-meter__mark { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.pa-meter__note { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.pa-meter--over .pa-meter__fill { background: var(--danger); }
.pa-meter--over .pa-meter__count, .pa-meter--over .pa-meter__label .pa-icon { color: var(--danger); }
.pa-meter--over .pa-meter__label .pa-icon { stroke-width: 2; }

/* ── Steps (progress) ───────────────────────────────── */
.pa-steps { display: flex; align-items: center; gap: 12px; }
.pa-steps__bars { display: flex; gap: 5px; }
.pa-steps__bar { width: 26px; height: 8px; border-radius: var(--radius-pill); background: var(--line); }
.pa-steps__bar--done { background: var(--primary); }
.pa-steps__label { font-size: 15px; font-weight: 700; }
.pa-steps--ten .pa-steps__bar { width: 18px; }

/* ── Status banner and Copied toast ─────────────────── */
.pa-banner { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--radius-small); background: var(--deep); color: var(--on-deep); font-size: 16px; line-height: 1.4; }
.pa-banner__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--on-deep-2); color: var(--deep); }
.pa-banner__icon .pa-icon { width: 15px; height: 15px; stroke-width: 2.6; }
.pa-banner small { display: block; font-size: 14px; color: var(--on-deep-2); }
.pa-toast { margin: 0; display: inline-flex; width: fit-content; max-width: 100%; box-sizing: border-box; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); box-shadow: var(--shadow-float); font-size: 15px; }
.pa-toast .pa-icon { width: 16px; height: 16px; stroke-width: 2.6; color: var(--primary); }

/* ── Nav capsule and phone dock ─────────────────────── */
.pa-nav { display: flex; align-items: center; justify-content: space-between; box-sizing: border-box; width: min(var(--nav-width), 100% - 24px); height: var(--nav-height); padding: 0 10px 0 26px; border: 1px solid var(--glass-line); border-radius: var(--radius-pill); background: var(--glass); box-shadow: var(--shadow-1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pa-nav__brand { display: inline-flex; align-items: center; min-height: var(--target-min); font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.pa-nav__links { display: flex; align-items: center; gap: 6px; }
.pa-nav__link { display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 14px; border-radius: var(--radius-pill); color: var(--text); font-size: 16px; text-decoration: none; }
.pa-nav__link:hover { background: var(--tint); }
.pa-nav__link[aria-current="page"] { background: var(--tint); font-weight: 700; }
.pa-nav .pa-btn--ink { height: var(--target-min); }
.pa-nav--phone { width: 100%; height: var(--phone-header); padding: 0 6px 0 18px; }
.pa-nav--phone .pa-nav__brand { font-size: 21px; }
.pa-nav--phone .pa-nav__link { padding: 0 12px; }
.pa-dock { display: flex; align-items: center; gap: 8px; box-sizing: border-box; height: var(--dock-height); padding: 8px; border: 1px solid var(--glass-line); border-radius: var(--radius-pill); background: var(--glass); box-shadow: var(--shadow-float); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pa-dock--fixed { position: fixed; left: 12px; right: 12px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 10; }
.pa-dock__main { flex: 1 1 auto; height: 58px; padding: 0 16px; }
.pa-dock__help { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 54px; height: 60px; border-radius: var(--radius-pill); color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; }

/* ── Disclosure (Help page questions) ─────────────── */
.pa-disclosure { border: 2px solid transparent; border-radius: var(--radius-card); background: var(--surface); }
.pa-disclosure:has([aria-expanded="true"]) { border-color: var(--primary); }
.pa-disclosure__heading { margin: 0; }
.pa-disclosure__button { display: flex; align-items: center; justify-content: space-between; gap: 14px; box-sizing: border-box; width: 100%; min-height: 64px; padding: 0 22px; border: 0; border-radius: var(--radius-card); background: transparent; color: var(--text); font-family: var(--font-body); font-size: 19px; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer; }
.pa-disclosure__sign { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--text); }
.pa-disclosure__sign .pa-icon { width: 16px; height: 16px; stroke-width: 2.2; }
[aria-expanded="true"] .pa-disclosure__sign { background: var(--primary); color: var(--on-primary); }
[aria-expanded="false"] .pa-icon--minus, [aria-expanded="true"] .pa-icon--plus { display: none; }
.pa-disclosure__panel { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 20px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.pa-disclosure__panel[hidden] { display: none; }
.pa-disclosure__panel p { margin: 0; }

/* ── What AI reads ──────────────────────────────────── */
.pa-reads { margin: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: 14.5px; line-height: 1.6; }
.pa-reads__line { display: block; padding-left: 2ch; text-indent: -2ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.pa-reads__nl { color: var(--text-3); }
@media (max-width: 480px) { .pa-reads { padding: 12px; font-size: 13px; line-height: 1.55; } }
