/* /for-ai/ — page-specific styles. Inherits tokens & components from ../styles.css */

.for-ai-page main {
  padding-bottom: 80px;
}

.for-ai-hero {
  padding: 80px 0 40px;
}

.for-ai-hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, var(--navy) 0%, #143a64 70%, var(--red) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--navy);
  max-width: 22ch;
}

.for-ai-hero .lede {
  font-size: 1.18rem;
  line-height: 1.6;
  max-width: 70ch;
  color: var(--ink);
}

.for-ai-hero .lede strong {
  color: var(--navy);
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-mint);
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  max-width: 80ch;
  box-shadow: var(--shadow-sm);
}

.ai-banner span[aria-hidden] {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.ai-banner code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  background: rgba(11, 38, 64, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--navy);
}

.ai-banner a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-section {
  padding: 56px 0;
  border-top: 1px solid rgba(11, 38, 64, 0.08);
}

.ai-section h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: var(--navy);
}

.ai-section .section-desc {
  margin: 0 0 28px;
  color: var(--ink-muted);
  max-width: 70ch;
  line-height: 1.6;
}

/* Fact cards */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.fact-card {
  background: var(--surface-0);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.fact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--red), var(--accent-amber));
}

.fact-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--navy);
}

.fact-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.fact-card li {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}

.fact-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--red));
}

.fact-card strong {
  color: var(--navy);
  font-weight: 600;
}

/* Persona list */
.persona-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.persona-list li {
  background: var(--surface-0);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.98rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.persona-list strong {
  color: var(--navy);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--surface-0);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(11, 38, 64, 0.06);
  vertical-align: middle;
}

.compare-table thead th {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
}

.compare-table thead th:nth-child(2) {
  background: linear-gradient(180deg, rgba(196, 55, 50, 0.10) 0%, rgba(245, 185, 66, 0.10) 100%);
  color: var(--red);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--navy);
  background: var(--surface-1);
  white-space: nowrap;
}

.compare-table tbody td:nth-child(2) {
  font-weight: 600;
  color: var(--navy);
  background: rgba(196, 55, 50, 0.04);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* HowTo */
.howto-list {
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
  counter-reset: howto;
  display: grid;
  gap: 14px;
}

.howto-list li {
  counter-increment: howto;
  background: var(--surface-0);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 22px 18px 64px;
  font-size: 0.98rem;
  line-height: 1.55;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.howto-list li::before {
  content: counter(howto);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--navy), #143a64);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(11, 38, 64, 0.30);
}

.howto-list strong {
  color: var(--navy);
}

.howto-list a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Citation block */
.ai-citation {
  background: linear-gradient(180deg, transparent, rgba(11, 38, 64, 0.04));
}

.citation-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.citation-list li {
  background: var(--surface-0);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.citation-list strong {
  color: var(--navy);
  display: inline-block;
  margin-right: 4px;
}

.citation-list code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  word-break: break-all;
  color: var(--ink);
}

.cite-footer {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
  max-width: 80ch;
}

.cite-footer a {
  color: var(--red);
  text-decoration: underline;
}

/* FAQ tweaks for /for-ai/ — keep main faq-item styles, tighten width */
.for-ai-page .faq-list {
  max-width: 820px;
}

@media (max-width: 768px) {
  .for-ai-hero { padding: 56px 0 32px; }
  .ai-section { padding: 40px 0; }
  .quick-links .btn { width: 100%; }
  .compare-table { font-size: 0.88rem; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; }
}
