/* Nimbus Support — dedicated CSS (Strategy A). Never overwrite assets/style.css.
   Dark ink #0B0F14 / #161C24 + neon #39FF14. Phase 3: Ask Nimbus AI FAB (mock replies). */

:root,
[data-theme="dark"] {
  --bg: #0B0F14;
  --surface: #161C24;
  --surface-soft: #12171E;
  --surface-raised: #1A222D;
  --ink: #F2F5F7;
  --muted: #9AA3AD;
  --muted-soft: #6B7480;
  --line: rgba(57, 255, 20, 0.12);
  --line-strong: rgba(242, 245, 247, 0.14);
  --accent: #39FF14;
  --accent-bright: #3DFF2E;
  --accent-ink: #0B0F14;
  --accent-soft: rgba(57, 255, 20, 0.12);
  --accent-mid: rgba(57, 255, 20, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4);
  --glow: 0 0 32px rgba(57, 255, 20, 0.18);
  --max: 1160px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Instrument Serif", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-bright); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.preview-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 16px;
}
.preview-banner strong { color: var(--ink); font-weight: 600; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}
.logo__mark--fallback {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--accent);
}
.logo__tm { font-size: 0.65em; vertical-align: super; color: var(--muted-soft); }
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}
.display--xl { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
.display--md { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
  margin: 16px 0 0;
  max-width: 38em;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section-head.centered .lede { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--glow);
}
.btn--primary:hover {
  background: var(--accent-bright);
  color: var(--accent-ink);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.28);
}
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--secondary:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

.support-hero {
  padding: 72px 0 40px;
  text-align: center;
  position: relative;
}
.support-hero::before {
  content: "";
  position: absolute;
  inset: 0 15% auto;
  height: 200px;
  background: radial-gradient(ellipse, rgba(57, 255, 20, 0.07), transparent 70%);
  pointer-events: none;
}
.tier-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.tier-badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.tier-badge--hot {
  border-color: var(--accent-mid);
  background: linear-gradient(160deg, rgba(57, 255, 20, 0.07), var(--surface));
}
.tier-badge__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.tier-badge h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 8px;
}
.tier-badge p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.tier-badge ul { margin: 12px 0 0; padding: 0; list-style: none; }
.tier-badge ul li {
  font-size: 0.88rem;
  color: var(--ink);
  padding: 4px 0;
  display: flex;
  gap: 8px;
}
.tier-badge ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin-inline: auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--accent-mid); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}
.faq-item__body p { margin: 0; }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  max-width: 560px;
  margin-inline: auto;
}
.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-alert {
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 16px;
}
.form-alert--warn {
  background: rgba(255, 180, 60, 0.1);
  border-color: rgba(255, 180, 60, 0.35);
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239AA3AD' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-raised);
  border: 1px solid var(--accent-mid);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md), var(--glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  z-index: 200;
  max-width: min(90vw, 420px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast__accent { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted-soft);
  font-size: 0.88rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 900px) {
  .tier-badges {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .nav-links { display: none; }
}


/* ========================================================================
   Phase 3 — Ask Nimbus AI (FAB + panel). Mock replies only. Strategy A.
   Class names / behavior from approved support-ai-preview mock.
   ======================================================================== */

.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--glow), var(--shadow-md);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(57, 255, 20, 0.35);
}
.ai-fab__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
  animation: nimbus-ai-pulse 1.6s ease infinite;
}
@keyframes nimbus-ai-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 140px));
  background: var(--surface);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.45), var(--glow);
  display: flex;
  flex-direction: column;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  overflow: hidden;
}
.ai-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  gap: 8px;
}
.ai-panel__head-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.ai-panel__head-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ai-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}
.ai-panel__title span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.ai-panel__close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}
.ai-panel__close:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.ai-panel__draft-note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}
.ai-panel__thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.msg--ai {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.msg--user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  color: var(--ink);
}
.msg__meta {
  font-size: 11px;
  color: var(--muted-soft);
  margin-bottom: 4px;
  font-weight: 600;
}
.msg--suggest { cursor: default; }
.msg--soft {
  opacity: 0.92;
  font-size: 0.82rem;
  border-style: dashed;
  color: var(--muted);
}
.msg--typing {
  padding: 12px 16px;
  min-width: 64px;
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 14px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: nimbus-typing-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes nimbus-typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.msg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.msg-action {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.msg-action:hover {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  color: var(--accent);
}
.msg-action--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.msg-action--primary:hover {
  background: var(--accent-bright);
  color: var(--accent-ink);
}

.ai-empty-tip {
  margin: 4px 0 0;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  line-height: 1.45;
}

.ai-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.ai-panel__chips--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) transparent;
  -webkit-overflow-scrolling: touch;
}
.ai-panel__chips--scroll::-webkit-scrollbar { height: 4px; }
.ai-panel__chips--scroll::-webkit-scrollbar-thumb {
  background: var(--accent-mid);
  border-radius: 4px;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--accent-mid);
  background: var(--accent-soft);
  color: var(--accent);
}
.chip--accent {
  border-color: var(--accent-mid);
  color: var(--accent);
  background: var(--accent-soft);
}

.ai-panel__input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.ai-panel__input input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9rem;
}
.ai-panel__input input:focus {
  outline: none;
  border-color: var(--accent-mid);
}
.ai-panel__input button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--line);
}
.tier-pill--sm {
  font-size: 10px;
  padding: 3px 8px;
}
.tier-micro {
  display: inline-flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.tier-micro button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  line-height: 1.2;
}
.tier-micro button.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}
.tier-micro button:hover:not(.is-active) {
  color: var(--ink);
}

@media (max-width: 560px) {
  .ai-fab span.label { display: none; }
  .ai-fab { padding: 14px; border-radius: 50%; }
  .ai-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
  }
}
