/* Xenoprint public site.
 *
 * Hand-written rather than Bootstrap from a CDN: the Content-Security-Policy
 * allows only this origin, and the site is small enough that a framework
 * would be most of the bytes. Brand tokens match the portal's base.html so the
 * two feel like one product; names describe the role as well as the hue.
 */

:root {
  --xp-cyan: #00b8d4;
  --xp-cyan-2: #22d3ee;
  --xp-purple: #9333ea;
  --xp-deep: #0f2e33;
  --xp-teal: #1f6f78;
  --xp-gradient: linear-gradient(135deg, var(--xp-cyan-2), var(--xp-purple));

  --paper: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --ink: #1e2226;
  --muted: #5b6670;
  --line: #dde3e1;
  --link: #1a6a73;
  --accent-ink: #04252b;
  --ok: #067647;
  --ok-bg: #e7f6ee;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --warn-bg: #fff6e0;
  --warn-ink: #7a4b00;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);

  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1416;
    --surface: #111d20;
    --surface-2: #15262a;
    --ink: #e6eceb;
    --muted: #9aa8ac;
    --line: #23363b;
    --link: #5fdcef;
    --ok: #4ade80;
    --ok-bg: #0f2a1c;
    --bad: #f97066;
    --bad-bg: #2d1414;
    --warn-bg: #2b2210;
    --warn-ink: #f5c26b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; font-weight: 650; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--mono); font-size: .92em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--surface); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--xp-cyan); outline-offset: 2px; }

/* --- Header ---------------------------------------------------------------- */

.site-header {
  background: var(--xp-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-row {
  display: flex; align-items: center; gap: 28px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
}
.mark { width: 30px; height: 30px; flex: none; }
.wordmark { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.wordmark em { font-style: normal; color: var(--xp-cyan); }
.site-nav { display: flex; gap: 22px; flex: 1; }
.site-nav a {
  color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--xp-cyan); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-primary { background: var(--xp-cyan); color: var(--accent-ink); }
.btn-primary:hover { background: #009fb8; color: var(--accent-ink); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.on-light .btn-ghost { color: var(--ink); border-color: var(--line); }
.on-light .btn-ghost:hover { background: var(--surface-2); }

/* --- Hero ------------------------------------------------------------------ */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(147, 51, 234, .35), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(34, 211, 238, .22), transparent 60%),
    var(--xp-deep);
  color: #fff;
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--xp-cyan-2); margin-bottom: 14px;
}
.hero p.lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .9rem; color: rgba(255, 255, 255, .62); }
.gradient-text {
  background: var(--xp-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* The illustrative portal panel in the hero. Decorative: aria-hidden. */
.panel {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px; padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  font-size: .9rem;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.panel-head strong { font-weight: 600; }
.panel-url { font-family: var(--mono); font-size: .78rem; color: rgba(255, 255, 255, .55); }
.panel-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.panel-row:last-child { border-bottom: 0; }
.panel-row .sub { grid-column: 1; color: rgba(255, 255, 255, .55); font-size: .8rem; }
.chip {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.chip-ok { background: rgba(74, 222, 128, .16); color: #86efac; }
.chip-run { background: rgba(34, 211, 238, .16); color: #67e8f9; }
.chip-warn { background: rgba(250, 204, 21, .16); color: #fde68a; }

/* --- Sections -------------------------------------------------------------- */

.section { padding: 72px 0; }
/* For a section that follows another on the same background, so the gap
   between them is one section's padding rather than two. */
.section-flush-top { padding-top: 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--paper); box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul { margin: .4em 0 0; color: var(--muted); }

.icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(147, 51, 234, .16));
  color: var(--xp-teal);
}
@media (prefers-color-scheme: dark) { .icon { color: var(--xp-cyan-2); } }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 0 56px; margin-bottom: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--xp-deep); color: var(--xp-cyan-2);
}
.steps h3 { margin: 6px 0 .3em; }
.steps p { color: var(--muted); }

.band {
  background: var(--xp-deep); color: #fff; border-radius: 20px;
  padding: 40px; display: flex; gap: 32px; align-items: center; justify-content: space-between;
  background-image: radial-gradient(600px 260px at 100% 0%, rgba(147, 51, 234, .35), transparent 60%);
}
.band h2 { margin-bottom: .3em; }
.band p { color: rgba(255, 255, 255, .75); margin: 0; }
.band .btn { flex: none; }

/* Page headers on inner pages. */
.page-head { background: var(--xp-deep); color: #fff; padding: 56px 0 48px; }
.page-head p { color: rgba(255, 255, 255, .75); font-size: 1.1rem; max-width: 40em; margin: 0; }

/* Security controls: a definition-list feel. */
.control { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.control:first-child { border-top: 0; padding-top: 0; }
.control h3 { margin: 0; }
.control p { color: var(--muted); }
.control p:last-child { margin-bottom: 0; }

.notice {
  border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.notice-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.notice p:last-child { margin-bottom: 0; }

/* Pricing */
.price-card { max-width: 520px; margin: 0 auto; text-align: left; }
.price { font-size: 3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 20px 0 24px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .45em;
  width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

/* --- Forms ----------------------------------------------------------------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.form-card { padding: 32px; }
/* The confirmation page: the names the setup email will carry, and the way
   to refuse it. */
.form-card dl.names { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 24px; }
.form-card dl.names dt { color: var(--muted); }
.form-card dl.names dd { margin: 0; font-weight: 600; word-break: break-word; }
.cancel-form { margin-top: 20px; text-align: center; }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { color: var(--ink); background: var(--surface-2); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--xp-cyan); box-shadow: 0 0 0 3px rgba(0, 184, 212, .25); }
.field .help { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.field.has-error input, .field.has-error textarea { border-color: var(--bad); }
.errors { list-style: none; padding: 0; margin: 6px 0 0; color: var(--bad); font-size: .9rem; }
.errors li { margin: 0; }

/* The subdomain input with its suffix attached. */
.slug-input {
  display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface);
}
.slug-input:focus-within { border-color: var(--xp-cyan); box-shadow: 0 0 0 3px rgba(0, 184, 212, .25); }
.field.has-error .slug-input { border-color: var(--bad); }
.slug-input input[type=text] { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; flex: 1; }
.slug-input .suffix {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--surface-2); color: var(--muted); font-family: var(--mono); font-size: .9rem;
  border-left: 1px solid var(--line); white-space: nowrap;
}
.slug-status { min-height: 1.5em; margin: 6px 0 0; font-size: .9rem; }
.slug-status.ok { color: var(--ok); }
.slug-status.bad { color: var(--bad); }

.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--xp-cyan); flex: none; }
.check label { font-weight: 400; margin: 0; }

/* The honeypot. Off-screen rather than display:none, which some bots check
   for; aria-hidden on the wrapper and tabindex -1 on the input keep people
   using a keyboard or screen reader from landing in it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.aside h3 { font-size: 1rem; }
.aside ol { padding-left: 1.2em; color: var(--muted); }
.aside .card + .card { margin-top: 16px; }

.result { max-width: 620px; margin: 0 auto; text-align: center; }
.result .icon-lg {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 20px;
  display: grid; place-items: center; color: #fff; background: var(--xp-gradient);
}
.result .icon-lg svg { width: 32px; height: 32px; }
.result dl { text-align: left; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 24px 0; }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 600; word-break: break-word; }
.mono { font-family: var(--mono); }

/* Long-form text pages (terms, privacy). */
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink); }

/* --- Landing: the report in the hero ----------------------------------------- */

/* A client's monthly report as the hero illustration. Decorative and
   aria-hidden, like the panel it extends. */
.report-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.report-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.report-logo {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--xp-gradient); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .02em;
}
.report-title { font-size: 1.1rem; font-weight: 650; margin: 14px 4px 12px; }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.stat {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; padding: 10px 12px;
}
.stat strong { display: block; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.02em; }
.stat span { display: block; font-size: .74rem; line-height: 1.3; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.stat-good strong { color: #86efac; }

/* --- Landing and MSP sections -------------------------------------------------- */

/* An eyebrow on a light background: the hero's cyan is too pale there. */
.eyebrow-ink { color: var(--xp-teal); }
@media (prefers-color-scheme: dark) { .eyebrow-ink { color: var(--xp-cyan-2); } }

/* Two columns that start at the top: text beside a list or steps. */
.split { align-items: start; gap: 48px; }

/* A ghost button on a light surface. */
.on-light-btn { color: var(--ink); border-color: var(--line); background: var(--surface); }
.on-light-btn:hover { background: var(--surface-2); }

/* The pointer to the MSP program. */
.msp-strip {
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-left: 4px solid var(--xp-cyan);
  border-radius: var(--radius); padding: 28px 32px; background: var(--surface);
}
.msp-strip h2 { margin-bottom: .3em; }
.msp-strip p { margin: 0; max-width: 40em; }
.msp-strip .btn { flex: none; }

/* What is designed and coming, kept visibly apart from what ships. */
.badge-soon {
  display: inline-block; margin-bottom: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(147, 51, 234, .12); color: var(--xp-purple);
}
@media (prefers-color-scheme: dark) { .badge-soon { color: #c4a1ff; background: rgba(147, 51, 234, .22); } }
.card.soon { border-style: dashed; box-shadow: none; }
.soon-grid { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.soon-grid p { margin: 0; max-width: 46em; }
.soon-grid .btn { flex: none; }

/* --- Screenshots of the portal ---------------------------------------------- */

/* Two to a row. Every frame is the same shape so the rows line up; a taller
   screenshot is cropped from the bottom, and the link opens it whole. */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
.shots figure { margin: 0; }
.shots a {
  display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.shots a:hover, .shots a:focus-visible { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, .08), 0 12px 28px rgba(16, 24, 40, .12); }
.shots a:focus-visible { outline: 3px solid var(--xp-cyan); outline-offset: 3px; }
.shots img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
}
.shots figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.shots figcaption strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .shots a { transition: none; } .shots a:hover { transform: none; } }

/* --- FAQ: native <details>, no script -------------------------------------- */

.faq { max-width: 820px; }
.faq h2 { margin-bottom: .8em; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }

/* --- Footer ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .mark { width: 22px; height: 22px; }
.footer-brand .wordmark { font-size: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--ink); }
.site-footer p { margin: 0; }

/* --- Narrow screens -------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid, .form-layout, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .panel { max-width: 520px; }
  .control { grid-template-columns: 1fr; gap: 8px; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .msp-strip, .soon-grid { flex-direction: column; align-items: flex-start; }
  .msp-strip { padding: 24px; }
  .split { gap: 28px; }
  .shots { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-row { flex-wrap: wrap; gap: 4px 16px; padding: 10px 0 0; }
  .brand { flex: 1; }
  /* Links drop to their own row and scroll sideways rather than wrapping
     into a second and third line. */
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 20px; padding-bottom: 4px; }
  .site-nav a { white-space: nowrap; }
  .section { padding: 48px 0; }
  .form-card { padding: 20px; }
  .slug-input .suffix { padding: 0 10px; font-size: .8rem; }
  .result dl { grid-template-columns: 1fr; gap: 2px; }
  .result dd { margin-bottom: 10px; }
  .report-stats { gap: 6px; }
  .stat { padding: 8px; }
  .stat strong { font-size: 1.1rem; }
}
