/* ==========================================================
   Asha AI Gateway — WordPress theme layer (asha-wp.css)
   Loads after asha-base.css. Adds WordPress navigation, blog,
   docs, page, editor and Elementor styles on top of the design.
   ========================================================== */

:root {
  --sidebar-w: 280px;
}

body {
  background: var(--bg-base);
}

/* ------------------------------------------------------------------
   WordPress navigation inside the static header/footer components
   ------------------------------------------------------------------ */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu li { position: relative; }

.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-menu a:hover { color: var(--primary-dark); }

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-menu .current-menu-item > a::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-menu .menu-item a { padding-block: 6px; }

/* Mobile menu inside <details class="nav-mobile"> */
.mobile-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  width: min(264px, 84vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lifted);
  padding: 12px;
  z-index: 60;
}

.mobile-menu-links {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  padding: 0;
}

.mobile-menu-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.mobile-menu-links a:hover,
.mobile-menu-links .current-menu-item > a {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.mobile-menu .btn { margin-top: 8px; }

/* ------------------------------------------------------------------
   Generic WordPress content typography (static pages, fallbacks)
   ------------------------------------------------------------------ */
.asha-content {
  max-width: 860px;
  margin-inline: auto;
}

.asha-content h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text-main);
  margin: 44px 0 14px;
}

.asha-content h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-main);
  margin: 34px 0 10px;
}

.asha-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.asha-content p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.asha-content a { color: var(--primary); font-weight: 600; }
.asha-content a:hover { color: var(--primary-dark); }

.asha-content ul,
.asha-content ol {
  margin: 0 0 18px;
  padding-inline-start: 24px;
}

.asha-content ul { list-style: disc; }
.asha-content ol { list-style: decimal; }

.asha-content li { font-size: 16px; line-height: 2; color: var(--text-secondary); margin-bottom: 6px; }

.asha-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-inline-start: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.asha-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}

.asha-content th,
.asha-content td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: start;
}

.asha-content th { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.asha-content tbody tr:nth-child(odd) td { background: var(--bg-base); }

.asha-content pre {
  margin: 24px 0;
  padding: 20px 22px;
  background: #0B1F2A;
  color: #DDEBF0;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.asha-content pre code { background: none; color: inherit; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8; }

.asha-content code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 6px;
  direction: ltr;
  unicode-bidi: embed;
}

.asha-content figure img { border-radius: var(--radius-md); }
.asha-content figcaption { font-size: 13px; color: var(--text-tertiary); text-align: center; margin-top: 8px; }

/* Gutenberg code block emits <pre class="wp-block-code"> */
.wp-block-code { border: none; }

/* Copy button appended to <pre> blocks by asha-main.js */
.code-copy-btn {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.code-copy-btn:hover { background: var(--primary); color: #fff; }

.asha-content pre,
.article-body pre { position: relative; }

/* ------------------------------------------------------------------
   Hero node graph (ported from index.html inline <style>)
   ------------------------------------------------------------------ */
.hero-node-graph { position: relative; width: min(460px, 100%); aspect-ratio: 460 / 470; }
.node-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.node-line { stroke: rgba(7, 135, 131, 0.4); stroke-width: 1.5; stroke-dasharray: 5 7; fill: none; animation: nodeFlow 4s linear infinite; }
@keyframes nodeFlow { to { stroke-dashoffset: -24; } }
.node-dot { animation: nodePulse 2.6s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.node-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; }
.node-asha {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius-lg); padding: 24px 32px;
  font-family: var(--font-sans); font-size: 20px; font-weight: 800;
  box-shadow: var(--glass-shadow); border: 1px solid rgba(255, 255, 255, 0.25);
  animation: float 7s ease-in-out infinite; white-space: nowrap;
}
.node-asha img { border-radius: 8px; }

.node {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(7, 135, 131, 0.18);
  box-shadow: var(--shadow-lifted);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--text-main); white-space: nowrap;
}
.node .node-ico { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(7, 135, 131, 0.15); flex-shrink: 0; }
.node-ico.up { background: #2EB67D; box-shadow: 0 0 0 3px rgba(46, 182, 125, 0.2); }
.node-tl { top: 12%; left: 3%; }
.node-tr { top: 12%; right: 3%; }
.node-ml { top: 46%; left: 0; }
.node-mr { top: 46%; right: 0; }
.node-bl { top: 76%; left: 3%; }
.node-br { top: 76%; right: 3%; }
.node-bc { top: 88%; left: 50%; transform: translateX(-50%); }

.node-chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lifted);
  font-size: 12.5px; font-weight: 600; color: var(--text-main); white-space: nowrap;
}
.chip-uptime { top: 0; left: 50%; transform: translateX(-50%); animation: float 6s ease-in-out infinite; }
.chip-smart  { top: 33%; left: 26%; animation: float 6s ease-in-out infinite 0.9s; }
.chip-payg   { bottom: 26%; right: 22%; animation: float 6s ease-in-out infinite 1.5s; }

/* ------------------------------------------------------------------
   Session continuity visual
   ------------------------------------------------------------------ */
.continuity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 840px; margin: 0 auto 48px; }
.sf-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-main); }
.sf-cross { color: var(--status-warn-text); font-weight: 700; padding: 0 6px; font-size: 14px; }
.sf-ok { color: var(--primary-dark); font-weight: 700; font-size: 13px; }

/* ------------------------------------------------------------------
   Providers routing mini-flow
   ------------------------------------------------------------------ */
.pf-flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pf-step { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text-main); box-shadow: var(--shadow-soft); }
.pf-core { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 22px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font-size: 15px; font-weight: 800; box-shadow: var(--glass-shadow); }
.pf-core small { font-size: 11px; font-weight: 600; opacity: 0.9; }
.pf-arrow { color: var(--primary-light); font-size: 22px; font-weight: 700; }
.pf-float { animation: float 6s ease-in-out infinite; border-color: var(--primary-light); }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 600; }

/* Two-column rows used on the homepage fallback */
.providers-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.savings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ------------------------------------------------------------------
   Blog listing
   ------------------------------------------------------------------ */
.post-excerpt {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asha-pagination { margin: 48px 0 8px; text-align: center; }

.asha-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.asha-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.asha-pagination .page-numbers:hover { border-color: var(--primary-light); color: var(--primary-dark); }

.asha-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.archive-desc { margin-inline: auto; }

/* ------------------------------------------------------------------
   Single article
   ------------------------------------------------------------------ */
.article-featured-image { margin: 0 0 32px; }
.article-featured-image img { border-radius: var(--radius-lg); width: 100%; height: auto; box-shadow: var(--shadow-soft); }

.article-tags { margin-top: 32px; }

.article-byline .byline-dot { color: var(--primary-light); }

/* ------------------------------------------------------------------
   Docs archive (docs home)
   ------------------------------------------------------------------ */
.docs-landing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-block: 48px 8px;
}

.docs-landing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.docs-landing-card:hover { box-shadow: var(--shadow-lifted); transform: translateY(-3px); }

.docs-landing-title { font-size: 19px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.docs-landing-title a:hover { color: var(--primary-dark); }

.docs-landing-list { display: grid; gap: 8px; padding: 0; margin: 0; }

.docs-landing-list a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.docs-landing-list a:hover { color: var(--primary); }
.docs-landing-count { color: var(--text-tertiary); font-size: 12px; }

/* ------------------------------------------------------------------
   Docs single page
   ------------------------------------------------------------------ */
.docs-header { margin-bottom: 28px; }

.docs-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-main);
  margin: 14px 0 10px;
}

.docs-subtitle {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}

.docs-prev-next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.docs-nav {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.docs-nav:hover { border-color: var(--primary-light); color: var(--primary-dark); }
.docs-nav small { font-size: 12px; font-weight: 500; color: var(--text-tertiary); }

/* ------------------------------------------------------------------
   Plain pages (no Elementor content yet)
   ------------------------------------------------------------------ */
.plain-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 32px;
  text-align: center;
}

.plain-hero .hero-title { max-width: 17em; margin-inline: auto; }

.plain-body { padding-block: 40px clamp(64px, 8vw, 104px); }

/* ------------------------------------------------------------------
   Search
   ------------------------------------------------------------------ */
.asha-search-box {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 28px auto 0;
}

.asha-search-box input[type="search"] {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--surface);
  color: var(--text-main);
}

.asha-search-box input[type="search"]:focus { outline: none; border-color: var(--primary-light); }

/* ------------------------------------------------------------------
   Comments
   ------------------------------------------------------------------ */
.comments-area { padding-block: 56px clamp(64px, 8vw, 104px); }

.comments-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }

.comment-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 20px; }

.comment-list .comment-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.comment-list .fn { font-weight: 700; color: var(--text-main); }
.comment-list .comment-metadata { font-size: 12.5px; color: var(--text-tertiary); margin-bottom: 8px; }
.comment-list .comment-content { font-size: 15px; line-height: 2; color: var(--text-secondary); }
.comment-list .children { list-style: none; margin: 16px 0 0; padding-inline-start: 32px; }

.comment-reply-link, .comment-edit-link { font-size: 13px; font-weight: 600; color: var(--primary); }

.comment-form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; color: var(--text-main); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 15px;
  background: var(--surface);
  color: var(--text-main);
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit { background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); padding: 12px 28px; font-size: 15px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; }
.comment-form .submit:hover { background: var(--primary-dark); }

.page-links { margin: 24px 0; font-size: 15px; }
.page-links a { margin-inline: 4px; color: var(--primary); }

/* ------------------------------------------------------------------
   Elementor compatibility
   ------------------------------------------------------------------ */
.asha-elementor-content,
.asha-front-page-content { width: 100%; }

body.elementor-page .asha-content { max-width: none; }

/* Full-page templates are built from a single HTML widget that reproduces the
   static wordpress/*.html <main> verbatim. Neutralize Elementor's wrapper
   chrome (sections/containers/columns/gutters) so the ported markup renders
   exactly like the static site — no extra padding, widths or margins. */
.asha-elementor-content .elementor-section:not(.elementor-section-boxed),
.asha-elementor-content .elementor-section.elementor-section-boxed,
.asha-front-page-content .elementor-section:not(.elementor-section-boxed),
.asha-front-page-content .elementor-section.elementor-section-boxed {
  max-width: 100%;
  padding: 0; /* the ported inner <section> elements supply their own padding */
}

.asha-elementor-content .elementor-container,
.asha-elementor-content .elementor-row,
.asha-elementor-content .elementor-column,
.asha-elementor-content .elementor-widget-wrap,
.asha-elementor-content .elementor-widget,
.asha-elementor-content .elementor-widget-container,
.asha-front-page-content .elementor-container,
.asha-front-page-content .elementor-row,
.asha-front-page-content .elementor-column,
.asha-front-page-content .elementor-widget-wrap,
.asha-front-page-content .elementor-widget,
.asha-front-page-content .elementor-widget-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.asha-elementor-content .elementor-column-gap-default > .elementor-column > .elementor-element-populated,
.asha-front-page-content .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0; }

.asha-elementor-content .elementor-section > .elementor-container,
.asha-front-page-content .elementor-section > .elementor-container { max-width: none; }

/* Elementor headings should follow the site font stack */
.elementor-widget-container h1,
.elementor-widget-container h2,
.elementor-widget-container h3,
.elementor-widget-container h4,
.elementor-widget-container h5,
.elementor-widget-container h6 {
  font-family: var(--font-sans);
}

.elementor-widget-container p,
.elementor-widget-container li,
.elementor-widget-container a,
.elementor-widget-container span {
  font-family: var(--font-sans);
}

/* Default Elementor containers that render inside .container should not add
   their own page padding (sections inside the theme container). */
.asha-elementor-content .elementor-section:not(.elementor-section-boxed) { max-width: 100%; }

/* ------------------------------------------------------------------
   Elementor section templates (reusable-sections/*.json)
   ------------------------------------------------------------------ */
.asha-section { padding: clamp(64px, 8vw, 104px) 24px; }
.asha-bg-base { background: var(--bg-base); }
.asha-bg-surface { background: var(--surface); }

/* Card-style columns reuse the theme step / feature / model card look. */
.elementor-column.step > .elementor-widget-wrap,
.elementor-column.feature-card > .elementor-widget-wrap,
.elementor-column.model-card > .elementor-widget-wrap,
.elementor-column.agents-panel > .elementor-widget-wrap {
  padding: 0;
}

.elementor-column.agents-panel { width: 100%; }

/* Inline pill badges rendered by the Heading widget (css_classes: asha-pill). */
.elementor-widget.asha-pill .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-soft);
  color: var(--primary-dark) !important;
  border: 1px solid rgba(7, 135, 131, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.elementor-widget.asha-pill-light .elementor-heading-title {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

/* Round number badge used inside step cards (css_classes: step-num). */
.elementor-widget.step-num .elementor-heading-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* FAQ accordion (Toggle widget inside a section with class asha-faq). */
.elementor-widget.asha-faq .elementor-toggle { margin: 0 auto; max-width: 760px; }

.elementor-widget.asha-faq .elementor-toggle-item {
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.elementor-widget.asha-faq .elementor-tab-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.elementor-widget.asha-faq .elementor-tab-title.elementor-active { color: var(--primary-dark); }

.elementor-widget.asha-faq .elementor-tab-title .elementor-toggle-icon { color: var(--primary); }

.elementor-widget.asha-faq .elementor-tab-title .elementor-toggle-icon i:before { content: "\f067"; }

.elementor-widget.asha-faq .elementor-tab-title.elementor-active .elementor-toggle-icon i:before { content: "\f068"; }

.elementor-widget.asha-faq .elementor-tab-content {
  padding: 4px 24px 20px;
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}

/* Buttons inside Elementor sections inherit the site radius/font. */
.elementor-widget-button .elementor-button {
  font-family: var(--font-sans);
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .providers-row, .savings-row { grid-template-columns: 1fr; }
  .continuity-grid { grid-template-columns: 1fr; }
  .docs-landing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .docs-landing-grid { grid-template-columns: 1fr; gap: 16px; }
  .asha-search-box { flex-direction: column; }
}


/* models page responsive refinements (ported) */
/* ========== Responsive refinements — models page (additive) ========== */
      @media (max-width: 768px) {
        .models-hero { padding-top: 48px; }
        .models-hero-head { margin-bottom: 40px; }
      }

      @media (max-width: 560px) {
        .models-hero-stats { gap: 16px; padding: 20px 14px; }
        .models-hero-stats .stat-value { font-size: 24px; }
        .filter-bar { padding: 14px; gap: 12px; }
        .filter-search { flex: 1 1 100%; }
        .filter-select { flex: 1 1 100%; }
        .filter-select select { width: 100%; min-width: 0; }
        .filter-count { margin-inline-start: 0; }
        .hero-cta { flex-wrap: nowrap; justify-content: center; }
        .hero-cta .btn { padding: 12px 18px; font-size: 15px; }
        .table-wrap { max-height: 72vh; }
        .models-table thead th,
        .models-table tbody td { padding: 12px 14px; }
        .sdk-code-body { min-height: 260px; }
        .sdk-pane { padding: 18px; font-size: 12px; }
        .sdk-step-title { font-size: 22px; }
        .drawer-head { padding: 18px 20px 14px; }
        .drawer-title { font-size: 19px; }
        .drawer-body { padding: 20px; }
      }


/* homepage inline <style> (ported) */
/* ========== index2: hero — agentic routing node graph ========== */
      .hero-node-graph { position: relative; width: min(460px, 100%); aspect-ratio: 460 / 470; }
      .node-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
      .node-line { stroke: rgba(7, 135, 131, 0.4); stroke-width: 1.5; stroke-dasharray: 5 7; fill: none; animation: nodeFlow 4s linear infinite; }
      @keyframes nodeFlow { to { stroke-dashoffset: -24; } }
      .node-dot { animation: nodePulse 2.6s ease-in-out infinite; }
      @keyframes nodePulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

      .node-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; }
      .node-asha {
        display: inline-flex; align-items: center; gap: 12px;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        color: #fff; border-radius: var(--radius-lg); padding: 24px 32px;
        font-family: var(--font-sans); font-size: 20px; font-weight: 800;
        box-shadow: var(--glass-shadow); border: 1px solid rgba(255, 255, 255, 0.25);
        animation: float 7s ease-in-out infinite; white-space: nowrap;
      }
      .node-asha img { border-radius: 8px; }

      .node {
        position: absolute; z-index: 2;
        display: inline-flex; align-items: center; gap: 7px;
        padding: 10px 14px; border-radius: 12px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(7, 135, 131, 0.18);
        box-shadow: var(--shadow-lifted);
        font-family: var(--font-mono); font-size: 12px; font-weight: 600;
        color: var(--text-main); white-space: nowrap;
      }
      .node .node-ico { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(7, 135, 131, 0.15); flex-shrink: 0; }
      .node-ico.up { background: #2EB67D; box-shadow: 0 0 0 3px rgba(46, 182, 125, 0.2); }
      .node-tl { top: 12%; left: 3%; }
      .node-tr { top: 12%; right: 3%; }
      .node-ml { top: 46%; left: 0; }
      .node-mr { top: 46%; right: 0; }
      .node-bl { top: 76%; left: 3%; }
      .node-br { top: 76%; right: 3%; }
      .node-bc { top: 88%; left: 50%; transform: translateX(-50%); }

      .node-chip {
        position: absolute; z-index: 4;
        display: inline-flex; align-items: center; gap: 8px;
        padding: 10px 16px; border-radius: 999px;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: var(--shadow-lifted);
        font-size: 12.5px; font-weight: 600; color: var(--text-main); white-space: nowrap;
      }
      .chip-uptime { top: 0; left: 50%; transform: translateX(-50%); animation: float 6s ease-in-out infinite; }
      .chip-smart  { top: 33%; left: 26%; animation: float 6s ease-in-out infinite 0.9s; }
      .chip-payg   { bottom: 26%; right: 22%; animation: float 6s ease-in-out infinite 1.5s; }

      /* ========== index2: session continuity visual ========== */
      .continuity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 840px; margin: 0 auto 48px; }
      .sf-chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-main); }
      .sf-cross { color: var(--status-warn-text); font-weight: 700; padding: 0 6px; font-size: 14px; }
      .sf-ok { color: var(--primary-dark); font-weight: 700; font-size: 13px; }

      /* ========== index2: providers routing mini-flow ========== */
      .pf-flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
      .pf-step { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text-main); box-shadow: var(--shadow-soft); }
      .pf-core { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 22px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font-size: 15px; font-weight: 800; box-shadow: var(--glass-shadow); }
      .pf-core small { font-size: 11px; font-weight: 600; opacity: 0.9; }
      .pf-arrow { color: var(--primary-light); font-size: 22px; font-weight: 700; }
      .pf-float { animation: float 6s ease-in-out infinite; border-color: var(--primary-light); }
      .pf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 600; }

      /* ========== index2: two-column rows ========== */
      .providers-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
      .savings-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

      @media (max-width: 900px) {
        .providers-row, .savings-row { grid-template-columns: 1fr; }
        .continuity-grid { grid-template-columns: 1fr; }
      }
/* ========== Responsive refinements — index (additive) ========== */
      @media (max-width: 768px) {
        .steps { grid-template-columns: 1fr !important; }
        .feature-grid { grid-template-columns: 1fr !important; }
        .model-grid { grid-template-columns: repeat(2, 1fr) !important; }
        .section-head { margin-bottom: 40px; }
        .agents-panel { padding: 40px 20px; }
        .footer-top { grid-template-columns: repeat(2, 1fr); gap: 28px; }
      }

      @media (max-width: 560px) {
        .model-grid { grid-template-columns: 1fr !important; }
        .hero-node-graph { max-width: 340px; margin-inline: auto; }
        .hero-ring { width: 320px; height: 320px; }
        .hero-ring::before { width: 420px; height: 420px; }
        .hero-visual { min-height: 400px; }
        .node-asha { padding: 14px 18px; font-size: 14px; gap: 9px; border-radius: 14px; }
        .node-asha img { width: 22px; height: 22px; }
        .node { padding: 7px 10px; font-size: 10px; gap: 5px; border-radius: 9px; }
        .node .node-ico { width: 5px; height: 5px; box-shadow: 0 0 0 2px rgba(7, 135, 131, 0.14); }
        .node-chip { padding: 7px 12px; font-size: 10.5px; }
        .chip-smart, .chip-payg { display: none; }
        .pf-step { padding: 12px 16px; font-size: 13px; }
        .pf-core { padding: 14px 16px; font-size: 14px; }
        .pf-arrow { font-size: 18px; }
        .hero-cta { flex-direction: row; justify-content: center; }
        .hero-cta .btn { width: auto; padding: 12px 18px; font-size: 15px; }
        .trust-line { font-size: 13px; gap: 12px; justify-content: center; }
        .hero-copy { text-align: center; }
        .hero-title { text-align: center; }
        .hero-note { display: none; }

        #continuity .section-head .pill,
        #continuity .section-head .section-sub,
        #continuity .steps { display: none; }

        #pay .section-head .pill,
        #pay .section-head .section-sub,
        #pay .steps { display: none; }

        #quickstart,
        #models { display: none; }
      }

      @media (max-width: 480px) {
        .container { padding-inline: 16px; }
        .nav-row { gap: 12px; height: 64px; }
        .brand-sub { display: none; }
        .brand-name { font-size: 18px; }
        section { padding: 56px 0; }
        .hero { padding-top: 56px; }
        .section-head { margin-bottom: 32px; }
        .section-title { font-size: 24px; line-height: 1.5; }
        .agents-title { font-size: 24px; }
        .hero-sub, .section-sub { font-size: 15.5px; }
        .step { padding: 28px 20px; }
        .feature-card { padding: 26px 20px; }
        .model-card { padding: 20px 16px; }
        .stats { padding: 36px 0; }
        .stats-grid { gap: 20px; }
        .code-block pre { padding: 18px; }
        .footer-top { gap: 24px; }
        .footer-tagline { font-size: 13px; }
      }

      @media (max-width: 400px) {
        .hero-node-graph { max-width: 260px; }
        .node-ml, .node-mr { display: none; }
        .node-asha { padding: 12px 14px; font-size: 13px; gap: 8px; }
        .node-asha img { width: 20px; height: 20px; }
      }
