/* SEO/AEO page system v2 - clean Apple-like: whitespace, quiet hairlines, no eyebrow text */
:root {
  --ink: #1d1d1f;
  --ink-2: #49494d;
  --ink-3: #6e6e73;
  --paper: #ffffff;
  --wash: #f5f5f7;
  --line: #d2d2d7;
  --radius: 18px;
}
article.seo { max-width: 1060px; margin: 0 auto; padding: 110px 24px 40px; }

.seo-hero { margin: 0 0 72px; }
.seo-hero h1 { font-size: clamp(40px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; color: var(--ink); margin: 0 0 20px; max-width: 24ch; }
.seo-hero .updated { color: var(--ink-3); font-size: 13px; letter-spacing: 0; margin: 0 0 28px; }
.seo-hero .seo-lead { font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; margin: 0 0 34px; font-weight: 400; }
.seo-hero .seo-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: opacity .15s ease, background-color .15s ease; }
.btn-pill:hover { opacity: .85; }
.btn-pill.primary { background: var(--ink); color: #fff; }
.btn-pill.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-pill.ghost:hover { background: var(--wash); opacity: 1; }

/* lead paragraph straight after hero reads larger */
.seo-hero + p { font-size: 21px; line-height: 1.55; color: var(--ink); max-width: 62ch; font-weight: 500; }

article.seo > h3, article.seo .faq h2 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; font-weight: 700; color: var(--ink); margin: 56px 0 18px; max-width: 30ch; }
article.seo > h3:first-of-type { margin-top: 0; }
article.seo h4 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 40px 0 12px; letter-spacing: -0.01em; }
article.seo p, article.seo li { font-size: 17px; line-height: 1.7; color: #344054; max-width: 66ch; }
article.seo p strong, article.seo li strong { color: var(--ink); font-weight: 600; }
article.seo ul { list-style: none; padding-left: 0; margin: 16px 0 26px; }
article.seo li { position: relative; padding-left: 22px; margin: 14px 0; }
article.seo li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
article.seo a { color: var(--ink); text-underline-offset: 3px; }

.seo-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 40px 0 10px; }
article.seo table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
article.seo table th { text-align: left; font-weight: 700; letter-spacing: -0.015em; font-size: 20px; color: var(--ink); padding: 0 20px 18px 0; background: transparent; border-bottom: none; white-space: nowrap; }
article.seo table th:nth-child(3) { color: var(--ink-3); font-weight: 600; }
article.seo table td { padding: 20px 20px 20px 0; border-bottom: 1px solid #e8e8ea; border-top: none; color: var(--ink-2); vertical-align: top; line-height: 1.55; font-size: 15.5px; }
article.seo table td:first-child { color: var(--ink-3); font-weight: 400; font-size: 13.5px; width: 160px; }
article.seo table td:nth-child(2) { color: var(--ink); font-weight: 500; }
article.seo table tr:last-child td { border-bottom: none; }
article.seo .chart-caption { font-size: 13px; color: var(--ink-3); max-width: 72ch; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 2px; font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--ink-3); flex: none; transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 24px; margin: 0; }

.seo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 36px 0 10px; }
.seo-card { display: block; border: 1px solid #ececee; border-radius: var(--radius); padding: 28px 28px 26px; background: var(--wash); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.seo-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.06); background: #f0f0f2; border-color: #e0e0e3; }
.seo-card .card-title { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.seo-card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 0 0 18px; }
.seo-card .go { font-size: 15px; font-weight: 500; color: var(--ink); }

.seo-callout { border: none; border-radius: var(--radius); background: var(--wash); padding: 24px 26px; margin: 32px 0; }
.seo-callout p { margin: 0; }
.seo-callout p + p { margin-top: 10px; }

.seo-conv { border: none; border-radius: var(--radius); background: var(--wash); padding: 28px 30px; margin: 30px 0; }
.seo-conv p { font-size: 15.5px; }

.sticky-cta { position: fixed; transform: translate3d(0,0,0); -webkit-transform: translate3d(0,0,0); backface-visibility: hidden; -webkit-backface-visibility: hidden; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 10px 10px 22px; box-shadow: 0 10px 32px rgba(0,0,0,.20); }
.sticky-cta .msg { font-size: 14px; font-weight: 500; white-space: nowrap; }
.sticky-cta a { display: inline-flex; align-items: center; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 9px 18px; white-space: nowrap; }
@media (max-width: 560px) {
  .sticky-cta { left: 0; right: 0; bottom: 0; width: auto; margin-inline: 0; border-radius: 0; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(0,0,0,.16); }
  .sticky-cta .msg { display: none; }
  .sticky-cta a { flex: 1 1 auto; justify-content: center; text-align: center; }
  article.seo { padding-bottom: 48px; }
}

article.seo .close { margin-top: 56px; font-size: 14px; color: var(--ink-3); }
/* disclaimer renders outside <article> on rendered pages: keep it on the same measure */
body > p.close { max-width: 1060px; margin: 0 auto; padding: 8px 24px 48px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
body > p.close a { color: var(--ink-2); }
/* anchor jumps clear the fixed glass nav */
article.seo h2, article.seo h3, article.seo h4, article.seo section[id], article.seo [id] { scroll-margin-top: 110px; }
/* tighten the dead band between page end and footer; keep sticky-CTA clearance at the very bottom */
.c3-foot { padding-top: 64px; }
@media (max-width: 560px) {
  .c3-foot { padding-bottom: 132px; }
  body > p.close { padding-bottom: 40px; }
}
article.seo .close a { color: var(--ink-2); }
article.seo .close strong { color: var(--ink); }
body.has-c3nav article.seo { padding-top: 140px; }

@media (max-width: 640px) {
  article.seo { padding-top: 48px; }
  body.has-c3nav article.seo { padding-top: 48px; }
  .seo-hero h1 { font-size: clamp(28px, 8.2vw, 36px); line-height: 1.15; letter-spacing: -0.02em; max-width: none; }
  .seo-hero { margin: 0 0 48px; }
}

/* iMessage-style consult preview */
.im-conv { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 16px 0 40px; background: #f9fafb; border-radius: 20px; padding: 28px; }
.im-bubble { position: relative; max-width: 82%; padding: 13px 17px; font-size: 15.5px; line-height: 1.55; border-radius: 19px; white-space: pre-line; }
.im-bubble.in { align-self: flex-start; background: #fff; border: 1px solid #eaecf0; color: var(--ink); }
.im-bubble.out { align-self: flex-end; background: var(--ink); color: #fff; }
.im-note { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 0; max-width: 520px; text-align: center; align-self: center; }

/* care note artifact bubble */
.im-card { align-self: flex-start; max-width: 78%; background: #fff; border: 1px solid #e2e2e4; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 13px 15px; }
.im-card-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 5px; }
.im-card-title { font-size: 15px; font-weight: 600; color: #000; letter-spacing: -0.01em; margin-bottom: 4px; }
.im-card-body { font-size: 13.5px; line-height: 1.45; color: #3a3a3c; }
.im-card-link { display: block; margin-top: 9px; padding-top: 9px; border-top: 1px solid #ececee; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }

/* AEO green CTA footer (homepage cta-field style) */
.seo-cta { position: relative; margin: 56px 0; padding: 40px 0; text-align: left; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seo-cta-bg { display: none; }
.seo-cta h2 { font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 20px; max-width: 30ch; color: var(--ink); }
article.seo > .seo-cta + h3 { margin-top: 0; }
.seo-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 14px 26px; font-weight: 600; font-size: 15px; text-decoration: none; transition: opacity .15s ease; }
.seo-cta-btn:hover { opacity: .88; }

/* key-takeaway box (competitor teardown parity) */
.seo-takeaways { background: #f5f5f4; border: 1px solid #e7e5e4; border-radius: 18px; padding: 20px 22px 16px; margin: 34px 0 8px; }
.seo-takeaways-label { display: none; }
.seo-takeaways ul { margin: 0; padding-left: 18px; }
.seo-takeaways li { font-size: 15px; line-height: 1.55; margin: 4px 0; color: var(--ink); }

/* Breadcrumb on programmatic leaf pages (SEO internal linking) */
.crumbs {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.crumbs a {
  color: #6b6b6b;
  text-decoration: none;
}
.crumbs a:hover { color: #111; text-decoration: underline; }
.crumbs span[aria-hidden="true"] { margin: 0 6px; color: #b5b5b5; }
.crumbs > span:last-child { color: #111; }

/* keep the floating consult pill from covering footer headings at page bottom (hater pass #27) */
footer { padding-bottom: 96px; }

/* specificity: keep the hairline-band CTA readable over the article link color */
article.seo a.seo-cta-btn { color: #fff; }
article.seo > h3:first-of-type { margin-top: 28px; }
