/* ============================================================
   Facet content-page styles: the shared section and component
   styles for marketing content pages (guides, explainers).
   Consumes design-system/tokens.css only. No hardcoded colors,
   no page-specific token blocks. Load order on a page:
     tokens.css  ->  site-chrome.css (nav/footer)  ->  site-content.css
   ============================================================ */

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Eyebrow (mono label with a numbered chip) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
}
.eyebrow .n {
  font-size: 10px;
  color: var(--accent-text);
  background: var(--accent-wash);
  border: 1px solid var(--accent-wash);
  padding: 3px 8px;
  border-radius: var(--radius-lg);
}
.section-h2 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 14px 0 0;
  color: var(--text-1);
}

/* Buttons: rounded, never pill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--radius-lg);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  border: 1.5px solid var(--border-hi);
  background: var(--surface);
  transition:
    transform 90ms ease,
    box-shadow 160ms ease,
    border-color 140ms,
    background 140ms,
    color 140ms;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 10px 24px -8px var(--accent-wash);
}
.btn.primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
}
.btn.large {
  padding: 16px 28px;
  font-size: 16px;
}

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 44px;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle at 30% 30%, var(--accent-wash), transparent 62%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-blob.two {
  top: 120px;
  right: 340px;
  width: 380px;
  height: 380px;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 74px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 20px 0 22px;
  max-width: 15ch;
  color: var(--text-1);
}
.hero-main {
  min-width: 0;
  max-width: 720px;
}
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.55;
  margin: 0 0 30px;
}
.lead strong {
  color: var(--text-1);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-3);
  max-width: 640px;
  line-height: 1.7;
}

/* Section (two-column label + body, or single column) */
.shift-section {
  padding: 30px 0 60px;
}
.shift-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 820px) {
  .shift-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
.shift-body p {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0 0 16px;
}
.shift-body p:last-child {
  margin-bottom: 0;
}
.shift-body strong {
  color: var(--text-1);
  font-weight: 600;
}
.shift-body ul,
.shift-section > .container > ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}
.shift-body li,
.shift-section > .container > ul li {
  margin: 0 0 10px;
}
.shift-body a,
.shift-section a {
  color: var(--accent-text);
  border-bottom: 1px solid var(--border-hi);
  font-weight: 500;
}

/* FAQ */
.faq-section {
  padding: 66px 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.faq-list {
  margin-top: 26px;
  max-width: 840px;
}
details.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text-1);
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary .plus {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-text);
  flex: 0 0 auto;
  transition: transform 160ms;
  line-height: 1;
}
details.faq-item[open] summary .plus {
  transform: rotate(45deg);
}
details.faq-item .a {
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 720px;
}
details.faq-item .a a {
  color: var(--accent-text);
  font-weight: 500;
}
details.faq-item .a strong {
  color: var(--text-1);
  font-weight: 600;
}

/* Final CTA */
.cta-section {
  padding: 76px 0 90px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 52px 48px 48px;
  background: linear-gradient(120deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 40px 80px -30px var(--accent-wash);
}
.cta-card .inner {
  position: relative;
  z-index: 1;
}
.cta-card h2 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.cta-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin: 0 0 26px;
  line-height: 1.6;
}
.cta-card .btn.primary {
  background: #fff;
  color: var(--accent-dim);
  border-color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.3);
}
.cta-card .btn.primary:hover {
  background: #fff;
  color: var(--accent);
}
.cta-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
}
.cta-reassure span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-reassure .ck {
  color: #fff;
  font-weight: 700;
}

/* Reveal on scroll (only when motion is welcome) */
.anim [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}
.anim [data-reveal].in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .anim [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Comparison table. Wrap in .table-scroll so it scrolls on narrow screens
   instead of forcing the page to scroll horizontally. */
.table-scroll {
  overflow-x: auto;
  margin: 10px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}
.content-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 15px;
}
.content-table th,
.content-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.content-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--surface-2);
  white-space: nowrap;
}
.content-table tbody th {
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}
.content-table td {
  color: var(--text-2);
}
.content-table tbody tr:last-child th,
.content-table tbody tr:last-child td {
  border-bottom: none;
}
