/* ============================================================
   style.css — theme for resources pages
   Matches the ChatNox landing page (index.html) theme:
   colors, navbar, footer, and buttons pulled from
   /dashboard/style.css, plus new styles for inner content pages.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #111318;
  --ink-soft: #2a2d35;
  --paper: #FAFAF8;
  --line: #E7E5E0;
  --muted: #6B7280;
  --signal: #FF5A1F;
  --signal-soft: #FFE7DB;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.btn-ghost-dark {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 9px 18px;
}
.btn-ghost-dark:hover { background: #f2f2f2; text-decoration: none; }

.btn-solid-dark {
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--ink);
  padding: 9px 18px;
}
.btn-solid-dark:hover { background: var(--ink-soft); text-decoration: none; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.announce-track {
  display: inline-flex;
  gap: 60px;
  padding: 9px 0;
  animation: announce-scroll 18s linear infinite;
}
.announce-track span { flex-shrink: 0; }
@keyframes announce-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; }
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.navbar .logo {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.navbar .logo .logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar .logo .logo-accent { color: var(--signal); }

.navbar .logo,
.navbar .logo:hover {
  text-decoration: none;
}

.nav-center {
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;
}
.nav-center a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-center a:hover { color: var(--ink); text-decoration: none; }
.nav-center a.active { color: var(--signal); }

.nav-right { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 900px) {
  .nav-center { display: none; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--paper);
  padding: 64px 20px 56px;
  text-align: left;
}
.page-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.page-header .eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.page-header h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}
.page-header p {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}

/* ---------- Page content ---------- */
.page-content {
  padding: 64px 20px 96px;
}
.page-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 16px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 760px;
}
.page-content ul {
  margin: 0 0 16px 20px;
  color: var(--muted);
}
.page-content li { margin-bottom: 8px; }
.page-content strong { color: var(--ink); }

/* ---------- Placeholder / empty-state card ---------- */
.empty-card {
  margin-top: 8px;
  padding: 48px 32px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  max-width: 640px;
}
.empty-card .empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--signal-soft);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 18px;
}
.empty-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 auto;
}

/* ---------- Simple cards grid (resources hub) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.res-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  display: block;
}
.res-card:hover { border-color: var(--signal); text-decoration: none; }
.res-card .res-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--signal-soft);
  color: var(--signal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.res-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.res-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd1d6;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.footer-logo .logo-img {
  height: 26px;
  width: 26px;
  object-fit: contain;
}
.footer-logo .logo-accent { color: var(--signal); }
.footer-desc {
  font-size: 14px;
  color: #9a9da5;
  max-width: 320px;
  line-height: 1.6;
}
.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #cfd1d6;
  font-size: 14px;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  color: #cfd1d6;
}
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-contact-item a { color: #cfd1d6; }
.footer-contact-item a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 13px;
  color: #85888f;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   TERMS & CONDITIONS PAGE
   Matches the existing ChatNox resources theme
   ============================================================ */

.legal-page { background: var(--paper); padding: 64px 20px 180px !important; }

.legal-content {
  max-width: 71%;
  margin: 0 auto;
}

/* ---------- Individual Sections ---------- */

.legal-section {
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-content::after { 
  content: "";
  display: block; 
  height: 40px; 
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 800;
  color: var(--ink);
}

.legal-section p {
  max-width: 75%;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--ink);
}

/* ---------- Lists ---------- */

.legal-section ul {
  max-width: 780px;
  margin: 4px 0 16px 22px;
  padding: 0;
  color: var(--muted);
}

.legal-section li {
  margin-bottom: 10px;
  padding-left: 5px;
  font-size: 16px;
  line-height: 1.65;
}

.legal-section li::marker {
  color: var(--signal);
}

.legal-section a {
  color: var(--signal);
  font-weight: 500;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* ---------- Better Section Spacing ---------- */

.legal-section h2 + p {
  margin-top: 0;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {

  .legal-page {
    padding: 42px 18px 70px;
  }

  .legal-content {
    width: 100%;
  }

  .legal-updated {
    margin-bottom: 32px;
    font-size: 12.5px;
  }

  .legal-section {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .legal-section h2 {
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 13px;
  }

  .legal-section p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
  }

  .legal-section ul {
    margin-left: 20px;
  }

  .legal-section li {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 9px;
    padding-left: 3px;
  }
}

/* ---------- Small Phones ---------- */

@media (max-width: 480px) {

  .legal-page {
    padding: 34px 16px 60px;
  }

  .legal-updated {
    margin-bottom: 28px;
    padding: 7px 11px;
  }

  .legal-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
  }

  .legal-section h2 {
    font-size: 19px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 14.5px;
  }

  .legal-section ul {
    margin-left: 18px;
  }
}

/* ============================================================
   INSTALLATION GUIDE
   ChatNox Resources / Guide Page
   ============================================================ */

/* ---------- Installation Page ---------- */

.install-page {
  padding-top: 70px;
  padding-bottom: 120px;
}

.install-page > .container {
  max-width: 71%;
}

/* ---------- Installation Sections ---------- */

.install-section {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  padding: 0 0 58px;
  margin-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.install-section:last-of-type {
  margin-bottom: 0;
}

/* ---------- Section Number ---------- */

.install-number {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--ink);
  color: #fff;

  border-radius: 12px;

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;

  flex-shrink: 0;
}

/* ---------- Section Content ---------- */

.install-section-content {
  min-width: 0;
}

.install-section-content h2 {
  margin: 0 0 15px;

  color: var(--ink);

  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.02em;

  font-weight: 800;
}

.install-section-content h3 {
  margin: 28px 0 10px;

  color: var(--ink);

  font-size: 18px;
  font-weight: 700;
}

.install-section-content p {
  max-width: 760px;

  margin: 0 0 16px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.75;
}

.install-section-content strong {
  color: var(--ink);
}

.install-section-content code {
  padding: 3px 6px;

  background: #f0efec;
  border: 1px solid var(--line);
  border-radius: 5px;

  color: var(--ink);

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;
}


/* ============================================================
   SITE KEY CARD
   ============================================================ */

.info-card {
  margin-top: 28px;

  max-width: 760px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 14px;

  padding: 24px;
}

.info-card-label {
  margin-bottom: 10px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-key-box {
  display: flex;
  align-items: center;

  min-height: 52px;

  padding: 12px 15px;

  background: #f5f4f1;

  border: 1px solid var(--line);
  border-radius: 9px;

  overflow-x: auto;
}

.site-key-box code {
  padding: 0;

  background: transparent;
  border: none;

  color: var(--ink);

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 14px;

  white-space: nowrap;
}

.info-card-note {
  margin: 13px 0 0 !important;

  color: var(--muted);

  font-size: 13px !important;
  line-height: 1.6 !important;
}


/* ============================================================
   CODE BLOCK
   ============================================================ */

.code-card {
  margin-top: 26px;

  max-width: 820px;

  overflow: hidden;

  background: #111318;

  border: 1px solid #252832;
  border-radius: 12px;

  box-shadow: 0 8px 30px rgba(17, 19, 24, 0.08);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 16px;

  background: #191b21;

  border-bottom: 1px solid #292c34;

  color: #fff;

  font-size: 13px;
  font-weight: 600;
}

.code-language {
  color: #9a9da5;

  font-size: 11px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-card pre {
  margin: 0;

  padding: 22px;

  overflow-x: auto;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 13px;
  line-height: 1.75;

  white-space: pre;
}

.code-card pre code {
  padding: 0;

  background: transparent;
  border: none;

  color: #f1f3f5;

  font-family: inherit;
  font-size: inherit;
}

.code-help {
  margin-top: 14px !important;

  font-size: 13px !important;
}


/* ============================================================
   SETUP STEPS
   ============================================================ */

.setup-steps {
  counter-reset: setup-counter;

  list-style: none;

  max-width: 780px;

  margin: 28px 0 0;
  padding: 0;
}

.setup-steps li {
  counter-increment: setup-counter;

  position: relative;

  display: grid;
  grid-template-columns: 42px 1fr;

  gap: 16px;

  margin-bottom: 26px;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.7;
}

.setup-steps li::before {
  content: counter(setup-counter);

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--signal-soft);
  color: var(--signal);

  border-radius: 50%;

  font-size: 13px;
  font-weight: 800;
}

.setup-steps li strong {
  display: block;

  margin-bottom: 5px;

  color: var(--ink);

  font-size: 16px;
}

.setup-steps li p {
  margin: 0;

  font-size: 15px;
  line-height: 1.65;
}


/* ============================================================
   CHECKLIST
   ============================================================ */

.install-checklist {
  list-style: none;

  max-width: 760px;

  margin: 25px 0 0;
  padding: 0;
}

.install-checklist li {
  position: relative;

  margin-bottom: 13px;
  padding-left: 32px;

  color: var(--muted);

  font-size: 15.5px;
  line-height: 1.6;
}

.install-checklist li::before {
  content: "✓";

  position: absolute;

  left: 0;
  top: 1px;

  width: 21px;
  height: 21px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--signal-soft);
  color: var(--signal);

  border-radius: 50%;

  font-size: 12px;
  font-weight: 800;
}


/* ============================================================
   TROUBLESHOOTING
   ============================================================ */

.troubleshooting-list {
  max-width: 780px;

  margin: 25px 0 0;
  padding-left: 21px;

  color: var(--muted);
}

.troubleshooting-list li {
  margin-bottom: 17px;
  padding-left: 6px;

  font-size: 15.5px;
  line-height: 1.7;
}

.troubleshooting-list li::marker {
  color: var(--signal);
}

.troubleshooting-list strong {
  color: var(--ink);
}


/* ============================================================
   FINAL CTA
   ============================================================ */

.install-next {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-top: 20px;
  padding: 34px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 16px;
}

.install-next .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 14px;

  padding: 6px 12px;

  background: var(--paper);

  border: 1px solid var(--line);
  border-radius: 999px;

  color: var(--ink-soft);

  font-size: 12px;
  font-weight: 600;
}

.install-next .eyebrow .dot {
  width: 7px;
  height: 7px;

  background: var(--signal);

  border-radius: 50%;

  box-shadow: 0 0 0 3px var(--signal-soft);
}

.install-next h2 {
  margin: 0 0 9px;

  color: var(--ink);

  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
}

.install-next p {
  max-width: 600px;

  margin: 0;

  color: var(--muted);

  font-size: 14.5px;
  line-height: 1.65;
}

.install-next .btn {
  flex-shrink: 0;
}


/* ============================================================
   MOBILE — TABLET
   ============================================================ */

@media (max-width: 700px) {

  .install-page {
    padding-top: 45px;
    padding-bottom: 80px;
  }

  .install-section {
    grid-template-columns: 1fr;

    gap: 17px;

    padding-bottom: 42px;
    margin-bottom: 42px;
  }

  .install-number {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    font-size: 12px;
  }

  .install-section-content h2 {
    font-size: 23px;
  }

  .install-section-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .info-card {
    padding: 18px;
  }

  .code-card pre {
    padding: 17px;

    font-size: 11.5px;
    line-height: 1.7;
  }

  .setup-steps li {
    grid-template-columns: 36px 1fr;

    gap: 12px;

    font-size: 15px;
  }

  .setup-steps li::before {
    width: 32px;
    height: 32px;
  }

  .install-checklist li,
  .troubleshooting-list li {
    font-size: 14.5px;
  }

  .install-next {
    align-items: flex-start;
    flex-direction: column;

    padding: 25px;
  }

  .install-next .btn {
    width: 100%;
  }
}


/* ============================================================
   MOBILE — SMALL PHONES
   ============================================================ */

@media (max-width: 480px) {

  .install-page {
    padding-left: 16px;
    padding-right: 16px;

    padding-top: 35px;
    padding-bottom: 65px;
  }

  .install-section {
    padding-bottom: 34px;
    margin-bottom: 34px;
  }

  .install-section-content h2 {
    font-size: 21px;
  }

  .install-section-content p {
    font-size: 14.5px;
  }

  .info-card {
    padding: 15px;
  }

  .site-key-box {
    min-height: 48px;

    padding: 10px 12px;
  }

  .site-key-box code {
    font-size: 11.5px;
  }

  .code-card {
    border-radius: 9px;
  }

  .code-card-header {
    padding: 10px 13px;
  }

  .code-card pre {
    padding: 14px;

    font-size: 10.5px;
  }

  .setup-steps li {
    grid-template-columns: 32px 1fr;

    gap: 10px;

    margin-bottom: 22px;
  }

  .setup-steps li::before {
    width: 29px;
    height: 29px;

    font-size: 11px;
  }

  .setup-steps li strong {
    font-size: 14.5px;
  }

  .setup-steps li p {
    font-size: 14px;
  }

  .install-next {
    padding: 20px;
  }

  .install-next h2 {
    font-size: 20px;
  }

  .install-next p {
    font-size: 14px;
  }
}

/* ============================================================
   LIVE DEMO PAGE
   ============================================================ */

.demo-header {
  padding-bottom: 52px;
}


/* ============================================================
   DEMO PAGE
   ============================================================ */

.demo-page {
  padding: 64px 20px 110px;
}

.demo-page > .container {
  max-width: 1100px;
}


/* ============================================================
   DEMO LAUNCHER
   ============================================================ */

.demo-launcher {
  max-width: 900px;
  margin: 0 auto 48px;

  padding: 30px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow: 0 8px 30px rgba(17, 19, 24, 0.04);
}

.demo-label {
  display: block;

  margin-bottom: 7px;

  color: var(--signal);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.demo-launcher h2 {
  margin: 0 0 7px;

  color: var(--ink);

  font-size: 25px;
  font-weight: 800;

  letter-spacing: -0.02em;
}

.demo-launcher p {
  margin: 0 0 22px;

  color: var(--muted);

  font-size: 14.5px;
}


/* ============================================================
   URL FORM
   ============================================================ */

.demo-form {
  display: flex;

  gap: 10px;
}

.demo-input-wrapper {
  position: relative;

  flex: 1;
}

.demo-input-icon {
  position: absolute;

  left: 15px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--muted);

  font-size: 18px;

  pointer-events: none;
}

.demo-input-wrapper input {
  width: 100%;
  height: 48px;

  padding: 0 15px 0 43px;

  background: #fafaf8;

  border: 1px solid var(--line);
  border-radius: 8px;

  outline: none;

  color: var(--ink);

  font-family: inherit;
  font-size: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.demo-input-wrapper input::placeholder {
  color: #9a9da5;
}

.demo-input-wrapper input:focus {
  border-color: var(--signal);

  box-shadow:
    0 0 0 3px var(--signal-soft);
}

.demo-submit {
  height: 48px;

  padding-left: 22px;
  padding-right: 22px;

  white-space: nowrap;
}

.demo-submit:disabled {
  opacity: 0.65;

  cursor: wait;
}

.demo-message {
  min-height: 20px;

  margin-top: 10px;

  font-size: 13px;
}

.demo-message.error {
  color: #d43d18;
}


/* ============================================================
   PREVIEW SECTION
   ============================================================ */

.demo-preview-section {
  scroll-margin-top: 25px;
}

.demo-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 12px;
}

.demo-preview-title {
  display: flex;
  align-items: center;

  gap: 9px;

  color: var(--ink);

  font-size: 14px;
  font-weight: 700;
}

.preview-status {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #28a745;

  box-shadow:
    0 0 0 4px rgba(40, 167, 69, 0.12);
}

.preview-url {
  max-width: 50%;

  overflow: hidden;

  color: var(--muted);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ============================================================
   BROWSER FRAME
   ============================================================ */

.browser-frame {
  position: relative;

  overflow: hidden;

  background: #fff;

  border: 1px solid #dcdad5;
  border-radius: 14px;

  box-shadow:
    0 20px 60px rgba(17, 19, 24, 0.12);
}

.browser-bar {
  height: 48px;

  display: flex;
  align-items: center;

  gap: 20px;

  padding: 0 16px;

  background: #f2f1ee;

  border-bottom: 1px solid #dedcd7;
}

.browser-dots {
  display: flex;

  gap: 6px;

  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;

  display: block;

  border-radius: 50%;

  background: #c8c6c0;
}

.browser-address {
  flex: 1;

  max-width: 600px;

  height: 29px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0 11px;

  background: #fff;

  border: 1px solid #dedcd7;
  border-radius: 6px;

  color: #747780;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: 10px;

  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


/* ============================================================
   WEBSITE IFRAME
   ============================================================ */

.website-preview {
  position: relative;

  height: 650px;

  background: #fff;

  overflow: hidden;
}

.website-preview iframe {
  display: block;

  width: 100%;
  height: 100%;

  border: 0;

  background: #fff;
}

/* Illustrative-only launcher shown inside the preview box — matches the
   real widget's actual launcher exactly (same 58x58px size, same
   chat-bubble border-radius, same single-icon convention — no input
   bar or send button attached, because the real one doesn't have those
   either). It's a visual stand-in only: a real widget can't be
   injected into the iframe next to it (different origin, blocked by
   the browser). Confined to .website-preview via position:absolute +
   that container's overflow:hidden. Clicking it opens the *real*
   ChatNox widget that's actually loaded on this page (see the JS
   below) — so it's not a dead end. */
.preview-widget-launcher {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 20;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 30% 30% 30% 4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--signal);
  box-shadow: 0 6px 16px rgba(255, 90, 31, .35), 0 2px 6px rgba(16, 16, 24, .12);
  transition: transform .15s ease;
}
.preview-widget-launcher:hover {
  transform: scale(1.06);
}
.preview-widget-launcher-icon {
  font-size: 23px;
  line-height: 1;
}

/* Static mockup panel — styled to match widget.js's real #lc-panel /
   #lc-landing Home screen (same gradient formula, same layout), but
   entirely non-interactive content: nothing here is a live chat. Kept
   in sync by hand with widget.js's actual landing-screen CSS; update
   both together if that ever changes. */
.preview-widget-panel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 21;
  width: 300px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(16, 16, 24, .22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.preview-widget-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.preview-widget-panel-top {
  position: relative;
  flex: none;
  padding: 20px 18px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--signal) 0%, rgba(255, 90, 31, .9) 38%, rgba(255, 90, 31, .7) 70%, rgba(255, 255, 255, .18) 100%);
}
.preview-widget-panel-top::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 90, 31, 0) 0%, rgba(255, 255, 255, .45) 48%, #fff 100%);
  pointer-events: none;
}
.preview-widget-panel-header-row {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: -4px;
}
.preview-widget-panel-icon-btn {
  background: none;
  border: none;
  color: #fff;
  opacity: .85;
  cursor: pointer;
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-widget-panel-icon-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .15);
}
.preview-widget-panel-brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-widget-panel-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.preview-widget-panel-brand-name {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.preview-widget-panel-start {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--signal);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}
.preview-widget-panel-bottom {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 16px 12px;
}
.preview-widget-panel-group-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.preview-widget-panel-link-group {
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.preview-widget-panel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--ink);
}
.preview-widget-panel-link + .preview-widget-panel-link {
  border-top: 1px solid var(--line);
}
.preview-widget-panel-link-text {
  flex: 1;
}
.preview-widget-panel-link-arrow {
  color: var(--muted);
}
.preview-widget-panel-footer {
  flex: none;
  text-align: left;
  padding: 4px 16px;
  font-size: 11px;
  color: var(--muted);
}
.preview-widget-panel-footer strong {
  color: #6b7280;
}
.preview-widget-panel-tabs {
  flex: none;
  display: flex;
  border-top: 1px solid var(--line);
}
.preview-widget-panel-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.preview-widget-panel-tab span:first-child {
  font-size: 15px;
}
.preview-widget-panel-tab.active {
  color: var(--signal);
}


/* ============================================================
   LOADING
   ============================================================ */

.preview-loading {
  position: absolute;

  inset: 0;

  z-index: 20;

  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 13px;

  background: rgba(250, 250, 248, 0.94);

  color: var(--muted);

  font-size: 13px;
}

.preview-loading.show {
  display: flex;
}

.loading-spinner {
  width: 30px;
  height: 30px;

  border: 3px solid var(--line);
  border-top-color: var(--signal);

  border-radius: 50%;

  animation: demo-spin 0.8s linear infinite;
}

@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}




/* ============================================================
   PREVIEW NOTE
   ============================================================ */

.demo-preview-note {
  display: flex;
  align-items: flex-start;

  gap: 9px;

  margin-top: 13px;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

.demo-preview-note span {
  flex-shrink: 0;

  color: var(--signal);
}

.demo-preview-note p {
  margin: 0;
}


/* ============================================================
   DEMO FEATURES
   ============================================================ */

.demo-features {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

  margin-top: 70px;
}

.demo-feature {
  padding: 26px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 14px;
}

.demo-feature-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 15px;

  background: var(--signal-soft);

  border-radius: 10px;

  font-size: 19px;
}

.demo-feature h3 {
  margin-bottom: 7px;

  color: var(--ink);

  font-size: 16px;
  font-weight: 700;
}

.demo-feature p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.65;
}


/* ============================================================
   DEMO CTA
   ============================================================ */

.demo-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-top: 70px;

  padding: 35px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 16px;
}

.demo-cta .eyebrow {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  margin-bottom: 13px;

  padding: 6px 12px;

  background: var(--paper);

  border: 1px solid var(--line);

  border-radius: 999px;

  color: var(--ink-soft);

  font-size: 12px;
  font-weight: 600;
}

.demo-cta .eyebrow .dot {
  width: 7px;
  height: 7px;

  background: var(--signal);

  border-radius: 50%;

  box-shadow:
    0 0 0 3px var(--signal-soft);
}

.demo-cta h2 {
  margin-bottom: 8px;

  color: var(--ink);

  font-size: 24px;

  font-weight: 800;

  letter-spacing: -0.02em;
}

.demo-cta p {
  margin: 0;

  color: var(--muted);

  font-size: 14.5px;
}

.demo-cta .btn {
  flex-shrink: 0;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 900px) {

  .demo-features {
    grid-template-columns: 1fr;
  }

  .website-preview {
    height: 600px;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .demo-page {
    padding:
      40px 16px
      80px;
  }

  .demo-launcher {
    padding: 22px;

    margin-bottom: 35px;
  }

  .demo-form {
    flex-direction: column;
  }

  .demo-submit {
    width: 100%;
  }

  .demo-preview-top {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }

  .preview-url {
    max-width: 100%;
  }

  .browser-bar {
    height: 43px;

    padding: 0 11px;
  }

  .browser-address {
    font-size: 9px;
  }

  .website-preview {
    height: 550px;
  }

  .preview-widget-launcher {
    right: 15px;
    bottom: 15px;
    width: 54px;
    height: 54px;
  }

  .preview-widget-panel {
    right: 15px;
    bottom: 15px;
    width: min(280px, calc(100% - 30px));
  }

  .demo-cta {
    align-items: flex-start;

    flex-direction: column;

    padding: 25px;
  }

  .demo-cta .btn {
    width: 100%;
  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

  .demo-launcher {
    padding: 18px;
  }

  .demo-launcher h2 {
    font-size: 21px;
  }

  .demo-launcher p {
    font-size: 13.5px;
  }

  .website-preview {
    height: 500px;
  }

  .browser-dots span {
    width: 8px;
    height: 8px;
  }

  .demo-feature {
    padding: 21px;
  }

}
/* ==========================================================================
   CHATNOX - PROFESSIONAL FEATURE PREVIEW STYLES
   ========================================================================== */

:root,
body.theme-blue {
  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #f0f9ff;
  --accent-border: #bae6fd;
}

body.theme-green {
  --accent-color: #059669;
  --accent-hover: #047857;
  --accent-light: #ecfdf5;
  --accent-border: #a7f3d0;
}

body.theme-purple {
  --accent-color: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: #f5f3ff;
  --accent-border: #ddd6fe;
}

body.theme-pink {
  --accent-color: #e11d48;
  --accent-hover: #be123c;
  --accent-light: #fff1f2;
  --accent-border: #fecdd3;
}

/* Overall Section Layout */
.features-page {
  padding-bottom: 80px;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Column: Feature Cards */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.feature-card.active {
  border: 1.5px solid #0f172a;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Black Monochrome Icon Containers */
.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.05);
}

.feature-card.active .feature-icon-box {
  background: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.feature-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
}

/* Right Column: Dynamic Preview Container */
.features-preview-wrapper {
  position: sticky;
  top: 100px;
}

.features-preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 32px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
  position: relative;
}

.preview-badge {
  position: absolute;
  top: 22px;
  left: 28px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dynamic Panel Display */
.preview-panel {
  display: none;
  width: 100%;
  max-width: 340px;
  animation: fadeIn 0.3s ease;
}

.preview-panel.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= PREVIEW UI COMPONENTS ================= */

/* Clean SaaS Card Container */
.preview-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.preview-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.preview-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 1. Live Chat Preview */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 85%;
}

.chat-bubble.agent {
  background: #f1f5f9;
  color: #0f172a;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  background: var(--accent-color);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  transition: background-color 0.2s ease;
}

/* 2. File Upload Preview */
.file-upload-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 12px 16px;
  border-radius: 10px;
}

.file-icon-square {
  width: 36px;
  height: 36px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
}

.file-details {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.file-details strong {
  color: #0f172a;
}

.file-details span {
  color: #64748b;
  font-size: 11px;
}

/* 3. Custom Themes Preview */
.theme-preview-box {
  text-align: center;
  padding: 12px;
}

.theme-preview-box label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  display: block;
  margin-bottom: 12px;
}

.color-swatches {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.swatch:hover,
.swatch.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #0f172a;
}

.swatch.blue { background: #0284c7; }
.swatch.green { background: #059669; }
.swatch.purple { background: #7c3aed; }
.swatch.pink { background: #e11d48; }

/* 4. Ban User Preview */
.ban-alert-card {
  text-align: center;
  padding: 24px 16px;
  background: #ffffff;
  border: 1px solid #fee2e2;
  border-radius: 12px;
}

.ban-badge-icon {
  width: 40px;
  height: 40px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 18px;
}

.ban-alert-card strong {
  display: block;
  color: #991b1b;
  font-size: 14px;
}

.ban-alert-card code {
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.btn-unban {
  margin-top: 14px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 5. Message Edit Preview */
.edit-history-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.original-msg {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  padding-left: 4px;
}

.edited-msg-bubble {
  background: var(--accent-color);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-edited {
  font-size: 10px;
  opacity: 0.8;
  font-style: italic;
}

/* 6. Blocked Words Filter Preview */
.filter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.masked-bubble {
  background: #f1f5f9;
  color: #334155;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
}

/* 7. Team Assignment Preview */
.assignment-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assignment-card label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.custom-select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}

/* Responsive Rules */
@media (max-width: 850px) {
  .features-layout {
    grid-template-columns: 1fr;
  }

  .features-preview-wrapper {
    position: relative;
    top: 0;
  }
}

/* ============================================================
   integrations.css — styles for /integrations page
   Uses the same design tokens as style.css:
   --ink, --ink-soft, --paper, --line, --muted, --signal, --signal-soft
   ============================================================ */

.integrations-page {
  padding: 8px 20px 90px;
}

/* ---------- Platform tabs ---------- */
.integ-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;

  margin-bottom: 38px;
}

.integ-tab {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 12px 20px;

  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;

  color: var(--ink-soft);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.integ-tab:hover {
  border-color: var(--signal);
  color: var(--ink);
}

.integ-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.integ-tab-icon {
  font-size: 16px;
  line-height: 1;
}

/* ---------- Panels ---------- */
.integ-panel {
  display: none;
}

.integ-panel.active {
  display: block;
  animation: integFadeIn 0.2s ease;
}

@keyframes integFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.integ-panel-head {
  max-width: 720px;
  margin-bottom: 30px;
}

.integ-panel-head h2 {
  margin: 0 0 10px;

  color: var(--ink);

  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.integ-panel-head p {
  margin: 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Numbered steps ---------- */
.integ-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;

  max-width: 760px;
  margin-bottom: 30px;
}

.integ-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.integ-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 30px;
  height: 30px;

  background: var(--signal-soft);
  border-radius: 50%;

  color: var(--signal);

  font-size: 14px;
  font-weight: 700;
}

.integ-step h3 {
  margin: 0 0 5px;

  color: var(--ink);

  font-size: 16px;
  font-weight: 700;
}

.integ-step p {
  margin: 0;

  max-width: 640px;

  color: var(--muted);

  font-size: 14.5px;
  line-height: 1.7;
}

.integ-step code {
  padding: 2px 6px;

  background: #f0efec;
  border: 1px solid var(--line);
  border-radius: 5px;

  color: var(--ink);

  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
}

.integ-step strong {
  color: var(--ink);
}

/* ---------- More integrations coming ---------- */
.integ-more {
  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 820px;
  margin-top: 42px;

  padding: 16px 20px;

  background: var(--signal-soft);
  border-radius: 12px;
}

.integ-more-icon {
  color: var(--signal);
  font-size: 15px;
}

.integ-more p {
  margin: 0;

  color: var(--ink-soft);

  font-size: 14px;
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .integ-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .integ-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
  }

  .integ-panel-head h2 {
    font-size: 22px;
  }

  .integ-step {
    gap: 12px;
  }
}


/* ============================================================
   GUIDE — TABLE OF CONTENTS
   ============================================================ */

.guide-toc {
  margin: 0 0 56px;

  padding: 22px 24px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-toc-label {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 14px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.guide-toc-label svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--signal);
}

.guide-toc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 28px;
}

.guide-toc-grid a {
  display: flex;
  align-items: baseline;
  gap: 10px;

  padding: 7px 4px;

  border-radius: 7px;

  color: var(--ink-soft);

  font-size: 14.5px;
  font-weight: 600;

  transition: color 0.15s ease, transform 0.15s ease;
}

.guide-toc-grid a:hover {
  color: var(--signal);
  transform: translateX(2px);
}

.guide-toc-num {
  flex-shrink: 0;

  color: var(--signal);

  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.guide-toc-new::after {
  content: "New";

  margin-left: 8px;
  padding: 2px 7px;

  background: var(--signal-soft);

  border-radius: 20px;

  color: var(--signal);

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.03em;

  vertical-align: middle;
}

@media (max-width: 720px) {
  .guide-toc-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   GUIDE — SCROLL-REVEAL ANIMATION
   ============================================================ */

.install-section.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);

  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.install-section.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .install-section.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================
   GUIDE — AI & CUSTOMIZATION SECTION
   ============================================================ */

.guide-subhead {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 34px 0 14px;
}

.guide-subhead svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: var(--signal);
}

.guide-subhead h3 {
  margin: 0;

  color: var(--ink);

  font-size: 18px;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  max-width: 760px;

  margin: 18px 0 22px;
}

.feature-card {
  padding: 18px 19px;

  background: #fff;

  border: 1px solid var(--line);
  border-radius: 13px;

  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #d8d5cf;
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.06);
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  margin-bottom: 12px;

  background: var(--signal-soft);

  border-radius: 10px;
}

.feature-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--signal);
}

.feature-card h4 {
  margin: 0 0 6px;

  color: var(--ink);

  font-size: 15px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;

  color: var(--muted);

  font-size: 13.5px;
  line-height: 1.6;
}

.path-steps {
  max-width: 760px;

  margin: 0 0 16px;
  padding: 0;

  list-style: none;
  counter-reset: path-step;
}

.path-steps li {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 14px 0;

  border-bottom: 1px dashed var(--line);

  font-size: 14.5px;

  color: var(--ink-soft);
}

.path-steps li:last-child {
  border-bottom: none;
}

.path-steps li::before {
  counter-increment: path-step;
  content: counter(path-step);

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 24px;
  height: 24px;

  background: var(--ink);

  border-radius: 50%;

  color: #fff;

  font-size: 11px;
  font-weight: 800;
}

.path-steps li code {
  padding: 2px 6px;

  background: #f0efec;
  border: 1px solid var(--line);
  border-radius: 5px;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 12.5px;
}

.data-format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  max-width: 760px;

  margin: 0 0 18px;
}

.data-format-chip {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 7px 13px;

  background: #f5f4f1;
  border: 1px solid var(--line);
  border-radius: 20px;

  color: var(--ink-soft);

  font-size: 13px;
  font-weight: 700;
}

.data-format-chip span.limit {
  color: var(--muted);
  font-weight: 500;
}

.guide-tip {
  display: flex;
  gap: 12px;

  max-width: 760px;

  margin: 18px 0 0;
  padding: 15px 17px;

  background: var(--signal-soft);

  border-radius: 12px;
}

.guide-tip svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  stroke: var(--signal);
}

.guide-tip p {
  margin: 0 !important;

  color: var(--ink-soft) !important;

  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

.guide-tip strong {
  color: var(--ink);
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}