/* Reach reusable components — light marketing theme
 * Pattern inspired by the ColdIQ tool-page surface, adapted for Reach's design system.
 */

/* ==================================================
   NAV
   ================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(247, 246, 243, 0.98);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--text);
  flex-shrink: 0;
}
.nav__logo svg,
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav__link:hover { opacity: 1; color: var(--text); }

@media (max-width: 900px) {
  .nav__inner { padding: 12px var(--space-5); }
  .nav__links { display: none; }
}

/* ==================================================
   BUTTONS
   ================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.btn-sm  { padding: 7px 12px; font-size: 13px; }
.btn-lg  { padding: 14px 26px; font-size: 15px; }

/* Unified stamp hover — applied to every variant */
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--text);
}
.btn:active {
  transform: translate(-1px, -1px);
  box-shadow: 1px 1px 0 0 var(--text);
}

.btn-primary {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-color: var(--text);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent);
  color: var(--text);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-white);
  color: var(--text);
  border-color: var(--text);
}

/* ==================================================
   PILLS / BADGES
   ================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.pill svg { width: 12px; height: 12px; flex-shrink: 0; }

.pill-mint   { background: var(--accent-bg); color: var(--accent-3); }
.pill-info   { background: var(--info-bg);   color: var(--info); }
.pill-purple { background: var(--purple-bg); color: var(--purple); }
.pill-amber  { background: var(--amber-bg);  color: var(--amber); }
.pill-hot    { background: rgba(246, 61, 104, 0.10); color: var(--alert); }
.pill-gray   { background: var(--gray-bg);   color: var(--gray-tag); }
.pill-cyan   { background: rgba(165, 240, 252, 0.30); color: var(--accent-3); }

/* "Reach Pick" badge (green/mint) */
.pill-pick {
  background: var(--mint-bg);
  color: var(--mint);
  font-weight: 700;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill-pick::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

/* ==================================================
   CATEGORY ICON CHIPS (capability tags)
   ================================================== */
.cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.cap-chip__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}
.cap-chip__icon--mint   { background: var(--accent); }
.cap-chip__icon--info   { background: var(--info); }
.cap-chip__icon--purple { background: var(--purple); }
.cap-chip__icon--amber  { background: var(--amber); }
.cap-chip__icon--hot    { background: var(--hot); }
.cap-chip__icon--cyan   { background: var(--accent-3); }
.cap-chip__icon--gray   { background: var(--gray-tag); }
.cap-chip__more {
  background: var(--info-bg);
  color: var(--info);
  border-color: transparent;
}

/* ==================================================
   FOOTER
   ================================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  margin-top: var(--space-24);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-16) var(--space-8) var(--space-10);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-4);
  color: var(--text-on-dark);
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer ul a {
  color: var(--text-muted-on-dark);
  font-size: var(--text-small);
}
.footer ul a:hover { color: var(--text-on-dark); }
.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-small);
  color: var(--text-muted-on-dark);
}
.footer__logo { color: var(--text-on-dark); display:flex; align-items:center; gap:10px; font-weight:700; font-size:18px; letter-spacing:-0.02em;}
.footer__logo svg { height: 28px; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ==================================================
   CTA BLOCK (used across all pages)
   ================================================== */
.cta-block {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  max-width: var(--max-w);
  margin: var(--space-16) auto;
}
.cta-block h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-on-dark);
}
.cta-block h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-2);
  font-weight: 400;
}
.cta-block p {
  margin: 0 auto var(--space-8);
  max-width: 600px;
  font-size: 17px;
  color: var(--text-muted-on-dark);
  line-height: 1.55;
}
.cta-block__ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-block .btn-primary {
  background: var(--text-on-dark);
  color: var(--text);
}
.cta-block .btn-primary:hover { background: var(--text-muted-on-dark); color: var(--text); }
.cta-block .btn-secondary {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}
.cta-block .btn-secondary:hover {
  background: var(--text-on-dark);
  color: var(--text);
}

/* ==================================================
   ANNOUNCEMENT BAR (top, dark)
   ================================================== */
.announce {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 10px var(--space-6);
  text-align: center;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}
.announce strong { color: var(--text-on-dark); font-weight: 600; }
.announce a {
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.10);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease;
}
.announce a:hover { background: rgba(255,255,255,0.18); color: var(--text-on-dark); }

/* ==================================================
   CAPABILITY GALLERY (Product Capabilities section on review pages)
   ================================================== */
.capability-section .lead {
  font-size: 16px;
  color: var(--text-2);
  margin: 0 0 var(--space-5);
  max-width: 720px;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.capability-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.18s ease, border-color 0.18s ease;
  margin: 0;
  position: relative;
}
.capability-card:hover {
  border-color: var(--text);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 0 var(--text);
}
.capability-card__image-wrap {
  background: var(--bg-soft);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  cursor: zoom-in;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  font: inherit;
  text-align: left;
  appearance: none;
}
.capability-card__image-wrap::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(23, 20, 18, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 3 21 3 21 9'/><polyline points='9 21 3 21 3 15'/><line x1='21' y1='3' x2='14' y2='10'/><line x1='3' y1='21' x2='10' y2='14'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: translate(4px, -4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.capability-card:hover .capability-card__image-wrap::after {
  opacity: 1;
  transform: translate(0, 0);
}
.capability-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.capability-card:hover .capability-card__image-wrap img {
  transform: scale(1.02);
}
.capability-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}
.capability-card__title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--text);
}
.capability-card__caption {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 var(--space-3);
}
.capability-card__source {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.capability-card__source:hover { color: var(--accent-3); }
.capability-card__source svg { width: 11px; height: 11px; }

.capability-placeholder {
  background: var(--bg-white);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  color: var(--text-2);
}
.capability-placeholder strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ==================================================
   FAQ ACCORDION
   ================================================== */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-2);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ==================================================
   BREADCRUMB
   ================================================== */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-6) var(--space-8) 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-2);
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--text-3); opacity: 0.6; }
@media (max-width: 900px) {
  .breadcrumb { padding-left: var(--space-5); padding-right: var(--space-5); }
}

/* ==================================================
   DIRECTORY BYLINE (editorial credit line + numbered expand card)
   ================================================== */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  margin-bottom: var(--space-6);
}
.section-head .section-title { margin: 0; }

.byline {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}
.byline__line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 4px 0;
}
.byline__line::-webkit-details-marker { display: none; }
.byline__line::marker { content: ""; }
.byline__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 3px rgba(46, 211, 183, 0.15);
  flex-shrink: 0;
}
.byline__text strong {
  color: var(--text);
  font-weight: 600;
}
.byline__stamp {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.byline__link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.byline__link:hover { color: var(--accent-3); }
.byline__chev { transition: transform 0.18s ease; opacity: 0.6; }
.byline[open] .byline__chev { transform: rotate(180deg); }

/* Expanded body — full-width editorial card */
.byline__body {
  margin-top: 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0 0 var(--text);
  padding: var(--space-8);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.byline__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8) var(--space-10);
}
.byline__cell { position: relative; }
.byline__num {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.byline__cell h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.byline__cell p { margin: 0; color: var(--text-2); }
.byline__body em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--text);
}
.byline__body a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}
.byline__body a:hover { color: var(--accent-3); }

.byline__footer {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--text-3);
}
.byline__footer-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.byline__footer-label .byline__dot {
  width: 6px; height: 6px;
  box-shadow: 0 0 0 2px rgba(46, 211, 183, 0.15);
}
.byline__footer-stamp {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-3);
}

@media (max-width: 900px) {
  .byline__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .byline__body { padding: var(--space-6); }
  .byline__footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 600px) {
  .byline__line { flex-wrap: wrap; }
}

/* ==================================================
   TOOL-PAGE EDITORIAL CARD (matches tool-card primitive)
   White card, neutral border, offset hard shadow on hover.
   ================================================== */
.reach-note {
  margin-bottom: var(--space-6);
}
.reach-note__details {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.reach-note__details:hover {
  transform: translate(-3px, -3px);
  border-color: var(--text);
  box-shadow: 5px 5px 0 0 var(--text);
}
.reach-note__details[open] {
  transform: none;
  border-color: var(--text);
  box-shadow: 5px 5px 0 0 var(--text);
}
.reach-note__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  user-select: none;
}
.reach-note__summary::-webkit-details-marker { display: none; }
.reach-note__summary::marker { content: ""; }
.reach-note__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
}
.reach-note__icon svg { display: block; }
.reach-note__label { flex: 1; }
.reach-note__label strong {
  color: var(--text);
  font-weight: 600;
}
.reach-note__toggle {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
}
.reach-note__toggle svg { transition: transform 0.18s ease; opacity: 0.7; }
.reach-note__details[open] .reach-note__toggle svg { transform: rotate(180deg); }
.reach-note__details[open] .reach-note__toggle-text--closed,
.reach-note__details:not([open]) .reach-note__toggle-text--open { display: none; }
.reach-note__body {
  padding: 0 22px 20px 60px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}
.reach-note__body h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.reach-note__body h4:first-child { margin-top: 0; }
.reach-note__body p { margin: 0 0 8px; }
.reach-note__body p:last-child { margin-bottom: 0; }
.reach-note__body em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.reach-note__body a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}
.reach-note__body a:hover { color: var(--accent-3); }
.reach-note__footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
}
.reach-note__footer-stamp {
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .reach-note__summary { gap: 10px; padding: 12px 14px; }
  .reach-note__label { font-size: 13px; }
  .reach-note__toggle-text--closed,
  .reach-note__toggle-text--open { display: none; }
  .reach-note__body { padding: 14px 16px 18px 16px; }
}

/* ==================================================
   ASK-AI BUTTON + POPUP
   ================================================== */
.ask-ai { position: relative; display: inline-block; }
.ask-ai__btn { position: relative; }
.ask-ai__chev { transition: transform 0.18s ease; opacity: 0.55; margin-left: 2px; }
.ask-ai[data-open="true"] .ask-ai__chev { transform: rotate(180deg); }

.ask-ai__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 320px;
  background: var(--bg-white);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0 0 var(--text);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ask-ai__menu[hidden] { display: none; }

.ask-ai__menu-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ask-ai__menu-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.ask-ai__menu-sub {
  font-size: 12px;
  color: var(--text-3);
}

.ask-ai__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text);
  transition: background 0.12s ease;
}
.ask-ai__item:hover { background: var(--bg-soft); }
.ask-ai__item:active { background: var(--bg-alt); }

.ask-ai__logo {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ask-ai__item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ask-ai__item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.ask-ai__item-sub {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.3;
}
.ask-ai__item-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s ease;
  color: var(--text-2);
}
.ask-ai__item:hover .ask-ai__item-arrow {
  opacity: 1;
  transform: translateX(0);
}

.ask-ai__toast {
  margin: 6px 6px 2px;
  padding: 8px 12px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.ask-ai__toast[hidden] { display: none; }

@media (max-width: 720px) {
  .ask-ai__menu { right: auto; left: 0; min-width: 280px; }
}

/* ==================================================
   LIGHTBOX (fullscreen capability screenshot viewer)
   ================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 7, 5, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity 0.18s ease;
  cursor: zoom-out;
}
.lightbox[data-open="true"] { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__frame {
  position: relative;
  max-width: min(1400px, 96vw);
  max-height: 92vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.2,0.7,0.2,1);
  background: var(--bg-white);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}
.lightbox[data-open="true"] .lightbox__frame { transform: scale(1); }
.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92vh;
  object-fit: contain;
  background: var(--bg-white);
}
.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 20px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.65));
  color: white;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lightbox__caption a {
  color: white;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.18s ease;
  z-index: 2;
}
.lightbox__close:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--text);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  z-index: 2;
  transition: transform 0.18s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.18s ease;
}
.lightbox__nav:hover {
  transform: translateY(-50%) translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--text);
}
.lightbox__nav--prev { left: -22px; }
.lightbox__nav--next { right: -22px; }
@media (max-width: 720px) {
  .lightbox { padding: var(--space-4); }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__close { top: 8px; right: 8px; }
}
