/* ===== AI SUMMARY — shared across landing + every page footer =====
   Full version: .ai-summary-section (landing page, between FAQ + Final CTA)
   Footer mini:  .ai-summary-footer  (auto-injected above <footer class="footer">) */

.ai-summary-section {
  background: var(--cream, #f5f0e6);
  padding: 48px 0 64px;
}
.ai-summary-section .container { padding: 0 24px; }
.ai-summary-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.ai-summary-title {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.026em;
  line-height: 1.18;
  color: var(--ink, #0a0a0a);
  margin: 0 0 32px;
}
.ai-summary-tools {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

/* ===== Footer corner block — text + icon row, tucked into bottom-right ===== */
.ai-summary-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-left: auto;          /* push right within footer-bottom flex row */
}
.ai-summary-corner-label {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #57534e);
  letter-spacing: -0.008em;
  text-transform: none;
  line-height: 1.3;
}
.ai-summary-corner-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-summary-corner .ai-tool-wrap { gap: 0; }
.ai-summary-corner .ai-tool {
  width: 34px;
  height: 34px;
  background: var(--paper, #fbf8f2);
  border: 1px solid var(--line, rgba(10,10,10,0.09));
  border-radius: 50%;
}
.ai-summary-corner .ai-tool svg { width: 17px; height: 17px; }
.ai-summary-corner .ai-tool-name { display: none; }
.ai-summary-corner .ai-tool-wrap:hover .ai-tool {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(10,10,10,0.22);
  box-shadow: 0 8px 16px rgba(10,10,10,0.08);
}

/* ===== Tool button (shared) ===== */
.ai-tool-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.ai-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper, #fbf8f2);
  border: 1px solid var(--line, rgba(10,10,10,0.09));
  color: var(--ink, #0a0a0a);
  transition: transform 0.25s cubic-bezier(.3,.8,.3,1),
              border-color 0.2s ease,
              box-shadow 0.25s ease,
              background 0.2s ease;
}
.ai-tool-wrap:hover .ai-tool {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(10,10,10,0.22);
  box-shadow: 0 14px 28px rgba(10,10,10,0.10);
}
.ai-tool-wrap:active .ai-tool {
  transform: translateY(-1px) scale(1.0);
}
.ai-tool svg {
  width: 24px; height: 24px;
  display: block;
}
.ai-tool-name {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint, #6b675f);
  transition: color 0.2s ease;
}
.ai-tool-wrap:hover .ai-tool-name { color: var(--ink, #0a0a0a); }

/* ===== Toast ===== */
.ai-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink, #0a0a0a);
  color: var(--cream, #f5f0e6);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.008em;
  box-shadow: 0 16px 36px rgba(10,10,10,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(.3,.8,.3,1);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ai-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ai-toast svg {
  width: 16px; height: 16px;
  stroke: currentColor;
}

@media (max-width: 720px) {
  .ai-summary-section { padding: 36px 0 48px; }
  .ai-summary-title { font-size: clamp(22px, 6vw, 28px); margin-bottom: 24px; }

  /* Force a clean 3+3 grid for the 6 tool buttons */
  .ai-summary-section .ai-summary-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 280px;
    margin: 0 auto;
    gap: 20px 12px;
    justify-items: center;
  }
  .ai-summary-section .ai-tool { width: 52px; height: 52px; }
  .ai-summary-section .ai-tool svg { width: 22px; height: 22px; }
  .ai-summary-section .ai-tool-name { font-size: 10px; letter-spacing: 0.12em; }

  /* On mobile, footer-bottom typically stacks. Corner block falls into normal
     flow below the copyright with subtle separation. */
  .ai-summary-corner {
    align-items: flex-start;
    margin-left: 0;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line, rgba(10,10,10,0.09));
    width: 100%;
  }
  .ai-summary-corner-tools { gap: 10px; }
  .ai-summary-corner .ai-tool { width: 36px; height: 36px; }
  .ai-summary-corner .ai-tool svg { width: 18px; height: 18px; }
  .ai-toast {
    bottom: 18px;
    font-size: 13.5px;
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-tool, .ai-toast { transition: none; }
}
