/* IntelSDR — SEO/pSEO page styles
   Layered on top of /styles.css. Inherits the indigo accent system,
   typography, .nav/.brand/.btn/.faq classes from the main stylesheet.
   Only adds layout for breadcrumbs, long-form articles, hub grids,
   sample-email blocks, sibling-link strips, and the SEO footer. */

:root {
  --seo-max-width: 760px;
  --seo-hub-max: 1080px;
  --seo-pad-x: 24px;
}

/* -------------------------------------------------------------
   Page-level inheritance from /styles.css
   The .seo-page class only ensures the same body defaults apply
   on pages that don't have the homepage's body content.
   ------------------------------------------------------------- */
.seo-page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tighten nav-link gap on the SEO nav since we have more links */
.seo-nav-links {
  gap: 22px;
}

/* -------------------------------------------------------------
   Main column
   ------------------------------------------------------------- */
.seo-main {
  max-width: var(--seo-max-width);
  margin: 0 auto;
  padding: 28px var(--seo-pad-x) 80px;
}

.seo-main:has(.hub-grid) {
  max-width: var(--seo-hub-max);
}

.breadcrumbs {
  margin: 6px 0 28px;
  font-size: 13px;
  color: var(--text-faint);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "\203A";
  margin-right: 8px;
  color: var(--text-faint);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-strong);
  transition: color var(--t-fast), border-bottom-color var(--t-fast);
}

.breadcrumbs a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
}

/* -------------------------------------------------------------
   Article header
   ------------------------------------------------------------- */
.seo-article {
  margin-top: 12px;
}

.seo-article-head {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.seo-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.seo-article-head h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ink);
}

.seo-lede {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.seo-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

.seo-meta span + span {
  margin-left: 4px;
}

/* -------------------------------------------------------------
   Article body
   ------------------------------------------------------------- */
.seo-article section {
  margin: 36px 0;
}

.seo-article h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

.seo-article p {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--text);
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 14px;
  padding-left: 22px;
  font-size: 16px;
  color: var(--text);
}

.seo-article li {
  margin: 0 0 10px;
}

.seo-article li::marker {
  color: var(--accent);
}

.seo-article ol li {
  padding-left: 4px;
}

.seo-article strong {
  color: var(--ink);
  font-weight: 600;
}

.seo-article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(139, 141, 255, 0.4);
}

.seo-article a:hover {
  text-decoration-color: var(--accent);
}

/* -------------------------------------------------------------
   Sample email block
   ------------------------------------------------------------- */
.sample-email {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 22px 12px;
  background: var(--bg-elevated);
}

.sample-email h2 {
  margin-top: 0;
}

.sample-email-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.sample-email-body {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", monospace;
  font-size: 14.5px;
  line-height: 1.65;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px 6px;
}

.sample-email-body p {
  margin: 0 0 14px;
  color: var(--text);
}

.sample-email-body strong {
  color: var(--accent);
}

/* -------------------------------------------------------------
   Pricing comparison table
   ------------------------------------------------------------- */
.alt-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--text);
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.alt-pricing-table th,
.alt-pricing-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.alt-pricing-table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
}

.alt-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.alt-pricing-table td:first-child,
.alt-pricing-table th:first-child {
  color: var(--text-faint);
  width: 36%;
}

.alt-pricing-table td:last-child {
  color: var(--accent);
  font-weight: 500;
}

/* -------------------------------------------------------------
   FAQ block — reuses .faq-item / .faq-q / .faq-a from /styles.css
   We only need a wrapper grid here.
   ------------------------------------------------------------- */
.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* -------------------------------------------------------------
   Sibling-link strip ("More alternative comparisons")
   ------------------------------------------------------------- */
.seo-siblings {
  margin-top: 56px;
}

.seo-siblings h2 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--text-muted);
}

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

.seo-siblings-grid li {
  margin: 0;
}

.seo-siblings-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated);
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.seo-siblings-grid a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.seo-siblings-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.seo-siblings-grid span {
  color: var(--text-faint);
  font-size: 13px;
}

/* -------------------------------------------------------------
   CTA strip
   ------------------------------------------------------------- */
.seo-cta-strip {
  margin: 56px 0 0;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 80% 0%, var(--accent-soft), transparent 50%),
    var(--bg-elevated);
}

.seo-cta-strip h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 600;
}

.seo-cta-strip p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-muted);
}

.seo-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------------------------------------------------
   Hub grid
   ------------------------------------------------------------- */
.hub-grid-section {
  margin-top: 24px;
}

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

.hub-card {
  margin: 0;
}

.hub-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.hub-card a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.hub-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.hub-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.5;
}

.hub-card-arrow {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--accent);
  opacity: 0.6;
  font-size: 18px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.hub-card a:hover .hub-card-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* -------------------------------------------------------------
   Hub explainer (above the grid)
   ------------------------------------------------------------- */
.hub-explainer {
  margin-bottom: 28px;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.seo-footer {
  border-top: 1px solid var(--border);
  padding: 48px var(--seo-pad-x) 32px;
  background: rgba(0, 0, 0, 0.25);
  margin-top: 24px;
}

.seo-footer-inner {
  max-width: var(--seo-hub-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.seo-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.seo-footer-brand .brand {
  text-decoration: none;
}

.seo-footer-tag {
  font-size: 13px;
  color: var(--text-faint);
}

.seo-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px;
}

.seo-footer-cols h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}

.seo-footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-footer-cols a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--t-fast);
}

.seo-footer-cols a:hover {
  color: var(--ink);
}

.seo-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--text-faint);
  font-size: 12px;
}

/* -------------------------------------------------------------
   Mobile
   ------------------------------------------------------------- */
@media (max-width: 720px) {
  .seo-main {
    padding-top: 18px;
  }
  .alt-pricing-table {
    font-size: 13.5px;
  }
  .alt-pricing-table th,
  .alt-pricing-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 680px) {
  /* Inherit from main stylesheet: .nav-links is hidden < 680px.
     Make sure our SEO nav links also collapse cleanly. */
  .seo-nav-links {
    display: none;
  }
}
