/* JX2 New Era - policy & support site. Plain CSS, no external resources. */

:root {
  color-scheme: dark;
  --bg: #0c1412;
  --bg-2: #101b18;
  --panel: #14221e;
  --panel-2: #192b26;
  --line: #2a433c;
  --line-soft: #1f342e;
  --gold: #e2b65c;
  --gold-2: #f5d991;
  --gold-dim: #a07f40;
  --text: #ebe5d4;
  --muted: #a8b6ae;
  --teal: #62b6a3;
  --red: #dc5530;
  --ph-bg: #5c2810;
  --ph-fg: #ffdcae;
  --radius: 10px;
  --wrap: 1040px;
  --gutter: 16px;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 340px at 50% -60px, rgba(98, 182, 163, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-2) 0, var(--bg) 420px);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  overflow-wrap: break-word;
}

a { color: var(--gold-2); text-underline-offset: 2px; }
a:hover { color: #fff1c7; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: #1a1205; padding: 8px 12px; border-radius: 6px; font-weight: 600;
}
.skip:focus { left: 8px; z-index: 10; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line-soft); background: rgba(12, 20, 18, 0.72); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; padding-top: 14px; padding-bottom: 14px;
}

.logo {
  font: 700 1.5rem/1 var(--serif);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--gold-2);
  background: linear-gradient(180deg, #fff4d2 0%, var(--gold-2) 40%, #e79a33 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo .two {
  background: linear-gradient(180deg, #ff8a5c, var(--red) 70%);
  -webkit-background-clip: text; background-clip: text;
}
.logo:hover { filter: brightness(1.1); }

.nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.94rem;
  border: 1px solid transparent;
}
.nav a:hover { color: var(--text); border-color: var(--line); }
.nav a[aria-current="page"] { color: var(--gold-2); border-color: var(--gold-dim); background: rgba(226, 182, 92, 0.08); }
@media (max-width: 520px) {
  .nav { gap: 2px; margin-left: -9px; }
  .nav a { padding: 6px 9px; }
}

/* ---------- main ---------- */
main { flex: 1 0 auto; padding: 32px 0 56px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 0 0 8px; color: var(--gold-2); font-weight: 700; }
h2 { font-size: 1.4rem; margin: 2.2em 0 0.6em; color: var(--gold); scroll-margin-top: 16px; }
h3 { font-size: 1.1rem; margin: 1.6em 0 0.4em; color: var(--text); scroll-margin-top: 16px; }

.page-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.page-head .lede { margin: 6px 0 0; color: var(--muted); max-width: 46em; }
.meta { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }
.meta strong { color: var(--text); font-weight: 600; }
.nw { white-space: nowrap; }

.prose { max-width: 46em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--gold-dim); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.3em;
}
kbd { color: var(--gold-2); }

/* KT-like framed panel: dark teal plate, gold hairline, small corner marks */
.panel {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: inset 0 0 0 1px rgba(226, 182, 92, 0.06);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--gold-dim); border-style: solid;
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--radius); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel h2, .panel h3 { margin-top: 0; }
.panel.gold { border-color: var(--gold-dim); }
.panel.warn { border-color: #8a4a2a; background: linear-gradient(180deg, #2a1d16, #1f1712); }
.panel.warn::before, .panel.warn::after { border-color: #c8693a; }

/* numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 16px 0; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 12px 46px; margin: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 0.95rem/1 var(--serif); color: #1b1306;
  background: radial-gradient(circle at 35% 30%, #fff0c4, var(--gold) 60%, #b07c2c);
  box-shadow: 0 0 0 2px rgba(226, 182, 92, 0.25);
}
.steps > li::marker { content: none; }

/* tables */
.table-wrap { width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--gold); font-weight: 600; background: var(--panel-2); font-family: var(--serif); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--gold-2); width: 34%; }

/* legal document layout with table of contents */
.doc { display: block; }
.toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 24px; font-size: 0.93rem;
}
.toc-title { margin: 0 0 6px; font: 600 0.8rem/1.4 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold-2); text-decoration: underline; }

@media (min-width: 1000px) {
  .doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
  .toc { position: sticky; top: 16px; margin: 0; max-height: calc(100vh - 32px); overflow-y: auto; }
}

/* placeholders and draft-only assumption marks */
.ph {
  background: var(--ph-bg); color: var(--ph-fg); border: 1px dashed #ff9d55; border-radius: 4px;
  padding: 0 0.3em; font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; white-space: nowrap;
}
.assume {
  display: inline-block; margin-left: 2px; padding: 0 0.35em; border-radius: 3px;
  background: #23476a; color: #d4e8ff; font: 600 0.68rem/1.5 var(--sans); vertical-align: super; cursor: help;
}
.draft-banner {
  background: #23476a; color: #d4e8ff; text-align: center; font-size: 0.9rem; padding: 6px var(--gutter);
}

/* ---------- home ---------- */
.hero { text-align: center; padding: 28px 0 8px; }
.hero .logo { font-size: clamp(2.6rem, 11vw, 4.6rem); display: inline-block; padding-bottom: 0.08em; }
.hero .tagline { font: italic 400 clamp(1.05rem, 3.4vw, 1.3rem)/1.4 var(--serif); color: var(--teal); margin: 10px 0 0; }
.hero .intro { max-width: 40em; margin: 18px auto 0; color: var(--text); }
.hero .age { margin: 14px 0 0; color: var(--muted); font-size: 0.92rem; }
.age-badge {
  display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid #b4532f; color: #ffb48e; font-weight: 700; font-size: 0.85rem;
}
.divider {
  height: 1px; max-width: 360px; margin: 26px auto;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--gold-dim); background: #0a100e; color: var(--text); text-decoration: none; text-align: left;
}
.badge svg { flex: none; width: 26px; height: 26px; fill: var(--gold-2); }
.badge small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.badge span { display: block; font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
a.badge:hover { border-color: var(--gold); color: #fff; }
.badge.soon { opacity: 0.85; border-style: dashed; }

.features { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 10px 0 0; padding: 0; list-style: none; }
.features li { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; }
.features strong { display: block; font-family: var(--serif); color: var(--gold); font-size: 1.05rem; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.cards a {
  position: relative; display: block; height: 100%; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  text-decoration: none; color: var(--text);
}
.cards a:hover { border-color: var(--gold-dim); }
.cards strong { display: block; font: 700 1.15rem/1.3 var(--serif); color: var(--gold-2); margin-bottom: 4px; }
.cards strong::after { content: " \2192"; color: var(--gold-dim); }
.cards span { color: var(--muted); font-size: 0.95rem; }

.section-title { font: 700 1.3rem/1.3 var(--serif); color: var(--gold); text-align: center; margin: 36px 0 16px; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ */
.faq details {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  margin: 10px 0; padding: 0 16px;
}
.faq summary {
  cursor: pointer; padding: 13px 0; font-weight: 600; color: var(--text); list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 10px; font-size: 1.3rem; color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--line); }
.faq details > :last-child { margin-bottom: 14px; }

.contact-card { text-align: center; }
.contact-card .email { font-size: 1.25rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 22px 0 28px; color: var(--muted); font-size: 0.9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--gold-2); }
.site-foot p { margin: 0; }

@media print {
  body { background: #fff; color: #000; }
  .site-head nav, .toc, .site-foot ul, .skip { display: none; }
  a { color: #000; }
  .panel, .toc, .table-wrap { border-color: #999; background: none; }
  h1, h2, h3, td:first-child, th { color: #000; }
}
