/* labpool.css — consolidated from Design/landing.css + landing-components.css + landing-sections.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== 1. Design Tokens ===== */
:root {
  --primary: #003062;
  --primary-hover: #00254D;
  --secondary: #C46A00;
  --secondary-darken: #8B4B00;
  --secondary-bg: #FDF4EA;
  --light-blue: #E8F0FE;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-subtle: #EEF2F7;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-soft: #94A3B8;
  --logo-net: #65748A;
  --success: #16A34A;
  --success-text: #15803D;
  --success-bg: #EAF8EF;
  --info: #2563EB;
  --info-text: #1D4ED8;
  --info-bg: #EFF6FF;
  --warning: #F29E0B;
  --warning-text: #C2410C;
  --warning-bg: #FFF7ED;
  --danger: #DC2626;
  --reserved-text: #7C3AED;
  --reserved-bg: #F5F3FF;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.10);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.14);
  --shadow-brand: 0 24px 60px rgba(0,48,98,.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ===== 2. Reset & Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 3. Typography ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--secondary-darken);
  padding: 6px 12px;
  background: var(--secondary-bg);
  border-radius: 999px;
}
.eyebrow.blue { color: var(--primary); background: var(--light-blue); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 650; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ===== 4. Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background .14s, transform .08s, box-shadow .14s, border-color .14s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-brand); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-darken); }
.btn-outline {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: #CBD5E1; background: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-arrow svg { transition: transform .18s; }
.btn:hover .btn-arrow svg { transform: translateX(3px); }

/* ===== 5. Animations ===== */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float-y-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@keyframes scope-trace {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes slot-in {
  0%   { opacity: 0; transform: scale(0.9) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes scan {
  0%, 100% { top: 8%; }
  50% { top: 92%; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ===== 6. Header & Navigation ===== */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.lp-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.92);
}
.lp-header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.lp-logo { display: inline-flex; align-items: center; }
.lp-logo img { display: block; }
.lp-nav {
  display: flex; gap: 4px; margin-left: 16px;
}
.lp-nav a {
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  transition: background .12s, color .12s;
}
.lp-nav a:hover, .lp-nav a.active { background: var(--bg); color: var(--primary); }
.lp-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.lp-nav li { list-style: none; }
.lp-header-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ===== 7. Sections Layout ===== */
section { position: relative; }
.section { padding: 100px 0; }
.section.compact { padding: 72px 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin: 0 auto; max-width: 600px; }

/* ===== 8. Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 400px at 80% 5%, rgba(196,106,0,0.08), transparent 60%),
    radial-gradient(800px 500px at 10% 30%, rgba(0,48,98,0.06), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 80%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--secondary), #E0892D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { max-width: 540px; margin-top: 22px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px; display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.hero-trust .stack { display: flex; }
.hero-trust .stack > span {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--light-blue); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.hero-trust .stack > span:first-child { margin-left: 0; }

/* ===== 9. Hero Illustration ===== */
.hero-illust {
  position: relative;
  height: 540px;
  perspective: 1400px;
}
.hi-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.hi-main {
  inset: 0 -40px 0 0;
  background: var(--surface);
  transform: rotate(-1deg);
  animation: float-y 7s ease-in-out infinite;
}
.hi-main .topbar {
  height: 36px; background: var(--bg); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.hi-main .topbar .dot { width: 8px; height: 8px; border-radius: 999px; background: #E2E8F0; }
.hi-main .topbar .url {
  margin-left: 12px; padding: 4px 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
}
.hi-body {
  display: grid; grid-template-columns: 200px 1fr; height: calc(100% - 36px);
}
.hi-side {
  background: var(--surface);
  border-right: 1px solid var(--border-subtle);
  padding: 16px 10px;
}
.hi-side .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px; font-size: 13px; color: var(--text-muted);
  margin-bottom: 2px;
}
.hi-side .nav-item svg { color: var(--text-muted); }
.hi-side .nav-item.active {
  background: var(--light-blue); color: var(--primary); font-weight: 600;
}
.hi-side .nav-item.active svg { color: var(--primary); }
.hi-content { padding: 18px; overflow: hidden; background: var(--bg); }
.hi-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.hi-metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
}
.hi-metric .lbl { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.hi-metric .val { font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; color: var(--primary); }
.hi-metric.success .val { color: var(--success-text); }
.hi-metric.info .val { color: var(--info-text); }
.hi-metric.warning .val { color: var(--warning-text); }
.hi-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  height: 132px;
}
.hi-chart .h { display: flex; align-items: center; justify-content: space-between; }
.hi-chart .h .title { font-size: 12px; font-weight: 600; }
.hi-chart .h .pill {
  font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: var(--success-bg); color: var(--success-text); font-weight: 600;
}
.hi-scope-screen {
  margin-top: 10px;
  height: 86px;
  background: linear-gradient(180deg, #061026 0%, #0A1834 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.hi-scope-screen::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(96,165,250,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96,165,250,0.10) 1px, transparent 1px);
  background-size: 20px 17px;
}
.hi-scope-screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hi-scope-screen .trace {
  fill: none;
  stroke: #60A5FA;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(96,165,250,0.6));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: scope-trace 4s linear infinite;
}
.hi-scope-screen .meta {
  position: absolute; bottom: 4px; left: 8px; right: 8px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,0.65);
}
.hi-chip-card {
  width: 240px;
  top: -8px;
  right: -20px;
  padding: 14px;
  transform: rotate(3deg);
  animation: float-y-2 6s ease-in-out infinite;
  z-index: 3;
}
.hi-chip-card .row { display: flex; align-items: center; gap: 10px; }
.hi-chip-card .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--light-blue); color: var(--primary);
  display: grid; place-items: center;
}
.hi-chip-card .name { font-size: 13px; font-weight: 600; }
.hi-chip-card .sub { font-size: 11px; color: var(--text-muted); font-family: var(--mono); margin-top: 2px; }
.hi-chip-card .chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--success-bg); color: var(--success-text);
  font-size: 10px; font-weight: 600;
  margin-top: 8px;
}
.hi-chip-card .chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--success);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.hi-ai {
  position: absolute;
  bottom: 30px; left: -36px;
  width: 280px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  animation: float-y 8s ease-in-out infinite;
  z-index: 4;
}
.hi-ai .h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hi-ai .avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center;
}
.hi-ai .who { font-size: 12px; font-weight: 600; }
.hi-ai .typing { font-size: 13px; line-height: 1.5; color: var(--text); }
.hi-ai .typing .cursor {
  display: inline-block; width: 2px; height: 14px;
  background: var(--secondary); vertical-align: middle; margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
.hi-bookings {
  position: absolute;
  bottom: -10px; right: 12px;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(2deg);
  animation: float-y-2 9s ease-in-out infinite;
  z-index: 4;
}
.hi-bookings .h {
  padding: 12px 14px; border-bottom: 1px solid var(--border-subtle);
  font-size: 12px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.hi-bookings .row {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.hi-bookings .row:last-child { border-bottom: 0; }
.hi-bookings .bar { width: 3px; height: 24px; border-radius: 2px; flex-shrink: 0; }
.hi-bookings .bar.b1 { background: var(--info); }
.hi-bookings .bar.b2 { background: var(--success); }
.hi-bookings .bar.b3 { background: var(--reserved-text); }
.hi-bookings .t { font-size: 11px; font-weight: 600; }
.hi-bookings .s { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

/* ===== 10. Logo Strip ===== */
.logo-strip {
  padding: 36px 0 8px;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
}
.logo-strip-inner {
  display: flex; align-items: center; justify-content: center; gap: 56px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.logo-strip-inner span { opacity: 0.6; }

/* ===== 11. Feature Grid ===== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--light-blue);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: transform .25s ease;
}
.feat:hover .feat-icon { transform: scale(1.08) rotate(-3deg); }
.feat.secondary .feat-icon { background: var(--secondary-bg); color: var(--secondary-darken); }
.feat.warning .feat-icon { background: var(--warning-bg); color: var(--warning-text); }
.feat.success .feat-icon { background: var(--success-bg); color: var(--success-text); }
.feat.info    .feat-icon { background: var(--info-bg); color: var(--info-text); }
.feat h3 { margin-bottom: 8px; letter-spacing: -0.015em; }
.feat p { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0; }
.feat .feat-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: 10px; font-weight: 600; padding: 4px 8px;
  border-radius: 999px;
  background: var(--secondary-bg); color: var(--secondary-darken);
}
.feat-link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}
.feat-link svg { transition: transform .18s; }
.feat:hover .feat-link svg { transform: translateX(3px); }

/* ===== 12. Alternating Sections ===== */
.alt-section { padding: 100px 0; }
.alt-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.alt-section.flipped .container > :first-child { order: 2; }
.alt-text h2 { margin-bottom: 16px; }
.alt-text .lead { margin: 0 0 24px; }
.alt-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.alt-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text);
}
.alt-list li .tick {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--success-bg); color: var(--success-text);
  display: grid; place-items: center; flex-shrink: 0;
  margin-top: 1px;
}
.alt-list li b { font-weight: 600; }
.alt-art {
  position: relative;
  border-radius: var(--r-2xl);
  background: var(--bg);
  padding: 32px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 460px;
}
.alt-art.dark {
  background: linear-gradient(135deg, #0A1834 0%, #0F172A 100%);
  border-color: transparent;
}

/* ===== 13. AI Demo ===== */
.ai-stage {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ai-stage-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px; font-weight: 600;
}
.ai-stage-head .ai-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}
.ai-msgs {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
}
.ai-msg {
  max-width: 80%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
}
.ai-msg.in { opacity: 1; transform: translateY(0); }
.ai-msg.user {
  align-self: flex-end;
  background: var(--primary); color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.ai-msg.bot {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px 16px 16px 4px;
}
.ai-msg.bot .cite {
  display: inline-flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}
.ai-msg.bot .cite span {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--info-bg); color: var(--info-text);
  font-size: 11px; font-weight: 600;
}
.ai-msg.bot .caution {
  margin-top: 10px; padding: 8px 10px;
  background: var(--warning-bg); color: var(--warning-text);
  border-radius: 8px;
  font-size: 12px;
  display: flex; gap: 6px; align-items: flex-start;
}
.ai-prompt {
  display: flex; align-items: center; gap: 8px;
  margin: 0 20px 20px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-muted);
}
.ai-prompt .send-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center;
  margin-left: auto;
}

/* ===== 14. Bookings Calendar ===== */
.bk-calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.bk-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border-subtle);
}
.bk-head .month { font-size: 14px; font-weight: 700; }
.bk-head .navs { display: flex; gap: 4px; }
.bk-head .navs button {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--text-muted);
}
.bk-grid {
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
}
.bk-grid .col-head {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted); text-align: center;
  padding: 10px 4px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}
.bk-grid .col-head:first-child { border-right: 1px solid var(--border-subtle); }
.bk-grid .time {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  font-family: var(--mono);
  padding: 10px 8px; text-align: right;
  background: var(--bg);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.bk-grid .cell {
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  height: 44px;
  position: relative;
}
.bk-grid .cell:nth-child(6n) { border-right: 0; }
.bk-slot {
  position: absolute;
  left: 3px; right: 3px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px; font-weight: 600;
  border-left: 2px solid currentColor;
  opacity: 0;
  transform: scale(0.95);
  animation: slot-in 0.5s ease forwards;
}
.bk-slot small { display: block; font-weight: 500; opacity: 0.85; font-size: 9px; }
.bk-slot.info { background: var(--info-bg); color: var(--info-text); }
.bk-slot.success { background: var(--success-bg); color: var(--success-text); }
.bk-slot.warning { background: var(--warning-bg); color: var(--warning-text); }
.bk-slot.reserved { background: var(--reserved-bg); color: var(--reserved-text); }

/* ===== 15. Equipment ===== */
.eq-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.eq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.eq-card.scanning {
  position: relative;
  overflow: hidden;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,48,98,0.12);
}
.eq-card.scanning::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  animation: scan 2.6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(196,106,0,0.6);
}
.eq-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--light-blue) 0%, #DDEEFF 100%);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--primary);
  margin-bottom: 14px;
}
.eq-card h4 { font-size: 14px; font-weight: 650; margin-bottom: 2px; letter-spacing: -0.01em; }
.eq-card .model { font-size: 12px; color: var(--text-muted); font-family: var(--mono); margin-bottom: 12px; }
.eq-card .meta { display: flex; justify-content: space-between; align-items: center; }
.eq-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.eq-chip.success { background: var(--success-bg); color: var(--success-text); }
.eq-chip.info { background: var(--info-bg); color: var(--info-text); }
.eq-chip.warning { background: var(--warning-bg); color: var(--warning-text); }
.eq-chip.reserved { background: var(--reserved-bg); color: var(--reserved-text); }
.eq-chip .dot {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor;
  opacity: 0.85;
}
.qr-card {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(6deg);
  z-index: 2;
  animation: float-y 6s ease-in-out infinite;
}
.qr-grid {
  width: 72px; height: 72px;
  display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 1px;
}
.qr-grid span { background: var(--text); border-radius: 1px; }

/* ===== 16. Maintenance ===== */
.mt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.mt-card:last-child { margin-bottom: 0; }
.mt-card .row1 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.mt-card .row1 h4 { font-size: 14px; font-weight: 650; }
.mt-bar {
  height: 8px; background: var(--border-subtle); border-radius: 999px; overflow: hidden;
  position: relative;
}
.mt-bar .fill {
  height: 100%; border-radius: 999px;
  background: var(--success);
  width: 0;
  transition: width 1.2s cubic-bezier(.2,.7,.3,1);
}
.mt-bar.warning .fill { background: var(--warning); }
.mt-bar.danger .fill { background: var(--danger); }
.mt-bar .marker {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--text); opacity: 0.4;
}
.mt-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); margin-top: 8px;
  font-family: var(--mono);
}

/* ===== 17. Stats ===== */
.stats {
  padding: 80px 0;
  background: linear-gradient(135deg, #001E42 0%, #003062 70%, #004B82 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.stats::after {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(196,106,0,0.3), transparent 60%);
  filter: blur(40px);
}
.stats .container { position: relative; z-index: 1; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat {
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 24px;
}
.stat .v {
  font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .v .unit { font-size: 28px; vertical-align: top; margin-left: 2px; color: var(--secondary); -webkit-text-fill-color: var(--secondary); }
.stat .l { margin-top: 12px; font-size: 14px; opacity: 0.8; }

/* ===== 18. Workflow Steps ===== */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step { position: relative; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--secondary); color: #fff;
  font-weight: 700; font-size: 14px;
  margin-bottom: 16px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; }
.step::after {
  content: '';
  position: absolute; top: 18px; left: 44px; right: -12px;
  border-top: 2px dashed var(--border);
}
.step:last-child::after { display: none; }

/* ===== 19. CTA ===== */
.cta {
  padding: 100px 0;
  text-align: center;
}
.cta-card {
  background: linear-gradient(135deg, #003062 0%, #00254D 100%);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(196,106,0,0.18), transparent 40%);
}
.cta-card::after {
  content: '';
  position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96,165,250,0.18), transparent 60%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { margin-bottom: 14px; }
.cta-card .lead { color: rgba(255,255,255,0.78); margin: 0 auto; max-width: 560px; }
.cta-card .ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-card .btn-outline {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.cta-card .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* ===== 20. Footer ===== */
.lp-footer {
  padding: 64px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.lp-footer-grid h5 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.lp-footer-grid ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-footer-grid a {
  font-size: 14px; color: var(--text);
  transition: color .12s;
}
.lp-footer-grid a:hover { color: var(--primary); }
.lp-footer-grid .brand { max-width: 280px; font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-top: 14px; }
.lp-footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

/* ===== 21. Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-illust { height: 460px; margin-top: 32px; }
  .hi-chip-card { right: 8px; }
  .alt-section .container { grid-template-columns: 1fr; }
  .alt-section.flipped .container > :first-child { order: 0; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
  .lp-nav { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat .v { font-size: 40px; }
  .stat .v .unit { font-size: 20px; }
  .cta-card { padding: 40px 24px; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; }
  .lp-header-cta .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
.lang-link { font-size: 20px; line-height: 1; padding: 3px 5px; border-radius: 4px; text-decoration: none; opacity: .45; transition: opacity .15s, background .15s; }
.lang-link:hover { opacity: .75; background: var(--surface); }
.lang-link.active { opacity: 1; }

/* ===== 22. 404 Error Page ===== */
main.err-main { flex: 1; display: flex; align-items: center; padding: 56px 0 80px; }
.err-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) {
  .err-wrap { grid-template-columns: 1fr; gap: 40px; }
  main.err-main { padding: 32px 0 64px; }
}
.err-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--secondary); background: var(--secondary-bg);
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--mono);
}
.err-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(196,106,0,.18);
  animation: errpulse 1.6s ease-in-out infinite;
}
@keyframes errpulse { 0%,100%{opacity:1} 50%{opacity:.4} }
h1.err-h1 {
  margin: 22px 0 12px;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.05; letter-spacing: -0.03em;
}
h1.err-h1 .accent { color: var(--secondary); }
.err-lead { font-size: 19px; line-height: 1.6; color: var(--text-muted); max-width: 520px; margin: 0 0 8px; }
.err-joke {
  margin-top: 18px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  font-size: 15px; color: var(--text); max-width: 540px;
}
.err-joke b { color: var(--primary); }
.err-joke .pico { font-family: var(--mono); color: var(--text-muted); font-size: 13px; }
.err-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.err-hints { margin-top: 36px; display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.err-hints a {
  color: var(--primary); font-weight: 500;
  border-bottom: 1px dashed rgba(0,48,98,.3); padding-bottom: 1px;
  transition: border-color .15s, color .15s;
}
.err-hints a:hover { color: var(--secondary); border-bottom-color: var(--secondary); }
.scope {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-lg);
  padding: 22px; position: relative; overflow: hidden;
}
.scope::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 200px at 80% -10%, rgba(196,106,0,.06), transparent 60%);
  pointer-events: none;
}
.scope-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.scope-model { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.scope-model .led { width: 8px; height: 8px; border-radius: 999px; background: var(--success); box-shadow: 0 0 8px rgba(22,163,74,.7); }
.scope-btns { display: flex; gap: 6px; }
.scope-btns span { width: 32px; height: 18px; border-radius: 4px; background: var(--bg); border: 1px solid var(--border); }
.scope-screen {
  background: #061427; border-radius: var(--r-md); border: 1px solid #0e2240;
  box-shadow: inset 0 0 0 4px #061427, inset 0 0 30px rgba(0,0,0,.5);
  padding: 18px; position: relative; overflow: hidden; height: 340px;
}
.scope-grid {
  position: absolute; inset: 18px;
  background-image: linear-gradient(to right, rgba(120,180,255,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(120,180,255,.08) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 8);
}
.scope-grid::before, .scope-grid::after { content: ""; position: absolute; background: rgba(120,180,255,.18); }
.scope-grid::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scope-grid::after { top: 50%; left: 0; right: 0; height: 1px; }
.err-404 {
  position: absolute; inset: 18px;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(96px, 14vw, 168px); letter-spacing: 0.02em;
  color: #5ed3a0; text-shadow: 0 0 18px rgba(94,211,160,.55), 0 0 40px rgba(94,211,160,.25);
  line-height: 1; user-select: none;
}
.err-404 .glitch { display: inline-block; animation: glitch 2.8s steps(1,end) infinite; }
@keyframes glitch {
  0%, 92% { transform: translate(0,0); filter: none; }
  93% { transform: translate(-2px, 1px); filter: hue-rotate(20deg); }
  94% { transform: translate(2px, -1px); }
  95% { transform: translate(-1px, 2px); filter: hue-rotate(-20deg); }
  96% { transform: translate(0,0); }
}
.trace { position: absolute; inset: 18px; pointer-events: none; }
.trace svg { width: 100%; height: 100%; overflow: visible; }
.trace path {
  stroke: #5ed3a0; stroke-width: 2; fill: none;
  filter: drop-shadow(0 0 6px rgba(94,211,160,.55));
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  animation: dash 3.6s ease-out forwards, flicker 4s ease-in-out infinite 3.6s;
}
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
.scope-meta {
  position: absolute; left: 18px; right: 18px; bottom: 8px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: #6d8aa6; padding: 0 2px;
}
.scope-meta .right { color: #5ed3a0; }
.scope-bottom { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.scope-bottom .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--secondary-bg); color: var(--secondary);
  font-weight: 600; font-size: 11px; border: 1px solid rgba(196,106,0,.15);
}
.scope-bottom .chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--secondary); }
.log {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 18px 20px;
}
.log h4 { margin: 0 0 12px; font-size: 13px; font-family: var(--mono); color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.log li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.log .check { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--success-bg); color: var(--success-text); }
.log .cross { background: var(--secondary-bg); color: var(--secondary); }
.log .t { color: var(--text); }
.log .s { color: var(--text-soft); font-size: 12px; font-family: var(--mono); }
.err-foot { text-align: center; padding: 24px 0 36px; font-family: var(--mono); font-size: 12px; color: var(--text-soft); }
.err-foot code { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 6px; padding: 2px 8px; color: var(--text-muted); }

/* ============================================================
   Blog Article Layout
   ============================================================ */

/* ===== Article hero ===== */
.article-hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 360px at 85% 10%, rgba(196,106,0,0.08), transparent 60%),
    radial-gradient(700px 420px at 5% 40%, rgba(0,48,98,0.06), transparent 70%);
  pointer-events: none;
}
.article-hero .container { position: relative; z-index: 1; }

.article-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 28px;
}
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb span { color: var(--text-soft); }

.article-eyebrow { margin-bottom: 22px; }

.article-title {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  max-width: 940px;
  margin: 0 0 24px;
}
.article-title .accent {
  background: linear-gradient(135deg, var(--secondary), #E0892D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.article-deck {
  max-width: 760px;
  margin: 0 0 40px;
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
}

.article-byline {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.byline-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  flex-shrink: 0;
}
.byline-meta { flex: 1; min-width: 0; }
.byline-name { font-weight: 600; font-size: 14.5px; color: var(--text); }
.byline-role { font-weight: 500; color: var(--text-muted); }
.byline-date { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.byline-actions { display: flex; gap: 8px; }
.byline-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; font-weight: 500;
  transition: border-color .14s, background .14s, color .14s;
}
.byline-chip:hover { border-color: #CBD5E1; background: var(--bg); }
.byline-chip.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* ===== Article body layout ===== */
.article-body {
  padding: 56px 0 80px;
  background: var(--surface);
}
.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  align-items: flex-start;
}

/* ===== Sticky TOC ===== */
.article-toc {
  position: sticky;
  top: 96px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.toc-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-soft);
}
.toc-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc;
}
.toc-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  line-height: 1.45;
}
.toc-list li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--border);
  transition: background .14s, transform .14s;
}
.toc-list a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color .14s;
}
.toc-list a:hover { color: var(--text); }
.toc-list a.active { color: var(--primary); font-weight: 600; }
.toc-list li:has(a.active)::before { background: var(--secondary); transform: scale(1.6); }

.toc-progress {
  margin-top: 8px;
  width: 3px; height: 80px;
  background: var(--border-subtle);
  border-radius: 999px;
  position: relative;
}
.toc-progress-fill {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: height .12s linear;
}

/* ===== Content elements (CE) ===== */
.article-content { max-width: 720px; }

.ce {
  position: relative;
  margin: 0 0 48px;
}

/* CE — Text */
.ce-text p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
}
.ce-text p:last-child { margin-bottom: 0; }
.ce-text h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 36px 0 16px;
  color: var(--text);
}
.ce-text strong { font-weight: 600; color: var(--text); }
.ce-text em { font-style: italic; color: var(--text); }
.ce-text a { color: var(--primary); border-bottom: 1px solid var(--light-blue); transition: border-color .14s; }
.ce-text a:hover { border-bottom-color: var(--primary); }

/* Drop cap on intro */
.ce-drop .dropcap {
  float: left;
  font-size: 64px;
  line-height: 0.86;
  font-weight: 700;
  color: var(--primary);
  margin: 6px 12px 0 0;
  letter-spacing: -0.04em;
  font-family: var(--font);
}

/* CE — Header only */
.ce-header {
  margin-top: 64px;
  margin-bottom: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.ce-header .ce-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.08em;
  padding-top: 6px;
  flex-shrink: 0;
}
.ce-header h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  scroll-margin-top: 96px;
}

/* CE — TextAndImages */
.ce-text-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 720px) {
  .ce-text-images { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ce-text-images.right .ce-text-col { order: 1; }
  .ce-text-images.right .ce-images-col { order: 2; }
  .ce-text-images.left .ce-text-col { order: 2; }
  .ce-text-images.left .ce-images-col { order: 1; }
}
.ce-text-col h3 {
  font-size: 22px; font-weight: 650;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.ce-text-col p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 14px;
}
.ce-text-col p:last-child { margin-bottom: 0; }
.ce-text-col strong { font-weight: 600; }

.ce-image {
  margin: 0;
}
.ce-image-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ce-image figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* CE — ImagesOnly gallery */
.ce-images-only { margin-bottom: 56px; }
.ce-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .ce-gallery { grid-template-columns: 1fr; }
}
.ce-gallery .ce-image-frame {
  aspect-ratio: 3 / 2;
  background: none;
  border: 1px solid var(--border-subtle);
}
.ce-gallery .ce-image-frame svg {
  width: 100%; height: 100%;
}
.ce-gallery figcaption { font-size: 12.5px; }

/* ===== Bullet lists ===== */
.ce-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ce-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}
.ce-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}
.ce-bullets li::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  width: 0; height: 0;
  border-left: 5px solid var(--secondary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  opacity: 0.7;
}
.ce-bullets li strong { font-weight: 600; color: var(--text); }

/* Numbered bullets — design class AND TYPO3's ol.ce-bullets */
.ce-bullets.numbered,
ol.ce-bullets {
  counter-reset: bullets;
}
.ce-bullets.numbered li,
ol.ce-bullets li {
  padding-left: 40px;
  counter-increment: bullets;
}
.ce-bullets.numbered li::before,
ol.ce-bullets li::before {
  content: counter(bullets);
  background: var(--light-blue);
  color: var(--primary);
  width: 24px; height: 24px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  top: 1px;
  left: 0;
}
.ce-bullets.numbered li::after,
ol.ce-bullets li::after { display: none; }

/* ===== Pull quote ===== */
.ce-quote {
  margin: 56px 0;
  padding: 32px 36px;
  background: var(--bg);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  position: relative;
}
.ce-quote .quote-mark {
  color: var(--secondary);
  opacity: 0.4;
  margin-bottom: 8px;
}
.ce-quote blockquote {
  margin: 0;
}
.ce-quote p {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 16px;
}
.ce-quote footer {
  font-size: 13px;
  color: var(--text-muted);
}
.quote-name { font-weight: 600; color: var(--text); }
.quote-role { color: var(--text-muted); margin-left: 6px; }

/* ===== Article footer ===== */
.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-top: 56px;
  flex-wrap: wrap;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.article-tag:hover { background: var(--light-blue); color: var(--primary); }
.article-share { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.share-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .14s, border-color .14s, background .14s;
}
.share-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--light-blue); }

/* ===== Author card ===== */
.article-author {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.author-body h4 {
  font-size: 17px;
  font-weight: 650;
  margin: 0 0 6px;
}
.author-body p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* ===== Related articles ===== */
.related-head {
  text-align: center;
  margin-bottom: 36px;
}
.related-head h2 { margin-top: 12px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.related-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.related-thumb svg { width: 100%; height: 100%; }
.related-meta { padding: 18px 20px 22px; }
.related-meta .eyebrow { margin-bottom: 12px; }
.related-meta h4 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.related-meta p { margin: 0; font-size: 13px; }

/* ===== No-TOC variant ===== */
.article-grid.no-toc {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 0;
}
.article-grid.no-toc .article-content {
  max-width: 760px;
  margin: 0 auto;
}

/* ===== Standard fluid_styled_content in article context ===== */
.article-content .frame-type-text,
.article-content .frame-type-bullets,
.article-content .frame-type-table {
  margin: 0 0 48px;
}
.article-content .frame-type-text .ce-bodytext p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
}
.article-content .frame-type-text .ce-bodytext p:last-child { margin-bottom: 0; }
.article-content .frame-type-text .ce-bodytext h3 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 36px 0 16px;
  color: var(--text);
}
/* ---- Unordered list: dash + arrow bullet ---- */
.article-content .ce-bodytext ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-content .ce-bodytext ul li {
  position: relative;
  padding-left: 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
}
.article-content .ce-bodytext ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}
.article-content .ce-bodytext ul li::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--secondary);
  opacity: 0.7;
}

/* ---- Ordered list: numbered with blue circle ---- */
.article-content .ce-bodytext ol {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: article-ol;
}
.article-content .ce-bodytext ol li {
  position: relative;
  padding-left: 40px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  counter-increment: article-ol;
}
.article-content .ce-bodytext ol li::before {
  content: counter(article-ol);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Checkmark list (ul.alt-list) ---- */
.article-content .ce-bodytext ul.alt-list,
.article-content ul.alt-list {
  gap: 14px;
}
.article-content .ce-bodytext ul.alt-list li,
.article-content ul.alt-list li {
  padding-left: 36px;
}
.article-content .ce-bodytext ul.alt-list li::before,
.article-content ul.alt-list li::before {
  width: 20px;
  height: 20px;
  top: 1px;
  left: 0;
  border-radius: 50%;
  background-color: var(--light-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23003062' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.article-content .ce-bodytext ul.alt-list li::after,
.article-content ul.alt-list li::after {
  display: none;
}
/* green checkmark variant */
.article-content .ce-bodytext ul.alt-list-green li::before,
.article-content ul.alt-list-green li::before {
  background-color: var(--success-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E");
}
.article-content .frame-type-textmedia {
  margin: 0 0 48px;
}
.article-content .frame-type-image {
  margin: 0 0 56px;
}
.article-content .frame-type-quote {
  margin: 56px 0;
}
.article-content .frame-type-quote blockquote {
  padding: 32px 36px;
  background: var(--bg);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  margin: 0;
}
.article-content .frame-type-quote blockquote p {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
  margin: 0 0 12px;
}
.article-content .frame-type-quote blockquote footer,
.article-content .frame-type-quote blockquote cite {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Textpic / Textmedia (text + image) content elements ===== */
.article-content .frame-type-textpic,
.article-content .frame-type-textmedia {
  margin: 0 0 48px;
}

/* Gallery inside textpic/textmedia: override the 3-col gallery grid */
.article-content .ce-textpic .ce-gallery,
.article-content .ce-textmedia .ce-gallery {
  display: block;
}

/* Images: responsive, natural aspect ratio */
.article-content .ce-textpic .ce-gallery img,
.article-content .ce-textmedia .ce-gallery img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
}

/* Figure / caption */
.article-content .ce-textpic figure,
.article-content .ce-textmedia figure {
  margin: 0;
}
.article-content .ce-textpic figcaption,
.article-content .ce-textmedia figcaption {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Bodytext inside textpic/textmedia */
.article-content .ce-textpic .ce-bodytext p,
.article-content .ce-textmedia .ce-bodytext p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 20px;
}
.article-content .ce-textpic .ce-bodytext p:last-child,
.article-content .ce-textmedia .ce-bodytext p:last-child { margin-bottom: 0; }

/* ---- Above (default): gallery before bodytext ---- */
.article-content .ce-textpic.ce-above .ce-gallery,
.article-content .ce-textmedia.ce-above .ce-gallery {
  margin-bottom: 20px;
}

/* ---- Below: bodytext before gallery ---- */
.article-content .ce-textpic.ce-below .ce-gallery,
.article-content .ce-textmedia.ce-below .ce-gallery {
  margin-top: 20px;
}

/* ---- In-text float: text wraps around image (no ce-nowrap) ---- */
.article-content .ce-textpic.ce-intext:not(.ce-nowrap),
.article-content .ce-textmedia.ce-intext:not(.ce-nowrap) {
  overflow: hidden; /* clearfix */
}
.article-content .ce-textpic.ce-intext:not(.ce-nowrap).ce-right .ce-gallery,
.article-content .ce-textmedia.ce-intext:not(.ce-nowrap).ce-right .ce-gallery {
  float: right;
  max-width: 42%;
  margin: 4px 0 20px 28px;
}
.article-content .ce-textpic.ce-intext:not(.ce-nowrap).ce-left .ce-gallery,
.article-content .ce-textmedia.ce-intext:not(.ce-nowrap).ce-left .ce-gallery {
  float: left;
  max-width: 42%;
  margin: 4px 28px 20px 0;
}

/* ---- Beside text: strict side-by-side columns (ce-nowrap) ---- */
.article-content .ce-textpic.ce-intext.ce-nowrap,
.article-content .ce-textmedia.ce-intext.ce-nowrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.article-content .ce-textpic.ce-intext.ce-nowrap .ce-gallery,
.article-content .ce-textmedia.ce-intext.ce-nowrap .ce-gallery {
  flex: 0 0 44%;
}
.article-content .ce-textpic.ce-intext.ce-nowrap .ce-bodytext,
.article-content .ce-textmedia.ce-intext.ce-nowrap .ce-bodytext {
  flex: 1 1 0;
  min-width: 0;
}
/* "beside text, right": image on right — swap render order */
.article-content .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-gallery,
.article-content .ce-textmedia.ce-intext.ce-nowrap.ce-right .ce-gallery { order: 2; }
.article-content .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-bodytext,
.article-content .ce-textmedia.ce-intext.ce-nowrap.ce-right .ce-bodytext { order: 1; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-toc {
    position: relative;
    top: 0;
    padding: 16px 20px;
    background: var(--bg);
    border-radius: var(--r-lg);
  }
  .toc-progress { display: none; }
}
@media (max-width: 720px) {
  .article-byline { flex-wrap: wrap; }
  .byline-actions { width: 100%; }
  .ce-header { gap: 14px; }
  .ce-quote { padding: 24px 22px; }
  .ce-quote p { font-size: 19px; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  /* Collapse float layouts on mobile */
  .article-content .ce-textpic.ce-intext:not(.ce-nowrap).ce-right .ce-gallery,
  .article-content .ce-textpic.ce-intext:not(.ce-nowrap).ce-left .ce-gallery,
  .article-content .ce-textmedia.ce-intext:not(.ce-nowrap).ce-right .ce-gallery,
  .article-content .ce-textmedia.ce-intext:not(.ce-nowrap).ce-left .ce-gallery {
    float: none;
    max-width: 100%;
    margin: 0 0 20px;
  }
  /* Collapse beside-text on mobile */
  .article-content .ce-textpic.ce-intext.ce-nowrap,
  .article-content .ce-textmedia.ce-intext.ce-nowrap {
    flex-direction: column;
  }
  .article-content .ce-textpic.ce-intext.ce-nowrap .ce-gallery,
  .article-content .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-gallery,
  .article-content .ce-textpic.ce-intext.ce-nowrap.ce-right .ce-bodytext,
  .article-content .ce-textmedia.ce-intext.ce-nowrap .ce-gallery,
  .article-content .ce-textmedia.ce-intext.ce-nowrap.ce-right .ce-gallery,
  .article-content .ce-textmedia.ce-intext.ce-nowrap.ce-right .ce-bodytext {
    order: unset;
    flex: unset;
  }
}
