/*
 * Aisend — Dark Knowledge Operating System Tokens
 * Source: final style.txt (WordPress flagship style system)
 */

:root {
  /* === Surfaces (matched to style.css) === */
  --bg:           #0a0f1e;
  --surface-1:    #111827;
  --surface-2:    #1e293b;
  --border:       rgba(45, 212, 191, 0.07);

  /* === Text (matched to style.css) === */
  --text:         #f1f5f9;
  --text-muted:   #64748b;

  /* === Accent (matched to style.css — teal) === */
  --accent:       #2dd4bf;
  --accent-2:     #3b82f6;

  /* === Status === */
  --success:      #29C27A;
  --warning:      #F2B84B;
  --neutral:      #64748B;

  /* === Radius === */
  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    18px;
  --radius-pill:  9999px;

  /* === Spacing === */
  --space-1:      4px;
  --space-2:      8px;
  --space-3:      12px;
  --space-4:      16px;
  --space-5:      24px;
  --space-6:      32px;
  --space-8:      48px;
  --space-10:     64px;

  /* === Shadow === */
  --shadow-soft:  0 18px 50px rgba(0,0,0,.22);

  /* === Legacy aliases (so existing class names keep working) === */
  --aisend-bg:             var(--bg);
  --aisend-ink:            var(--text);
  --aisend-ink-strong:     var(--text);
  --aisend-ink-muted:      var(--text-muted);
  --aisend-focus:          var(--accent);

  /* Surfaces used by templates */
  --aisend-glass-panel:    var(--surface-1);
  --aisend-glass-card:     var(--surface-1);
  --aisend-glass-pill:     var(--surface-2);
  --aisend-glass-pill-hover: var(--surface-2);
  --aisend-glass-input:    var(--surface-1);
  --aisend-glass-detail:   var(--surface-1);

  /* Edges — thin, low contrast */
  --aisend-edge-hi:        var(--border);
  --aisend-edge-hi-2:      var(--border);
  --aisend-edge-lo:        var(--border);
  --aisend-edge-lo-2:      var(--border);

  --edge-teal:             var(--accent);
  --edge-blue:             var(--accent);
  --edge-violet:           var(--accent-2);
  --edge-pink:             var(--accent-2);

  /* Typography — Inter only, per spec */
  --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --aisend-font-body: var(--font-body);

  /* Status chip colours */
  --aisend-ink-status-live:    var(--success);
  --aisend-ink-status-beta:    var(--warning);
  --aisend-ink-status-coming:  var(--neutral);

  /* Shadows */
  --aisend-shadow-card: var(--shadow-soft);
  --shadow-panel:       var(--shadow-soft);
  --shadow-glow-teal:   0 0 0 1px var(--accent);

  /* Single accent gradient (no decorative gradients) */
  --grad-primary:       var(--accent);
  --grad-h1:             var(--text);
  --aisend-gradient-primary: var(--accent);

  /* Pill / card / input / panel radius */
  --radius-panel: var(--radius-lg);
  --radius-card:  var(--radius-md);
  --radius-input: var(--radius-sm);
}

/* === Base === */
html, body.aisend {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
}

body.aisend::before {
  display: none; /* disable particle swarm */
}

/* === Typography (spec: Inter, weight+size hierarchy) === */
.aisend h1, .aisend h2, .aisend h3,
.aisend .wp-block-heading {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}
.aisend h1 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; }
.aisend h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; }
.aisend h3 { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.25; }

.aisend p, .aisend .entry-content p, .aisend .wp-block-paragraph {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 64ch;
}

.aisend a { color: var(--accent); text-decoration: none; }
.aisend a:hover { text-decoration: underline; }

/* Headings inside cards / detail / pricing = white text, not gradient */
.aisend-gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}

/* === Cards === */
.aisend-card,
.aisend-entry-section,
.entity-header,
.narrative-section,
.bridge-section,
.approach-point,
.pricing-hero,
.principle-card,
.tier-card,
.closing-section,
.faq-cta,
.contact-hero,
.route-card,
.channel-card,
.faq-hero {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: var(--space-5);
}

.aisend-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.aisend-card:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.aisend-card h3 { color: var(--text); }
.aisend-card .aisend-type { color: var(--text-muted); }
.aisend-card .aisend-desc { color: var(--text); }

/* === Chips / Badges === */
.aisend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  line-height: 1;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
}
.aisend-chip .aisend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* === Inputs === */
.aisend-search input,
.form-field input,
.form-field textarea,
.aisend-sort select {
  background: var(--surface-1);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  outline: none;
}
.aisend-search input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.aisend-search input:focus,
.form-field input:focus,
.form-field textarea:focus,
.aisend-sort select:focus,
.aisend-cta:focus,
a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* === CTAs === */
.aisend-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.aisend-cta:hover { background: var(--surface-2); border-color: var(--accent); }
.aisend-cta--primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.aisend-cta--primary:hover { background: #6FA2FF; border-color: #6FA2FF; }

/* === Header === */
.aisend-site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.aisend-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 20px;
}
.aisend-main-nav a { color: var(--text-muted); }
.aisend-main-nav a:hover { color: var(--text); text-decoration: none; }

/* === Footer === */
.aisend-site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}
.aisend-site-footer__row2 a { color: var(--text); }
.aisend-site-footer__row3 a { color: var(--text-muted); }

/* === Modals === */
.aisend-scrim {
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.aisend-detail-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: var(--shadow-soft);
}
.aisend-detail-close {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.aisend-detail-panel h3 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}

/* === Catalogue Layout === */
.aisend-catalogue {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}
.aisend-catalogue-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1023px) { .aisend-catalogue-layout { grid-template-columns: 1fr; } }
.aisend-sidebar {
  position: sticky;
  top: 96px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.aisend-filter-group {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.aisend-filter-group:last-child { border-bottom: none; }
.aisend-filter-group h3,
.aisend-accordion__head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.aisend-radio-list label,
.aisend-check-list label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.aisend-radio-list input,
.aisend-check-list input { width: 16px; height: 16px; accent-color: var(--accent); }
.aisend-accordion { border-top: 1px solid var(--border); padding-top: var(--space-3); }
.aisend-accordion:first-child { border-top: none; padding-top: 0; }
.aisend-accordion__head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 8px 0; background: none; border: none; cursor: pointer;
}
.aisend-accordion__body { display: none; padding-top: var(--space-2); }
.aisend-accordion.is-open .aisend-accordion__body { display: block; }

/* Tabs */
.aisend-format-tabs,
.aisend-category-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 24px;
}
.aisend-category-tab {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-1);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.aisend-category-tab:hover { background: var(--surface-2); border-color: var(--accent); }
.aisend-category-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Grid */
.aisend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1023px) { .aisend-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .aisend-grid { grid-template-columns: 1fr; } }

/* Breadcrumb */
.aisend-breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.aisend-breadcrumb a { color: var(--text-muted); }
.aisend-breadcrumb a:hover { color: var(--text); text-decoration: none; }

/* Entry body */
.aisend-entry-body { padding: 0; }
.aisend-entry-section { margin-bottom: var(--space-6); }
.aisend-entry-section h2 {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-3);
}
.aisend-entry-section p { color: var(--text); line-height: 1.6; }
.aisend-sub { color: var(--text-muted); font-size: 16px; line-height: 1.6; max-width: 64ch; }
.aisend-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
.aisend-review-meta { font-size: 12px; color: var(--text-muted); margin-bottom: var(--space-5); }
.aisend-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-5); }
.aisend-cta-row .aisend-cta { flex: 1; min-width: 200px; justify-content: center; }

/* Status badge colours by content (use class hooks already in templates) */
.aisend-status-live   { color: var(--success); border-color: var(--success); }
.aisend-status-beta   { color: var(--warning); border-color: var(--warning); }
.aisend-status-coming { color: var(--neutral); border-color: var(--neutral); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 16px 0 0; color: var(--text); line-height: 1.7; }

/* Search */
.aisend-search-results {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.aisend-search-results__seeall { color: var(--accent); }

/* Related */
.aisend-related-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: 8px; }
@media (max-width: 768px) { .aisend-related-entries { grid-template-columns: 1fr; } }
.aisend-related-pillars { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.aisend-related-pillars a { color: var(--text); padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); }

/* Pages */
.pricing-hero, .contact-hero, .faq-hero { text-align: center; padding: var(--space-8) var(--space-6); }
.tier-bullets { list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.tier-bullets li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 13px; color: var(--text); line-height: 1.6; }
.tier-bullets li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tier-card .price { color: var(--text); font-size: 28px; font-weight: 700; margin: 0 0 4px; }
.tier-card .scope, .tier-card .subtitle, .tier-card .best-for, .tier-card .fee-note, .tier-card .stages { color: var(--text-muted); }
.tier-card .stages { border-top: 1px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-4); }

/* Mobile nav */
.aisend-mobile-nav {
  background: var(--surface-1);
  border-left: 1px solid var(--border);
}
.aisend-mobile-nav a { color: var(--text); }
.aisend-hamburger { background: var(--surface-2); border: 1px solid var(--border); }
.aisend-hamburger span, .aisend-hamburger span::before, .aisend-hamburger span::after { background: var(--text); }

@media (max-width: 780px) {
  .aisend-main-nav, .aisend-header-cta, .aisend-header-search { display: none; }
  .aisend-hamburger { display: block; }
  .aisend-related-entries, .tiers-row, .principles-row, .routes-row, .approach-grid, .related-entities, .direct-channels {
    grid-template-columns: 1fr;
  }
}

/* === Shared utility classes === */
.aisend-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

/* === System Map Page === */
.catalogue-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  text-align: center;
}
.catalogue-header__tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.catalogue-header__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.catalogue-header__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.glass-chip {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid rgba(45,212,191,0.15);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(17,24,39,0.6);
  text-decoration: none;
  transition: all 0.15s;
}
.glass-chip:hover {
  border-color: var(--accent);
  background: rgba(45,212,191,0.1);
}

.aisend-proof-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.aisend-proof-status--verified {
  background: rgba(45, 212, 191, 0.2);
  color: #0d9488;
}
.aisend-proof-status--provisional {
  background: rgba(245, 158, 11, 0.2);
  color: #d97706;
}
.aisend-proof-status--pending {
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
}

.aisend-proof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.aisend-proof-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(45,212,191,0.1);
}
.aisend-proof-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(45,212,191,0.05);
  color: var(--text);
}
.aisend-proof-table tbody tr:hover {
  background: rgba(17,24,39,0.5);
}

/* === Disable particle swarm + glass blur + Space Grotesk entirely === */
.aisend-presence-canvas { display: none !important; }
.aisend-glass, .aisend-entry-body { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); }
.aisend-entry-body { background: transparent; border: none; }
* { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
