/* Subscription app: the subscribe page (1.1, S4). WorthForth look: Source Sans 3 body, Barlow Condensed headings
   (served by the Subscription service from its own /fonts, like WorthForth), 40px controls, 4px corners, WCAG 2.2 AA. */
:root {
    --bg: #f6f7f9; --surface: #ffffff; --text: #1d2430; --muted: #4f5a6a; --line: #c9d0da;
    --accent: #0b5cad; --accent-text: #ffffff; --error: #b3261e; --focus: #0b5cad;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #12161c; --surface: #1b2129; --text: #e8ecf1; --muted: #aab4c1; --line: #3a4452;
        --accent: #6aa9ec; --accent-text: #0b1220; --error: #ff8a80; --focus: #6aa9ec; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 "Source Sans 3", system-ui, sans-serif; }
h1, h2 { font-family: "Barlow Condensed", "Source Sans 3", system-ui, sans-serif; font-weight: 600; line-height: 1.2; }
.sub-header { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sub-brand { font: 600 22px/1 "Barlow Condensed", system-ui, sans-serif; color: var(--text); text-decoration: none; }
main { max-width: 1040px; margin: 0 auto; padding: 16px; }
.sub-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.sub-plan { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.sub-plan h2 { margin: 0; font-size: 22px; }
.sub-plan p { margin: 0; color: var(--muted); }
.sub-plan .sub-price { color: var(--text); font-weight: 500; }
.sub-plan .sub-features { margin: 4px 0 0; padding-left: 20px; color: var(--muted); }
.sub-price-country { max-width: 420px; margin-bottom: 16px; }
.sub-price-country select { min-height: 40px; width: 100%; }
.sub-plan button { margin-top: auto; }
.sub-form, .sub-code-form, #sub-done { max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-top: 16px; }
.sub-code-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.sub-code-form label { flex-basis: 100%; }
.sub-code-form input { flex: 1 1 200px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; }
fieldset.field { border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
legend { font-weight: 500; padding: 0 4px; }
.field.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field.check input { width: 24px; height: 24px; min-height: 24px; margin: 2px 0 0; }
small, .help { color: var(--muted); font-size: 14px; margin: 0; }
.sub-seats-hint { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
input, select { min-height: 40px; padding: 8px 10px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--muted); border-radius: 4px; }
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
button { min-height: 40px; padding: 8px 16px; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1.2; border-radius: 4px; cursor: pointer; }
button.primary { background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); }
button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
button.link { min-height: 40px; padding: 8px 0; background: none; border: 0; color: var(--accent); text-decoration: underline; }
button:disabled { opacity: .6; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.error { color: var(--error); font-weight: 500; }
@media (max-width: 480px) { .actions button { flex: 1 1 100%; } }
/* SUBSCRIBE-DONE-1 (owner 2026-11-11): the forms and the done panel use the page's full width; the done panel ends with
   links to sign in or subscribe another organization (links styled as the page's buttons). */
a.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; font-size: 16px; font-weight: 500; line-height: 1.2; border-radius: 4px; text-decoration: none; }
a.button.primary { background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); }
a.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.sub-next { padding-left: 1.4em; }
.sub-next li { margin: 4px 0; }
#sub-done .actions { margin-top: 16px; }
@media (max-width: 480px) { .actions a.button { flex: 1 1 100%; justify-content: center; } }
/* REGIONAL-PRICES-1b (F125-5): the invitation-code result shows under its own form, in view. */
.sub-code-status { flex-basis: 100%; margin: 0; }
.sub-code-status:empty { display: none; }
