/* ==========================================================================
   OCCT中文站 — 全站样式
   主色取自 OCBASE 官方品牌规范：Quick Red #FF002B
   说明：本站为非官方中文资料站，样式与官方站点无隶属关系。
   ========================================================================== */

:root {
  /* Brand scale — derived from official Quick Red #FF002B */
  --brand-50: #fff2f5;
  --brand-100: #ffe0e6;
  --brand-200: #ffc2cc;
  --brand-300: #ff8a9b;
  --brand-400: #ff4360;
  --brand-500: #ff002b;
  --brand-600: #d40024;
  --brand-700: #a8001c;
  --brand-800: #8f0017;

  /* Neutrals — anchored on official Sharp Grey / Dark Depth */
  --ink: #0f0f11;
  --ink-2: #161619;
  --ink-soft: #2b2b30;
  --muted: #55555b;
  --muted-2: #676767;
  --gray-300: #b8b8b8;
  --border: #dedee4;
  --border-strong: #c9c9d1;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --surface-3: #f1f1f4;

  /* Functional colors — official highlight blue / success / warning */
  --blue: #07beff;
  --blue-ink: #0b4f8a;
  --blue-soft: #eaf8ff;
  --green: #44ac37;
  --green-ink: #256b2a;
  --green-soft: #edf7ec;
  --yellow: #ffbe00;
  --warning-ink: #6b4a00;
  --warning-soft: #fff8e1;
  --warning-border: #e0b100;

  --focus: #0b57d0;
  --focus-dark: #8fd3ff;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 15, 17, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 15, 17, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 15, 17, 0.14);

  --container: 1140px;
  --header-h: 72px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scrollbar-gutter: stable;
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.78;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

main {
  display: block;
}

main:focus,
main:focus-visible {
  outline: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.4;
}

h4 {
  font-size: 1rem;
  line-height: 1.45;
}

p {
  margin-bottom: 1em;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

small {
  font-size: 0.875rem;
}

img,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: block;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--brand-800);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

::selection {
  background: var(--brand-100);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-footer :focus-visible,
.band-dark :focus-visible {
  outline-color: var(--focus-dark);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
  color: #fff;
  outline-color: var(--focus-dark);
}

.icon {
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1.05em;
  height: 1.05em;
}

.icon--lg {
  width: 1.7em;
  height: 1.7em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--brand-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 10px;
  background: var(--brand-500);
  clip-path: polygon(0 100%, 22% 0, 100% 0, 78% 100%);
  flex: 0 0 auto;
}

.eyebrow--plain::before {
  display: none;
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.85;
  color: var(--muted);
  max-width: 64ch;
}

.text-brand {
  color: var(--brand-700);
}

.text-muted {
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.nowrap {
  white-space: nowrap;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-0 {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(212, 0, 36, 0.18);
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  box-shadow: 0 12px 26px rgba(168, 0, 28, 0.24);
}

.btn-secondary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--brand-700);
}

.btn-ghost:hover {
  background: var(--brand-50);
  border-color: var(--brand-300);
  color: var(--brand-800);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--brand-700);
  font-weight: 800;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--brand-800);
  text-decoration: underline;
}

.btn-link .icon {
  transition: transform 160ms ease;
}

.btn-link:hover .icon {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
}

.fineprint {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(255, 0, 43, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.brand-name {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-sub {
  color: var(--muted-2);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover {
  background: var(--brand-50);
  color: var(--brand-800);
}

.nav-link[aria-current="page"] {
  background: var(--brand-50);
  color: var(--brand-800);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 3px;
  background: var(--brand-500);
  clip-path: polygon(0 100%, 8% 0, 100% 0, 92% 100%);
}

.header-cta {
  margin-left: 6px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.menu-toggle:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 79;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 14px 24px 26px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(15, 15, 17, 0.14);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  gap: 4px;
}

.mobile-menu .nav-link {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  font-size: 1rem;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 14px;
}

.mobile-menu .mobile-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) 0 0;
  background:
    radial-gradient(1000px 500px at 78% 18%, rgba(255, 0, 43, 0.07), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fff8f9 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 0, 43, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 43, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.hero h1 {
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--brand-700);
}

.hero .lead {
  max-width: 60ch;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero-points .icon {
  color: var(--brand-600);
}

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 10% -3% -5% 10%;
  z-index: 0;
  background: var(--brand-500);
  opacity: 0.1;
  clip-path: polygon(0 100%, 9% 0, 100% 0, 91% 100%);
  transform: rotate(-2deg);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.hero-art figcaption {
  position: relative;
  z-index: 1;
  margin: 12px 2px 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Fact bar */
.factbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(38px, 5vw, 64px);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.fact {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.94);
}

.fact dt {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.fact dd span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Page hero (subpages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 52px) 0 clamp(38px, 5vw, 58px);
  background:
    radial-gradient(780px 380px at 90% 0%, rgba(255, 0, 43, 0.07), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fff8f9 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -60px;
  width: 260px;
  height: 300px;
  background: var(--brand-500);
  opacity: 0.06;
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 24ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.16;
}

.page-hero .lead {
  max-width: 70ch;
}

.breadcrumbs {
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}

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

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.breadcrumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid var(--gray-300);
  border-right: 1.5px solid var(--gray-300);
  transform: rotate(45deg);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(52px, 7vw, 88px) 0;
}

.section--tight {
  padding: clamp(38px, 5vw, 58px) 0;
}

.section--surface {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--brand {
  background: linear-gradient(180deg, var(--brand-50), #fff 85%);
  border-top: 1px solid var(--brand-100);
  border-bottom: 1px solid var(--brand-100);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(26px, 4vw, 40px);
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.section-head--stack {
  display: block;
}

.section-head--stack p {
  margin-top: 12px;
}

.section-foot {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  min-width: 0;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 4px;
  height: 26px;
  background: var(--brand-500);
  clip-path: polygon(0 100%, 22% 0, 100% 0, 78% 100%);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin: 0 0 9px;
  padding-left: 2px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.card p + p {
  margin-top: 10px;
}

.card--flat {
  box-shadow: none;
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}

.card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #dedee2;
}

.card--dark h3 {
  color: #fff;
}

.card--dark p {
  color: #c9c9d1;
}

.card--dark::before {
  background: var(--brand-500);
}

.card--accent {
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.card--accent:hover {
  border-color: var(--brand-300);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.card--dark .card-icon {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ff8a9b;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--neutral {
  background: var(--surface-3);
  border-color: var(--border);
  color: var(--muted);
}

.tag--blue {
  background: var(--blue-soft);
  border-color: #bceaff;
  color: var(--blue-ink);
}

.tag--green {
  background: var(--green-soft);
  border-color: #c9e8c4;
  color: var(--green-ink);
}

.tag--warning {
  background: var(--warning-soft);
  border-color: #f0d98a;
  color: var(--warning-ink);
}

.card-num {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--brand-100);
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.58em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}

/* Compact definition rows */
.mini-rows {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.mini-rows li {
  display: grid;
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.65;
}

.mini-rows strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.mini-rows span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */

.callout {
  position: relative;
  padding: 22px 24px 22px 26px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout h2,
.callout h3 {
  margin-bottom: 8px;
}

.callout p {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout--warning {
  background: var(--warning-soft);
  border-color: #f0dfa6;
  border-left-color: var(--warning-border);
}

.callout--warning p {
  color: var(--warning-ink);
}

.callout--info {
  background: var(--blue-soft);
  border-color: #bceaff;
  border-left-color: var(--blue);
}

.callout--info p {
  color: var(--blue-ink);
}

.callout--success {
  background: var(--green-soft);
  border-color: #c9e8c4;
  border-left-color: var(--green);
}

.callout--success p {
  color: var(--green-ink);
}

.callout__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--brand-800);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.callout--warning .callout__label {
  color: var(--warning-ink);
}

.callout--info .callout__label {
  color: var(--blue-ink);
}

.callout--success .callout__label {
  color: var(--green-ink);
}

.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.notice > .icon {
  margin-top: 2px;
  color: var(--brand-600);
}

.notice p {
  margin: 0;
}

.notice strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */

.check-list,
.warn-list,
.plain-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.warn-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.72;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.6em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}

.warn-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--warning-border);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.plain-list li {
  color: var(--muted);
}

.plain-list li::marker {
  color: var(--brand-500);
}

/* --------------------------------------------------------------------------
   Split / band / panels
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.split > * {
  min-width: 0;
}

.panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel--brand {
  background: var(--brand-50);
  border-color: var(--brand-100);
}

.panel--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #dedee2;
}

.panel--dark h2,
.panel--dark h3 {
  color: #fff;
}

.panel--dark p,
.panel--dark li {
  color: #c9c9d1;
}

.panel--dark a {
  color: #ffb3c0;
}

.panel--dark a:hover {
  color: #fff;
}

.band-dark {
  background: var(--ink);
  color: #dedee2;
}

.band-dark h2,
.band-dark h3 {
  color: #fff;
}

.band-dark p,
.band-dark li {
  color: #c9c9d1;
}

.band-dark a {
  color: #ffb3c0;
}

.band-dark a:hover {
  color: #fff;
}

.band-dark .kicker {
  color: #ff8a9b;
}

.band-dark .callout {
  background: #17171b;
  border-color: #303035;
  border-left-color: var(--brand-500);
}

.band-dark .callout p {
  color: #c9c9d1;
}

/* Stat / version cards */
.version-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.version-card {
  position: relative;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.version-card--beta {
  background: #fffaf0;
  border-color: #f0dfa6;
}

.version-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.version-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: 0;
}

.version-card .version-meta {
  margin: 0 0 12px;
  color: var(--muted-2);
  font-size: 0.84rem;
  line-height: 1.6;
}

.version-card p:last-child {
  margin-bottom: 0;
}

.version-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.6;
}

.data-table caption {
  padding: 12px 16px;
  color: var(--muted-2);
  font-size: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  color: var(--muted);
}

.data-table td strong {
  color: var(--ink);
}

.data-table code {
  display: inline-block;
  padding: 1px 5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

/* Fact table (about) */
.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  line-height: 1.65;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fact-table th,
.fact-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.fact-table th {
  width: 32%;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
}

.fact-table td {
  color: var(--muted);
}

.fact-table tr:last-child th,
.fact-table tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--border);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 1px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
}

.step__num::before {
  content: counter(step, decimal-leading-zero);
}

.step h3 {
  margin: 0 0 7px;
  font-size: 1.1rem;
}

.step p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.step p:last-child {
  margin-bottom: 0;
}

.step code {
  padding: 2px 6px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.step .tag {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Screenshot placeholders
   -------------------------------------------------------------------------- */

.shot {
  min-width: 0;
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.shot-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 0, 43, 0.035), transparent 55%),
    var(--surface-2);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius);
  text-align: center;
}

.shot-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 15, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 15, 17, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.65;
  pointer-events: none;
}

.shot-placeholder__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  max-width: 36ch;
}

.shot-placeholder__inner .icon {
  width: 34px;
  height: 34px;
  color: var(--muted-2);
}

.shot-placeholder__title {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.shot-placeholder__note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.55;
}

.shot figcaption {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  position: relative;
  display: block;
  min-height: 54px;
  padding: 16px 54px 16px 20px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--brand-700);
  border-bottom: 2px solid var(--brand-700);
  transform: translateY(-72%) rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-28%) rotate(225deg);
}

.faq-item summary:hover {
  background: var(--brand-50);
}

.faq-item__body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.faq-item__body p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

.faq-item__body ul {
  margin: 10px 0 0;
}

/* --------------------------------------------------------------------------
   Sources
   -------------------------------------------------------------------------- */

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.source-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: baseline;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--brand-700);
  font-weight: 700;
  text-decoration: none;
}

.source-list a:hover {
  text-decoration: underline;
}

.source-list .source-meta {
  color: var(--muted-2);
  font-size: 0.78rem;
  white-space: nowrap;
}

.source-list .source-desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.source-url {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-2);
  overflow-wrap: anywhere;
}

.ref-note {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.65;
}

.data-table td a,
.step p a,
.ref-note a,
.faq-item__body a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 0;
  padding: clamp(44px, 6vw, 64px) 0 24px;
  background: var(--ink);
  color: #dedee2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 34px 48px;
}

.footer-brand {
  min-width: 0;
}

.footer-brand__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
}

.footer-brand__top:hover {
  color: #fff;
}

.footer-brand__top img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-brand__top span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-brand p {
  max-width: 48ch;
  margin: 0 0 14px;
  color: #b8b8b8;
  font-size: 0.86rem;
  line-height: 1.75;
}

.footer-disclaimer {
  color: #dedee2 !important;
  font-size: 0.86rem !important;
  line-height: 1.75 !important;
  border-left: 3px solid var(--brand-500);
  padding-left: 12px;
}

.footer-brand .btn {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 2px;
}

.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #dedee2;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-nav a[aria-current="page"] {
  color: #ffb3c0;
}

.footer-meta p {
  margin: 0 0 8px;
  color: #b8b8b8;
  font-size: 0.84rem;
  line-height: 1.65;
}

.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dedee2;
  text-decoration: underline;
  text-decoration-color: #676767;
  text-underline-offset: 0.18em;
}

.footer-meta a:hover {
  color: #fff;
  text-decoration-color: #ffb3c0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.78rem;
  line-height: 1.65;
}

.footer-bottom .footer-legal {
  max-width: 74ch;
}

.footer-bottom a {
  color: #dedee2;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 0.22em;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.footer-bottom a[aria-current="page"] {
  color: #ffb3c0;
}

/* --------------------------------------------------------------------------
   Download dialog
   -------------------------------------------------------------------------- */

.download-dialog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(15, 15, 17, 0.4);
  color: var(--ink-soft);
}

.download-dialog::backdrop {
  background: rgba(15, 15, 17, 0.66);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.download-dialog[open] {
  animation: dialog-in 180ms ease-out;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fff8f9 100%);
}

.dialog-head__text {
  min-width: 0;
}

.dialog-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.dialog-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.dialog-close:hover {
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-800);
}

.dialog-body {
  padding: 22px 26px 26px;
}

.dialog-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 22px;
  background: var(--warning-soft);
  border: 1px solid #f0dfa6;
  border-left: 4px solid var(--warning-border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--warning-ink);
  font-size: 0.88rem;
  line-height: 1.7;
}

.dialog-note .icon {
  margin-top: 2px;
  color: var(--warning-ink);
}

.dialog-note p {
  margin: 0;
}

.dialog-subhead {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.qr-img {
  display: block;
  width: 168px;
  height: 168px;
  max-width: 100%;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.qr-caption {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
}

.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.dialog-foot p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.65;
}

.dialog-foot .btn {
  min-height: 44px;
  padding: 10px 20px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.error-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(700px 360px at 50% 10%, rgba(255, 0, 43, 0.08), transparent 70%),
    #fff;
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  color: var(--brand-100);
  font-family: var(--font-mono);
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.error-page h1 {
  margin-bottom: 14px;
}

.error-page p {
  max-width: 54ch;
  margin-inline: auto;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.error-page .fineprint {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Misc content blocks
   -------------------------------------------------------------------------- */

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.page-nav a:hover {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-800);
}

.anchor-target {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

section[id],
h2[id],
h3[id],
main[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
}

.prose h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.6rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose > :first-child {
  margin-top: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: clamp(34px, 5vw, 54px) 0;
  border: 0;
}

.quote {
  margin: 1.5rem 0;
  padding: 18px 22px;
  background: var(--surface-2);
  border-left: 3px solid var(--brand-500);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.quote p:last-child {
  margin-bottom: 0;
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 14px;
  color: var(--muted-2);
  font-size: 0.82rem;
  line-height: 1.6;
}

.release-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.release-meta .icon {
  color: var(--brand-600);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .hero-art {
    max-width: 680px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 860px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .factbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 66px;
  }

  body {
    font-size: 16px;
    line-height: 1.75;
  }

  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-sub {
    font-size: 0.64rem;
  }

  .mobile-menu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.7rem);
  }

  .btn-row {
    align-items: stretch;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  .hero-points {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .hero-art figcaption {
    font-size: 0.74rem;
  }

  .fact {
    padding: 15px 16px;
  }

  .fact dd {
    font-size: 0.92rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .feature-list,
  .version-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 22px;
  }

  .section {
    padding: 48px 0;
  }

  .section--tight {
    padding: 36px 0;
  }

  .page-hero {
    padding: 24px 0 38px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .breadcrumbs {
    margin-bottom: 16px;
  }

  .step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .step__num {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 0.9rem;
  }

  .source-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-list .source-meta {
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }

  .dialog-head,
  .dialog-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dialog-head {
    padding-top: 20px;
  }

  .download-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: var(--radius);
  }

  .qr-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .qr-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px;
    text-align: left;
  }

  .qr-img {
    flex: 0 0 auto;
  }

  .qr-caption {
    text-align: left;
    font-size: 0.86rem;
  }

  .dialog-foot {
    display: block;
  }

  .dialog-foot .btn {
    width: 100%;
    margin-top: 12px;
  }
}

/* Desktop: keep the date column on one line in the long source table. */
#sources .data-table th:last-child,
#sources .data-table td:last-child {
  white-space: nowrap;
}

/* Mobile: turn data tables into labelled stacked cards (no horizontal scroll). */
@media (max-width: 680px) {
  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .data-table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
    font-size: 0.94rem;
  }

  .data-table caption {
    display: block;
    padding: 0 2px 10px;
    border: 0;
    font-size: 0.78rem;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .data-table tr:last-child {
    margin-bottom: 0;
  }

  .data-table th[scope="row"] {
    padding: 12px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 0.96rem;
    white-space: normal;
  }

  .data-table td {
    padding: 10px 14px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .data-table td:empty {
    display: none;
  }

  #sources .data-table th:last-child,
  #sources .data-table td:last-child {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .page-hero h1 {
    font-size: 1.8rem;
  }

  .brand-sub {
    display: none;
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .menu-toggle {
    padding: 9px;
  }

  .factbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .qr-caption {
    text-align: center;
  }

  .dialog-head h2 {
    font-size: 1.25rem;
  }

  .qr-img {
    width: 168px;
    height: 168px;
  }
}

@media (max-width: 360px) {
  .container,
  .container--narrow {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .card {
    padding: 18px;
  }

  .qr-img {
    width: 168px;
    height: 168px;
  }
}

/* --------------------------------------------------------------------------
   Motion & print
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .download-dialog,
  .skip-link,
  .menu-toggle,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .hero,
  .page-hero,
  .section {
    padding: 12pt 0;
    background: #fff;
  }

  .card,
  .panel,
  .callout {
    break-inside: avoid;
    box-shadow: none;
  }
}
