/* WEB-FND-011: readable contrast in light and dark, visible focus, no motion by default, works at 320 px and 200% text. */
:root {
  --bg: #ffffff; --fg: #10202e; --muted: #44566a; --accent: #0a5fb4; --accent-fg: #ffffff;
  --surface: #f2f6fa; --border: #b8c6d4; --danger: #a4161a; --danger-fg: #ffffff; --ok: #1f6f3f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1620; --fg: #e8eef4; --muted: #b3c2d1; --accent: #6cb6ff; --accent-fg: #06121e; --surface: #16222e; --border: #3a4c5e; --danger: #ff8a8a; --danger-fg: #1a0405; --ok: #7fd6a0; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 1rem; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-header, .site-footer, main { padding: 1rem; max-width: 72rem; margin: 0 auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--fg); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0; align-items: center; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); margin-top: 3rem; }
.narrow { max-width: 32rem; }
.hero { text-align: center; padding: 2rem 0; }
.lead { font-size: 1.2rem; color: var(--muted); }
.button { display: inline-block; min-height: 44px; padding: .65rem 1.2rem; border-radius: .4rem; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-fg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.button.secondary { background: transparent; color: var(--accent); }
.button.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-fg); }
.button.small { min-height: 36px; padding: .35rem .8rem; }
.link-button { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin-top: 1rem; }
input[type=email], input[type=password], input:not([type]), input[type=text], select { width: 100%; min-height: 44px; padding: .5rem;
  border: 2px solid var(--border); border-radius: .3rem; background: var(--bg); color: var(--fg); font: inherit; }
.check { display: flex; gap: .5rem; align-items: flex-start; margin-top: 1rem; }
.check label { font-weight: normal; margin: 0; }
.check input { width: 1.4rem; height: 1.4rem; }
form .button { margin-top: 1rem; }
.checkout-options { max-width: 32rem; margin-bottom: 1.5rem; }
.choices { display: flex; flex-wrap: wrap; gap: 1rem; }
.hint { color: var(--muted); font-size: .95rem; margin: .25rem 0; }
.field-error { color: var(--danger); display: block; font-weight: 600; }
.field-error:empty { display: none; }
.field-error::before, .notice.error::before { content: "Error: "; }
.field-error:empty::before { content: none; }
.notice { border: 2px solid var(--ok); background: var(--surface); padding: .75rem 1rem; border-radius: .4rem; margin: 1rem 0; }
.notice.error { border-color: var(--danger); }
.plans, .releases { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.plan, .release, .confirm { border: 2px solid var(--border); border-radius: .5rem; padding: 1rem; background: var(--surface); }
.release.recommended { border-color: var(--accent); }
.price .amount { font-size: 2rem; font-weight: 700; }
dl { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .25rem 1rem; }
dt { font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; border: 2px solid var(--accent); border-radius: 1rem; padding: 0 .6rem; margin-left: .5rem; font-size: .85rem; }
.hash { font-size: .8rem; word-break: break-all; }
.platforms a[aria-current="true"], .account-nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
@media (max-width: 40rem) { dl { grid-template-columns: 1fr; } table, thead, tbody, tr, td, th { display: block; } thead { position: absolute; left: -9999px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .button { border: 2px solid ButtonText; } }
