/* ───────────────────────────────────────────────────────────────
   XPI landing — Space Domain Awareness portal chrome.
   Warm paper + ember-orange identity, Ubuntu / Ubuntu Mono.
   Tokens mirror the shared xpi-design system (tokens.css / xpi-menu.css).
   Fonts are loaded separately via /brand/fonts/fonts.css (index.html).
   ─────────────────────────────────────────────────────────────── */
:root {
  /* surfaces (light warm) */
  --bg0: #f6ecdf; --bg1: #fdf7f0; --bg2: #f0e4d4; --bg3: #e9dac6;
  --paper: #fffaf3; --topbar: #fbeee5;      /* exact logo paper */
  --line: #e6d8c6; --line2: #d6c3a9;
  /* text */
  --txt: #241d16; --muted: #7b6e5d; --dim: #a6957f;
  /* one accent + status */
  --brand: #e2571f; --brand2: #bd461a; --earth: #e2571f;
  --ok: #1f9d57; --hi: #d2353c; --med: #bf7d0c; --low: #2f6df0; --info: #8a7d6c;
  /* space (hero) */
  --space: #0f0905;
  /* type */
  --font: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Ubuntu Mono', 'SFMono-Regular', ui-monospace, Menlo, monospace;
  --radius: 10px;
  --nav-h: 66px;
  --foot-h: 46px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--space); color: var(--txt);
  font-family: var(--font); font-size: 14px; line-height: 1.55; overflow: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--brand); }

/* ── full-page space video behind everything ──────────────────── */
.bg-vid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bg-scrim {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 9, 5, .50) 0%, rgba(14, 9, 5, .40) 38%, rgba(14, 9, 5, .70) 100%),
    radial-gradient(120% 80% at 50% 0%, rgba(226, 87, 31, .12), transparent 55%);
}
.bg-stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(220, 190, 150, .16) 1px, transparent 1.4px); background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
}

/* ── XPI top menu bar ─────────────────────────────────────────── */
#xpi-topbar {
  position: relative; z-index: 3;
  height: var(--nav-h); background: var(--topbar);
  border-bottom: 1px solid var(--line2);
  box-shadow: 0 8px 26px -20px rgba(80, 55, 30, .55);
}
.xpi-bar {
  display: flex; align-items: center; gap: 16px; height: 100%;
  max-width: 1220px; margin: 0 auto; padding: 0 24px;
}
.xpi-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.xpi-brand img { height: 50px; width: auto; display: block; }
.xpi-slogan {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--muted); line-height: 1.25; max-width: 118px; font-weight: 400;
}
.xpi-slogan b { color: var(--earth); font-weight: 700; }
.xpi-nav {
  display: flex; align-items: center; gap: 18px; margin-left: 6px;
  flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; white-space: nowrap;
  scrollbar-width: none; -ms-overflow-style: none;
}
.xpi-nav::-webkit-scrollbar { display: none; }
.xpi-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 3px;
  font-size: 12.5px; font-weight: 500; color: var(--txt); white-space: nowrap;
  transition: color .16s ease;
}
.xpi-nav a svg {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.xpi-nav a:hover { color: var(--earth); }
.xpi-nav a.on { color: var(--earth); }

.xpi-auth { display: flex; align-items: center; gap: 8px; flex: none; padding-left: 6px; }
.xpi-ico {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--txt);
  cursor: pointer; transition: .16s ease;
}
.xpi-ico:hover { border-color: var(--earth); color: var(--earth); background: var(--paper); }
.xpi-ico svg { width: 18px; height: 18px; display: block; }
.xpi-ico.solid { background: var(--earth); border-color: var(--earth); color: #fff; }
.xpi-ico.solid:hover { filter: brightness(1.06); color: #fff; background: var(--earth); }
.xpi-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
  border: 1px solid var(--line2); background: var(--paper); color: var(--txt);
  border-radius: 999px; padding: 7px 13px; transition: .16s ease;
}
.xpi-chip:hover { border-color: var(--earth); color: var(--earth); }
.xpi-chip .xpi-at { font-size: 9px; background: var(--earth); color: #fff; border-radius: 4px; padding: 2px 6px; }

/* ── page shell: one page visible at a time, no page scroll ─────
   content scrolls over the fixed background video (pages transparent) */
main { position: relative; z-index: 1; height: calc(100vh - var(--nav-h) - var(--foot-h)); }
.page { display: none; height: 100%; overflow-y: auto; padding: 44px 28px; text-align: center; }
.page.active { display: block; }
.page-center { max-width: 640px; margin: 0 auto; padding-top: 4vh; }

/* ── footbar ──────────────────────────────────────────────────── */
.footbar {
  position: relative; z-index: 2;
  height: var(--foot-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; border-top: 1px solid rgba(255, 240, 224, .14); background: transparent;
  font-family: var(--mono); font-size: 12px; letter-spacing: .3px; color: rgba(255, 240, 224, .62);
}
.footbar a { color: rgba(255, 246, 236, .9); }
.footbar a:hover { color: #fff; }

/* ── home / hero (content over the global space video) ────────── */
#page-home { padding: 0; overflow: hidden; }
.hero { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; background: transparent; }
.hero-content { position: relative; text-align: center; color: #fdf4ea; padding: 0 20px; max-width: 900px; }
.hero-badge {
  display: inline-block; font-family: var(--mono); letter-spacing: 3px; font-size: 11px; text-transform: uppercase;
  border: 1px solid rgba(255, 240, 220, .34); border-radius: 999px; padding: 7px 18px; margin-bottom: 26px;
  color: rgba(255, 244, 232, .92); background: rgba(20, 12, 6, .32); backdrop-filter: blur(3px);
}
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -1.5px; margin: 0 0 18px; line-height: 1.05; }
.hero p { font-size: clamp(15px, 2vw, 19px); line-height: 1.6; opacity: .92; margin: 0 auto 30px; max-width: 620px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: 999px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(226, 87, 31, .5); filter: brightness(1.03); }
.cta-ghost { background: transparent; border: 1.5px solid rgba(255, 244, 232, .6); color: #fdf4ea; }
.cta-ghost:hover { box-shadow: none; border-color: var(--brand); color: #ffd9c6; }

/* ── shared section bits (white heads over the video) ─────────── */
.section-badge {
  display: inline-block; font-family: var(--mono); letter-spacing: 3px; font-size: 11px; text-transform: uppercase;
  color: rgba(255, 244, 232, .92); border: 1px solid rgba(255, 240, 220, .34); border-radius: 999px; padding: 7px 16px;
  background: rgba(20, 12, 6, .32); backdrop-filter: blur(3px);
}
.page h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1.2px; margin: 18px 0 10px; color: #fff; }
.page h2 .em { color: var(--brand); }
.section-sub { color: rgba(255, 246, 236, .84); font-size: 15.5px; line-height: 1.6; max-width: 640px; margin: 0 auto 28px; }

/* ── about ────────────────────────────────────────────────────── */
.about-head { text-align: center; max-width: 760px; margin: 0 auto 6px; }
.about-logo { display: block; width: 116px; height: auto; margin: 2px auto 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.about-eyebrow { margin-bottom: 16px; }
.about-title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; letter-spacing: -1.5px; margin: 12px 0 8px; color: #fff; }
.about-title .em { color: var(--brand); }
/* brand superscript — the π in Xπ, raised like the logo (inherits text colour) */
sup.pisup { font-size: 0.58em; vertical-align: super; line-height: 0; font-weight: inherit; margin-left: 0.5px; }
.about-tagline { font-family: var(--mono); letter-spacing: 3px; font-size: 12px; text-transform: uppercase; color: var(--brand); font-weight: 700; }

.about-card {
  max-width: 880px; margin: 26px auto 0; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 38px; box-shadow: 0 18px 50px -34px rgba(80, 55, 30, .55);
}
.about-card p { color: var(--muted); font-size: 14.5px; line-height: 1.75; margin: 0 0 15px; }
.about-card p b, .about-card p strong { color: var(--txt); font-weight: 700; }
.about-card .orange { color: var(--brand); }
.about-h {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand);
  margin: 26px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700;
}

.about-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 8px; }
.about-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 14px; text-align: center;
}
.about-tile .n { font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -1px; line-height: 1; }
.about-tile .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ── founder ──────────────────────────────────────────────────── */
.founder-card {
  max-width: 880px; margin: 22px auto 0; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 34px; box-shadow: 0 18px 50px -34px rgba(80, 55, 30, .55);
  display: flex; gap: 30px; align-items: flex-start;
}
.founder-photo {
  width: 172px; height: 206px; object-fit: cover; object-position: top center;
  border-radius: 14px; border: 1px solid var(--line); flex: none;
  box-shadow: 0 12px 30px -20px rgba(80, 55, 30, .5);
}
.founder-body { flex: 1; min-width: 0; }
.founder-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 10px;
}
.founder-name { font-size: 23px; font-weight: 800; color: var(--txt); letter-spacing: -.5px; }
.founder-role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 5px 0 14px;
}
.founder-body p { color: var(--muted); font-size: 14.5px; line-height: 1.75; margin: 0 0 14px; }
.founder-body p:last-child { margin-bottom: 0; }
.founder-body p strong { color: var(--txt); font-weight: 700; }
.founder-body p em { color: var(--txt); font-style: italic; }

/* ── affiliations logo strip ──────────────────────────────────── */
.affil { max-width: 880px; margin: 26px auto 0; text-align: center; }
.affil-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
}
.affil-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.affil-logo {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  height: 64px; padding: 0 22px; flex: 1 1 130px; max-width: 168px;
  display: flex; align-items: center; justify-content: center;
}
.affil-logo img {
  height: 40px; max-width: 124px; width: auto; object-fit: contain;
  transition: transform .18s ease;
}
.affil-logo:hover img { transform: scale(1.05); }

/* ── about contact ────────────────────────────────────────────── */
.about-contact {
  max-width: 880px; margin: 26px auto 0; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.about-contact-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.about-contact-email { color: var(--brand); font-weight: 700; font-size: 15px; text-decoration: none; }
.about-contact-email:hover { text-decoration: underline; }

/* ── threats radar (feed) ─────────────────────────────────────── */
.radar-filters { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.filter {
  font-family: var(--mono); font-size: 12px; letter-spacing: .6px; cursor: pointer; text-transform: uppercase;
  background: var(--paper); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 16px;
  transition: .16s ease;
}
.filter:hover { border-color: var(--earth); color: var(--earth); }
.filter.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.radar-list {
  max-width: 1120px; margin: 0 auto; text-align: left; padding-bottom: 26px;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
}
.radar-empty { grid-column: 1 / -1; text-align: center; color: rgba(255, 246, 236, .72); padding: 30px; }

/* ---- filter + sort toolbar ---- */
.radar-controls { max-width: 1120px; margin: 0 auto 8px; }
.rc-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 14px 38px -28px rgba(80, 55, 30, .55);
}
.rc-seg { display: inline-flex; background: var(--bg0); border: 1px solid var(--line2); border-radius: 999px; padding: 3px; }
.rc-seg-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  border: none; background: transparent; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer;
  transition: .15s ease;
}
.rc-seg-btn:hover { color: var(--earth); }
.rc-seg-btn.on { background: var(--brand); color: #fff; }
.rc-field {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .8px; text-transform: uppercase; color: var(--dim);
}
.rc-select, .rc-search {
  font-family: var(--font); font-size: 13px; color: var(--txt); background: var(--bg0);
  border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; cursor: pointer; transition: border-color .15s ease;
}
.rc-select:focus, .rc-search:focus { border-color: var(--brand); outline: none; }
.rc-search { border-radius: 999px; padding: 7px 14px; min-width: 180px; cursor: text; }
.rc-count {
  text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .5px;
  color: rgba(255, 246, 236, .72); margin-top: 12px;
}

/* ---- compact, icon-led bulletin card ---- */
.radar-card.bulletin { border-left: 3px solid var(--fig, var(--earth)); }
.bul-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.bul-icon {
  width: 30px; height: 30px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.bul-icon svg { width: 18px; height: 18px; }
.bul-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .6px; text-transform: uppercase; font-weight: 700; }
.bul-head .radar-tag.bulletin { margin-left: auto; margin-right: 0; }

.radar-card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: 0 14px 38px -28px rgba(80, 55, 30, .55);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.radar-card:hover { border-color: var(--earth); transform: translateY(-3px); box-shadow: 0 20px 44px -26px rgba(80, 55, 30, .6); }

/* media: photo for news (falls back to the figure), figure for bulletins */
.radar-media { position: relative; height: 152px; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.radar-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.radar-fig { width: 100%; height: 100%; display: block; }
.radar-fig-fallback { position: absolute; inset: 0; }
.radar-media:not(.noimg) .radar-fig-fallback { display: none; }
.radar-media.noimg .radar-photo { display: none; }
.radar-cat {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
  color: #fff; background: var(--fig, var(--earth)); border-radius: 999px; padding: 3px 9px;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
}

.radar-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.radar-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .4px; color: var(--dim); }
.radar-tag { color: var(--earth); font-weight: 700; margin-right: 8px; }
.radar-tag.bulletin { color: var(--ok); }
.radar-title { font-size: 15px; font-weight: 600; color: var(--txt); line-height: 1.35; }
.radar-summary { font-size: 13px; color: var(--muted); line-height: 1.5; }

.nb-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.nb {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .4px; text-transform: uppercase; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted);
  background: var(--bg0); line-height: 1.7; white-space: nowrap;
}
.nb-cap { color: var(--earth); background: #fbeee5; border-color: #ecc9b6; }
.nb-region { color: var(--txt); background: var(--paper); }
.nb-alert { color: #fff; background: #d2353c; border-color: #d2353c; }
.nb-state { color: #8a6d1f; background: #fbf3dc; border-color: #ddc78f; }
.nb.r-A { color: #1f7a3d; background: #e9f6ee; border-color: #a6d6b4; }
.nb.r-B { color: #2f6df0; background: #eaf1fe; border-color: #accbf8; }
.nb.r-C { color: #a9781a; background: #fbf3df; border-color: #e2cd94; }
.nb.r-D { color: #c2521a; background: #fcede2; border-color: #f0bd9a; }
.nb.r-E { color: #b3242c; background: #fbe9ea; border-color: #eaa6aa; }

.radar-coverage { max-width: 1120px; margin: 0 auto 12px; text-align: left; }
.cov { background: var(--paper); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 14px 38px -28px rgba(80, 55, 30, .55); overflow: hidden; }
.cov-head { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--bg0); }
.cov-head::-webkit-details-marker { display: none; }
.cov-title { font-family: var(--mono); font-size: 12px; letter-spacing: .8px; font-weight: 700; color: var(--ok); text-transform: uppercase; }
.cov-sum { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .3px; }
.cov-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.cov-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: var(--dim); }
.cov-alerts { display: flex; flex-direction: column; gap: 6px; }
.cov-alert { font-size: 12.5px; color: #b3242c; text-decoration: none; line-height: 1.4; }
.cov-alert b { font-weight: 700; }
.cov-alert:hover { text-decoration: underline; }
.cov-alert-src { color: var(--dim); font-family: var(--mono); font-size: 10.5px; }
.cov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 12px; }
.cov-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 11px; border-radius: 8px; background: var(--bg0); border: 1px solid var(--line); }
.cov-region { font-size: 12.5px; color: var(--txt); font-weight: 600; }
.cov-count { font-family: var(--mono); font-weight: 700; color: var(--earth); background: #fbeee5; border: 1px solid #ecc9b6; border-radius: 999px; padding: 0 9px; font-size: 12px; }
.cov-none { opacity: .62; }
.cov-nil { font-family: var(--mono); font-size: 9px; letter-spacing: .3px; color: var(--dim); text-transform: uppercase; }
.cov-caps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cov-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); margin-right: 2px; }

/* ---- bulletins as a data table ---- */
.bt-wrap {
  grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: 0 14px 38px -28px rgba(80, 55, 30, .55); overflow: hidden;
}
.bt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; border-bottom: 1px solid var(--line2); background: var(--bg0);
}
.bt-head-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .8px; font-weight: 700; color: var(--ok); text-transform: uppercase; }
.bt-head-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .4px; color: var(--dim); }
.bt-scroll { overflow-x: auto; }
.bt-table { width: 100%; border-collapse: collapse; text-align: left; }
.bt-table th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--dim);
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line2); white-space: nowrap; font-weight: 700;
}
.bt-table td { padding: 12px 16px; color: var(--txt); vertical-align: middle; border-bottom: 1px solid var(--line); }
.bt-row { cursor: pointer; transition: background .14s ease; }
.bt-row:last-child td { border-bottom: none; }
.bt-row:hover { background: var(--bg0); }
.bt-type { white-space: nowrap; }
.bt-ic { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-right: 9px; }
.bt-ic svg { width: 15px; height: 15px; }
.bt-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; font-weight: 700; vertical-align: middle; }
.bt-obj { font-weight: 600; font-size: 13.5px; min-width: 170px; }
.bt-param, .bt-date, .bt-time { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bt-upd { font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
@media (max-width: 640px) {
  .bt-table th, .bt-table td { padding: 9px 11px; }
  .bt-obj { font-size: 12.5px; }
  .bt-param, .bt-date, .bt-time { font-size: 11.5px; }
}

/* ── plans / pricing ──────────────────────────────────────────── */
#page-subscribe { padding-top: 28px; }
#page-subscribe h2 { font-size: clamp(24px, 3vw, 34px); margin: 10px 0 8px; }
#page-subscribe .section-sub { font-size: 15px; margin-bottom: 18px; }

.billing-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.bill {
  font-family: var(--mono); font-size: 12px; letter-spacing: .6px; cursor: pointer;
  background: var(--paper); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 8px 18px;
}
.bill.on { background: var(--txt); border-color: var(--txt); color: var(--bg1); }
.plans-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  max-width: 1320px; margin: 0 auto 14px; text-align: left; align-items: stretch;
}
.plan-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line2); border-radius: 16px; padding: 20px 18px 16px;
  box-shadow: 0 14px 40px -32px rgba(80, 55, 30, .5);
}
.plan-card.featured { border: 2px solid var(--brand); box-shadow: 0 18px 44px -28px rgba(226, 87, 31, .45); }
.plan-card.chosen { border-color: var(--brand2); box-shadow: 0 0 0 2px var(--brand2); }
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase;
  background: var(--brand); color: #fff; border-radius: 999px; padding: 3px 14px; white-space: nowrap;
}
.plan-name { font-family: var(--mono); letter-spacing: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; }
.plan-price .cur { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin-right: 3px; vertical-align: 3px; }
.plan-unit { font-size: 12px; color: var(--muted); margin-bottom: 12px; min-height: 18px; }
.plan-feats { list-style: none; margin: 0 0 14px; padding: 0; font-size: 12.75px; line-height: 1.4; flex: 1; }
.plan-feats li { padding: 4px 0 4px 20px; position: relative; border-top: 1px dashed var(--line); color: var(--txt); }
.plan-feats li:first-child { border-top: none; }
.plan-feats li::before { content: '◆'; position: absolute; left: 2px; color: var(--brand); font-size: 8px; top: 7px; }
.plan-cta {
  font-family: var(--font); font-weight: 700; font-size: 14px; cursor: pointer;
  background: var(--txt); color: var(--bg1); border: none; border-radius: 999px; padding: 10px 0; transition: .16s ease;
}
.plan-cta:hover { background: var(--brand); }
.plan-cta.ghost { background: transparent; border: 1.5px solid var(--line2); color: var(--txt); }
.plan-cta.ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }
.featured .plan-cta { background: var(--brand); }
.featured .plan-cta:hover { background: var(--brand2); }
.plans-note { font-size: 12.5px; color: rgba(255, 246, 236, .74); max-width: 720px; margin: 0 auto 18px; }
.subscribe-block { padding-top: 0; padding-bottom: 30px; }

.checkout-done {
  max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line2);
  border-radius: 16px; padding: 30px 26px;
}
.checkout-done-mark {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #fff; font-size: 24px; font-weight: 700;
}
.checkout-done h3 { margin: 0 0 8px; font-size: 22px; }
.checkout-done p { margin: 0 0 20px; font-size: 15px; color: var(--muted); }

/* ── contact ──────────────────────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 12px; text-align: left; max-width: 640px; margin: 0 auto; }
.contact-row { display: flex; gap: 12px; }
.contact-form input, .contact-form textarea {
  font-size: 15px; font-family: var(--font); padding: 12px 16px; width: 100%;
  border: 1px solid var(--line2); border-radius: 12px; background: var(--paper); color: var(--txt); outline: none;
  transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); }
.contact-form textarea { resize: vertical; }
.contact-form button {
  background: var(--brand); color: #fff; border: none; font-weight: 700; font-size: 15px; font-family: var(--font);
  padding: 12px 26px; border-radius: 999px; cursor: pointer; transition: .16s ease;
}
.contact-form button:hover { filter: brightness(1.05); }
.subscribe-msg { margin-top: 14px; font-size: 14.5px; min-height: 22px; }
.subscribe-msg.ok { color: var(--ok); }
.subscribe-msg.err { color: var(--brand); }
.orange-link { color: var(--brand); font-weight: 700; }

/* ── auth modal (dark warm glass, orange accent) ──────────────── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 42%, rgba(20, 12, 6, .35), rgba(9, 6, 3, .82) 78%);
  backdrop-filter: blur(3px); overflow-y: auto;
}
.auth-overlay[hidden] { display: none; }
.auth-modal {
  position: relative; width: 100%; max-width: 372px; margin: auto;
  background: rgba(24, 17, 12, .64); backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(242, 231, 217, .14); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(242, 231, 217, .08);
  padding: 18px 22px 16px; color: #f6ede1;
}
.auth-close { position: absolute; top: 9px; right: 11px; background: transparent; border: none; cursor: pointer; font-size: 16px; line-height: 1; color: #8f7d69; padding: 4px 6px; }
.auth-close:hover { color: var(--brand); }
.auth-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .3px; color: #f6ede1; }
.auth-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 2.2px; color: #f08b52; margin: 2px 0 11px; text-transform: uppercase; }
.auth-social { display: grid; gap: 7px; margin-bottom: 9px; }
.auth-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 37px; padding: 7px 12px; cursor: pointer; border-radius: 9px;
  border: 1px solid rgba(242, 231, 217, .2); color: #f6ede1;
  background: rgba(13, 9, 6, .48); font: 700 13.5px var(--font);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.auth-provider:hover { border-color: rgba(242, 231, 217, .42); background: rgba(242, 231, 217, .08); transform: translateY(-1px); }
.auth-provider-mark { display: grid; place-items: center; width: 18px; height: 18px; font: 700 16px Arial, sans-serif; color: #4285f4; }
.microsoft-mark { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; }
.microsoft-mark i { display: block; width: 8px; height: 8px; background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }
.auth-or { display: flex; align-items: center; gap: 9px; color: #8f7d69; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .8px; margin-top: 2px; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; flex: 1; background: rgba(242, 231, 217, .13); }
.auth-form { display: flex; flex-direction: column; }
.auth-label { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: #b3a18c; margin-bottom: 3px; text-transform: uppercase; }
.auth-optional { color: #8f7d69; font-weight: 400; letter-spacing: .5px; }
.auth-input {
  font-family: var(--mono); font-size: 13.5px; color: #f6ede1;
  background: rgba(13, 9, 6, .55); border: 1px solid rgba(242, 231, 217, .16); border-radius: 9px;
  padding: 7px 12px; margin-bottom: 8px; outline: none; width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input::placeholder { color: #8f7d69; }
.auth-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(226, 87, 31, .18); }
.auth-input:-webkit-autofill, .auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f6ede1; -webkit-box-shadow: 0 0 0 1000px rgba(24, 17, 12, .9) inset;
  caret-color: #f6ede1; transition: background-color 9999s ease-in-out 0s;
}
.auth-hint { margin: -4px 0 8px; font-size: 11px; color: #b3a18c; }
.auth-combo { position: relative; }
.auth-combo-list {
  position: absolute; top: calc(100% - 7px); left: 0; right: 0; z-index: 5; max-height: 210px; overflow-y: auto;
  background: #1c150f; border: 1px solid rgba(242, 231, 217, .16); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55); padding: 4px;
}
.auth-combo-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  background: transparent; border: none; color: #f6ede1; font-family: var(--mono); font-size: 13.5px; padding: 9px 11px; border-radius: 7px;
}
.auth-combo-item:hover, .auth-combo-item.on { background: rgba(226, 87, 31, .18); color: #f6ede1; }
.auth-combo-item span { font-size: 15px; line-height: 1; }
.auth-combo-empty { padding: 12px; color: #8f7d69; font-size: 13px; text-align: center; }
.auth-submit {
  cursor: pointer; width: 100%; margin-top: 2px; font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: .3px;
  color: #fff; border: none; border-radius: 10px; padding: 10px 0;
  background: linear-gradient(180deg, #f08b52, #e2571f); box-shadow: 0 8px 22px rgba(226, 87, 31, .35);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(226, 87, 31, .5); filter: brightness(1.04); }
.auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-submit:disabled { opacity: .7; cursor: default; }
.auth-msg { min-height: 20px; margin-top: 12px; font-size: 14px; }
.auth-msg.ok { color: #7fd4a0; }
.auth-msg.err { color: #ffb3b3; }
.auth-link {
  background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font); font-size: 14.5px;
  color: #f08b52; font-weight: 700; text-decoration: underline; text-underline-offset: 2px;
}
.auth-link:hover { color: var(--brand); }
.auth-rule { border: none; border-top: 1px dashed rgba(242, 231, 217, .16); margin: 13px 0 10px; }
.auth-foot { margin: 0 0 6px; font-size: 13px; color: #b3a18c; }

/* ── responsive ───────────────────────────────────────────────── */
@media (max-width: 1240px) { .plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .xpi-slogan { display: none; }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .xpi-bar { gap: 10px; padding: 0 16px; }
  .about-tiles { grid-template-columns: 1fr 1fr; }
  .about-card { padding: 24px 20px; }
  .founder-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; gap: 20px; }
  .founder-photo { width: 156px; height: 188px; }
  .affil-logo { flex-basis: 100px; max-width: 140px; height: 56px; padding: 0 16px; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footbar { height: auto; flex-direction: column; padding: 8px; gap: 2px; text-align: center; }
  .contact-row { flex-direction: column; }
}
@media (max-width: 560px) { .plans-grid { grid-template-columns: 1fr; } }
