/* ================================================================
   QUALZY — Advanced AI Page Styles
   All styles specific to features/advanced-ai.html
   ================================================================ */


/* HERO
   ---------------------------------------------------------------- */
.ai-hero {
  padding-top: 64px; /* nav height offset */
  background: var(--wh);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.ai-hd1 {
  position: absolute;
  top: -180px; right: -140px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: var(--op);
  z-index: 0;
}

.ai-hd1::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  background: var(--om);
}

.ai-hd2 {
  position: absolute;
  bottom: 40px; left: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--op);
  z-index: 0;
}

.ai-hsvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Hero inner content */
.ai-hi {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 48px 88px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ai-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mu);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color var(--t-base);
}

.ai-back:hover { color: var(--o); }

.ai-hi h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 900;
  line-height: 1.0;
  color: var(--dk);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ai-hi h1 em {
  font-style: italic;
  color: var(--o);
}

.ai-hsub {
  font-size: 19px;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 760px;
  font-weight: 300;
}

.ai-hbtns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
}

/* Stat bar: override max-width for this page */
.ai-hi .hst {
  max-width: 560px;
}

/* The "Any time" stat has two lines — reduce font size slightly */
.ai-hi .hst .sn {
  font-size: 28px;
  line-height: 1.15;
}


/* AI PIPELINE (dark)
   ---------------------------------------------------------------- */
.ai-pipe {
  background: var(--dk);
  padding: 100px 48px;
}

.ai-pipe-inn {
  max-width: 860px;
  margin: 0 auto;
}

.ai-pipe-hd {
  text-align: center;
  margin-bottom: 64px;
}

.ai-pipe-sub {
  color: rgba(255,255,255,.5);
  max-width: 560px;
  margin: 16px auto 0;
}

/* Steps wrapper */
.ai-pipe-steps {
  display: flex;
  flex-direction: column;
}

/* Single step row */
.ai-pst {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* Left column: circle + connector line */
.ai-pst-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 52px;
}

/* Numbered circle */
.ai-pst-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232,97,44,.1);
  border: 2px solid rgba(232,97,44,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background .3s, border-color .3s, box-shadow .3s;
}

.ai-pst-circle svg {
  position: absolute;
  width: 18px; height: 18px;
  stroke: rgba(232,97,44,.5);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s;
}

.ai-pst-n {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(232,97,44,.2);
  border: 1.5px solid rgba(232,97,44,.4);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  color: rgba(232,97,44,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ai-pst--active .ai-pst-circle {
  background: rgba(232,97,44,.18);
  border-color: var(--o);
  box-shadow: 0 0 24px rgba(232,97,44,.25);
}

.ai-pst--active .ai-pst-circle svg {
  stroke: var(--o);
}

.ai-pst--active .ai-pst-n {
  background: var(--o);
  border-color: var(--o);
  color: #fff;
}

/* Connector line between steps */
.ai-pst-connector {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(232,97,44,.4), rgba(232,97,44,.08));
  position: relative;
  margin: 0;
}

/* Travelling dot */
.ai-pst-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--o);
  box-shadow: 0 0 10px rgba(232,97,44,.9);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: pstFlow 2.4s ease-in-out infinite;
}

.ai-pst-dot--delay {
  animation-delay: 2.4s;
}

@keyframes pstFlow {
  0%   { top: 0;    opacity: 1; }
  75%  { top: 100%; opacity: 0.3; }
  100% { top: 100%; opacity: 0; }
}

/* Right column: content card */
.ai-pst-card {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 0;
}

.ai-pst--active .ai-pst-card {
  background: rgba(232,97,44,.07);
  border-color: rgba(232,97,44,.25);
}

/* Space between step rows — card bottom + connector + next circle */
.ai-pst:not(:last-child) .ai-pst-card {
  margin-bottom: 0;
}

.ai-pst-left {
  /* connector fills space between card bottom + next circle */
  align-self: stretch;
}

.ai-pst-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ai-pst-body {
  font-size: 15px;
  color: rgba(255,255,255,.5);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* AI output cards (step 2) */
.ai-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.ai-out {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}

.ai-out--key {
  background: rgba(232, 97, 44, 0.08);
  border-color: rgba(232, 97, 44, 0.25);
}

.ai-out-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 6px;
}

.ai-out-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
}

/* Tags (shared utility) */
.ai-tag {
  display: inline-block;
  background: rgba(232, 97, 44, 0.12);
  color: var(--o);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(232, 97, 44, 0.22);
}

.ai-tag--light {
  background: var(--op);
  color: var(--o2);
  border-color: rgba(232, 97, 44, 0.18);
}

.ai-ps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* MAIZY CHAT (light)
   ---------------------------------------------------------------- */
.ai-maizy {
  background: #fff;
}

.ai-maizy-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.ai-maizy-note {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.65;
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--op);
  border-left: 3px solid var(--o);
  border-radius: 0 8px 8px 0;
}

.ai-maizy-note strong {
  color: var(--dk);
  font-weight: 700;
}

.ai-maizy-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--mu);
  line-height: 1.5;
  padding: 12px 16px;
  background: var(--wh);
  border: 1.5px solid var(--rule);
  border-radius: 10px;
}

.ai-maizy-pill svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--o);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}

/* Maizy Chat mockup */
.ai-chat-mock {
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.09);
}

.ai-chat-head {
  background: var(--dk);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--o);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.ai-chat-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ai-chat-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 1px;
}

.ai-chat-live {
  margin-left: auto;
  background: rgba(76, 175, 80, 0.18);
  color: #4CAF50;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.ai-chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-q {
  align-self: flex-end;
  background: var(--o);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 14px 14px 3px 14px;
  max-width: 80%;
  line-height: 1.45;
}

.ai-chat-a {
  align-self: flex-start;
  max-width: 88%;
}

.ai-chat-a-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--o);
  margin-bottom: 5px;
}

.ai-chat-a p {
  background: var(--wh);
  border: 1px solid var(--rule);
  border-radius: 3px 14px 14px 14px;
  padding: 12px 15px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
}

.ai-chat-a p strong {
  color: var(--dk);
  font-weight: 700;
}

.ai-chat-q-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--wh);
  border: 1.5px solid var(--rule);
  border-radius: 100px;
  padding: 10px 14px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--mu);
}

.ai-chat-q-input span { flex: 1; }

.ai-chat-send {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--o);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}


/* KEY POINTS & SUMMARIES
   ---------------------------------------------------------------- */
.ai-kp {
  background: var(--wh);
}

.ai-kp-hd {
  text-align: center;
  margin-bottom: 64px;
}

.ai-kp-hd .sbod {
  margin: 0 auto;
}

.ai-kp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ai-kp-col {
  background: #fff;
  padding: 48px 44px;
}

.ai-kp-col:first-child {
  border-radius: 18px 0 0 18px;
}

.ai-kp-col:last-child {
  border-radius: 0 18px 18px 0;
}

.ai-kp-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--wh);
  border: 1.5px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ai-kp-icon--accent {
  background: var(--op);
  border-color: rgba(232, 97, 44, 0.22);
}

.ai-kp-icon svg {
  width: 22px; height: 22px;
  stroke: var(--mu);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-kp-icon--accent svg {
  stroke: var(--o);
}

.ai-kp-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--dk);
  margin-bottom: 12px;
  line-height: 1.2;
}

.ai-kp-body {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.ai-kp-example {
  font-size: 14px;
  color: var(--mu);
  font-style: italic;
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--op);
  border-radius: 8px;
  line-height: 1.55;
}

/* Summary card mockup */
.ai-summary-mock {
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}

.ai-sm-head {
  background: var(--wh);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
}

.ai-sm-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--dk);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-sm-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk);
}

.ai-sm-meta {
  font-size: 10px;
  color: var(--mu);
  margin-top: 1px;
}

.ai-sm-badge {
  margin-left: auto;
  background: var(--op);
  color: var(--o);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(232, 97, 44, 0.22);
  white-space: nowrap;
}

.ai-sm-body {
  padding: 16px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.65;
  background: #fff;
}

/* Key points mockup */
.ai-kpoint-mock {
  border: 1.5px solid rgba(232, 97, 44, 0.22);
  border-radius: 12px;
  overflow: hidden;
  background: var(--op);
}

.ai-kpm-head {
  padding: 12px 16px;
  background: var(--o);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-kpm-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.ai-kpm-src {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

.ai-kp-item {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(232, 97, 44, 0.12);
}

.ai-kp-item:last-child { border-bottom: none; }

.ai-kp-thought {
  font-size: 12px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 6px;
  line-height: 1.35;
}

.ai-kp-quote {
  font-size: 12px;
  color: var(--mid);
  font-style: italic;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.ai-kp-q-mark {
  color: var(--o);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--font-display);
}

.ai-kp-clip-btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--o);
  font-style: normal;
  background: #fff;
  border: 1px solid rgba(232, 97, 44, 0.25);
  border-radius: 5px;
  padding: 2px 7px;
  cursor: pointer;
  transition: background var(--t-fast);
  white-space: nowrap;
}

.ai-kp-clip-btn:hover {
  background: var(--om);
}


/* AI MODERATOR PROBES (dark)
   ---------------------------------------------------------------- */
.ai-probes {
  background: var(--dk);
  padding: 100px 80px;
}

.ai-probes-inn {
  max-width: 1200px;
  margin: 0 auto;
}

.ai-probes-hd {
  text-align: center;
  margin-bottom: 64px;
}

.ai-probes-hd .sbod { margin: 0 auto; }

.ai-probes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.ai-probe-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color var(--t-base), background var(--t-base);
}

.ai-probe-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(232, 97, 44, 0.3);
}

.ai-probe-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(232, 97, 44, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ai-probe-icon svg {
  width: 22px; height: 22px;
  stroke: var(--o);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-probe-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ai-probe-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}

/* Probe exchange mockup */
.ai-probe-mock {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
}

.ai-probe-mock-head {
  background: rgba(232, 97, 44, 0.1);
  border-bottom: 1px solid rgba(232, 97, 44, 0.2);
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--o);
}

.ai-probe-exchange {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-probe-resp,
.ai-probe-follow {
  padding: 14px 18px;
  border-radius: 12px;
  max-width: 85%;
}

.ai-probe-resp {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-start;
}

.ai-probe-follow {
  background: rgba(232, 97, 44, 0.08);
  border: 1px solid rgba(232, 97, 44, 0.2);
  align-self: flex-end;
}

.ai-probe-who {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 6px;
}

.ai-probe-who--ai { color: var(--o); }

.ai-probe-resp p,
.ai-probe-follow p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.ai-probe-follow p { color: rgba(255, 255, 255, 0.8); }


/* THREE SMALLER AI TOOLS
   ---------------------------------------------------------------- */
.ai-more {
  background: var(--wh);
}

.ai-more-hd {
  text-align: center;
  margin-bottom: 56px;
}

.ai-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border-radius: 18px;
  overflow: hidden;
}

.ai-more-card {
  background: #fff;
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
  transition: background var(--t-base);
}

.ai-more-card:first-child { border-radius: 18px 0 0 18px; }
.ai-more-card:last-child  { border-radius: 0 18px 18px 0; }

.ai-more-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--o);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s ease;
}

.ai-more-card:hover { background: var(--op); }
.ai-more-card:hover::after { transform: scaleX(1); }

.ai-mc-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--op);
  border: 1.5px solid rgba(232, 97, 44, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.ai-mc-icon svg {
  width: 22px; height: 22px;
  stroke: var(--o);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-mc-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 12px;
  line-height: 1.25;
}

.ai-mc-body {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 20px;
}

.ai-mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* THEME ANALYSIS (warm)
   ---------------------------------------------------------------- */
.ai-themes {
  background: var(--op);
}

.ai-themes-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.ai-themes-note {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 18px;
}

.ai-themes-distinction {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.ai-td-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid transparent;
}

.ai-td--any {
  background: rgba(76, 175, 80, 0.06);
  border-color: rgba(76, 175, 80, 0.22);
}

.ai-td--post {
  background: rgba(232, 97, 44, 0.06);
  border-color: rgba(232, 97, 44, 0.22);
}

.ai-td-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk);
  min-width: 130px;
}

.ai-td-val {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.4;
}

.ai-td--any .ai-td-label { color: #2E7D32; }
.ai-td--post .ai-td-label { color: var(--o2); }

/* Theme analysis mockup */
.ai-themes-mock {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border: 1.5px solid var(--rule);
}

.ai-tm-head {
  background: var(--dk);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-tm-hl {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ai-tm-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.ai-tm-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4CAF50;
  animation: pu 2s infinite;
}

.ai-tm-body {
  padding: 20px;
}

.ai-theme-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.ai-theme-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.ai-theme-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--o);
}

.ai-theme-content {
  grid-column: 2;
}

.ai-theme-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dk);
  margin-bottom: 3px;
  line-height: 1.3;
}

.ai-theme-meta {
  font-size: 11px;
  color: var(--mu);
  margin-bottom: 6px;
}

/* Progress bar — spans both columns */
.ai-theme-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--rule);
  border-radius: 100px;
  margin-top: -10px;
  overflow: hidden;
}

.ai-theme-fill {
  height: 100%;
  background: var(--o);
  border-radius: 100px;
  opacity: 0.45;
}

/* Restructure: make bar appear under the content row */
.ai-theme-row {
  grid-template-rows: auto auto;
}

.ai-theme-bar {
  grid-column: 1 / -1;
  grid-row: 2;
}

.ai-theme-num { grid-row: 1; }
.ai-theme-content { grid-row: 1; }

.ai-tm-note {
  font-size: 12px;
  color: var(--mu);
  font-style: italic;
  padding: 14px 16px;
  background: var(--op);
  border-radius: 8px;
  margin-top: 16px;
  line-height: 1.5;
}


/* AI PHILOSOPHY (dark)
   ---------------------------------------------------------------- */
.ai-philo {
  background: var(--dk);
  padding: 100px 80px;
}

.ai-philo-inn {
  max-width: 1200px;
  margin: 0 auto;
}

.ai-philo-hd {
  text-align: center;
  margin-bottom: 56px;
}

.ai-philo-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 72px;
}

.ai-quote {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px 26px;
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  position: relative;
  margin: 0;
}

.ai-quote::before {
  content: '\201C';
  position: absolute;
  top: 12px; left: 18px;
  font-size: 48px;
  color: rgba(232, 97, 44, 0.25);
  line-height: 1;
  font-family: var(--font-display);
}

.ai-philo-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ai-pp {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: border-color var(--t-base), background var(--t-base);
}

.ai-pp:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 97, 44, 0.28);
}

.ai-pp-num {
  position: absolute;
  top: 24px; right: 22px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.ai-pp-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(232, 97, 44, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ai-pp-icon svg {
  width: 22px; height: 22px;
  stroke: var(--o);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-pp-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.ai-pp-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
}


/* RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .ai-hi { padding: 48px 24px 72px; }

  .ai-probes { padding: 60px 24px; }
  .ai-philo  { padding: 60px 24px; }

  /* Hero stat bar — smaller numbers */
  .ai-hi .hst .sn { font-size: 22px; }

  /* Pipeline — tighten on mobile */
  .ai-pipe { padding: 60px 24px; }
  .ai-pst { gap: 18px; }
  .ai-pst-left { width: 40px; }
  .ai-pst-circle { width: 40px; height: 40px; }
  .ai-pst-circle svg { width: 14px; height: 14px; }
  .ai-pst-n { width: 15px; height: 15px; font-size: 8px; }
  .ai-pst-card { padding: 18px 20px; }

  /* Outputs: stack on mobile */
  .ai-outputs { grid-template-columns: 1fr; }

  /* Two-column layouts → single */
  .ai-maizy-grid   { grid-template-columns: 1fr; gap: 48px; }
  .ai-themes-grid  { grid-template-columns: 1fr; gap: 48px; }

  /* Key points grid → stack */
  .ai-kp-grid {
    grid-template-columns: 1fr;
    background: none;
    gap: 24px;
  }
  .ai-kp-col { border-radius: 18px !important; border: 1.5px solid var(--rule); }

  /* Three-column grids → single */
  .ai-probes-grid   { grid-template-columns: 1fr; }
  .ai-philo-quotes  { grid-template-columns: 1fr; }
  .ai-philo-principles { grid-template-columns: 1fr; }
  .ai-more-grid     { grid-template-columns: 1fr; background: none; gap: 16px; }
  .ai-more-card     { border-radius: 14px !important; border: 1.5px solid var(--rule); }

  /* Themes distinction */
  .ai-td-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ai-td-label { min-width: auto; }
}


/* REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ai-pst-dot {
    animation: none;
    opacity: 0;
  }
}
