/* Planetology Ambassadors — an extension of xzen.tv: Montserrat, black and charcoal sections,
   white type in caps, XZEN red for emphasis, outlined pill buttons, Planet Gold copper for rewards. */
:root {
  --bg: #F3F3F1; --surface: #FFFFFF; --ink: #111111; --muted: #535A5D; --line: #DEDEDC;
  --dark: #0B0B0B; --charcoal: #2D2D2D; --slate: #535A5D;
  --red: #DD3333;          /* XZEN red: headings, buttons, large text */
  --red-text: #B82424;     /* same red, darkened for small text on light backgrounds */
  --copper: #C8843A;       /* Planet Gold copper: tiers and rewards */
  --blue: #2F5D9B;         /* Planet Gold blue */
  --on-dark: #FFFFFF; --on-dark-muted: #B9BEC0;
  --ok: #2E7D4F; --warn: #B82424;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111; --surface: #1C1C1C; --ink: #F2F2F2; --muted: #A9AFB1; --line: #333333;
    --red-text: #F06060; --ok: #6CC495; --warn: #F06060;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--red-text); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-text); }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Header: white bar with the XZEN logo, like the site */
header.top { background: #FFFFFF; border-bottom: 1px solid #E6E6E6; }
header.top .wrap { padding-block: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #111111; }
.brand img.xzen { height: 34px; width: auto; display: block; }
.brand .divider { width: 1px; height: 28px; background: #D0D0D0; }
.brand .prog { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.25; color: #111111; }
.brand .prog span { color: #B82424; display: block; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
nav.tabs a, nav.tabs button { font: 700 12px var(--font); letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid transparent; background: none; color: #535A5D; padding: 9px 14px; border-radius: 200px; cursor: pointer; text-decoration: none; }
nav.tabs a[aria-current="page"] { color: #111111; border-color: #111111; }
nav.tabs form { margin: 0; }

/* Hero: black-to-charcoal, centered caps, like the site's full-bleed sections */
.hero { background: radial-gradient(ellipse at 70% 20%, #3A3A3A 0%, #1A1A1A 45%, #0B0B0B 100%); color: var(--on-dark); }
.hero .wrap { padding-block: 56px 52px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--red); }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; }
.hero h1 span { color: var(--red); }
.hero .lead { font-size: 17px; color: var(--on-dark-muted); max-width: 36em; margin-top: 18px; }
.hero .cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: grid; justify-items: center; gap: 18px; text-align: center; }
.hero-side img { width: min(220px, 60vw); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.6)); }
.hero-side .facts { display: grid; gap: 10px; }
.hero-side p { color: var(--on-dark-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.hero-side b { color: var(--on-dark); font-size: 17px; font-weight: 700; }

/* Buttons: pills, caps, like "CONSULTING" on xzen.tv */
.btn { display: inline-block; font: 700 13px var(--font); letter-spacing: 0.12em; text-transform: uppercase; border-radius: 200px; padding: 14px 26px; cursor: pointer; border: 2px solid transparent; text-decoration: none; text-align: center; }
.btn-gold, .btn-red { background: var(--red); color: #FFFFFF; border-color: var(--red); }
.btn-gold:hover, .btn-red:hover { background: #C42B2B; border-color: #C42B2B; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.small-btn { font: 700 11px var(--font); letter-spacing: 0.1em; text-transform: uppercase; border-radius: 200px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; display: inline-block; }

section.block { padding-block: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; }
.section-head h2::after, .step-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 36em; }
.el-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.el { background: var(--surface); border-top: 3px solid var(--red); padding: 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.el .sym { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-text); font-weight: 700; }
.el h3 { font-size: 15px; }
.el p { font-size: 14px; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 4vw, 40px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.steps li { border-top: 3px solid var(--line); padding-top: 10px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; min-width: 0; }
.steps li.done { border-color: var(--ink); color: var(--ink); }
.steps li.now { border-color: var(--red); color: var(--red-text); }
.step-title { font-size: 26px; margin-bottom: 12px; }
.sub { color: var(--muted); margin-bottom: 24px; max-width: 42em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
label .hint { text-transform: none; letter-spacing: 0; }
input, select, textarea { font: 15px var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px; width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.notice { border-left: 4px solid; padding: 12px 16px; font-weight: 600; margin-bottom: 18px; background: var(--surface); }
.notice.err { border-color: var(--warn); color: var(--warn); }
.notice.ok { border-color: var(--ok); color: var(--ok); }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }

.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.learn { border-left: 3px solid var(--red); padding: 16px 18px; display: grid; gap: 6px; background: var(--bg); min-width: 0; }
.learn h3 { font-size: 15px; }
.learn p { font-size: 15px; color: var(--muted); }
.quiz { display: grid; gap: 18px; }
fieldset { border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.opt { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-weight: 400; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; }
.opt input, .pledge input { width: auto; accent-color: var(--red); }
.pledge { display: grid; gap: 12px; }
.pledge label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; background: var(--bg); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; }
.pledge input { margin-top: 5px; }
.pledge b { display: block; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 2px; }

.perks { display: grid; gap: 14px; margin-bottom: 28px; }
.perks-h { font-size: 26px; }
.perks-sub { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); margin-top: 6px; }
.perk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.perk { background: radial-gradient(ellipse at 80% 0%, #333333, #0B0B0B 70%); color: var(--on-dark); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; border-top: 3px solid var(--copper); }
.perk .eyebrow { color: var(--red); }
.perk .code { font-size: 32px; font-weight: 800; letter-spacing: 0.08em; }
.perk p { color: var(--on-dark-muted); font-size: 14px; }
.perk p b, .perk .next b { color: var(--on-dark); }
.perk .perk-title { font-size: 20px; font-weight: 800; color: var(--on-dark); text-transform: uppercase; letter-spacing: 0.02em; }
.perk .was { text-decoration: line-through; color: var(--on-dark-muted); font-size: 16px; margin-left: 6px; }
.perk .soon { border-left: 3px solid var(--red); padding: 8px 12px; background: rgba(255,255,255,0.05); }
.perk .small-btn { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.75); justify-self: start; }
.perk.locked { opacity: 0.72; }
.perk.locked .soon { border-color: var(--on-dark-muted); }
.missions-wrap { display: grid; gap: 12px; }
.kit-id { background: radial-gradient(ellipse at 80% 0%, #333333, #0B0B0B 70%); color: var(--on-dark); padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.kit-id .eyebrow { color: var(--red); }
.kit-id .code { font-size: 36px; font-weight: 800; letter-spacing: 0.08em; color: var(--on-dark); }
.kit-id p { color: var(--on-dark-muted); font-size: 14px; }
.kit-id .soon { border-left: 3px solid var(--red); padding: 8px 12px; background: rgba(255,255,255,0.05); }
.copyrow { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.copyrow code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 4px; padding: 10px 12px; font-size: 13px; color: var(--on-dark); }
.kit-id .small-btn { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.75); flex: none; }
.pts { font-size: 30px; font-weight: 800; color: var(--on-dark); }
.bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 200px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--copper); }
.tiers { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-dark-muted); letter-spacing: 0.12em; text-transform: uppercase; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.tiers .cur { color: var(--copper); font-weight: 800; }
.stack { display: grid; gap: 12px; align-content: start; min-width: 0; }
.stack h3 { font-size: 16px; }
.clip { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: grid; gap: 8px; background: var(--surface); min-width: 0; }
.clip .t { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.clip .cap { font-size: 14px; color: var(--muted); }
.clip .row { display: flex; gap: 8px; flex-wrap: wrap; }
.missions { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.missions li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; background: var(--surface); font-size: 14px; }
.missions .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.missions li.done .tick { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.missions li.done span.label { color: var(--muted); text-decoration: line-through; }
.missions form { margin-left: auto; }
.logform { display: grid; grid-template-columns: 160px 1fr auto; gap: 10px; align-items: end; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
td.wrap-cell { white-space: normal; min-width: 200px; }
th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td { white-space: nowrap; }
td.num, th.num { text-align: right; }
tr.me td { background: rgba(221, 51, 51, 0.08); font-weight: 700; }
.chip { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 200px; border: 1px solid var(--line); color: var(--muted); }
.chip.t-sprout { color: var(--ink); border-color: var(--ink); }
.chip.t-root { color: var(--copper); border-color: var(--copper); }
.chip.t-canopy { background: var(--copper); color: #111111; border-color: var(--copper); }
.chip.approved { color: var(--ok); border-color: var(--ok); }
.chip.rejected { color: var(--warn); border-color: var(--warn); }
.chip.pending { border-style: dashed; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border-top: 3px solid var(--red); padding: 16px; }
.stat b { display: block; font-size: 32px; font-weight: 800; }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.inline input { width: 160px; padding: 7px 10px; font-size: 13px; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.rules div { border-top: 3px solid var(--red); padding: 16px; background: var(--surface); }
.rules b { display: block; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.rules p { font-size: 14px; color: var(--muted); }
.tier-rules { grid-template-columns: repeat(4, 1fr); }
.tier-rules div { border-top-color: var(--copper); }

/* Footer: black band with the Planet Gold mark, like the site's footer */
footer { background: #0B0B0B; color: #B9BEC0; font-size: 13px; margin-top: 40px; }
footer .wrap { padding-block: 32px 44px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer img { height: 64px; width: auto; }
footer a { color: #FFFFFF; }
main { padding-block: 8px 24px; }

@media (max-width: 860px) {
  .hero .wrap, .kit, .learn-grid, .rules, .split, .perk-grid { grid-template-columns: 1fr; }
  .tier-rules { grid-template-columns: 1fr 1fr; }
  .hero-side { order: -1; }
  .el-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .form, .el-grid, .logform { grid-template-columns: 1fr; }
  .brand img.xzen { height: 26px; }
  .brand .divider, .brand .prog { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board h2 { font-size: 20px; margin-bottom: 12px; }
.board ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.board li { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 14px; }
.board li.me { color: var(--red); }
.board .rank { font-weight: 800; width: 22px; }
.board .who { flex: 1; min-width: 0; }
.mystats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.award { display: flex; gap: 6px; align-items: center; }
.award select, .award input { width: auto; padding: 6px 8px; font-size: 13px; }
.award input { width: 64px; }
@media (max-width: 860px) { .boards, .mystats { grid-template-columns: 1fr; } }
