/* Content pages built by scripts/build-pages.mjs: Insights, FAQs, legal.
   The header nav and footer are the same markup as the main pages, so
   avrio-responsive.css and avrio-motion.js apply to them as well. */

:root {
  --ink: #0D0F14;
  --body: #374151;
  --muted: #4B5563;
  --line: #E5E7EB;
  --soft: #F6F8FA;
  --blue: #0057FF;
  --blue-hover: #0046CC;
  --gutter: var(--av-gutter, max(64px, calc(50% - 656px)));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; height: auto; }

.c-header { background: var(--soft); color: var(--ink); display: flex; flex-direction: column; }

/* Page hero */
.c-hero {
  padding: calc(48px * var(--av-space, 1)) var(--gutter) calc(72px * var(--av-space, 1));
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.c-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 13px Inter, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.c-eyebrow svg { flex: 0 0 auto; fill: currentColor; }
.c-hero h1 {
  margin: 0;
  font-size: calc(16px + (64px - 16px) * var(--av-type, 1));
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.04em;
  max-width: 980px;
  text-wrap: balance;
}
.c-hero .c-lede {
  margin: 0;
  font-size: calc(16px + (21px - 16px) * var(--av-type, 1));
  line-height: 1.5;
  color: var(--body);
  max-width: 720px;
  text-wrap: pretty;
}
.c-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.c-avatar { display: block; width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; }
.c-dot { width: 4px; height: 4px; border-radius: 50%; background: #9CA3AF; }

.c-section { padding: calc(72px * var(--av-space, 1)) var(--gutter) calc(112px * var(--av-space, 1)); }

/* Long-form text: articles and legal pages */
.c-prose { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--body); }
.c-prose > :first-child { margin-top: 0; }
.c-prose p { margin: 0 0 1.1em; }
.c-prose h2 { margin: 2em 0 .6em; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.c-prose h3 { margin: 1.8em 0 .5em; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.c-prose strong { color: var(--ink); font-weight: 600; }
.c-prose ul, .c-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.c-prose li { margin: .35em 0; }
.c-prose a { text-decoration: underline; text-underline-offset: .2em; }
.c-prose em { color: var(--muted); }
.c-legal { font-size: 16px; line-height: 1.65; }
.c-legal h3 { font-size: 20px; }
.c-legal { overflow-wrap: anywhere; }
.c-legal-hero .c-meta { margin: 0; }
.c-legal-source-footer { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.c-legal-table { max-width: 100%; overflow-x: auto; margin: 1.5em 0; }
.c-legal-table:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.c-legal table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.c-legal th, .c-legal td { padding: 14px 16px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.c-legal th { background: var(--soft); color: var(--ink); font-weight: 600; }
.c-legal td p:last-child, .c-legal th p:last-child { margin-bottom: 0; }

.c-figure { margin: 0 0 calc(56px * var(--av-space, 1)); max-width: 1040px; }
.c-figure img { display: block; width: 100%; border-radius: 20px; border: 1px solid var(--line); background: var(--soft); }

/* Article end matter */
.c-article-foot { max-width: 760px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }

/* Insights index */
.c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(32px * var(--av-space, 1)); }
.c-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--soft);
  overflow: hidden;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.c-card:hover { color: inherit; transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(20, 20, 43, .35); }
.c-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff; }
.c-card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.c-card h2 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.c-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.c-card .c-meta { margin-top: auto; padding-top: 8px; font-size: 14px; }
.c-tag { font: 600 12px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.c-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.c-card--featured .c-card-img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.c-card--featured h2 { font-size: 34px; }

/* FAQs */
.c-faq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: calc(64px * var(--av-space, 1)); align-items: start; }
.c-faq-nav { position: sticky; top: calc(var(--av-nav-h, 92px) + 32px); display: flex; flex-direction: column; gap: 4px; }
.c-faq-nav a { padding: 10px 14px; border-radius: 12px; color: var(--body); font-size: 15px; font-weight: 500; }
.c-faq-nav a:hover { background: var(--soft); color: var(--ink); }
.c-faq-group + .c-faq-group { margin-top: 56px; }
.c-faq-group h2 { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; scroll-margin-top: calc(var(--av-nav-h, 92px) + 24px); }
.c-faq details { border-bottom: 1px solid var(--line); }
.c-faq details:first-of-type { border-top: 1px solid var(--line); }
.c-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230057FF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .25s ease;
}
.c-faq details[open] summary::after { transform: rotate(180deg); }
.c-faq summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.c-faq details p { margin: 0 0 24px; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--body); }

/* Closing call to action */
.c-cta { padding: 0 var(--gutter) calc(112px * var(--av-space, 1)); }
.c-cta-card {
  border-radius: 28px;
  background: #0D0F14 radial-gradient(ellipse 800px 400px at 50% 120%, rgba(0, 87, 255, .35), transparent 70%);
  color: #F6F8FA;
  padding: calc(88px * var(--av-space, 1)) calc(64px * var(--av-space, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.c-cta-card h2 { margin: 0; font-size: calc(16px + (52px - 16px) * var(--av-type, 1)); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; max-width: 820px; text-wrap: balance; }
.c-cta-card p { margin: 0; font-size: 19px; color: #D1D5DB; }
.c-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.c-btn { padding: 14px 24px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.c-btn--primary { background: var(--blue); color: #fff; }
.c-btn--primary:hover { background: var(--blue-hover); color: #fff; }
.c-btn--ghost { border: 1px solid rgba(255, 255, 255, .25); color: #F6F8FA; }
.c-btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }

@media (max-width: 1023px) {
  .c-card--featured { grid-template-columns: minmax(0, 1fr); }
  .c-card--featured .c-card-img { min-height: 0; aspect-ratio: 16 / 9; }
  .c-faq { grid-template-columns: minmax(0, 1fr); }
  .c-faq-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .c-grid { grid-template-columns: minmax(0, 1fr); }
  .c-prose { font-size: 17px; }
  .c-prose h2 { font-size: 24px; }
  .c-card h2, .c-card--featured h2 { font-size: 22px; }
  .c-faq summary { font-size: 17px; }
}
