/* OrigiX site. System fonts only, nothing loaded from other companies. */
:root {
  --bg: #FBFAF7;
  --bg-alt: #F3F1EC;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --muted: #5E5E63;
  --line: #E3E0D8;
  --accent: #C8121D;
  --accent-ink: #A50E18;
  --accent-soft: #FBE9E9;
  --dark: #141416;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --bg-alt: #19191C;
    --card: #1F1F23;
    --text: #F2F2F4;
    --muted: #A5A5AD;
    --line: #303036;
    --accent: #FF4A3D;
    --accent-ink: #FF6B60;
    --accent-soft: #33191A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container-md { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
.logo-text { font-weight: 700; letter-spacing: -.01em; }
.logo-text .x { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.main-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.lang-switch { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.lang-switch a, .lang-switch span { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.lang-switch .lang-cur { color: var(--text); border-color: var(--text); }
.header-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero img.hero-icon { width: 128px; height: 128px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.08; letter-spacing: -.025em; margin: 18px 0 14px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 720px; margin: 0 auto; }
.pill { display: inline-block; margin-top: 26px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.hero .meta { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; text-align: center; }
.section .sub { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .sym { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.card .sym svg { width: 22px; height: 22px; }
.levels { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 0; padding: 0; list-style: none; }
.levels li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.levels li b { color: var(--accent-ink); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.checklist li:last-child { border-bottom: 0; }
.note { font-size: 15px; color: var(--muted); }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.center { text-align: center; }

/* Text pages */
.page-hero { padding: 48px 0 22px; border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; font-size: 13px; letter-spacing: .08em; color: var(--accent-ink); font-weight: 600; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.02em; line-height: 1.12; margin: 8px 0 10px; }
.page-hero .lead { color: var(--muted); font-size: 19px; margin: 0; }
.updated { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.page-body { padding: 34px 0 64px; }
.layout.has-toc { display: grid; grid-template-columns: 230px 1fr; gap: 40px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0 0 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.prose { min-width: 0; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 38px 0 10px; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 26px 0 6px; scroll-margin-top: 80px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.summary-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 6px 20px; box-shadow: var(--shadow); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg-alt); font-size: 14px; }
.licence-text { font-size: 13px; color: var(--muted); background: var(--bg-alt); border-radius: 10px; padding: 12px 14px; }

/* Form */
.cform { display: grid; gap: 14px; max-width: 640px; }
.cform label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.cform input, .cform select, .cform textarea { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.cform textarea { min-height: 170px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cform .hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 2px; color: var(--muted); }
.cform-done { padding: 60px 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer .copy { margin: 6px 0 0; }

@media (max-width: 820px) {
  .layout.has-toc { grid-template-columns: 1fr; gap: 18px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
  .hero { padding-top: 48px; }
  .main-nav { order: 3; width: 100%; padding-bottom: 8px; }
}
.section h2.left { text-align: left; }
.mt { margin-top: 28px; }
