/* =========================================================================
   Codex BIM — design system
   Brand palette (public/brand): charcoal #2D2926 · grey #888B8D · light grey #C1C6C8
   Accent: mauve #6550A2 (from the official logo icon; the product UI in 1.mp4 uses a close violet)
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* brand */
  --ink: #2D2926;
  --ink-2: #57524E;
  --grey: #888B8D;
  --grey-light: #C1C6C8;
  --accent: #6550A2;        /* mauve of the official logo icon (CODEX_BIM_mauvefinal.png) */
  --accent-hover: #55428B;
  --accent-soft: #EEEAF6;
  --accent-ink: #4A3A7A;

  /* neutrals derived from the brand greys */
  --bg: #FFFFFF;
  --bg-alt: #F4F5F5;
  --surface: #FFFFFF;
  --surface-dark: #3A3532;
  --line: #DCDFE0;
  --line-strong: #C1C6C8;
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-muted: #6B6E70;
  --text-on-dark: #F4F5F5;
  --text-on-dark-2: #C1C6C8;

  /* status */
  --ok: #2E7D45;      --ok-bg: #E3F2E7;
  --beta: #6550A2;    --beta-bg: #EEEAF6;
  --dev: #9A5B00;     --dev-bg: #FCF0D6;
  --plan: #5D6062;    --plan-bg: #EEF0F0;
  --error: #B3261E;   --error-bg: #FBEAE8;

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  /* layout */
  --container: 1160px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: none;
  --shadow: 0 30px 60px -30px rgba(45, 41, 38, .25);
  --header-h: 64px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: var(--narrow); }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.h3 { font-size: 1.25rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  border-bottom: 1px solid rgba(45,41,38,.08);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo__img { width: auto; height: 30px; }
.site-header__logo .logo__img { height: 28px; }
@media (max-width: 480px) { .site-header__logo .logo__img { height: 22px; } }
.site-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.site-nav__list { display: flex; gap: .1rem; list-style: none; }
.site-nav__list a {
  display: inline-block; padding: .5rem .75rem; border-radius: var(--radius);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .92rem;
  white-space: nowrap; transition: color .15s ease;
}
.site-nav__actions .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .site-nav__list a { padding-inline: .5rem; font-size: .88rem; }
  .site-nav { gap: 1rem; }
}
.site-nav__list a:hover, .site-nav__list .current-menu-item > a, .site-nav__list .current_page_parent > a { color: var(--ink); }
.site-nav__actions { display: flex; align-items: center; gap: 1.25rem; }
.nav-toggle { display: none; background: none; border: 0; border-radius: var(--radius); color: var(--ink); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.lang-switcher ul { display: flex; gap: .15rem; list-style: none; align-items: center; }
.lang-switcher a, .lang-switcher__current { display: inline-block; padding: .3rem .4rem; border-radius: 4px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.lang-switcher a { color: var(--text-2); }
.lang-switcher a:hover { color: var(--ink); }
.lang-switcher__current { color: var(--ink); }
.lang-switcher abbr { text-decoration: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); padding: .75rem var(--gutter) 1.25rem;
    box-shadow: 0 20px 40px -20px rgba(45,41,38,.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .site-nav__actions { padding: 1rem .25rem 0; justify-content: space-between; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn__icon { width: 18px; height: 18px; }
.btn__icon--lead { order: -1; }
.btn--sm { padding: .5rem .95rem; font-size: .875rem; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--bg-alt); }
.section--dark .btn--secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.section--dark .btn--secondary:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn--ghost { background: transparent; color: var(--accent-ink); padding-inline: .25rem; border-color: transparent; }
.btn--ghost:hover { color: var(--accent-hover); }
.btn--ghost .btn__icon { transition: transform .15s ease; }
.btn--ghost:hover .btn__icon { transform: translateX(3px); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; color: var(--accent-ink); }
.link:hover { text-decoration: underline; }
.link__icon { width: 16px; height: 16px; transition: transform .15s ease; }
.link:hover .link__icon { transform: translateX(2px); }
.link--lg { font-size: 1rem; padding: .8rem .5rem; }
.link--lg .link__icon { width: 20px; height: 20px; }
.link--light { color: #fff; }
.link--light:hover { color: #fff; }

/* --------------------------------------------------------------- sections */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__intro { color: var(--text-on-dark-2); }
.section__header { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__header--center { margin-inline: auto; text-align: center; }
.section__title--sm { font-size: 1.4rem; }
.section__intro { font-size: 1.15rem; color: var(--text-2); margin-top: 1rem; max-width: 60ch; line-height: 1.55; }
.section__more { margin-top: 2.5rem; }
.eyebrow {
  margin: 0 0 .9rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow--light { color: #C9BDEB; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.empty { color: var(--text-muted); padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1rem; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.section--alt .card, .section--alt .step, .section--alt .plan, .section--alt .faq__item { border-color: transparent; }
.card + .card { margin-top: 1rem; }
.grid > .card, .plans > .card { margin-top: 0; }
.card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card__heading { font-size: 1rem; margin-bottom: .75rem; }
.card__meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.card__title { font-size: 1.05rem; margin-bottom: .4rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--accent-ink); }
.card__text { color: var(--text-2); font-size: .95rem; margin: 0; }
.card--post { padding: 0; overflow: hidden; }
.card--post .card__body { padding: 1.25rem 1.5rem; }
.card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ----------------------------------------------------------------- status */
.status {
  display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px;
  font-size: .74rem; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  background: var(--plan-bg); color: var(--plan);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--available { background: var(--ok-bg); color: var(--ok); }
.status--beta, .status--early_access { background: var(--beta-bg); color: var(--accent-ink); }
.status--in_development { background: var(--dev-bg); color: var(--dev); }
.status--planned { background: var(--plan-bg); color: var(--plan); }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 4px; font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.badge--sample { background: var(--dev-bg); color: var(--dev); }
.badge--muted { background: var(--plan-bg); color: var(--plan); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 9vw, 7.5rem) 0; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(45,41,38,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(45,41,38,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%);
}
.hero__inner { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.hero__copy { max-width: 820px; margin-inline: auto; text-align: center; }
.eyebrow--hero { color: var(--accent-ink); }
.hero__title { margin: 0 0 1.25rem; }
.hero__lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); color: var(--text-2); max-width: 54ch; margin: 0 auto 2rem; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.25rem; }
.hero__note { font-size: .875rem; color: var(--text-muted); max-width: 60ch; margin-inline: auto; }
.hero__visual { max-width: 1040px; width: 100%; margin-inline: auto; }
.hero__caption { font-size: .78rem; color: var(--text-muted); margin-top: .9rem; text-align: center; }
.frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #E9EAEA; box-shadow: var(--shadow); }
.frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.frame--hero { display: block; text-decoration: none; }
.frame--hero:hover .frame__play { transform: scale(1.06); background: var(--accent-hover); }
.frame__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(74,52,134,.6); transition: transform .15s ease, background-color .15s ease;
}
.frame__play .icon { width: 28px; height: 28px; }
.frame__label { position: absolute; left: .9rem; top: .9rem; background: rgba(45,41,38,.85); color: #fff; padding: .25rem .6rem; border-radius: 4px; font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.frame--placeholder { display: grid; place-items: center; aspect-ratio: 16/9; color: var(--text-muted); font-size: .875rem; gap: .5rem; grid-auto-rows: max-content; align-content: center; }
.frame__placeholder-icon { width: 40px; height: 40px; color: var(--grey); }
/* ------------------------------------------------------------------ strip */
.strip { border-bottom: 1px solid var(--line); }
.strip__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 3rem; list-style: none; padding-block: clamp(2rem, 4vw, 3rem); }
.strip__item { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.strip__icon { display: none; }
@media (max-width: 720px) { .strip__list { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; } }

/* ------------------------------------------------------------- problem */
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.problem__col--solution { background: var(--bg-alt); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 3rem); position: relative; }
.section--alt .problem__col--solution { background: #fff; }
.problem__subtitle { font-size: 1.35rem; margin-bottom: .75rem; }
.checklist { list-style: none; display: grid; gap: .6rem; margin-top: 1.25rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); }
.checklist__icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--ok); margin-top: .15em; }
.checklist--compact { margin-top: 0; font-size: .95rem; }
@media (max-width: 860px) { .problem__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- features */
.feature__head, .feature-row__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); }
.section--alt .feature__icon { background: #fff; }
.feature__icon .icon { width: 22px; height: 22px; }
.feature__title { font-size: 1.08rem; margin-bottom: .5rem; }
.feature__text { color: var(--text-2); font-size: .95rem; margin: 0; }
.feature-rows { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature-row--flip .feature-row__copy { order: 2; }
.feature-row__title { font-size: 1.4rem; margin-bottom: .75rem; }
.feature-row__copy p { color: var(--text-2); }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row--flip .feature-row__copy { order: 0; } }

/* -------------------------------------------------------------- how it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.step__media { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.step__body { padding: 1.75rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
.step__number { grid-row: 1 / span 2; font-family: var(--mono); font-size: .85rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--line-strong); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.step__title { font-size: 1.15rem; margin-bottom: .35rem; }
.step__text { color: var(--text-2); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- demo */
.demo__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.demo__chapters { list-style: none; display: grid; gap: .6rem; margin-top: 1.5rem; }
.demo__chapters li { display: flex; align-items: center; gap: .7rem; color: var(--text-on-dark-2); font-size: .95rem; padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.demo__chapter-icon { width: 20px; height: 20px; color: #C9BDEB; flex-shrink: 0; }
.video { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.12); }
.video__el { width: 100%; aspect-ratio: 16/9; height: auto; background: #000; }
.video__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  background: linear-gradient(to top, rgba(45,41,38,.55), rgba(45,41,38,.05) 60%); border: 0; cursor: pointer; color: #fff;
}
.video__play-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(74,52,134,.8); transition: transform .15s ease; }
.video__play-icon .icon { width: 32px; height: 32px; }
.video__play:hover .video__play-icon { transform: scale(1.06); }
.video__play-label { font-weight: 600; font-size: .95rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.video.is-playing .video__play { display: none; }
.demo__caption-note { font-size: .82rem; color: var(--text-on-dark-2); margin-top: .75rem; }
.transcript { margin-top: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); }
.transcript summary { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; cursor: pointer; font-weight: 600; list-style: none; color: #fff; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript__body { padding: 0 1rem 1rem; color: var(--text-on-dark-2); font-size: .92rem; white-space: pre-line; }
.transcript__body p { margin-bottom: .5rem; }
@media (max-width: 900px) { .demo__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- jurisdictions */
.jurisdictions__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: start; }
.jurisdiction__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.jurisdiction__title { font-size: 1.6rem; }
.jurisdiction__meta { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .92rem; margin-bottom: 1rem; }
.jurisdiction__meta dt { color: var(--text-muted); }
.jurisdiction__meta dd { margin: 0; }
.jurisdiction__notes { color: var(--text-2); font-size: .95rem; }
.jurisdictions__region { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 1.25rem 0 .5rem; }
.jurisdictions__region:first-child { margin-top: 0; }
.jurisdiction-rows { list-style: none; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.jurisdiction-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; }
.jurisdiction-row + .jurisdiction-row { border-top: 1px solid var(--line); }
.jurisdiction-row__main { display: grid; gap: .1rem; }
.jurisdiction-row__code { font-size: .85rem; color: var(--text-muted); }
.jurisdictions__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .jurisdictions__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- audiences */
.audience__title { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.audience__text { color: var(--text-2); font-size: .95rem; margin: 0; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.plan--highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan__cta .btn--ghost { width: auto; justify-content: flex-start; padding-inline: 0; }
.plan__head { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-bottom: .5rem; }
.plan__name { font-size: 1.2rem; }
.plan__audience { font-size: .9rem; color: var(--text-muted); min-height: 2.7em; }
.plan__price { font-size: 1.8rem; font-weight: 650; letter-spacing: -.02em; margin: .5rem 0 .25rem; }
.plan__price--text { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.plan__note { font-size: .82rem; color: var(--text-muted); }
.plan__features { list-style: none; display: grid; gap: .45rem; margin: 1.25rem 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }
.plan__features li { display: flex; gap: .5rem; align-items: flex-start; }
.plan__check { width: 18px; height: 18px; flex-shrink: 0; color: var(--ok); margin-top: .15em; }
.plan__cta { margin-top: auto; }
.plan__cta .btn { width: 100%; justify-content: center; }
.pricing__note { margin-top: 1.5rem; font-size: .9rem; color: var(--text-muted); max-width: 70ch; }
@media (max-width: 1080px) { .plans, .plans--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans, .plans--3, .plans--2 { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.compare th, .compare td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); background: var(--bg-alt); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare__list { list-style: disc; padding-left: 1.1rem; color: var(--text-2); }

/* ----------------------------------------------------------------- latest */
.latest__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
.latest__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 860px) { .latest__grid { grid-template-columns: 1fr; } }
.timeline { display: grid; gap: 2rem; }
.release { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.release:last-child { border-bottom: 0; }
.release__meta { display: grid; gap: .35rem; align-content: start; font-size: .9rem; color: var(--text-muted); }
.release__version { color: var(--accent-ink); font-weight: 600; }
.release__title { font-size: 1.3rem; margin-bottom: .5rem; }
.release__title a { color: var(--ink); text-decoration: none; }
.release__title a:hover { color: var(--accent-ink); }
.release__version-card { margin-top: 2rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 1rem; }
.tag { font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 4px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--text-2); }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: .5rem; } }

/* -------------------------------------------------------------------- FAQ */
.faq-section__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 4rem); }
.faq { display: grid; gap: .5rem; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transform: rotate(90deg); transition: transform .2s ease; }
details[open] > summary .faq__chevron { transform: rotate(-90deg); }
.faq__answer { padding: 0 1.25rem 1.25rem; color: var(--text-2); }
.faq-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq-page__nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq-page__nav ul { list-style: none; display: grid; gap: .25rem; }
.faq-page__nav a { display: block; padding: .5rem .75rem; border-radius: var(--radius); color: var(--text-2); text-decoration: none; font-size: .95rem; }
.faq-page__nav a:hover { background: var(--bg-alt); color: var(--ink); }
.faq-group { margin-bottom: 2.5rem; }
.faq-group__title { font-size: 1.25rem; margin-bottom: 1rem; }
.faq-page__more { margin-top: 2rem; }
@media (max-width: 860px) { .faq-section__grid, .faq-page { grid-template-columns: 1fr; } .faq-page__nav { position: static; } }

/* -------------------------------------------------------------------- CTA */
.cta { text-align: center; }
.cta__inner { display: grid; gap: 2rem; justify-items: center; }
.cta__copy { max-width: 680px; }
.cta__copy .section__intro { margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1.5rem; }

/* ------------------------------------------------------------ page header */
.page-header { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-header--compact { padding-block: clamp(2rem, 4vw, 3rem) 1.5rem; }
.page-header__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); }
.page-header__intro { font-size: 1.1rem; color: var(--text-2); max-width: 65ch; margin-top: .9rem; }
.page-header__meta { color: var(--text-muted); font-size: .9rem; margin-top: .75rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* -------------------------------------------------------------- notices */
.notice-box { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius-lg); border: 1px solid; margin-bottom: 1.5rem; font-size: .95rem; }
.notice-box p { margin: 0; }
.notice-box__icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: .15em; }
.notice-box--warning { background: var(--dev-bg); border-color: #E6C98A; color: #5B3A00; }
.notice-box--info { background: var(--accent-soft); border-color: #CDBFEC; color: var(--accent-ink); }

/* ------------------------------------------------------------------ prose */
.prose { font-size: 1.05rem; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 0; padding: .25rem 0 .25rem 1.25rem; color: var(--text-2); }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--ink); color: #fff; padding: 1rem 1.25rem; border-radius: var(--radius); overflow-x: auto; }
.prose .wp-block-button__link { display: inline-block; background: var(--accent); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.prose .wp-block-button__link:hover { background: var(--accent-hover); }
.prose .wp-block-details, .prose details { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; }
.prose .wp-block-details summary { font-weight: 600; cursor: pointer; }
.prose--intro { margin-bottom: 2rem; color: var(--text-2); }
.prose--compact { font-size: .98rem; }
.prose--compact h3 { font-size: 1.05rem; margin-top: 1.2em; }
.prose--legal { font-size: 1rem; }
.prose--legal h2 { font-size: 1.3rem; }
.prose em { color: var(--text-2); }
.bc-compat { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.bc-compat dt { font-weight: 600; }
.bc-compat dd { margin: 0; }
.legal-nav { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .92rem; }

/* -------------------------------------------------------------- download */
.download__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.download__version { font-size: 1.7rem; margin-bottom: .75rem; }
.download__current { color: var(--text-muted); font-size: .95rem; margin-bottom: 1.25rem; }
.download__actions { margin: 1.25rem 0; }
.download__sub { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; font-size: .95rem; margin: 0; }
.specs dt { color: var(--text-muted); }
.specs dd { margin: 0; }
.specs__wrap { word-break: break-all; }
.list { padding-left: 1.2rem; color: var(--text-2); font-size: .95rem; }
.list li + li { margin-top: .3rem; }
.list--numbered { list-style: decimal; }
@media (max-width: 860px) { .download__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- contact */
.contact__grid, .about__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-list, .link-list { list-style: none; display: grid; gap: .6rem; }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list__icon { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 860px) { .contact__grid, .about__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ forms */
.bc-form__form { display: grid; gap: 1rem; }
.bc-form__field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.bc-form__req { color: var(--error); }
.bc-form input[type="text"], .bc-form input[type="email"], .bc-form input[type="search"], .bc-form select, .bc-form textarea, .docs-search input {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font: inherit; color: var(--text);
}
.bc-form input:focus, .bc-form select:focus, .bc-form textarea:focus, .docs-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.bc-form textarea { min-height: 130px; resize: vertical; }
.bc-form__check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; color: var(--text-2); }
.bc-form__check input { margin-top: .3rem; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.bc-form__help { font-size: .85rem; color: var(--text-muted); margin: .35rem 0 0; }
.bc-form__required-note { font-size: .82rem; color: var(--text-muted); margin: 0; }
.bc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bc-form__success { padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); background: var(--ok-bg); border: 1px solid #B7DFC3; color: #1E5A31; }
.bc-form__error { padding: .9rem 1.25rem; border-radius: var(--radius); background: var(--error-bg); border: 1px solid #F0B8B3; color: var(--error); margin-bottom: 1rem; }
.bc-form--compact .bc-form__form { gap: .6rem; }
.bc-form--compact .bc-form__field label:not(.bc-form__check) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.bc-form--compact .bc-form__required-note { display: none; }
.site-footer .bc-form input[type="email"] { background: #fff; border-color: var(--line-strong); }
.site-footer .bc-form__check { color: var(--text-muted); font-size: .82rem !important; }
.site-footer .bc-form .btn--primary { background: var(--ink); border-color: var(--ink); }
.site-footer .bc-form .btn--primary:hover { background: #000; border-color: #000; }
.cf-turnstile { min-height: 65px; }

/* ------------------------------------------------------------------- docs */
.docs__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.docs__layout--article { grid-template-columns: 240px minmax(0, 1fr) 200px; }
.docs-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; }
.docs-search { display: flex; gap: .5rem; margin-bottom: 1.25rem; }
.docs-search--wide { margin-bottom: 2rem; }
.docs-nav__group { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 1.25rem 0 .4rem; }
.docs-nav__group:first-of-type { margin-top: 0; }
.docs-nav__list { list-style: none; display: grid; gap: .1rem; }
.docs-nav__list a { display: block; padding: .45rem .7rem; border-radius: var(--radius); color: var(--text-2); text-decoration: none; font-size: .93rem; border-left: 2px solid transparent; }
.docs-nav__list a:hover { background: var(--bg-alt); color: var(--ink); }
.docs-nav__list a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.docs-group__list { list-style: none; display: grid; gap: .5rem; }
.docs-group__list a { text-decoration: none; font-weight: 500; color: var(--ink); }
.docs-group__list a:hover { color: var(--accent-ink); text-decoration: underline; }
.docs__links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .88rem; }
.toc__title { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }
.toc__list { list-style: none; display: grid; gap: .3rem; border-left: 1px solid var(--line); }
.toc__item a { display: block; padding: .2rem .75rem; color: var(--text-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc__item a:hover, .toc__item a.is-active { color: var(--accent-ink); border-left-color: var(--accent); }
.toc__item--3 a { padding-left: 1.5rem; font-size: .84rem; }
.doc-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc-pagination__link { display: grid; gap: .2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); }
.doc-pagination__link span { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.doc-pagination__link--next { text-align: right; }
.doc-pagination__link:hover { border-color: var(--accent); }
@media (max-width: 1080px) { .docs__layout--article { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) { .docs__layout, .docs__layout--article { grid-template-columns: 1fr; } .docs-sidebar { position: static; max-height: none; } .doc-pagination { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- results */
.results { list-style: none; display: grid; gap: 1.5rem; }
.result__title { font-size: 1.2rem; }
.result__title a { color: var(--ink); text-decoration: none; }
.result__title a:hover { color: var(--accent-ink); }
.page-numbers { list-style: none; display: flex; gap: .35rem; justify-content: center; margin-top: 2.5rem; }
.page-numbers li a, .page-numbers li span { display: inline-block; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.page-numbers li .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .nav-links { display: flex; gap: .35rem; justify-content: center; margin-top: 2.5rem; }
.pagination .nav-links a, .pagination .nav-links span { display: inline-block; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .nav-links .current { background: var(--ink); color: #fff; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: var(--bg-alt); color: var(--text-2); padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.5rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.site-footer__tagline { font-size: .92rem; max-width: 42ch; margin: 1.25rem 0 .75rem; color: var(--text-muted); }
.site-footer__subscribe { margin-top: 1.5rem; max-width: 380px; }
.site-footer__heading { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .9rem; font-weight: 600; }
.site-footer__heading--lang { margin-top: 1.5rem; }
.site-footer__list { list-style: none; display: grid; gap: .55rem; font-size: .92rem; }
.site-footer__muted { color: var(--text-muted); }
.lang-switcher--footer a, .lang-switcher--footer .lang-switcher__current { font-size: .85rem; padding-left: 0; }
.lang-switcher--footer .lang-switcher__current { font-weight: 700; }
.lang-switcher--footer a { color: var(--text-muted); }
.site-footer__legal { padding-top: 1.5rem; font-size: .8rem; color: var(--text-muted); }
.site-footer__disclaimer, .site-footer__trademark { max-width: 90ch; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.site-footer__bottom p { margin: 0; }
.site-footer__inline { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- utilities/print */
@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .video__play { display: none !important; }
  body { color: #000; }
}
