/* ConForm — the door and the account page. Its own stylesheet; nothing borrowed. */
:root {
  --bg: #f4f7f7; --surface: #fff; --surface-2: #fafafa; --text: #242424; --muted: #616161;
  --line: #e1e1e1; --accent: #007b77; --accent-pressed: #00625f; --danger: #c4314b;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
button, input, select { font: inherit; }
.hidden, [hidden] { display: none !important; }

.door { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.card { width: min(448px, 100%); min-height: 410px; padding: 48px 44px 42px; border: 1px solid #dce5e4; border-radius: 24px; background: var(--surface); box-shadow: 0 24px 70px rgb(39 39 42 / 9%); }
.card.wide { width: min(980px, 100%); min-height: 0; padding: 32px 36px 36px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 56px; margin-bottom: 20px; }
.brand-crop { display: block; width: 62px; height: 56px; overflow: hidden; flex: 0 0 62px; }
.brand-crop img { display: block; width: auto; max-width: none; height: 56px; }
.wordmark { display: inline-flex; align-items: baseline; color: #34343b; font-size: 26px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.wordmark b { font: inherit; }
.wordmark b:last-child { color: #007b77; }
.card h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.035em; line-height: 1.18; text-wrap: balance; }
.card h2 { margin: 24px 0 8px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.copy { max-width: 330px; margin: 0 0 14px; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
.error { display: block; margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); font-size: 13px; }
.notice { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 13px; }

label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
input[type=text], input[type=number], input[type=email], select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); white-space: nowrap; cursor: pointer; }
.button:hover { background: var(--surface-2); }
.button:disabled { opacity: .55; cursor: wait; }
.button.primary { width: 100%; margin-top: 12px; color: #fff; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.button.primary:hover { background: var(--accent-pressed); }
.button.small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.button.link { border: 0; background: none; color: var(--muted); text-decoration: underline; min-height: 32px; margin-top: 10px; width: 100%; }
.microsoft { display: grid; grid-template-columns: 21px minmax(0, 1fr) 21px; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 12px; padding: 0 14px; border: 1px solid #8c8c8c; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 18%); color: #1f1f1f; font-size: 15px; font-weight: 600; cursor: pointer; }
.microsoft svg { width: 21px; height: 21px; }

.choices { display: grid; gap: 10px; margin-top: 8px; }
.choices .button { width: 100%; justify-content: flex-start; text-align: left; min-height: 52px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: rgba(127, 127, 127, .18); font-size: 11px; }

/* Account page */
.account-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.account-nav a { color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(127, 127, 127, .25); vertical-align: top; }
tr.review td { background: rgba(255, 193, 7, .12); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.row input, .row select { flex: 1 1 200px; width: auto; min-height: 36px; }
.row .button { min-height: 36px; }
.policy label { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--text); }
.policy input[type=number] { width: 90px; min-height: 32px; display: inline-block; margin: 0 6px; }
ul.list { padding-left: 1.2em; font-size: 13px; }
ul.list li { margin-bottom: 4px; }
