/* =========================================================
   Chudflare: design system
   Parody of Cloudflare's marketing site.
   ========================================================= */

:root {
  --chud-orange: #F38020;
  --chud-orange-light: #FBAD41;
  --chud-orange-dark: #C25B14;
  --chud-ink: #1D1D1D;
  --chud-ink-2: #383838;
  --chud-fog: #F6F6F6;
  --chud-fog-2: #E9EAEB;
  --chud-line: #D9DADC;
  --chud-cream: #FAF7F1;
  --chud-night: #0B0F14;
  --chud-night-2: #131820;
  --chud-grease: #C9931B;
  --chud-link: #0051C3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  color: var(--chud-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--chud-orange-dark);
  margin-bottom: 16px;
}
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(22px, 2.6vw, 30px); }
h4 { font-size: 18px; line-height: 1.3; }
p  { font-size: 17px; line-height: 1.6; color: var(--chud-ink-2); margin: 0 0 16px; }
.lead { font-size: 21px; line-height: 1.55; color: var(--chud-ink-2); }

.text-orange { color: var(--chud-orange-dark); }
.text-muted { color: #5a6068; }
.text-dim { color: #888e95; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--chud-orange);
  color: #fff;
  border-color: var(--chud-orange);
}
.btn-primary:hover { background: var(--chud-orange-dark); border-color: var(--chud-orange-dark); }
.btn-secondary {
  background: transparent;
  color: var(--chud-ink);
  border-color: var(--chud-ink);
}
.btn-secondary.on-dark { color: #fff; border-color: #4a525c; }
.btn-secondary.on-dark:hover { background: rgba(255,255,255,0.08); }
.btn-ghost {
  background: transparent; color: var(--chud-ink); padding: 12px 0;
}
.btn-ghost:hover { color: var(--chud-orange-dark); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--chud-line);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--chud-ink); letter-spacing: -0.02em; flex-shrink: 0; }
.nav-logo svg, .nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 22px; flex: 1; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--chud-ink); white-space: nowrap; }
.nav-links a:hover { color: var(--chud-orange-dark); }
.nav-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-cta a { font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (max-width: 1180px) {
  .nav-cta .hide-sm { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF7F1 100%);
  color: var(--chud-ink);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--chud-line);
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto auto;
  width: 60%;
  height: 90%;
  background: radial-gradient(ellipse at top right, rgba(243,128,32,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: var(--chud-ink); font-size: clamp(40px, 5vw, 60px); }
.hero p { color: var(--chud-ink-2); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 72px 0 64px; }
}
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { }
.hero-stat .num { font-size: 32px; font-weight: 800; color: var(--chud-ink); letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 13px; color: #5a6068; margin-top: 4px; }
.hero-art {
  position: relative;
  padding: 8px;
  border-radius: 24px;
}
.hero-art svg,
.hero-art img {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 50px rgba(243,128,32,0.28)) drop-shadow(0 4px 12px rgba(11,15,20,0.06));
}

/* ---------- announcement bar ---------- */
.bar {
  background: var(--chud-night);
  color: #E1E4E8;
  font-size: 13px;
  padding: 10px 0;
  text-align: center;
}
.bar a { color: var(--chud-orange-light); font-weight: 600; }
.bar-emoji { margin-right: 6px; }

/* ---------- logo wall ---------- */
.logo-wall {
  background: var(--chud-fog);
  padding: 48px 0;
  border-top: 1px solid var(--chud-line);
  border-bottom: 1px solid var(--chud-line);
}
.logo-wall .title { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: #5a6068; margin-bottom: 24px; font-weight: 600; }
.logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 900px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { 
  .logo-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .fake-logo { font-size: 13px !important; }
  .fake-logo .ico { font-size: 16px !important; margin-right: 4px !important; }
}
.fake-logo {
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  color: #6b7077;
  font-style: italic;
  letter-spacing: -0.02em;
  opacity: 0.85;
  transition: color .15s ease;
  white-space: nowrap;
}
.fake-logo:hover { color: var(--chud-ink); }
.fake-logo .ico { font-size: 22px; margin-right: 6px; }

/* ---------- card grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--chud-line);
  border-radius: 12px;
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: var(--chud-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.card .ico {
  width: 44px; height: 44px;
  background: rgba(243,128,32,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 12px; }
.card .more { font-size: 14px; font-weight: 600; color: var(--chud-orange-dark); }
.card .more::after { content: " →"; }

/* ---------- pillars (cloudflare-style large feature blocks) ---------- */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--chud-line);
}
.pillar:last-of-type { border-bottom: none; }
.pillar.reverse > div:first-child { order: 2; }
@media (max-width: 900px) {
  .pillar, .pillar.reverse { grid-template-columns: 1fr; gap: 24px; }
  .pillar.reverse > div:first-child { order: 0; }
}
.pillar-art {
  background: linear-gradient(135deg, rgba(243,128,32,0.08), rgba(11,15,20,0.05));
  border-radius: 16px;
  padding: 32px;
  font-family: 'JetBrains Mono', 'Menlo', ui-monospace, monospace;
  font-size: 13px;
  color: #2a2a2a;
  white-space: pre-wrap;
  border: 1px solid var(--chud-line);
  line-height: 1.6;
}
.pillar-art .c-key { color: #C25B14; }
.pillar-art .c-str { color: #2E7D32; }
.pillar-art .c-com { color: #888; font-style: italic; }

/* ---------- stats band ---------- */
.stats-band {
  background: var(--chud-night);
  color: #fff;
  padding: 80px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats-grid { gap: 24px; } .stat .n { font-size: 40px !important; } }
.stat .n { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; color: var(--chud-orange-light); }
.stat .l { font-size: 14px; color: #8C939A; margin-top: 8px; line-height: 1.4; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--chud-orange);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #FFE9D2; max-width: 640px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #1D1D1D; border-color: #1D1D1D; color: #fff; }
.cta-band .btn-primary:hover { background: #000; border-color: #000; }

/* ---------- footer ---------- */
.foot {
  background: #0B0F14;
  color: #C2C7CD;
  padding: 72px 0 28px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; font-weight: 700; }
.foot-col a { display: block; color: #9CA3AF; padding: 4px 0; transition: color .12s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid #1F2630;
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px;
  color: #6b7077;
  flex-wrap: wrap;
}
.foot-bottom a { color: #9CA3AF; margin-left: 16px; }
.foot-tag { display: flex; align-items: center; gap: 8px; }

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff;
  border: 1px solid var(--chud-line);
  border-radius: 14px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--chud-orange);
  box-shadow: 0 0 0 4px rgba(243,128,32,0.12);
}
.price-card .tier-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--chud-orange);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-card h3 { font-size: 22px; }
.price-card .price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-card .price small { font-size: 14px; font-weight: 500; color: #5a6068; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; flex: 1; }
.price-card li { padding: 8px 0; font-size: 14px; color: #2a2a2a; border-top: 1px solid #F0F0F1; line-height: 1.4; }
.price-card li:first-child { border-top: none; }
.price-card li::before { content: "✓ "; color: var(--chud-orange-dark); font-weight: 700; }

/* ---------- verify page ---------- */
.verify {
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.verify .wrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
}
.verify-card {
  border: 1px solid var(--chud-line);
  border-radius: 8px;
  background: #fff;
  padding: 32px 32px 28px;
}
.verify-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #F0F0F1;
}
.verify-row:first-child { border-top: none; }
.verify-cb {
  width: 28px; height: 28px;
  border: 2px solid var(--chud-line);
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  background: #fff;
  position: relative;
}
.verify-cb.spin::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid var(--chud-orange);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.verify-cb.done {
  background: var(--chud-orange);
  border-color: var(--chud-orange);
}
.verify-cb.done::after {
  content: "";
  position: absolute;
  left: 7px; top: 1px;
  width: 8px; height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }
.verify h1 { font-size: 22px; margin: 0 0 6px; }
.verify-sub { color: #5a6068; font-size: 14px; }
.ray-id {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #888e95;
  margin-top: 24px;
}

/* ---------- error pages ---------- */
.errp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.errp .wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px;
  flex: 1;
}
.err-top {
  border-bottom: 1px solid var(--chud-line);
  padding: 20px 0;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #5a6068;
}
.err-top .url {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: var(--chud-fog);
  padding: 6px 10px;
  border-radius: 4px;
}
.err-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin: 40px 0;
}
@media (max-width: 800px) { .err-cols { grid-template-columns: 1fr; } }
.err-col h4 { color: var(--chud-orange-dark); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.err-col p { font-size: 14px; color: #2a2a2a; }
.err-code {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--chud-ink);
  margin: 8px 0 0;
}
.err-msg {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 24px;
}
.err-stat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.err-stat-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--chud-line);
  font-size: 13px;
  vertical-align: top;
}
.err-stat-table td:first-child { color: #5a6068; width: 35%; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; font-weight: 600; }
.err-stat-table td:last-child { font-family: 'JetBrains Mono', ui-monospace, monospace; word-break: break-word; }

/* ---------- misc utility ---------- */
.center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center;
  background: rgba(243,128,32,0.12);
  color: var(--chud-orange-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bg-fog { background: var(--chud-fog); }
.bg-cream { background: var(--chud-cream); }
.bg-night { background: var(--chud-night); color: #fff; }
.bg-night h2, .bg-night h3 { color: #fff; }
.bg-night p { color: #C2C7CD; }

/* Cute squiggle behind a heading (used on stats labels) */
.under-squiggle {
  background-image: linear-gradient(transparent 60%, rgba(243,128,32,0.4) 60%);
  background-size: 100% 100%;
  padding: 0 4px;
}

/* =========================================================
   Interactive widgets
   ========================================================= */

/* ---------- /verify CAPTCHA gate ---------- */
.gate {
  border: 1px solid var(--chud-line);
  border-radius: 8px;
  background: #fff;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.gate-done { display: none; }
.gate-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gate-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex: 1;
  min-width: 220px;
}
.gate-check input { position: absolute; opacity: 0; pointer-events: none; }
.gate-cb-box {
  width: 22px; height: 22px;
  border: 2px solid var(--chud-line);
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: border-color .12s, background .12s;
}
.gate-check:hover .gate-cb-box { border-color: var(--chud-orange); }
.gate-check input:checked ~ .gate-cb-box {
  background: var(--chud-orange);
  border-color: var(--chud-orange);
}
.gate-check input:checked ~ .gate-cb-box::after {
  content: "";
  position: absolute;
  left: 5px; top: 0;
  width: 6px; height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.gate-cb-label { font-size: 15px; font-weight: 500; color: var(--chud-ink); }
.gate-note { margin-top: 14px; font-size: 13px; color: #5a6068; line-height: 1.5; }
#verify-card.idle { display: none; }
#verify-card.running { opacity: 1; pointer-events: auto; filter: none; transition: opacity .25s, filter .25s; }

/* ---------- generic interactive widget (WAF tester, CNS resolver) ---------- */
.wid {
  background: var(--chud-cream);
  border: 1px solid var(--chud-line);
  border-radius: 12px;
  padding: 24px;
  margin-top: 28px;
}
.wid-head { margin-bottom: 16px; }
.wid-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--chud-orange-dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.wid-title { font-size: 15px; font-weight: 700; color: var(--chud-ink); }
.wid-input { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.wid-input input {
  flex: 1;
  min-width: 220px;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid var(--chud-line);
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--chud-ink);
}
.wid-input input:focus {
  outline: none;
  border-color: var(--chud-orange);
  box-shadow: 0 0 0 3px rgba(243,128,32,0.18);
}
.wid-out {
  background: var(--chud-night);
  color: #E1E4E8;
  border-radius: 8px;
  padding: 16px 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow: auto;
  border-left: 3px solid #2a323d;
}
.wid-out.verdict-allow      { border-left-color: #4CAF50; }
.wid-out.verdict-challenge  { border-left-color: var(--chud-orange-light); }
.wid-out.verdict-mog_back   { border-left-color: #E54B4B; }

/* ---------- cookie slop banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: var(--chud-night);
  color: #E1E4E8;
  border-top: 1px solid #1F2630;
  padding: 14px 0;
  transform: translateY(0);
  transition: transform .28s ease;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.18);
}
.cookie-banner-gone { transform: translateY(105%); }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1;
  min-width: 280px;
  color: #C2C7CD;
}
.cookie-banner-text strong { color: #fff; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn-secondary { color: #fff; border-color: #3a424d; }
.cookie-banner-actions .btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* ---------- Mewing AI floating chat widget ---------- */
.mai {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
}
.mai-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--chud-orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(243,128,32,0.36), 0 6px 14px rgba(0,0,0,0.12);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.mai-launcher:hover { transform: translateY(-2px); background: var(--chud-orange-dark); box-shadow: 0 18px 38px rgba(243,128,32,0.4); }
.mai-launcher-ico { font-size: 18px; }
.mai-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  max-height: calc(100vh - 96px);
  background: #fff;
  border: 1px solid var(--chud-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .24s, transform .24s;
}
.mai-panel.mai-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--chud-line);
  background: linear-gradient(180deg, #FFF8EE, #fff);
  border-radius: 14px 14px 0 0;
}
.mai-head-l { display: flex; gap: 12px; align-items: center; }
.mai-dot {
  width: 9px; height: 9px;
  background: #4CAF50;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76,175,80,0.18);
  margin-top: 4px;
}
.mai-title { font-size: 14px; font-weight: 700; }
.mai-tag {
  background: rgba(243,128,32,0.18);
  color: var(--chud-orange-dark);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: 2px;
}
.mai-sub { font-size: 11.5px; color: #6b7077; margin-top: 1px; }
.mai-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #6b7077;
  padding: 4px 8px;
  border-radius: 4px;
}
.mai-close:hover { color: var(--chud-ink); background: var(--chud-fog); }
.mai-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--chud-fog);
}
.mai-msg {
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
}
.mai-msg-user {
  align-self: flex-end;
  background: var(--chud-ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mai-msg-bot {
  align-self: flex-start;
  background: #fff;
  color: var(--chud-ink);
  border: 1px solid var(--chud-line);
  border-bottom-left-radius: 4px;
}
.mai-typing { display: inline-flex; gap: 4px; padding: 12px 14px; align-items: center; }
.mai-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #B5BAC0;
  animation: maiBlink 1.1s infinite ease-in-out;
}
.mai-typing span:nth-child(2) { animation-delay: 0.15s; }
.mai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes maiBlink {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.mai-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--chud-line);
  background: #fff;
  border-radius: 0 0 14px 14px;
}
.mai-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--chud-line);
  background: var(--chud-fog);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--chud-ink);
}
.mai-input:focus { outline: none; border-color: var(--chud-orange); background: #fff; }
.mai-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--chud-orange);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, transform .12s;
}
.mai-send:hover { background: var(--chud-orange-dark); transform: scale(1.05); }
@media (max-width: 500px) {
  .mai { right: 12px; bottom: 12px; }
  .mai-launcher-text { display: none; }
  .mai-launcher { padding: 14px; }
  .mai-launcher-ico { font-size: 22px; }
  .mai-panel { width: calc(100vw - 24px); right: -6px; bottom: 64px; }
}

/* =========================================================
   /chud-check: site verification flow
   ========================================================= */
.check-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--chud-line);
}
.check-step:last-of-type { border-bottom: none; }
@media (max-width: 700px) { .check-step { flex-direction: column; gap: 16px; } }
.check-step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--chud-orange);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(243,128,32,0.28);
}
.check-step-locked .check-step-num { background: #B5BAC0; box-shadow: none; }
.check-step-unlocked .check-step-num { background: #4CAF50; box-shadow: 0 8px 18px rgba(76,175,80,0.32); }
.check-step-body { flex: 1; min-width: 0; }

.marker-tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 0;
  border-bottom: 1px solid var(--chud-line);
  flex-wrap: wrap;
}
.marker-tab {
  background: transparent;
  border: none;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #5a6068;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .12s;
}
.marker-tab:hover { color: var(--chud-ink); }
.marker-tab-active {
  color: var(--chud-orange-dark);
  border-bottom-color: var(--chud-orange);
}
.marker-panel { margin-top: 20px; }
.marker-panel code { color: inherit; }

.copy-block {
  position: relative;
  background: var(--chud-night);
  color: #E1E4E8;
  border-radius: 8px;
  padding: 16px 110px 16px 18px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.copy-block-multi { padding: 16px 18px; }
.copy-block-multi .copy-btn {
  position: static;
  display: inline-block;
  margin: 14px 0 0;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
}
.copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--chud-orange);
  color: #fff;
  border: none;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background .12s;
}
.copy-btn:hover { background: var(--chud-orange-dark); }
.copy-btn.copied { background: #4CAF50; }
.copy-block-multi .copy-btn:hover { background: rgba(255,255,255,0.16); }
.copy-block-multi .copy-btn.copied { background: #4CAF50; color: #fff; }

.verifier {
  background: var(--chud-cream);
  border: 1px solid var(--chud-line);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.ver-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ver-input-row input {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid var(--chud-line);
  background: #fff;
  font-size: 15px;
  font-family: inherit;
  color: var(--chud-ink);
}
.ver-input-row input:focus {
  outline: none;
  border-color: var(--chud-orange);
  box-shadow: 0 0 0 3px rgba(243,128,32,0.18);
}
.ver-secondary { margin-top: 14px; }
.link-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--chud-orange-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(194,91,20,0.4);
  text-underline-offset: 2px;
}
.link-btn:hover { text-decoration-color: var(--chud-orange-dark); }
.ver-paste { margin-top: 16px; }
.ver-paste textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--chud-line);
  background: #fff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  color: var(--chud-ink);
}
.ver-paste textarea:focus {
  outline: none;
  border-color: var(--chud-orange);
  box-shadow: 0 0 0 3px rgba(243,128,32,0.18);
}
.ver-out {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  border-left: 4px solid;
}
.ver-out-pending {
  background: #FFF6E9;
  border-color: var(--chud-orange);
  color: #7a3a08;
}
.ver-out-success {
  background: #E8F5E9;
  border-color: #4CAF50;
  color: #1B5E20;
}
.ver-out-success strong { color: #0E3812; }
.ver-out-fail {
  background: #FDECEA;
  border-color: #E54B4B;
  color: #7A1F1F;
}
.ver-out-fail strong { color: #4A0F0F; }
.ver-out-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  background: rgba(0,0,0,0.05);
  padding: 8px 10px;
  border-radius: 4px;
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Step 3 badge claim */
.check-step-locked .check-step-body h2,
.check-step-locked .check-step-body .lead { opacity: 0.5; }
.check-step-unlocked .check-step-body h2,
.check-step-unlocked .check-step-body .lead { opacity: 1; }

.badge-preview-wrap {
  margin-top: 24px;
  padding: 32px;
  background: var(--chud-fog);
  border: 1px dashed var(--chud-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.badge-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7077;
}
.badge-preview { font-size: 0; }
.badge-preview > * { font-size: 12px; }

/* =========================================================
   Hero CLI install block
   ========================================================= */
.hero-install {
  margin: 28px 0 0;
  max-width: 540px;
}
.hero-install-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6068;
  margin-bottom: 8px;
}
.hero-install-block {
  background: var(--chud-ink);
  border: 1px solid var(--chud-ink);
  color: #E1E4E8;
  font-size: 13px;
  padding: 14px 110px 14px 16px;
}
.hero-install-block .copy-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.hero-install-block .copy-btn:hover { background: rgba(255,255,255,0.22); }

/* CLI fallback panel on /chud-check verifier */
.ver-cli {
  margin-top: 18px;
  padding: 18px 20px 20px;
  background: #fff;
  border: 1px solid var(--chud-line);
  border-radius: 10px;
}
.ver-cli-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chud-orange-dark);
  margin-bottom: 8px;
}
.ver-cli-label::before,
.ver-cli-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--chud-line);
}
.ver-cli code {
  background: rgba(243,128,32,0.10);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

