/* Shared foundation. Article-specific layouts remain in their own stylesheets. */
:root {
  --bw-background: #101015;
  --bw-dark: #17161e;
  --bw-light: #f4f2f8;
  --bw-white: #fff;
  --bw-text: #f8f7fc;
  --bw-muted: #c1bdcc;
  --bw-ink: #211c2b;
  --bw-ink-muted: #595264;
  --bw-accent: #7040da;
  --bw-accent-light: #cbb5ff;
  --bw-border-dark: #39353f;
  --bw-border-light: #d9d3e3;
  --bw-space-1: 8px;
  --bw-space-2: 16px;
  --bw-space-3: 24px;
  --bw-space-4: 40px;
  --bw-space-5: 72px;
  --bw-radius-control: 8px;
  --bw-radius-panel: 16px;
  --bw-shadow: 0 18px 48px #21102c12;
  --bg: var(--bw-background);
  --text: var(--bw-text);
  --text-soft: #d5d1df;
  --muted: var(--bw-muted);
  --accent: var(--bw-accent-light);
  --bg-deep: #110b1a;
  --surface: #1b1427;
  --surface-raised: #251b34;
  --surface-muted: #30243f;
  --line: #cbb5ff26;
  --line-strong: #cbb5ff59;
  --accent-bright: #dfceff;
  --accent-deep: #fff;
  --radius: var(--bw-radius-panel);
}
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #a780ff; outline-offset: 4px; }

/* Shared site chrome uses its own shell so page layouts cannot change its width. */
.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  box-sizing: border-box;
}
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 0;
  color: #251631;
  background: rgba(250, 246, 253, .97);
  border-bottom: 1px solid #e5dceb;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: "Segoe UI", Arial, sans-serif;
  transition: background-color 260ms ease, box-shadow 260ms ease;
}
.site-header.is-scrolled {
  background: rgba(251, 248, 255, .82);
  box-shadow: 0 8px 28px rgba(28, 12, 44, .1);
}
.site-header.is-menu-open {
  background: #fbf8ff;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: none;
}
.site-header .nav-shell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header .brand,
.site-footer .brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: "Trebuchet MS", ui-rounded, "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}
.site-header .brand { color: #271538; }
.site-header .brand span,
.site-footer .brand span { font-size: inherit; }
.site-header .brand-accent,
.site-footer .brand-accent {
  color: #8843df;
  background: linear-gradient(110deg, #7130cf 8%, #a75aee 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-footer .brand-accent { background-image: linear-gradient(110deg, #b976fb 8%, #dcadff 92%); }
.site-header .brand img,
.site-footer .brand img {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  filter: none;
  box-shadow: none;
}
.site-header .site-nav {
  display: flex;
  order: 2;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: auto;
  margin-left: auto;
  padding: 0;
  color: #362747;
  font-size: 14px;
  font-weight: 650;
}
.site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 9px;
  color: inherit;
  line-height: 1.4;
  text-decoration: none;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible { color: #53269a; background: #eee5f7; }
.site-header .header-actions {
  display: flex;
  order: 3;
  flex: none;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.site-header .header-play-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  width: 144px;
  min-height: 44px;
  padding: 5px 9px;
  color: #fff !important;
  white-space: nowrap;
  background: #101014;
  border: 1px solid #555;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  transform: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.site-header .header-play-badge:hover,
.site-header .header-play-badge:focus-visible {
  color: #fff;
  background: #202026;
  border-color: #888;
  box-shadow: none;
  transform: none;
}
.site-header .header-play-badge svg {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 28px;
}
.site-header .header-play-badge span { display: flex; flex-direction: column; line-height: 1; }
.site-header .header-play-badge small { color: #fff; font: 650 8px/1.15 Arial, sans-serif; letter-spacing: .04em; }
.site-header .header-play-badge strong { color: #fff; font: 500 18px/1.15 Arial, sans-serif; letter-spacing: -.035em; }
.site-header .menu-button,
.js-navigation .site-header .menu-button {
  display: none;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  color: #271538;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.site-header .menu-button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.site-header .menu-button:hover,
.site-header .menu-button[aria-expanded="true"] { background: #eee5f7; }
.button-primary { border-radius: var(--bw-radius-control); background: var(--bw-accent); box-shadow: none; }
.button-primary:hover { background: #8151e8; }

.site-footer {
  padding: 38px 0 48px;
  color: #bbb1c8;
  background: #110b1a;
  border-top: 1px solid #4c385f;
  font-size: 14px;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
.site-footer .brand { color: #fff; font-size: 20px; }
.site-footer .brand img { width: 34px; height: 34px; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e3d9ec; }
.site-footer nav a:hover,
.site-footer nav a:focus-visible { color: #fff; }
.site-footer p { justify-self: end; margin: 0; color: #bbb1c8; font-size: 14px; white-space: nowrap; }

.prose { line-height: 1.75; }
.prose p, .prose li { color: var(--text-soft); }
.breadcrumbs, .article-meta span { font-size: 13px; }
.page-aside a { font-size: 14px; }

/* One reading style for product pages, articles, contact and privacy. */
.inner-page {
  background: var(--bw-background);
  color: var(--bw-text);
  font: 17px/1.65 "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.inner-page .shell { width: min(1180px, calc(100% - 40px)); }
.inner-page h1, .inner-page h2, .inner-page h3 {
  color: var(--bw-text);
  font-weight: 700;
  letter-spacing: -.035em;
}
.inner-page .inner-hero {
  padding: clamp(36px, 5vw, 64px) 0 40px;
  background: radial-gradient(ellipse at 85% 0%, #7040da20, transparent 65%), #17111f;
  border-bottom: 1px solid var(--line);
}
.inner-page .inner-hero h1 {
  max-width: 880px;
  margin: 0 0 20px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.12;
}
.inner-page .inner-hero p,
.inner-page .inner-hero .article-intro,
.inner-page .inner-hero .shell > p,
.inner-page .blog-intro .intro-copy {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.65;
}
.inner-page .breadcrumbs {
  margin: 0 0 24px;
  color: var(--bw-muted);
  font-size: 14px;
  line-height: 1.5;
}
.inner-page .breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.inner-page .page-layout {
  grid-template-columns: 220px minmax(0, 760px);
  gap: 48px;
  padding: 40px 0 72px;
}
.inner-page .page-aside {
  top: 92px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--bw-radius-panel);
  background: #17121f;
}
.inner-page .page-aside strong {
  color: var(--bw-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.inner-page .page-aside a {
  min-height: 40px;
  padding: 8px 0;
  color: var(--bw-muted);
  font-size: 14px;
  line-height: 1.5;
}
.inner-page .article-meta { gap: 8px 20px; margin-top: 24px; }
.inner-page .article-meta span {
  padding: 0;
  color: var(--bw-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
}
.inner-page .prose { font-size: 17px; line-height: 1.75; }
.inner-page .prose p, .inner-page .prose li { color: var(--text-soft); }
.inner-page .prose section { padding: 30px 0; scroll-margin-top: 92px; }
.inner-page .prose section:first-child { padding-top: 0; }
.inner-page .prose h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 32px); line-height: 1.25; }
.inner-page .prose h3 { margin: 26px 0 12px; font-size: 22px; line-height: 1.35; }
.inner-page .prose a:not(.button) { color: var(--bw-accent-light); text-underline-offset: 4px; }
.inner-page .summary-box,
.inner-page .prose .summary-box,
.inner-page .related-reading,
.inner-page .guide-index-cta {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: var(--bw-radius-panel);
  background: var(--surface);
  box-shadow: none;
}
.inner-page .prose .article-cta { margin: 32px 0; }
.inner-page .prose .article-cta > .button + p { margin: 16px 0 0; }
.inner-page .prose .related-reading h2 { font-size: 24px; }
.inner-page .button-primary {
  width: auto;
  min-height: 48px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(110deg, #7040da, #9b45dd);
  border: 0;
  border-radius: 100px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  transform: none;
}
.inner-page .button-primary:hover { background: #8050e8; }
.inner-page .blog-intro { grid-template-columns: 1fr; gap: 0; }
.inner-page .blog-grid { gap: 20px; padding: 40px 0; }
.inner-page .article-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--bw-radius-panel);
  box-shadow: none;
  transform: none;
  transition: border-color 180ms ease;
}
.inner-page .article-card:hover { background: var(--surface); border-color: var(--line-strong); transform: none; }
.inner-page .article-card h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; }
.inner-page .article-card p { color: var(--bw-muted); font-size: 17px; line-height: 1.65; }
.inner-page .article-card .read-more { margin-top: auto; padding-top: 12px; color: var(--bw-accent-light); font-size: 15px; font-weight: 600; }
.inner-page .guide-index-cta { margin-bottom: 64px; }
.inner-page .guide-index-cta h2 { margin: 0 0 12px; font-size: 28px; }
.inner-page .guide-index-cta p { color: var(--text-soft); }
.product-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0 0; border: 1px solid var(--line); border-radius: var(--bw-radius-panel); overflow: hidden; }
.product-facts > div { padding: 18px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-facts dt { color: var(--bw-muted); font-size: 14px; font-weight: 600; }
.product-facts dd { margin: 6px 0 0; color: var(--bw-text); }
.product-facts > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
.inner-page .contact-grid { gap: 20px; padding-block: 40px 64px; }
.inner-page .contact-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--bw-radius-panel); box-shadow: none; transform: none; }
.inner-page .contact-card:hover { border-color: var(--line); box-shadow: none; transform: none; }
.inner-page .contact-card h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.25; }
.inner-page .contact-card p { color: var(--text-soft); font-size: 17px; line-height: 1.65; }
.inner-page .contact-card > a { color: var(--bw-accent-light); font-size: 16px; }
.inner-page .contact-email { margin-top: 22px; color: var(--bw-accent-light); }
.inner-page .inner-hero .shell > .email-note { margin-top: 18px; color: var(--bw-muted); font-size: 14px; }
.inner-page .comparison-hero .shell > .article-intro { margin-bottom: 24px; }
.inner-page .guide-width { max-width: 900px; }
.inner-page .guide-contents summary { color: var(--bw-text); }
.inner-page .comparison-hero-action p, .inner-page .comparison-sources, .inner-page .comparison-scope { font-size: 14px; }
.inner-page .comparison-challenges > div { background: var(--surface); }
.inner-page .error-page { min-height: 65vh; padding-block: 48px; }
.inner-page .error-page h1 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.12; }
@media (max-width: 980px) {
  .inner-page .page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .inner-page .page-aside { position: static; }
}
@media (max-width: 640px) {
  .inner-page .shell { width: calc(100% - 32px); }
  .inner-page .inner-hero { padding-block: 30px; }
  .inner-page .inner-hero p, .inner-page .inner-hero .article-intro, .inner-page .inner-hero .shell > p, .inner-page .blog-intro .intro-copy { font-size: 17px; }
  .inner-page .breadcrumbs { margin-bottom: 20px; }
  .inner-page .page-layout { padding: 28px 0 48px; gap: 28px; }
  .inner-page .prose section { padding-block: 26px; }
  .inner-page .page-aside, .inner-page .article-card, .inner-page .contact-card { padding: 20px; }
  .inner-page .article-card h2 { font-size: 24px; }
  .inner-page .contact-grid { padding-block: 28px 48px; }
  .product-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .site-shell { width: calc(100% - 28px); }
  .site-header .nav-shell { min-height: 62px; }
  .site-header .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: auto;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    margin: 0;
    padding: 8px 14px 16px;
    color: #251631;
    background: #fbf8ff;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 48px #28123724;
  }
  .site-header .site-nav a { min-height: 44px; padding: 10px 12px; }
  .site-header .header-actions { margin-left: auto; }
  .site-header .header-play-badge { width: 130px; min-height: 42px; }
  .site-header .header-play-badge strong { font-size: 17px; }
  .js-navigation .site-header .menu-button { display: grid; }
  .js-navigation .site-header .site-nav { display: none; }
  .js-navigation .site-header .site-nav.is-open { display: flex; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-footer p { justify-self: start; }
  .prose { font-size: 17px; }
}
@media (max-width: 380px) {
  .site-shell { width: calc(100% - 24px); }
  .site-header .nav-shell { gap: 6px; }
  .site-header .brand { gap: 6px; font-size: 18px; }
  .site-header .brand img { width: 32px; height: 32px; }
  .site-header .header-actions { gap: 4px; }
  .site-header .header-play-badge { width: 110px; min-height: 38px; gap: 5px; padding: 4px 6px; }
  .site-header .header-play-badge svg { flex-basis: 20px; width: 20px; height: 24px; }
  .site-header .header-play-badge small { font-size: 7px; }
  .site-header .header-play-badge strong { font-size: 15px; }
  .site-header .menu-button,
  .js-navigation .site-header .menu-button { width: 34px; height: 40px; min-height: 40px; }
}
@media (max-width: 599px) {
  body.home-page .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .js-navigation .site-header .site-nav.is-open { animation: bw-menu-entry 180ms ease-out; }
  @keyframes bw-menu-entry { from { opacity: 0; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
