/* Agentic AEO site: extra styles for the inner pages (homepage uses styles.css only).
   Built on the same tokens as /styles.css (v0.4 homepage). */
.page-hero { padding: 88px var(--gutter) 64px; }
.page-hero .kicker a { color: inherit; text-decoration: none; }
.page-hero h1 { font-size: 54px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; max-width: 22ch; margin-bottom: 32px; }
.answer-first { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.5; color: var(--ink-2); max-width: 46rem; }
.page-hero .ctas { margin-top: 32px; }
.prose { max-width: 46rem; }
.prose p { font-size: 16.5px; line-height: 1.7; color: var(--body); }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 16px; }
.prose ul { padding-left: 20px; color: var(--body); }
.prose li { margin: 6px 0; line-height: 1.6; }
.prose a, .link-list a { color: var(--ink); text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }
.parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; }
.part { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 30px; background: var(--ground); }
.part .model-kicker { margin-bottom: 8px; }
.part h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.part ul { padding-left: 18px; color: var(--body); font-size: 15px; }
.part li { margin: 5px 0; line-height: 1.55; }
.part p { color: var(--body); font-size: 15px; line-height: 1.6; }
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.month { border-top: 2px solid var(--lime); padding-top: 18px; }
.month h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.month p { color: var(--body); font-size: 15px; line-height: 1.6; }
.link-list { list-style: none; display: grid; gap: 12px; max-width: 46rem; }
.link-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.link-list a { font-weight: 600; font-size: 17px; }
.link-list p { color: var(--body); font-size: 15px; margin-top: 4px; }
.answer-src { margin-top: 20px; font-size: 14px; color: var(--mute); }
.form { display: grid; gap: 18px; max-width: 34rem; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.form .btn { justify-self: start; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
/* PREVIEW ONLY: banner injected by build.py in preview mode, never in --prod */
.preview-banner { background: #F3EBFF; color: #5B1FCC; font-size: 13px; line-height: 1.5; padding: 8px var(--gutter); border-bottom: 1px solid #E2D2FF; }
@media (max-width: 960px) {
  .page-hero { padding: 56px var(--gutter) 40px; }
  .page-hero h1 { font-size: 38px; }
  .answer-first { font-size: 18px; }
  .parts, .months, .contact-grid { grid-template-columns: 1fr; }
}

/* Contact (no form) */
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.contact-actions .footer-li { display: inline-flex; }

/* Restyled kept pages (case study, scorecard, articles) — new design tokens, Inter */
.crumb { font-size: 13px; color: var(--mute); padding: 0 0 24px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-hero--doc { padding-bottom: 40px; }
.page-hero--answer { padding-bottom: 32px; }
.page-hero--answer h1 { margin-bottom: 0; }
.page-hero--answer .answer-first { margin-top: 32px; }
.page-hero--doc h1 { max-width: 24ch; }
.doc-meta { font-size: 14px; color: var(--mute); margin: 24px 0 0; }
.definition, .summary { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 46rem; background: var(--ground-2); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 8px; }
.definition strong { font-weight: 600; color: var(--ink); }

.doc { padding: 0 var(--gutter) 88px; }
.doc .article { max-width: 46rem; }
.doc .article h2, .note .prose h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 88px; color: var(--ink); }
.doc .article h2:first-child { margin-top: 0; }
.doc .article h3, .note .prose h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 28px 0 10px; scroll-margin-top: 88px; }
.doc .article p, .doc .article li { font-size: 16.5px; line-height: 1.7; color: var(--body); }
.doc .article p + p, .doc .article p + ul, .doc .article ul + p { margin-top: 14px; }
.doc .article ul, .doc .article ol { padding-left: 22px; margin: 10px 0 16px; }
.doc .article li { margin: 6px 0; }
.doc .article a, .note a { color: var(--ink); text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }
.doc .table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); background: var(--ground-2); }
.doc code { font-size: 0.9em; background: var(--ground-2); padding: 1px 5px; border-radius: 4px; }
.doc .faq { margin-top: 8px; }
.doc .qa { border-top: 1px solid var(--line); padding: 22px 0; }
.doc .qa:first-child { border-top: 0; }
.doc .qa h3 { margin-top: 0; }
.doc .qa p { margin-top: 8px; }

.note { padding: 0 var(--gutter) 88px; }
.note .ahead { max-width: 46rem; padding-bottom: 28px; }
.note .ahead h1 { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; margin: 16px 0 20px; max-width: 22ch; }
.note .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--mute); background: var(--ground-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.standfirst { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--mute); flex-wrap: wrap; }
.byline img { width: 40px; height: 40px; border-radius: 50%; }
.byline b { font-weight: 600; color: var(--ink); font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 46rem) 260px; gap: 64px; align-items: start; }
.hero-img { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-img img { width: 100%; height: auto; display: block; }
.hero-img figcaption { font-size: 13px; color: var(--mute); padding: 10px 14px; background: var(--ground-2); }
.takeaways { background: #FAFFF0; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.takeaways h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.takeaways ul { padding-left: 20px; }
.takeaways li { margin: 6px 0; font-size: 15.5px; line-height: 1.6; color: var(--body); }
.note .prose { max-width: none; }
.note .prose p { margin: 12px 0; }
.note .prose .src { font-size: 13px; color: var(--mute); }
.note .prose .src a, .note .prose sup a { color: var(--ink); }
.sources { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.sources h2 { margin-top: 0; }
.sources ol { padding-left: 22px; }
.sources li { font-size: 15px; margin: 8px 0; line-height: 1.5; color: var(--body); }
.orig { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--mute); }
.share { display: flex; gap: 10px; flex-wrap: wrap; }
.share a, .share button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ground); color: var(--ink); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--ground-2); }
aside.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--ground); }
.box h2 { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }
.toc ol { padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.authorbox { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 48px; }
.authorbox img { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; }
.authorbox h2 { font-size: 20px; font-weight: 600; margin: 0; }
.authorbox .author-role { font-size: 13px; font-weight: 500; color: var(--mute); margin: 4px 0 0; }
.authorbox p { font-size: 15px; line-height: 1.55; color: var(--body); margin: 6px 0 14px; }
.authorbox .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.related { margin-top: 64px; }
.related h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 24px; }
.related .cards, .related .posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related .card { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ground); transition: box-shadow .15s ease, transform .15s ease; }
.related .card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.related .thumb img { width: 100%; height: 160px; object-fit: cover; display: block; }
.related .card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.related .card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.related .card p { font-size: 14.5px; line-height: 1.5; color: var(--body); }
.related .date { font-size: 13px; color: var(--mute); margin-top: auto; padding-top: 8px; }
.related .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.follow2 { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--ground-2); }
.follow2 h2 { font-size: 22px; font-weight: 600; }
.follow2 p { font-size: 15px; color: var(--body); margin-top: 4px; }
@media (max-width: 960px) {
  .note .ahead h1 { font-size: 32px; }
  .layout { grid-template-columns: 1fr; gap: 0; }
  aside.side { display: none; }
  .related .cards, .related .posts { grid-template-columns: 1fr; }
  .follow2, .authorbox { flex-direction: column; align-items: flex-start; }
  .doc .article h2, .note .prose h2, .related h2 { font-size: 24px; }
}

.box--follow p { font-size: 15px; line-height: 1.55; color: var(--body); margin: 0 0 14px; }
.box--follow p:last-child { margin-bottom: 0; }

.answer-long { padding: 0 var(--gutter) 88px; max-width: calc(46rem + 2 * var(--gutter)); }
.answer-long h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin: 48px 0 14px; color: var(--ink); }
.answer-long h2:first-child { margin-top: 0; }
.answer-long p, .answer-long li { font-size: 16.5px; line-height: 1.7; color: var(--body); }
.answer-long p + p { margin-top: 14px; }
.answer-long a { color: var(--ink); text-decoration-color: var(--lime-deep); text-underline-offset: 3px; }
@media (max-width: 960px) {
  .answer-long h2 { font-size: 24px; }
}

.answer-long a, .answer-long li, .sources a, .sources li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* /aeo-consultant: existing .doc table treatment without article-page padding */
.journey-table { overflow-x: auto; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground); }
.journey-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.journey-table th, .journey-table td { border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.journey-table tr:last-child td { border-bottom: 0; }
.journey-table th { font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); background: var(--ground-2); }
.proof-follow { margin-top: 28px; }


/* Homepage v3 layout (20 Nov 2026). Layered on styles.css. No hero proof line. */
.hero { padding: 28px var(--gutter) 24px; }
.hero h1 { font-size: 48px; line-height: 1.06; margin-bottom: 16px; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 468px;
  gap: 48px;
  padding-top: 0;
  border-top: 0; /* homepage only: .hero-split is not used on other pages */
  align-items: center;
}
.hero .ctas { margin-top: 20px; }
.hero-anim { margin: 0; }
.hero-anim-frame {
  position: relative;
  width: 468px;
  aspect-ratio: 4 / 5;
  max-height: 585px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #fff;
}
.hero-anim-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stats-strip {
  padding: 8px var(--gutter) 28px;
  border-top: 1px solid var(--line);
}
.stats-strip .stats { min-height: 0; }
.stats-strip .stat {
  min-height: 0;
  padding: 22px 22px 24px;
}
.stats-strip .stat-num {
  font-size: 26px;
  padding-bottom: 10px;
  margin-bottom: 0;
}
.stats-strip .stat-body {
  font-size: 14px;
  line-height: 1.5;
}
.stats-strip .stat-src {
  margin-top: 12px;
  font-size: 12px;
}

.logos--one-row { padding: 24px var(--gutter) 26px; border-top: 1px solid var(--line); }
.logos--one-row .logos-label { margin-bottom: 14px; }
.logos-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: nowrap;
}
.logos-strip .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  flex: 0 1 auto;
}
.logos-strip img {
  height: var(--h, 26px);
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
}

.section { padding: 48px var(--gutter); }
.section-head { margin-bottom: 26px; }

.familiar .define-grid { margin-top: 22px; }
.define-main { padding: 26px 30px; }
.define-side { padding: 26px 30px; }
.define-answer { font-size: 20px; line-height: 1.45; }
.define-side-text { font-size: 15.5px; line-height: 1.6; }

.proof-head { margin-bottom: 24px; }
.proof-line { font-size: 36px !important; line-height: 1.12 !important; margin-bottom: 12px; }
.gallery--matched {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.gallery--matched .shot-frame--media {
  padding: 10px;
  border-radius: var(--radius);
}
.gallery--matched .shot-frame--media img { border-radius: 8px; width: 100%; height: auto; display: block; }

.sf { margin-bottom: 20px; }
.sf-col { padding: 20px 24px; }
.chain-step { min-height: 146px; padding: 20px 22px; }
.chain-n { margin-bottom: 10px; }
.chain-step p { padding-bottom: 12px; }

.how-merged .glance-grid { margin-bottom: 0; } /* steps now start a new section */
.glance-grid > div { padding: 20px 22px 22px; }
.steps li { padding: 20px 18px 22px; }
.step-n { margin-bottom: 12px; }
.how-links { margin-top: 18px; font-size: 14.5px; color: var(--body); }
.how-links a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--lime-deep); padding-bottom: 1px; }

.about { padding-top: 48px; padding-bottom: 48px; }
.about-grid {
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 1.46fr);
  gap: 44px;
}
.about-photo-frame { max-width: 280px; }
.about-copy h2 { margin-bottom: 12px; }
.about-lede { font-size: 20px; margin-bottom: 12px; }
.about-copy .more { margin-top: 16px; }

.price { padding: 24px 24px 26px; min-height: 0; }
.pricing-note {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--body);
}
.pricing-note a, .faq-more a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--lime-deep);
  padding-bottom: 1px;
}
.ctas--center { margin-top: 20px; }

.faq-item summary { padding: 15px 22px; }
.faq-item p { padding: 0 56px 18px 64px; }
.faq-more { margin-top: 18px; font-size: 14.5px; }

.resources-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px;
  font-weight: 500;
}
.resources-links a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--lime-deep);
  padding-bottom: 2px;
}

@media (max-width: 960px) {
  .hero { padding: 24px var(--gutter) 22px; }
  .hero h1 { font-size: 32px; margin-bottom: 16px; }
  .hero-split { grid-template-columns: 1fr; gap: 22px; padding-top: 0; }
  .hero-anim-frame {
    width: 100%;
    max-width: 100%;
    max-height: none;
  }
  .stats-strip { padding: 4px var(--gutter) 22px; }
  .stats-strip .stat { padding: 18px 0 20px; }
  .stats-strip .stat-num { font-size: 24px; padding-bottom: 8px; }
  .logos--one-row { padding: 20px var(--gutter); }
  .logos-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
    justify-items: center;
  }
  .logos-strip .logo-item { height: 32px; }
  .logos-strip img { height: calc(var(--h, 24px) * 0.76); max-width: 100%; }
  .section { padding: 36px var(--gutter); }
  .section-head { margin-bottom: 20px; }
  .define-main, .define-side { padding: 20px 18px; }
  .define-answer { font-size: 18px; }
  .proof-line { font-size: 26px !important; }
  .gallery--matched { grid-template-columns: 1fr; gap: 18px; }
  .gallery--matched .shot-frame--media { padding: 6px; }
  .about { padding-top: 36px; padding-bottom: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-photo-frame { max-width: 240px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .hero h1 { font-size: 40px; }
  .hero-split { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .hero-anim-frame { width: 360px; max-height: 450px; }
  .logos-strip { flex-wrap: wrap; justify-content: flex-start; gap: 18px 28px; }
}

/* Discovery-first pricing card line (keeps body p styling when another p follows) */
.price > p:not(.model-kicker):not(.price-num):not(.price-starts) {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}
.price-starts {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Homepage hero animation controls and modal overlay */
.hero-anim-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
  flex-wrap: nowrap;
}
.anim-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 11px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.anim-ctrl-btn:hover { background: var(--ground-2); }
.anim-ctrl-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.anim-ctrl-btn[aria-pressed="true"] {
  background: var(--ground-2);
  border-color: var(--ink-2);
}
.anim-ctrl-ico { flex-shrink: 0; }
@media (max-width: 960px) {
  .hero-anim-controls {
    width: 100%;
    justify-content: flex-start;
  }
  .anim-ctrl-btn {
    min-height: 44px;
    padding: 8px 13px;
  }
}

html.anim-modal-open, html.anim-modal-open body {
  overflow: hidden;
}
dialog.anim-dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  width: min(560px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: visible;
  color: var(--ink);
}
dialog.anim-dialog::backdrop {
  background: rgba(13, 11, 26, 0.56);
  backdrop-filter: blur(4px);
}
.anim-dialog-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.anim-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.anim-dialog-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.anim-dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.anim-dialog-stage {
  position: relative;
  width: min(100%, calc((100dvh - 140px) * 0.8));
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ground);
}
.anim-dialog-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 960px) {
  .anim-dialog-box { padding: 12px; gap: 10px; }
  .anim-dialog-stage { width: min(100%, calc((100dvh - 160px) * 0.8)); }
}
