/* ORI REMAP Brand Site — clean SaaS design system */
:root {
  --icon-tone: #7dd3fc;
  --icon-tone-soft: #bae6fd;
  --icon-surface: #f8fafc;
  --icon-border: #e8eef4;
  --bg: #f8fafc;
  --bg-soft: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #f0f9ff 100%);
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
  --brand: #0ea5e9;
  --brand-deep: #0284c7;
  --brand-mid: #0ea5e9;
  --brand-soft: rgba(14, 165, 233, 0.1);
  --brand-glow: rgba(14, 165, 233, 0.25);
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --max-w: 1160px;
  --nav-h: 64px;
  --section-pad: 80px;
  --section-pad-m: 48px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --icon-check: url("/site/assets/icons/check.svg");
  --icon-cross: url("/site/assets/icons/cross.svg");
  --icon-circle: url("/site/assets/icons/circle.svg");
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --font-display: "Inter", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

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

svg {
  display: block;
  max-width: none;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-brand--footer .site-brand__ori {
  font-size: 1.15rem;
}

.site-brand--footer .site-brand__remap {
  font-size: 0.68rem;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--dark);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11, 18, 32, 0.18);
}

.site-brand__mark--footer {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.site-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__ori {
  font-size: 1.2rem;
  font-weight: 800;
  font-style: italic;
  color: var(--brand);
}

.site-brand__remap {
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

.site-nav a.site-nav__cta {
  background: var(--brand);
  color: #fff;
  margin-left: 4px;
}

.site-nav a.site-nav__cta:hover {
  background: var(--brand-deep);
  color: #fff;
}

.site-nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-main {
  flex: 1;
  min-height: calc(100vh - var(--nav-h) - 120px);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.page-hero {
  padding: 56px 0 40px;
}

.page-hero--compact {
  padding: 40px 0 28px;
}

.page-hero--with-poster {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
  padding: 48px 0 32px;
}

.page-hero--with-poster .page-hero__poster img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .page-hero--with-poster {
    grid-template-columns: 1fr;
  }

  .page-hero--with-poster .page-hero__poster {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero p.lead {
  margin: 0;
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.page-hero .en-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-mid);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero {
  padding: 72px 0 64px;
  position: relative;
}

.hero--clean {
  padding: calc(var(--section-pad) + 12px) 0 var(--section-pad);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 42%, #e0f2fe 100%);
  border-bottom: 1px solid var(--border);
}

.hero--clean .hero__grid {
  align-items: center;
}

.hero--clean .hero__copy {
  max-width: 36rem;
}

.hero--clean h1 {
  color: var(--text);
  font-size: clamp(2rem, 4.8vw, 3rem);
  margin-bottom: 20px;
}

.hero--clean .reveal {
  opacity: 1;
  transform: none;
}

.hero--clean h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero__eyebrow span {
  color: var(--brand-deep);
  letter-spacing: 0.08em;
}

.hero__paths-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}

.hero__paths-link:hover {
  text-decoration: underline;
}

.hero__stats {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__stats li {
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero__stats strong {
  display: inline;
  font-size: 0.85rem;
  color: var(--text);
  margin-right: 6px;
}

.hero__stats span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn--on-dark.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn--on-dark.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn--on-dark.btn--outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #e0f2fe;
}

.btn--on-dark.btn--outline:hover {
  background: rgba(14, 165, 233, 0.2);
  color: #fff;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 86, 179, 0.25);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: #f8fafc;
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--brand-deep);
  border: 1px solid var(--brand);
}

.btn--outline:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
  white-space: nowrap;
}

.hero__preview {
  position: relative;
  min-height: 430px;
}

/* ----- CSS mock UI placeholder (homepage) ----- */
.mock-ui {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.mock-ui--hero {
  max-width: 480px;
  margin-left: auto;
}

.mock-ui__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border);
}

.mock-ui__dots {
  display: flex;
  gap: 6px;
}

.mock-ui__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.mock-ui__dots i:first-child {
  background: #f87171;
}

.mock-ui__dots i:nth-child(2) {
  background: #fbbf24;
}

.mock-ui__dots i:nth-child(3) {
  background: #4ade80;
}

.mock-ui__title {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mock-ui__layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 260px;
}

.mock-ui--trial .mock-ui__layout {
  min-height: 220px;
}

.mock-ui__sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  background: #f8fafc;
  border-right: 1px solid var(--border);
}

.mock-ui__nav {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-ui__nav.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.mock-ui__panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-ui__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-ui__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-ui__select {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.mock-ui__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mock-ui__chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 600;
}

.mock-ui__bar {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  margin-top: 4px;
}

.mock-ui__bar--short {
  width: 60%;
}

.mock-ui__bar--medium {
  width: 80%;
}

.mock-ui__btn-fake {
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  align-self: flex-start;
}

/* ----- Web Trial preview split ----- */
.trial-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.trial-preview__copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.trial-preview__copy p {
  margin: 0 0 var(--space-5);
  color: var(--text-secondary);
  max-width: 440px;
}

.trial-preview__visual .mock-ui {
  max-width: 420px;
  margin-left: auto;
}

.trial-preview__visual .ori-preview--trial {
  width: 100%;
  max-width: 540px;
  min-width: 280px;
  min-height: 430px;
  margin-left: auto;
}

.hero__preview .ori-preview--hero {
  width: 100%;
  max-width: 540px;
  min-width: 280px;
  min-height: 430px;
  margin-left: auto;
}

/* ----- Oriremap v2 preview (matches real demo UI) ----- */
.ori-preview {
  max-width: 480px;
  margin-left: auto;
  position: relative;
}

.ori-preview--hero,
.ori-preview--trial,
.ori-preview--compare {
  max-width: 540px;
}

.ori-preview__hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
}

.ori-preview__rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

.ori-preview.is-playing .ori-preview__rec-dot {
  animation: ori-rec-pulse 1s ease-in-out infinite;
}

.ori-preview--hero .ori-preview__app,
.ori-preview--trial .ori-preview__app {
  height: 400px;
  min-height: 400px;
  max-height: 400px;
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.18),
    0 24px 56px rgba(14, 165, 233, 0.16),
    0 12px 32px rgba(15, 23, 42, 0.12);
}

.ori-preview--hero .ori-preview__main,
.ori-preview--trial .ori-preview__main {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.ori-preview--hero .ori-preview__tuning,
.ori-preview--trial .ori-preview__tuning {
  position: absolute;
  inset: 10px 12px 12px;
  gap: 6px;
  overflow: hidden;
}

.ori-preview--hero .ori-preview__field,
.ori-preview--trial .ori-preview__field,
.ori-preview--compare .ori-preview__field {
  position: relative;
  flex-shrink: 0;
}

.ori-preview--hero .ori-preview__dropdown,
.ori-preview--trial .ori-preview__dropdown,
.ori-preview--compare .ori-preview__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: 6;
  margin: 0;
}

.ori-preview--hero .ori-preview__file-row,
.ori-preview--hero .ori-preview__checksum,
.ori-preview--hero .ori-preview__actions,
.ori-preview--trial .ori-preview__file-row,
.ori-preview--trial .ori-preview__checksum,
.ori-preview--trial .ori-preview__actions,
.ori-preview--compare .ori-preview__file-row,
.ori-preview--compare .ori-preview__checksum,
.ori-preview--compare .ori-preview__actions {
  flex-shrink: 0;
}

.ori-preview--hero .ori-preview__terminal,
.ori-preview--trial .ori-preview__terminal,
.ori-preview--compare .ori-preview__terminal {
  flex: 1 1 auto;
  min-height: 48px;
  max-height: 64px;
  overflow: hidden;
}

.ori-preview--hero .ori-preview__terminal-inner,
.ori-preview--trial .ori-preview__terminal-inner,
.ori-preview--compare .ori-preview__terminal-inner {
  max-height: 100%;
  overflow: hidden;
}

.ori-preview--hero .ori-preview__actions,
.ori-preview--trial .ori-preview__actions,
.ori-preview--compare .ori-preview__actions {
  gap: 6px;
}

.ori-preview--hero .ori-preview__action,
.ori-preview--trial .ori-preview__action,
.ori-preview--compare .ori-preview__action {
  padding: 6px 8px;
  font-size: 0.6rem;
}

.ori-preview--hero .ori-preview__overlay--map .ori-preview__map-wipe {
  width: min(94%, 300px);
  aspect-ratio: 4 / 3;
  max-height: calc(100% - 8px);
}

.ori-preview--hero .ori-preview__map-wipe-after {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ori-preview--hero::after {
  content: "";
  position: absolute;
  inset: -12% -8% -20%;
  background: radial-gradient(ellipse at 50% 40%, rgba(14, 165, 233, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.ori-preview__tuning.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ori-preview__progress {
  height: 6px;
  margin: 10px 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.ori-preview__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
  transition: width 0.35s ease;
}

.ori-preview__overlay--map {
  background: rgba(15, 23, 42, 0.72);
}

.ori-preview__map-wipe {
  position: relative;
  width: min(94%, 340px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  background: #0a0a0a;
  line-height: 0;
}

.ori-preview__map-wipe-after {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.ori-preview__map-wipe-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 55% 0 0);
  z-index: 2;
}

.ori-preview__map-wipe-before img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ori-preview__map-wipe-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 45%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.55);
  z-index: 3;
  pointer-events: none;
  transition: left 0.08s linear;
}

.ori-preview__map-wipe-handle::after {
  content: "◀▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 0.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ori-preview__map-wipe-label {
  position: absolute;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 4;
  pointer-events: none;
}

.ori-preview__map-wipe-label--before {
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
}

.ori-preview__map-wipe-label--after {
  right: 10px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

@keyframes ori-rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.88); }
}

.ori-preview__app {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: #f2f2f7;
  font-family: "Inter", "Sarabun", system-ui, sans-serif;
}

.ori-preview__sidebar {
  display: flex;
  flex-direction: column;
  padding: 10px 0 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-right: 0.5px solid rgba(0, 0, 0, 0.08);
}

.ori-preview__brand {
  padding: 0 8px 10px;
}

.ori-preview__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ori-preview__wordmark-ori {
  font-size: 1.05rem;
  font-weight: 800;
  font-style: italic;
  color: #0ea5e9;
}

.ori-preview__wordmark-remap {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.ori-preview__brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
}

.ori-preview__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
  flex: 1;
}

.ori-preview__nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  color: #3c3c43;
  line-height: 1.2;
}

.ori-preview__nav-item.is-active {
  background: rgba(14, 165, 233, 0.12);
  color: #0284c7;
  font-weight: 600;
  box-shadow: inset 3px 0 0 #0284c7;
}

.ori-preview__ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #e5e5ea;
  flex-shrink: 0;
}

.ori-preview__ico--tune { background: linear-gradient(135deg, #bae6fd, #0ea5e9); }
.ori-preview__ico--dtc { background: linear-gradient(135deg, #fecdd3, #f43f5e); }
.ori-preview__ico--ecu { background: linear-gradient(135deg, #bbf7d0, #22c55e); }
.ori-preview__ico--upd { background: linear-gradient(135deg, #fde68a, #f59e0b); }

.ori-preview__foot {
  padding: 8px 10px 0;
  font-size: 0.58rem;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 0.04em;
}

.ori-preview__main {
  position: relative;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

.ori-preview__tuning {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.ori-preview__field.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.ori-preview__field.is-locked .ori-preview__trigger {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: none;
}

.ori-preview__field.is-open {
  position: relative;
  z-index: 3;
}

.ori-preview__field.is-open .ori-preview__trigger,
.ori-preview__field .ori-preview__trigger.is-pressed {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.ori-preview__field.is-open .ori-preview__trigger {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ori-preview__dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border: 0.5px solid transparent;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
  transition: max-height 0.28s ease, opacity 0.22s ease, border-color 0.22s ease;
}

.ori-preview__field.is-open .ori-preview__dropdown {
  max-height: 108px;
  opacity: 1;
  border-color: #38bdf8;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.12);
}

.ori-preview__dropdown li {
  padding: 7px 10px;
  font-size: 0.68rem;
  color: #334155;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease;
}

.ori-preview__dropdown li:first-child {
  border-top: none;
}

.ori-preview__dropdown li.is-picked,
.ori-preview__dropdown li.is-focus {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}

.ori-preview__field {
  transition: opacity 0.3s ease;
}

.ori-preview__field.is-focus .ori-preview__trigger {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.ori-preview__label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8e8e93;
  padding: 0 2px 4px;
}

.ori-preview__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  min-height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ori-preview__value {
  font-size: 0.72rem;
  font-weight: 500;
  color: #1c1c1e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ori-preview__value.is-placeholder {
  color: #aeaeb2;
}

.ori-preview__caret {
  font-size: 0.62rem;
  color: #aeaeb2;
}

.ori-preview__file-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ori-preview__btn-file {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
  font-size: 0.68rem;
  font-weight: 600;
  transition: box-shadow 0.25s, transform 0.25s;
}

.ori-preview__btn-file.is-focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  transform: translateY(-1px);
}

.ori-preview__btn-file.is-pressed {
  transform: scale(0.97);
  background: #e0f2fe;
  border-color: #7dd3fc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ori-preview__file-hint {
  font-size: 0.58rem;
  color: #8e8e93;
}

.ori-preview__terminal {
  flex: 1;
  min-height: 52px;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 8px;
  overflow: hidden;
}

.ori-preview__terminal-inner {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.58rem;
  line-height: 1.5;
  color: #94a3b8;
  white-space: pre-wrap;
  word-break: break-all;
}

.ori-preview__terminal-inner .log-line {
  display: block;
  animation: ori-log-in 0.35s ease;
}

.ori-preview__terminal-inner .log-line--ok {
  color: #4ade80;
}

.ori-preview__checksum {
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  font-size: 0.66rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

.ori-preview__checksum.is-focus {
  border-style: solid;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.ori-preview__checksum.is-ok {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.ori-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ori-preview__action {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  font-size: 0.62rem;
  font-weight: 600;
  color: #334155;
}

.ori-preview__action--primary {
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  border-color: #0284c7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.ori-preview__action--primary.is-focus {
  animation: ori-btn-pulse 0.9s ease-in-out infinite;
}

.ori-preview__action.is-focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
  color: #0284c7;
}

.ori-preview__action.is-pressed {
  transform: scale(0.96);
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  color: #334155;
}

.ori-preview.is-extra-open .ori-preview__actions .ori-preview__action,
.ori-preview.is-dtc-open .ori-preview__actions .ori-preview__action {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
  color: #64748b;
  transform: none;
}

.ori-preview__overlay--panel {
  align-items: flex-start;
  padding: 10px 8px;
  z-index: 5;
}

.ori-preview__panel-card {
  width: min(96%, 280px);
  max-height: 92%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}

.ori-preview__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.ori-preview__panel-head strong {
  font-size: 0.72rem;
  color: #0f172a;
}

.ori-preview__panel-close {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.ori-preview__panel-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ori-preview__panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  font-size: 0.62rem;
  color: #475569;
}

.ori-preview__panel-val {
  font-weight: 700;
  color: #0284c7;
}

.ori-preview__panel-dtc {
  margin: 0;
  padding: 8px 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ori-preview__panel-dtc li {
  padding: 5px 8px 5px 22px;
  border-radius: 6px;
  background: #f8fafc;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  font-size: 0.6rem;
  color: #64748b;
  position: relative;
}

.ori-preview__panel-dtc li.is-checked {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.ori-preview__panel-dtc li.is-checked::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background: #16a34a;
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.ori-preview__panel-dtc li.is-unchecked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.ori-preview__panel-dtc li.is-unchecked::before {
  content: none;
}

.ori-preview__panel-dtc li.is-focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.ori-preview__panel-row.is-focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.ori-preview__panel-save {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: none;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: default;
  font-family: inherit;
}

.ori-preview__panel-save--dtc {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.ori-preview__panel-save.is-focus {
  animation: ori-btn-pulse 0.75s ease-in-out infinite;
  transform-origin: center center;
}

.ori-preview__panel-foot {
  padding: 7px 10px;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 600;
  color: #64748b;
  border-top: 0.5px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.ori-preview__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 4;
}

.ori-preview__overlay.is-visible {
  opacity: 1;
}

.ori-preview__load-card,
.ori-preview__done-card {
  width: min(88%, 220px);
  padding: 16px 14px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.ori-preview__load-card strong,
.ori-preview__done-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 0.82rem;
  color: #0f172a;
}

.ori-preview__load-card span,
.ori-preview__done-card span {
  display: block;
  font-size: 0.66rem;
  color: #64748b;
}

.ori-preview__spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border: 3px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: ori-spin 0.8s linear infinite;
}

.ori-preview__done-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
}

.ori-preview__done-icon svg {
  width: 20px;
  height: 20px;
}

.ori-preview__done-file {
  margin-top: 6px !important;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.58rem !important;
  color: #0284c7 !important;
}

.ori-preview__cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.7);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  opacity: 0;
  z-index: 12;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: top 0.38s ease, left 0.38s ease, opacity 0.2s ease;
}

.ori-preview.is-playing .ori-preview__cursor {
  opacity: 1;
}

.ori-preview__caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

@keyframes ori-log-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ori-btn-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35); transform: scale(1); }
  50% { box-shadow: 0 2px 16px rgba(14, 165, 233, 0.65); transform: scale(1.02); }
}

@keyframes ori-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .ori-preview__app {
    grid-template-columns: 108px 1fr;
    min-height: 320px;
  }

  .ori-preview__nav-item span:not(.ori-preview__ico) {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ori-preview__action--primary.is-focus,
  .ori-preview__action.is-focus,
  .ori-preview__panel-save.is-focus,
  .ori-preview__spinner {
    animation: none;
  }

  .ori-preview__cursor {
    display: none;
  }
}

/* ----- UI Frame (demo / other pages) ----- */
.ui-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.ui-frame--hero {
  background: #0f172a;
}

.ui-frame--program .ui-frame__embed {
  height: 360px;
}

.ui-frame__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-frame__dots {
  display: flex;
  gap: 6px;
}

.ui-frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}

.ui-frame__dots i:first-child {
  background: #ef4444;
}

.ui-frame__dots i:nth-child(2) {
  background: #eab308;
}

.ui-frame__dots i:nth-child(3) {
  background: #22c55e;
}

.ui-frame__title {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.ui-frame__link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7dd3fc;
  text-decoration: none;
}

.ui-frame__link:hover {
  color: #bae6fd;
  text-decoration: none;
}

.ui-frame__embed {
  display: block;
  width: 100%;
  height: 380px;
  border: none;
  background: #f4f6f8;
}

.ui-frame--demo .ui-frame__embed {
  height: 320px;
}

/* ----- Floating cards (hero accent) ----- */
.float-cards {
  position: absolute;
  inset: auto 0 0 auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.float-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.float-card--1 {
  bottom: 12%;
  left: -4%;
  animation: float 5s ease-in-out infinite;
}

.float-card--2 {
  top: 18%;
  right: -6%;
  animation: float 6s ease-in-out 0.5s infinite;
}

.float-card--3 {
  bottom: 28%;
  right: 4%;
  animation: float 7s ease-in-out 1s infinite;
}

/* ----- Supported models strip ----- */
.models-strip {
  background: var(--surface);
  border-block: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.models-strip__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.models-strip__label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.models-strip__track {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.models-strip__track::-webkit-scrollbar {
  display: none;
}

.models-strip__chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.models-strip__chip:hover {
  background: var(--brand-soft);
  border-color: rgba(14, 165, 233, 0.25);
  color: var(--brand-deep);
  text-decoration: none;
}

.models-strip__more {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
  white-space: nowrap;
}

.models-strip__more:hover {
  text-decoration: underline;
}

/* ----- Software preview panel (dark split) ----- */
.preview-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}

.preview-panel__copy h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.preview-panel__copy p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--space-5);
  max-width: 420px;
}

.preview-panel__visual {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-4);
  align-items: stretch;
}

.poster-frame--crop {
  aspect-ratio: 4/5;
  margin: 0;
}

.poster-frame--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ----- Poster showcase grid ----- */
.poster-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.poster-showcase__item {
  margin: 0;
}

.poster-showcase__item .poster-frame {
  aspect-ratio: 16/10;
  margin-bottom: 10px;
}

.poster-showcase__item figcaption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.hero__visual-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  animation: float 6s ease-in-out infinite;
}

.hero__poster {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero__visual-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.72);
  border-block: 1px solid var(--border);
}

.section--dark {
  background: linear-gradient(160deg, var(--dark) 0%, #0f2744 100%);
  color: #fff;
}

.section--dark h2,
.section--dark p {
  color: inherit;
}

.section--dark p {
  opacity: 0.82;
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-mid);
  margin-bottom: var(--space-2);
}

.section__label--light {
  color: #7dd3fc;
}

.section__head {
  margin-bottom: var(--space-6);
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.section__head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.section__head p {
  margin: 0;
  color: var(--text-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card--link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.card--link:hover {
  text-decoration: none;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-deep);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card .en-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bullet-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.bullet-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullet-item h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.bullet-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.news-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-card__thumb--photo img {
  object-fit: cover;
}

.news-card__thumb--topic {
  padding: 20px;
  text-align: center;
  background: linear-gradient(145deg, var(--brand-soft) 0%, #e8f0ff 100%);
}

.news-card__thumb-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-deep);
  word-break: break-word;
}

.news-card__thumb--tutorial {
  background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
}

.news-card__thumb--tutorial .news-card__thumb-label {
  color: #0d47a1;
}

.news-card__thumb--models {
  background: linear-gradient(145deg, #e8f5e9 0%, #c8e6c9 100%);
}

.news-card__thumb--models .news-card__thumb-label {
  color: #1b5e20;
}

.news-card__thumb--promo {
  background: linear-gradient(145deg, #fff3e0 0%, #ffe0b2 100%);
}

.news-card__thumb--promo .news-card__thumb-label {
  color: #e65100;
}

.news-card__thumb--guide {
  background: linear-gradient(145deg, #f3e5f5 0%, #e1bee7 100%);
}

.news-card__thumb--guide .news-card__thumb-label {
  color: #4a148c;
}

.news-card__thumb--faq {
  background: linear-gradient(145deg, #e0f7fa 0%, #b2ebf2 100%);
}

.news-card__thumb--faq .news-card__thumb-label {
  color: #006064;
}

.news-card__thumb--device {
  background: linear-gradient(145deg, #eceff1 0%, #cfd8dc 100%);
}

.news-card__thumb--device .news-card__thumb-label {
  color: #263238;
}

.news-card__thumb--update {
  background: linear-gradient(145deg, #fce4ec 0%, #f8bbd0 100%);
}

.news-card__thumb--update .news-card__thumb-label {
  color: #880e4f;
}

.news-preview-card__img .news-card__thumb-label {
  font-size: 0.95rem;
}

.news-card__body {
  padding: 18px 20px 22px;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.news-card__tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}

.news-card h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.news-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.news-card--link {
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.news-loading {
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.news-card__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.news-toolbar {
  margin-bottom: 24px;
}

.news-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-filter__btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.news-filter__btn.is-active,
.news-filter__btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.news-search input {
  min-width: 220px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.news-toolbar__count {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.news-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 28px 0 40px;
}

.news-pager__btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.news-pager__btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.news-pager__info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.container--article {
  max-width: 760px;
}

.article-loading,
.article-error {
  padding: 48px 0;
  text-align: center;
}

.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.article-breadcrumb a {
  color: var(--brand-deep);
}

.article-post__head {
  margin-bottom: 28px;
}

.article-post__hero {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.article-post__hero img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.article-post__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-post__head h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  margin: 0 0 14px;
}

.article-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.article-post__body section {
  margin-bottom: 28px;
}

.article-post__body h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--brand-deep);
}

.article-post__body p,
.article-post__body li {
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-post__body ul {
  padding-left: 1.2rem;
}

.article-faq {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-faq h2 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.article-faq__item {
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--bg);
}

.article-faq__item summary {
  font-weight: 600;
  cursor: pointer;
}

.article-faq__item p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.article-credit {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--bg);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
}

.article-related {
  margin-top: 32px;
}

.article-related h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.article-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.article-related a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.88rem;
}

.article-back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.docs-layout {
  display: grid;
  grid-template-columns: 1fr min(320px, 34%);
  gap: var(--space-6);
  align-items: start;
}

.docs-layout__aside {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.docs-layout__aside img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.docs-layout__aside p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-layout__aside {
    position: static;
  }
}

/* ----- Program explanation ----- */
.program-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.program-split__lead {
  margin: 0 0 var(--space-5);
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.program-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.process-steps {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.process-steps li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.process-steps__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-steps h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.process-steps p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ----- Product mockup frame ----- */
.mockup-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-frame__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border-bottom: 1px solid var(--border);
}

.mockup-frame__dots {
  display: flex;
  gap: 6px;
}

.mockup-frame__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  display: block;
}

.mockup-frame__dots i:first-child {
  background: #f87171;
}

.mockup-frame__dots i:nth-child(2) {
  background: #fbbf24;
}

.mockup-frame__dots i:nth-child(3) {
  background: #4ade80;
}

.mockup-frame__title {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mockup-frame__open {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}

.mockup-frame__open:hover {
  text-decoration: underline;
}

.mockup-frame__viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ececee;
}

.mockup-frame__viewport iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mockup-frame__note {
  margin: var(--space-3) 0 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* ----- Brand showcase ----- */
.brand-showcase__copy {
  margin-bottom: var(--space-6);
  max-width: 640px;
}

.brand-showcase__copy h2 {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.brand-showcase__copy p {
  margin: 0;
}

.brand-showcase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.brand-showcase__grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

/* ----- CTA band ----- */
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.btn--on-cta.btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn--on-cta.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ----- Web Trial Mockup (demo.html) ----- */
.demo-page {
  --demo-ios-bg: #ececee;
  --demo-ios-elevated: #ffffff;
  --demo-ios-separator: rgba(0, 0, 0, 0.1);
  --demo-brand: #0ea5e9;
  --demo-brand-deep: #0284c7;
  --demo-brand-dark: #0056b3;
  --demo-brand-soft: rgba(14, 165, 233, 0.12);
  --demo-sidebar-active: rgba(14, 165, 233, 0.1);
  --demo-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --demo-radius: 18px;
  --demo-radius-sm: 10px;
}

.site-main--demo {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: 0;
  flex: 1;
}

.demo-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 0;
  min-height: 0;
}

.demo-workflow {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-workflow__head h2 {
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-workflow__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.demo-workflow__hint {
  margin: auto 0 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.45;
}

.demo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--demo-radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.demo-step:hover:not(:disabled) {
  background: rgba(14, 165, 233, 0.06);
}

.demo-step.is-active {
  background: var(--demo-sidebar-active);
  box-shadow: inset 3px 0 0 var(--demo-brand-deep);
}

.demo-step.is-done .demo-step__num {
  background: var(--demo-brand-soft);
  color: var(--demo-brand-deep);
}

.demo-step:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-step__num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-step.is-active .demo-step__num {
  background: var(--demo-brand);
  color: #fff;
}

.demo-center {
  background: var(--demo-ios-bg);
  padding: 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
}

.demo-app {
  width: 100%;
  max-width: 640px;
  background: var(--demo-ios-elevated);
  border-radius: var(--demo-radius);
  box-shadow: var(--demo-shadow);
  border: 0.5px solid var(--demo-ios-separator);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
}

.demo-app__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 0.5px solid var(--demo-ios-separator);
}

.demo-app__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

.demo-app__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--demo-brand-soft);
  color: var(--demo-brand-deep);
}

.demo-app__version {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.demo-app__body {
  flex: 1;
  padding: 20px 18px;
  overflow-y: auto;
}

.demo-app__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 0.5px solid var(--demo-ios-separator);
  background: #fafafa;
}

.demo-panel__lead {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.demo-form-group {
  margin-bottom: 16px;
}

.demo-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.demo-select {
  width: 100%;
  padding: 11px 14px;
  border: 0.5px solid var(--demo-ios-separator);
  border-radius: var(--demo-radius-sm);
  background-color: rgba(0, 0, 0, 0.04);
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  appearance: none;
  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='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.demo-select--mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.84rem;
}

.demo-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.demo-form-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: var(--demo-radius-sm);
  background: var(--demo-brand-soft);
  color: var(--demo-brand-dark);
  font-size: 0.8rem;
  line-height: 1.45;
}

.demo-form-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-ecu-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--demo-radius-sm);
  background: #f8fafc;
  border: 0.5px solid var(--demo-ios-separator);
}

.demo-ecu-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.84rem;
}

.demo-ecu-card__row span {
  color: var(--text-secondary);
}

.demo-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
}

.demo-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.demo-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  border: 1.5px solid var(--demo-ios-separator);
  border-radius: var(--demo-radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.demo-service-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.demo-service-card.is-selected {
  border-color: var(--demo-brand);
  background: var(--demo-brand-soft);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.demo-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  color: var(--demo-brand);
}

.demo-service-card__icon svg {
  width: 100%;
  height: 100%;
}

.demo-tune-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-tune-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border: 1.5px solid var(--demo-ios-separator);
  border-radius: var(--demo-radius-sm);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.demo-tune-card strong {
  font-size: 0.9rem;
}

.demo-tune-card span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.demo-tune-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.demo-tune-card.is-selected {
  border-color: var(--demo-brand);
  background: var(--demo-brand-soft);
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--demo-radius-sm);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.demo-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-btn--primary {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
}

.demo-btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
}

.demo-btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--demo-ios-separator);
}

.demo-btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
}

.demo-btn--wide {
  width: 100%;
  margin-top: 8px;
}

.demo-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-process-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--demo-radius-sm);
  background: #f8fafc;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.demo-process-list li.is-active {
  background: var(--demo-brand-soft);
  color: var(--demo-brand-dark);
  font-weight: 600;
}

.demo-process-list li.is-done {
  color: var(--text);
}

.demo-process-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--demo-ios-separator);
  flex-shrink: 0;
  position: relative;
}

.demo-process-list li.is-active .demo-process-icon {
  border-color: var(--demo-brand);
  border-top-color: transparent;
  animation: demo-spin 0.8s linear infinite;
}

.demo-process-list li.is-done .demo-process-icon {
  border-color: var(--demo-brand);
  background: var(--demo-brand);
}

.demo-process-list li.is-done .demo-process-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}

.demo-result-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.demo-result-dl {
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}

.demo-result-dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 0.84rem;
}

.demo-result-dl dt {
  color: var(--text-secondary);
  font-weight: 500;
}

.demo-result-dl dd {
  margin: 0;
  font-weight: 600;
}

.demo-result-work,
.demo-result-message {
  padding: 12px;
  border-radius: var(--demo-radius-sm);
  background: #f8fafc;
  margin-bottom: 10px;
}

.demo-result-work__label,
.demo-result-message__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.demo-result-work p,
.demo-result-message p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.demo-summary {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-summary__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-summary__live {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.demo-summary-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-summary-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.demo-summary-row dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.demo-summary-row dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}

.demo-summary__status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--demo-radius-sm);
  background: var(--demo-brand-soft);
  font-size: 0.8rem;
  color: var(--demo-brand-dark);
  font-weight: 500;
}

.demo-summary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--demo-brand);
  flex-shrink: 0;
  animation: demo-pulse 2s ease infinite;
}

@keyframes demo-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, #0056b3 0%, #0284c7 50%, #0ea5e9 100%);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.demo-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.demo-notice p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 900px;
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.demo-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--demo-radius);
  padding: 24px;
  box-shadow: var(--demo-shadow);
}

.demo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.demo-modal__dialog h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.demo-modal__lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.demo-modal__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--demo-radius-sm);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 14px;
}

.demo-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.demo-modal__note {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

body.demo-modal-open {
  overflow: hidden;
}

.demo-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 12px 20px;
  background: #1e293b;
  color: #fff;
  border-radius: var(--demo-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--demo-shadow);
  z-index: 210;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-toast[hidden] {
  display: block;
  visibility: hidden;
}

.demo-toast.is-visible[hidden] {
  visibility: visible;
}

@media (max-width: 1024px) {
  .demo-layout {
    grid-template-columns: 200px minmax(0, 1fr) 240px;
  }
}

@media (max-width: 900px) {
  .demo-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .demo-workflow {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }

  .demo-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .demo-step {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 8px 10px;
  }

  .demo-step__text {
    font-size: 0.78rem;
  }

  .demo-workflow__hint {
    display: none;
  }

  .demo-center {
    padding: 16px;
  }

  .demo-summary {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .demo-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .demo-app__footer {
    flex-direction: column-reverse;
  }

  .demo-btn--wide,
  .demo-app__footer .demo-btn {
    width: 100%;
  }

  .demo-result-dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.models-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.models-search,
.models-filter {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
}

.models-stats {
  font-size: 0.88rem;
  color: var(--text-secondary);
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.models-table th,
.models-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.models-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.models-table tr:hover td {
  background: rgba(14, 165, 233, 0.04);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge--ok {
  background: #dcfce7;
  color: #166534;
}

.status-badge--pending {
  background: #f1f5f9;
  color: var(--text-tertiary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-list--compact {
  max-width: 100%;
}

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

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.connect-cards--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 8px;
}

@media (min-width: 900px) {
  .connect-cards--page {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contact-info-block {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-info-block p {
  margin: 0 0 14px;
}

.contact-info-block__hours {
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.contact-info-block__tips {
  margin: 16px 0 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
}

.contact-info-block__tips li {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f1f5f9;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  margin-bottom: 14px;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}

.contact-channel:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

.form-toast {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #dcfce7;
  color: #166534;
  font-size: 0.9rem;
  display: none;
}

.form-toast.is-visible {
  display: block;
}

.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0 0;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0 0 20px;
  opacity: 0.92;
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0 28px;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.site-footer__brand p {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 320px;
}

.site-footer__connect {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__connect-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

.site-footer__connect-lead {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.connect-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.connect-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.connect-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

.connect-card__icon svg {
  width: 22px;
  height: 22px;
}

.connect-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.connect-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.connect-card__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  word-break: break-word;
}

.connect-card--line .connect-card__icon {
  background: linear-gradient(135deg, #06c755 0%, #00b900 100%);
}

.connect-card--line:hover {
  border-color: rgba(6, 199, 85, 0.35);
}

.connect-card--phone .connect-card__icon {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.connect-card--phone:hover {
  border-color: rgba(14, 165, 233, 0.35);
}

.connect-card--mail .connect-card__icon {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.connect-card--mail:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

.connect-card--fb .connect-card__icon {
  background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.connect-card--fb:hover {
  border-color: rgba(24, 119, 242, 0.35);
}

@media (min-width: 640px) {
  .connect-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer__social a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
}

.site-footer__partner {
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero__grid,
  .contact-grid,
  .site-footer__top,
  .program-split,
  .brand-showcase__grid,
  .preview-panel,
  .preview-panel__visual,
  .poster-showcase,
  .trial-preview {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    align-items: start;
  }

  .hero__preview {
    min-height: 380px;
  }

  .hero__preview .ori-preview--hero {
    min-height: 380px;
    margin: 0 auto;
  }

  .trial-preview__visual .ori-preview--trial {
    min-height: 380px;
    margin: 0 auto;
  }

  .ori-preview--hero .ori-preview__app,
  .ori-preview--trial .ori-preview__app {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }

  .hero__preview {
    order: -1;
  }

  .trial-preview__visual .mock-ui {
    margin: 0 auto;
  }

  .mock-ui--hero {
    margin: 0 auto;
  }

  .float-cards {
    display: none;
  }

  .ui-frame__embed {
    height: 300px;
  }

  .models-strip__inner {
    flex-wrap: wrap;
  }

  .models-strip__label {
    width: 100%;
  }

  .hero--premium {
    min-height: auto;
    padding: var(--space-7) 0;
  }

  .hero__visual {
    order: -1;
    animation: none;
  }

  .program-split__visual {
    order: -1;
  }

  .grid-3,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .bullet-grid {
    grid-template-columns: 1fr;
  }

  .section__head--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .section,
  .hero--clean {
    padding: var(--section-pad-m) 0;
  }

  .mock-ui__layout {
    grid-template-columns: 100px 1fr;
    min-height: 220px;
  }

  .site-nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a.site-nav__cta {
    margin-left: 0;
    text-align: center;
  }

  .program-showcase__grid,
  .mockup-showcase__grid,
  .news-preview__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Brand logo image ----- */
.site-brand__logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

/* ----- Poster / visual frames ----- */
.poster-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual.poster-frame {
  aspect-ratio: 4/3;
  padding: 0;
}

.hero__visual.poster-frame img {
  min-height: 280px;
}

/* ----- Program showcase ----- */
.program-showcase__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.program-showcase__list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.program-showcase__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.program-showcase__list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.program-showcase__list span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ----- Mockup preview section ----- */
.mockup-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.mockup-showcase__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 86, 179, 0.15);
  box-shadow: 0 20px 50px rgba(0, 86, 179, 0.12);
}

.mockup-showcase__frame img {
  width: 100%;
  display: block;
}

.mockup-showcase__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-deep);
  border: 1px solid var(--border);
}

/* ----- News preview (home) ----- */
.news-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-preview-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}

.news-preview-card__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8eef4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-preview-card__img .news-card__thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.news-preview-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-preview-card__body {
  padding: 16px 18px 20px;
}

.news-preview-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.news-preview-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.news-preview-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----- Videos library ----- */
.videos-toolbar {
  margin-bottom: 24px;
}

.videos-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.videos-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.videos-filter__btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.videos-filter__btn.is-active,
.videos-filter__btn:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: rgba(14, 165, 233, 0.35);
}

.videos-toolbar__count {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.videos-loading,
.videos-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 32px 0;
}

.video-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.video-card--pending {
  cursor: default;
  opacity: 0.92;
}

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

.video-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__thumb--placeholder {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.video-card__thumb--tutorial {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
}

.video-card__thumb--feature {
  background: linear-gradient(135deg, #134e4a 0%, #0d9488 100%);
}

.video-card__thumb--model {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.video-card__thumb--device {
  background: linear-gradient(135deg, #581c87 0%, #7c3aed 100%);
}

.video-card__thumb--workshop {
  background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

.video-card__thumb-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.25);
  transition: background 0.2s;
}

.video-card__play svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.video-card:hover .video-card__play {
  background: rgba(15, 23, 42, 0.4);
}

.video-card__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.video-card__body {
  padding: 16px 18px 20px;
}

.video-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
  margin-bottom: 8px;
}

.video-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.video-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.video-card__channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.video-card__channel-avatar--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.video-card__channel-avatar--icon svg {
  width: 14px;
  height: 14px;
}

.video-card__channel-name {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-card__platform {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.video-card__pending {
  margin-top: 8px !important;
  font-style: italic;
  color: var(--text-secondary);
  -webkit-line-clamp: unset;
  display: block;
}

.videos-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-card--preview h3 {
  font-size: 0.95rem;
}

.video-card--preview p {
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .videos-grid,
  .videos-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .videos-grid,
  .videos-preview__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .videos-grid,
  .videos-preview__grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Social feeds (Facebook / YouTube) — full-width layout ----- */
.site-main--social .page-hero {
  margin-bottom: 1.25rem;
}

.social-page {
  width: 100%;
  padding: 0 0 3rem;
}

.social-page__inner {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Search bar (engineerremep style) */
.social-search {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  max-width: 720px;
}

.social-search__input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

.social-search__input:focus {
  outline: 2px solid rgba(2, 132, 199, 0.35);
  border-color: rgba(2, 132, 199, 0.5);
}

.social-search__btn {
  padding: 0.75rem 1.35rem;
  border: none;
  border-radius: 8px;
  background: var(--primary, #0284c7);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
}

.social-search__btn:hover {
  filter: brightness(1.05);
}

.social-search-empty {
  text-align: center;
  color: var(--text-muted, #64748b);
  padding: 2.5rem 1rem;
}

.social-page__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1.25rem;
}

.social-page__follow {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary, #0284c7);
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  text-decoration: none;
  transition: background 0.15s ease;
}

.social-page__follow:hover {
  background: rgba(2, 132, 199, 0.16);
}

.social-page__refresh {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.12));
  background: #fff;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.social-page__refresh:hover {
  color: var(--primary, #0284c7);
  border-color: rgba(2, 132, 199, 0.35);
}

.social-page__refresh.is-busy {
  opacity: 0.55;
  animation: social-refresh-spin 0.9s linear infinite;
}

@keyframes social-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.social-page__sync {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
}

.social-page__sync.is-syncing {
  color: var(--primary, #0284c7);
  animation: social-sync-pulse 1.2s ease-in-out infinite;
}

@keyframes social-sync-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.social-page__loading {
  text-align: center;
  color: var(--text-muted, #94a3b8);
  padding: 2rem 0;
}

.social-page__count {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
}

.social-cards {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 0.25rem;
}

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

@media (max-width: 1100px) {
  .social-cards--news,
  .social-cards--videos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .social-cards--news,
  .social-cards--videos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.social-card__more {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary, #0284c7);
}

.social-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.social-card__media--fb.social-card__media--placeholder {
  background: linear-gradient(135deg, #1877f2, #0d5dbf);
}

.social-card__media--yt.social-card__media--placeholder {
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-empty {
  max-width: 320px;
}

.social-card--empty {
  pointer-events: auto;
}

/* Pagination — Show more + page numbers (ecutools style) */
.social-pager {
  margin-top: 2.25rem;
  padding-bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.social-pager__more {
  border: 2px solid var(--primary, #0284c7);
  color: var(--primary, #0284c7);
  background: transparent;
  padding: 0.7rem 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-pager__more:hover {
  background: var(--primary, #0284c7);
  color: #fff;
}

.social-pager__nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.social-pager__num,
.social-pager__next {
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.35rem;
  border: none;
  background: transparent;
  color: var(--text, #0f172a);
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}

.social-pager__num:hover,
.social-pager__next:hover {
  background: rgba(2, 132, 199, 0.1);
}

.social-pager__num.is-active {
  background: var(--primary, #0284c7);
  color: #fff;
}

.social-pager__next {
  font-size: 1.25rem;
  font-weight: 300;
}

.social-pager__ellipsis {
  padding: 0 0.25rem;
  color: var(--text-muted, #94a3b8);
}

.social-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.social-card__media {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Facebook โพสต์ส่วนใหญ่เป็น 1:1 — แสดงเต็มภาพไม่ crop */
.social-card--fb .social-card__media {
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
}

.social-card--fb .social-card__media img {
  object-fit: contain;
}

/* YouTube — 16:9 เป็นค่าเริ่มต้น, 9:16 สำหรับ Shorts */
.social-card--yt .social-card__media {
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.social-card--yt .social-card__media--portrait {
  aspect-ratio: 9 / 16;
  max-height: min(72vw, 420px);
  margin-inline: auto;
}

.social-card--yt .social-card__media--portrait img {
  object-fit: contain;
}

.social-card__media--video .social-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
}

.social-card__media--video .social-card__play svg {
  width: 3rem;
  height: 3rem;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.social-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.social-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary, #0284c7);
}

.social-card__body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-card__body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-card__date {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}

.social-card--preview {
  max-width: 100%;
}

.social-page__embed {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-height: 520px;
}

.social-page__embed--fb {
  padding: 0;
  min-height: 480px;
  overflow: hidden;
}

.fb-embed-scale {
  width: 100%;
  overflow: hidden;
}

.fb-embed-scale__stage {
  width: 500px;
  max-width: 500px;
  margin: 0 auto;
  transform-origin: top center;
  will-change: transform;
}

.fb-embed-scale__stage iframe {
  display: block;
  width: 500px !important;
  max-width: 500px !important;
  border: 0;
}

.social-page__embed--fb .fb-page,
.social-page__embed--fb .fb-page > span,
.social-page__embed--fb iframe {
  width: 500px !important;
  max-width: 500px !important;
}

.social-page__embed--yt {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.social-page__embed--yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 640px) {
  .social-page__inner {
    width: calc(100% - 1.25rem);
  }

  .social-cards--news,
  .social-cards--videos {
    grid-template-columns: 1fr;
  }
}

/* ----- Web demo embed page ----- */
body.demo-page--embed .site-main {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
}

.demo-embed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.demo-embed-toolbar__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-embed-toolbar__links a {
  font-size: 0.85rem;
  font-weight: 600;
}

.demo-iframe-wrap {
  flex: 1;
  min-height: 0;
  background: #0f172a;
}

.demo-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--nav-h) - 120px);
  border: 0;
  display: block;
}

/* —— Nav dropdown (grouped links) —— */
.site-nav__group {
  position: relative;
}

.site-nav__group-toggle {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-nav__group-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.site-nav__group-toggle:hover,
.site-nav__group.is-open .site-nav__group-toggle,
.site-nav__group-toggle.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.site-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 120;
}

.site-nav__group.is-open .site-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__sub a {
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.site-footer__contact {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* —— Content pages (packages, devices, policy, stats) —— */
.content-section {
  padding: var(--section-pad) 0;
}

.content-section--alt {
  background: rgba(255, 255, 255, 0.6);
}

.content-section--compact {
  padding: var(--section-pad-m) 0;
}

.promo-banner {
  text-align: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.04));
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--brand-deep);
  font-weight: 600;
  margin-bottom: 32px;
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* —— Packages page —— */
.pkg-zone {
  padding: 28px 24px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.pkg-zone__lead {
  margin: -8px 0 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pkg-zone--diesel {
  background: linear-gradient(165deg, rgba(0, 123, 255, 0.07) 0%, rgba(0, 123, 255, 0.02) 55%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(0, 123, 255, 0.14);
}

.pkg-zone--benzin {
  background: linear-gradient(165deg, rgba(232, 62, 140, 0.07) 0%, rgba(232, 62, 140, 0.02) 55%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(232, 62, 140, 0.14);
}

.pkg-zone--truck {
  background: linear-gradient(165deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.02) 55%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(40, 167, 69, 0.14);
}

.pkg-zone--pro7 {
  background: linear-gradient(165deg, rgba(111, 66, 193, 0.08) 0%, rgba(111, 66, 193, 0.02) 55%, rgba(255, 255, 255, 0.4) 100%);
  border: 1px solid rgba(111, 66, 193, 0.14);
}

.pkg-zone .section-heading {
  margin-top: 0;
}

.pkg-zone .pkg-matrix-wrap:last-child {
  margin-bottom: 0;
}

.pkg-diesel-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.pkg-grid.pkg-grid--diesel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: min(100%, 1080px);
  margin-bottom: 0;
  align-items: stretch;
}

@supports (grid-template-rows: subgrid) {
  .pkg-grid.pkg-grid--diesel {
    grid-template-rows: repeat(27, auto);
  }

  .pkg-zone--diesel .pkg-card--compare {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 27;
    height: auto;
  }
}

@supports not (grid-template-rows: subgrid) {
  .pkg-zone--diesel .pkg-card--compare {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .pkg-zone--diesel .pkg-card__row--foot {
    margin-top: auto;
  }
}

.pkg-zone--diesel .pkg-card__row {
  padding: 6px 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 0;
}

.pkg-zone--diesel .pkg-card__row > * {
  width: 100%;
}

.pkg-zone--diesel .pkg-card__row--head {
  padding-top: 14px;
  padding-bottom: 4px;
}

.pkg-zone--diesel .pkg-card__row--target {
  padding-top: 0;
  padding-bottom: 8px;
}

.pkg-zone--diesel .pkg-card__row--price {
  padding-top: 4px;
  padding-bottom: 0;
  border-top: 1px solid var(--border);
}

.pkg-zone--diesel .pkg-card__row--monthly {
  padding-top: 2px;
  padding-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.pkg-zone--diesel .pkg-card__row--condition {
  padding: 8px 12px;
  margin: 0 10px 4px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-secondary);
  align-items: flex-start;
  line-height: 1.5;
}

.pkg-zone--diesel .pkg-card__row--compare-hd {
  margin: 0 10px;
  padding: 8px 10px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.pkg-zone--diesel .pkg-card__row--plus-hd {
  margin-top: 6px;
}

.pkg-zone--diesel .pkg-card__row--minus-hd {
  margin-top: 0;
  border-top: 1px dashed var(--border);
}

.pkg-zone--diesel .pkg-card__row--plus-1,
.pkg-zone--diesel .pkg-card__row--plus-2,
.pkg-zone--diesel .pkg-card__row--plus-3,
.pkg-zone--diesel .pkg-card__row--minus-1,
.pkg-zone--diesel .pkg-card__row--minus-2,
.pkg-zone--diesel .pkg-card__row--minus-3,
.pkg-zone--diesel .pkg-card__row--minus-4 {
  margin: 0 10px;
  padding: 4px 10px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.pkg-zone--diesel .pkg-card__row--minus-4 {
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.pkg-zone--diesel .pkg-card__row--feat-1,
.pkg-zone--diesel .pkg-card__row--feat-2,
.pkg-zone--diesel .pkg-card__row--feat-3,
.pkg-zone--diesel .pkg-card__row--feat-4 {
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

.pkg-zone--diesel .pkg-card__row--feat-1::before,
.pkg-zone--diesel .pkg-card__row--feat-2::before,
.pkg-zone--diesel .pkg-card__row--feat-3::before,
.pkg-zone--diesel .pkg-card__row--feat-4::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--brand);
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.pkg-zone--diesel .pkg-card__row--feat-1:has(.pkg-row-no)::before {
  background: #b91c1c;
  mask: var(--icon-cross) center / contain no-repeat;
  -webkit-mask: var(--icon-cross) center / contain no-repeat;
}

.pkg-zone--diesel .pkg-card__row--models-hd {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-deep);
}

.pkg-zone--diesel .pkg-card__row--model-1,
.pkg-zone--diesel .pkg-card__row--model-2,
.pkg-zone--diesel .pkg-card__row--model-3,
.pkg-zone--diesel .pkg-card__row--model-4,
.pkg-zone--diesel .pkg-card__row--model-5,
.pkg-zone--diesel .pkg-card__row--model-6,
.pkg-zone--diesel .pkg-card__row--model-7 {
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pkg-zone--diesel .pkg-card__row--foot {
  padding: 12px 14px 14px;
  margin-top: auto;
  align-items: stretch;
  flex-direction: column;
}

.pkg-card__foot {
  padding: 16px 22px 20px;
}

.pkg-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pkg-card__badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 1.6rem;
  margin-bottom: 8px;
}

.pkg-card__badge-spacer {
  display: inline-block;
  height: 1.6rem;
}

.pkg-row-plus {
  color: #15803d;
  font-weight: 600;
}

.pkg-row-yes {
  color: #15803d;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.pkg-row-no {
  color: #b91c1c;
}

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

.pkg-row-empty {
  color: var(--text-tertiary);
  opacity: 0.35;
  user-select: none;
}

.pkg-row-model--no {
  text-decoration: line-through;
  color: #b91c1c;
  opacity: 0.85;
}

.pkg-zone--diesel .pkg-card__title {
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0;
}

.pkg-zone--diesel .pkg-card__target {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.pkg-zone--diesel .pkg-card__price-new {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.pkg-zone--diesel .pkg-card__monthly {
  margin: 0;
}

.pkg-grid.pkg-grid--single {
  grid-template-columns: minmax(280px, 420px);
  margin-bottom: 0;
}

@media (max-width: 1100px) {
  .pkg-grid.pkg-grid--diesel {
    min-width: 1040px;
  }
}

@media (max-width: 720px) {
  .pkg-zone {
    padding: 20px 16px 24px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--radius);
  }
}

.pkg-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-tertiary);
  padding: 24px;
}

.pkg-model-brand {
  display: block;
  font-weight: 700;
  color: var(--brand-deep);
}

.pkg-model-detail {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

.pkg-matrix--models tbody th[scope="row"] {
  min-width: 220px;
}

.pkg-card__models--no {
  color: var(--text-tertiary);
  text-decoration: line-through;
  opacity: 0.8;
}

.pkg-model-miss {
  font-size: 0.78rem;
  color: #b91c1c;
  font-weight: 600;
  text-decoration: none;
  display: inline;
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pkg-grid--duo {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  max-width: 900px;
}

.pkg-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
}

.pkg-promo__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pkg-promo p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pkg-section-note {
  margin: -12px 0 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pkg-matrix-wrap {
  margin-bottom: 28px;
}

.pkg-matrix__title {
  font-size: 1.15rem;
  margin: 0 0 14px;
  color: var(--brand-deep);
}

.pkg-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.pkg-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pkg-matrix th,
.pkg-matrix td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.pkg-matrix thead th {
  background: var(--bg);
  font-weight: 700;
  color: var(--brand-deep);
}

.pkg-matrix tbody th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  min-width: 180px;
}

.pkg-matrix td.is-best,
.pkg-matrix th.is-best {
  background: rgba(14, 165, 233, 0.06);
}

.pkg-matrix__sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.pkg-matrix__old {
  display: block;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.pkg-matrix__hint {
  margin: 10px 4px 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.pkg-cell {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pkg-cell--yes {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.pkg-cell--plus {
  background: rgba(34, 197, 94, 0.18);
  color: #166534;
}

.pkg-cell--new {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
}

.pkg-cell--no {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.pkg-diff {
  margin: 12px 0 14px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.pkg-diff__title {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.pkg-diff__title + .pkg-diff__list + .pkg-diff__title {
  margin-top: 10px;
}

.pkg-diff__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.pkg-diff__list li {
  padding: 3px 0 3px 18px;
  position: relative;
}

.pkg-diff__list--plus li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #15803d;
  font-weight: 800;
}

.pkg-diff__list--minus li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: #b91c1c;
  font-weight: 800;
}

.pkg-table__price-old {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
  margin-right: 4px;
}

.pkg-table__discount {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #c2410c;
  margin-left: 2px;
}

.pkg-table__loading {
  text-align: center;
  color: var(--text-tertiary);
  padding: 24px !important;
}

@media (max-width: 720px) {
  .pkg-matrix {
    font-size: 0.8rem;
  }

  .pkg-matrix th,
  .pkg-matrix td {
    padding: 10px 8px;
  }
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pkg-card--highlight {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
}

.pkg-card--pro7 {
  max-width: 640px;
}

.pkg-card__head {
  padding: 20px 22px 12px;
}

.pkg-card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.pkg-card__badge--starter { background: #007bff; }
.pkg-card__badge--pro { background: #ff6347; }
.pkg-card__badge--duo { background: #28a745; }
.pkg-card__badge--full { background: #d4a017; color: #1a1a1a; }
.pkg-card__badge--benzin { background: #e83e8c; }
.pkg-card__badge--truck { background: #fd7e14; }
.pkg-card__badge--billing { background: #17a2b8; }
.pkg-card__badge--value { background: #ffc107; color: #1a1a1a; margin-right: 6px; }

.pkg-compare-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pkg-compare-bar__item {
  text-align: center;
  padding: 12px 8px;
  border-radius: 8px;
  background: var(--bg);
}

.pkg-compare-bar__item--highlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(34, 197, 94, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.pkg-compare-bar__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.pkg-compare-bar__price {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.pkg-compare-bar__note {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.section-heading--diesel { border-bottom-color: #007bff; }
.section-heading--benzin { border-bottom-color: #e83e8c; }
.section-heading--truck { border-bottom-color: #28a745; }
.section-heading--pro7 { border-bottom-color: #6f42c1; }
.section-heading--billing { border-bottom-color: #17a2b8; }

.content-intro--text-only {
  grid-template-columns: 1fr;
}

.pkg-card__features {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.pkg-card__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.pkg-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background: #15803d;
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.pkg-card__features li.pkg-card__features--no::before {
  background: #b91c1c;
  mask: var(--icon-cross) center / contain no-repeat;
  -webkit-mask: var(--icon-cross) center / contain no-repeat;
}

.pkg-card__models-title {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.pkg-table--compare .pkg-table__tier td {
  background: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-deep);
  padding-top: 16px;
}

.pkg-table__group {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.pkg-table__group--diesel { background: #007bff; }
.pkg-table__group--benzin { background: #e83e8c; }
.pkg-table__group--truck { background: #fd7e14; }

.pkg-table__price {
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 1rem;
}

.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.artwork-card {
  margin: 0;
}

.artwork-card__frame {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.artwork-card__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.device-card__more {
  margin-top: 8px;
}

.device-modal[hidden] {
  display: none !important;
}

.device-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.device-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.device-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}

.device-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-tertiary);
}

.device-modal__dialog h2 {
  margin: 0 0 10px;
  padding-right: 28px;
}

.device-modal__lead {
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.device-modal__dialog ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
}

.device-modal__dialog li {
  margin-bottom: 6px;
}

body.device-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .pkg-compare-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pkg-card__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.pkg-card__target {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.pkg-card__price {
  padding: 14px 22px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pkg-card__price-old {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.pkg-card__price-new {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.pkg-card__discount {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.pkg-card__monthly {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pkg-card__body {
  padding: 16px 22px;
  flex: 1;
}

.pkg-card__condition {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 12px;
}

.pkg-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.pkg-tag--no {
  background: rgba(220, 53, 69, 0.1);
  color: #b91c1c;
}

.pkg-tag--yes {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.pkg-card__models {
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.pkg-card__models li {
  margin-bottom: 4px;
}

.pkg-card__btn-demo {
  font-weight: 600;
  border-color: var(--accent, #0284c7);
  color: var(--accent, #0284c7);
}

.pkg-card__btn-demo:hover {
  background: rgba(2, 132, 199, 0.08);
}

.pkg-table__actions {
  white-space: nowrap;
}

.pkg-table__actions .btn + .btn {
  margin-left: 6px;
}

.demo-banner__pkg {
  color: #92400e;
}

body.demo-has-pkg .demo-embed-frame-wrap {
  box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.pkg-table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
}

.pkg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pkg-table th,
.pkg-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.pkg-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
}

.pkg-table .price-old {
  display: block;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-size: 0.82rem;
}

.pkg-table .price-new {
  font-weight: 700;
  color: var(--brand-deep);
}

.info-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.info-duo__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.info-duo__box--benefits {
  border-color: rgba(21, 128, 61, 0.22);
  background: linear-gradient(165deg, #ffffff 0%, #f0fdf4 100%);
}

.info-duo__box--notes {
  border-color: rgba(2, 132, 199, 0.18);
  background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
}

.info-duo__box h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
  color: var(--text);
}

.info-duo__box .info-duo__lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.info-duo__box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
}

.info-duo__box li {
  position: relative;
  padding: 7px 0 7px 1.55em;
  line-height: 1.58;
  font-size: 0.92rem;
}

.info-duo__box--benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 13px;
  height: 13px;
  background: #15803d;
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.info-duo__box--notes li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-deep);
  opacity: 0.65;
}

.video-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.video-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.video-card p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .video-duo {
    grid-template-columns: 1fr;
  }
}

.device-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.device-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.device-filter__btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.device-filter__btn.is-active,
.device-filter__btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(14, 165, 233, 0.08);
}

.device-toolbar__count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.device-loading {
  color: var(--text-secondary);
}

/* อุปกรณ์ที่ต้องมี — แพ็กเกจ (การ์ดสั้น ไม่ใช้ layout หน้า devices) */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.equip-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.equip-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.equip-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  color: var(--brand-deep);
}

.equip-card__icon svg {
  width: 100%;
  height: 100%;
}

.site-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--icon-tone);
}

.site-icon svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

.site-icon--lg svg {
  width: 1.35em;
  height: 1.35em;
}

.site-icon--inline {
  display: inline-flex;
  vertical-align: -0.15em;
  margin-right: 0.25em;
}

.site-icon--inline svg {
  width: 1em;
  height: 1em;
}

.pkg-row-yes .site-icon--inline svg {
  color: inherit;
}

.feature-list--checks li {
  position: relative;
  padding-left: 1.55em !important;
}

.feature-list--checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 13px;
  height: 13px;
  background: var(--brand-deep);
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.equip-card__desc {
  margin: 0;
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.equip-card__link {
  margin-top: 16px;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.equip-card__link:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

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

@media (max-width: 560px) {
  .equip-grid {
    grid-template-columns: 1fr;
  }
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.device-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.device-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.device-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.device-card__media--empty {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.device-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.device-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.device-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.device-card__badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.device-card__badge--tune {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

.device-card__badge--diag {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.22);
}

.device-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.device-card details {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.device-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
}

.device-card details ul {
  margin: 10px 0 0;
  padding-left: 1.15rem;
}

.device-card details li {
  margin-bottom: 6px;
}

.device-card__modules {
  margin: 12px 0 14px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

.device-card__modules-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-deep);
}

.device-modules {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.device-modules th,
.device-modules td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.device-modules th {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.device-modules tr:last-child td,
.device-modules tr:last-child th {
  border-bottom: none;
}

.device-modules__no {
  display: inline-block;
  min-width: 2rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.78rem;
  text-align: center;
}

.device-card__modules-full {
  margin: 0 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.device-card__modules-full summary {
  cursor: pointer;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-deep);
  list-style-position: inside;
}

.device-card__modules-full summary:hover {
  background: var(--brand-soft);
}

.device-modules-scroll {
  max-height: 320px;
  overflow: auto;
  padding: 0 8px 8px;
}

.device-modules--full td:last-child {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.device-card__modules-hint {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
}

.page-hero__note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.device-card__ref-note,
.device-card__note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.device-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.device-card__specs-preview {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.device-card__specs-preview li {
  margin-bottom: 4px;
}

.device-card__cta {
  align-self: flex-start;
}

/* Device detail page */
.container--device {
  max-width: 1080px;
}

.device-detail-loading {
  text-align: center;
  padding: 48px 0;
  color: var(--text-secondary);
}

.device-detail-error {
  text-align: center;
  padding: 48px 20px;
}

.device-detail-error h1 {
  margin-bottom: 12px;
}

.device-detail__breadcrumb {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.device-detail__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.device-detail__breadcrumb a:hover {
  color: var(--accent);
}

.device-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.device-detail__media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-detail__media img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.device-detail__hero-text h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.device-detail__manufacturer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.device-detail__status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.device-detail__status--stock {
  background: #ecfdf5;
  color: #047857;
}

.device-detail__status--offsale {
  background: #fef2f2;
  color: #b91c1c;
}

.device-detail__status--preorder {
  background: #fffbeb;
  color: #b45309;
}

.device-detail__lead {
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.device-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 32px;
  margin-bottom: 36px;
}

.device-detail__section {
  margin-bottom: 28px;
}

.device-detail__section h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.device-detail__section--catalog .device-detail__prose {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.device-detail__section--catalog .device-detail__prose p {
  margin: 0 0 12px;
}

.device-detail__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.device-detail__list li {
  margin-bottom: 6px;
}

.device-detail__list--compact {
  list-style: none;
  padding: 0;
}

.device-detail__list--compact li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.device-detail__aside-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.device-detail__aside-block h3 {
  font-size: 0.95rem;
  margin: 0 0 10px;
}

.device-detail__aside-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.device-detail__aside-empty {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.device-detail__note {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.device-detail__modules {
  margin-bottom: 28px;
}

.device-detail__modules h2 {
  margin-bottom: 6px;
}

.device-detail__modules-lead {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.device-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.device-detail__workflow {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.device-detail__workflow h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.device-detail__workflow p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.device-detail__back a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

.device-detail__back a:hover {
  color: var(--accent);
}

@media (max-width: 800px) {
  .device-detail__hero {
    grid-template-columns: 1fr;
  }

  .device-detail__grid {
    grid-template-columns: 1fr;
  }
}

.download-panel {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.download-panel--closed {
  border-color: var(--border);
  background: linear-gradient(180deg, #f8fafc 0%, var(--surface) 100%);
}

.download-panel p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
}

.req-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.req-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text-secondary);
}

.req-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--brand);
  font-weight: 700;
}

.policy-prose h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.policy-prose h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--brand-deep);
}

.policy-prose p,
.policy-prose li {
  color: var(--text-secondary);
}

.policy-prose ul {
  padding-left: 20px;
}

.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.stats-toolbar button {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.stats-toolbar button.is-active,
.stats-toolbar button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.stats-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 360px;
}

.stats-summary {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stats-source {
  display: none !important;
}

.stats-daily {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.stats-daily h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.stats-daily__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats-daily__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.stats-daily__list li:last-child {
  border-bottom: none;
}

.stats-daily__count {
  font-weight: 700;
  color: var(--brand-deep);
}

.stats-daily__placeholder {
  justify-content: center;
  color: var(--text-secondary);
}

.model-categories {
  margin-bottom: 32px;
}

.model-category {
  margin-bottom: 20px;
}

.model-category h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--brand-deep);
}

.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.model-chip--btn {
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.model-chip--btn:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: var(--brand-soft);
}

@media (max-width: 768px) {
  .site-nav__group {
    width: 100%;
  }

  .site-nav__sub {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 12px;
    margin-top: 4px;
  }

  .site-nav__group.is-open .site-nav__sub {
    display: flex;
  }

  .info-duo {
    grid-template-columns: 1fr;
  }

  .pkg-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a,
  .site-nav__group-toggle {
    font-size: 0.82rem;
    padding: 7px 10px;
  }
}

/* ----- Real-data content blocks ----- */
.highlights-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.highlights-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.highlights-bar__item strong {
  color: var(--brand-deep);
  font-weight: 700;
}

.content-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.content-intro__img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.content-intro__text p {
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.content-intro__checks {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.content-intro__checks li {
  padding: 6px 0 6px 1.5em;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.content-intro__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  background: var(--brand-deep);
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.feature-grid-15 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

/* —— Feature board (grouped, minimal) —— */
.feature-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.feature-board__head h3 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.feature-board__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
}

.feature-item + .feature-item {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.feature-item__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.06);
  color: var(--brand-deep);
}

.feature-item__icon svg {
  width: 18px;
  height: 18px;
  max-width: none;
  display: block;
}

.feature-item__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.feature-item__text strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.feature-item__text span {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .feature-board {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .feature-board {
    grid-template-columns: 1fr 1fr;
  }

  .feature-board__group:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: start;
  }

  .feature-board__group:last-child .feature-board__head {
    grid-column: 1 / -1;
  }
}

.feature-pill {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.feature-pill__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--icon-surface);
  border: 1px solid var(--icon-border);
  color: var(--icon-tone);
}

.feature-pill__icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.feature-pill strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.ori-preview__dtc-panel {
  padding: 8px 4px;
}

.ori-preview__dtc-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  line-height: 1.6;
}

.ori-preview__dtc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ori-preview__dtc-list input {
  accent-color: var(--brand-deep);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.brands-grid__item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.brands-grid__item h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--brand-deep);
}

.brands-grid__item p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tune-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.tune-compare__item {
  text-align: center;
}

.tune-compare__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0a0a0a;
}

.tune-compare__item figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.note-box {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 32px;
}

.note-box strong {
  color: #78350f;
}

.note-box--legal {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.35);
  color: var(--text-secondary);
}

.note-box--legal strong {
  color: var(--text);
}

.note-box--legal a {
  color: var(--brand-deep);
  font-weight: 600;
}

.legal-scope {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(251, 191, 36, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.legal-scope--policy {
  margin-bottom: 24px;
}

.legal-scope--compact {
  margin-bottom: 20px;
  padding: 14px 16px;
  font-size: 0.88rem;
}

.legal-scope--compact p {
  margin: 0;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal-scope__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
}

.legal-scope__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-scope__list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-scope__list li {
  margin-bottom: 6px;
}

.legal-scope__list a,
.legal-scope--compact a {
  color: var(--brand-deep);
  font-weight: 600;
}

.legal-scope--subtle {
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  border: none;
}

.legal-scope--subtle[open] {
  margin-top: 20px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.legal-scope__summary {
  list-style: none;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 10px 0 4px;
  user-select: none;
}

.legal-scope__summary::-webkit-details-marker {
  display: none;
}

.legal-scope__summary:hover {
  color: var(--text-secondary);
}

.legal-scope--subtle[open] .legal-scope__summary {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.legal-scope--subtle .legal-scope__body {
  padding-top: 2px;
}

.legal-scope--subtle .legal-scope__list {
  font-size: 0.82rem;
}

.policy-prose__updated {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

@media (max-width: 768px) {
  .content-intro,
  .tune-compare {
    grid-template-columns: 1fr;
  }
}

/* ----- Program demo animation (replay clip) ----- */
.program-demo {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

.program-demo__window {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 20px 50px rgba(15, 23, 42, 0.12);
  background: #0f172a;
}

.program-demo__titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.program-demo__dots {
  display: flex;
  gap: 5px;
}

.program-demo__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.program-demo__dots i:nth-child(1) { background: #f87171; }
.program-demo__dots i:nth-child(2) { background: #fbbf24; }
.program-demo__dots i:nth-child(3) { background: #4ade80; }

.program-demo__title {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-demo__rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f87171;
  opacity: 0;
}

.program-demo.is-playing .program-demo__rec {
  animation: demo-rec-badge 16s linear infinite;
}

.program-demo__rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
}

.program-demo.is-playing .program-demo__rec-dot {
  animation: demo-rec-pulse 1s ease-in-out infinite;
}

.program-demo__layout {
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: 280px;
}

.program-demo--compact .program-demo__layout {
  min-height: 240px;
}

.program-demo__sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px;
  background: #0b1220;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.program-demo__menu {
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.2s, color 0.2s;
}

.program-demo.is-playing .program-demo__menu[data-menu="0"] {
  animation: demo-menu-active 16s linear infinite;
}

.program-demo__menu.is-active {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  font-weight: 600;
}

.program-demo__main {
  position: relative;
  padding: 14px;
  background: #111827;
  overflow: hidden;
}

.program-demo__scene {
  position: absolute;
  inset: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.program-demo__scene.is-active {
  opacity: 1;
  z-index: 1;
}

.program-demo__scene.is-active,
.program-demo.is-playing .program-demo__scene--pick {
  animation: demo-scene-pick 16s linear infinite;
}

.program-demo.is-playing .program-demo__scene--load {
  animation: demo-scene-load 16s linear infinite;
}

.program-demo.is-playing .program-demo__scene--result {
  animation: demo-scene-result 16s linear infinite;
}

.program-demo__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 23, 42, 0.6);
}

.program-demo__field span {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.program-demo__field em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e2e8f0;
}

.program-demo.is-playing .program-demo__field--hl-1 {
  animation: demo-field-hl 16s linear infinite;
  animation-delay: 0s;
}

.program-demo.is-playing .program-demo__field--hl-2 {
  animation: demo-field-hl 16s linear infinite;
  animation-delay: 0.8s;
}

.program-demo.is-playing .program-demo__field--hl-3 {
  animation: demo-field-hl 16s linear infinite;
  animation-delay: 1.6s;
}

.program-demo.is-playing .program-demo__field--hl-4 {
  animation: demo-field-hl 16s linear infinite;
  animation-delay: 2.4s;
}

.program-demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.program-demo__chips span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 600;
}

.program-demo__btn {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 14px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.program-demo__load-text {
  margin: 8px 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.program-demo__progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 16px;
}

.program-demo__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #22d3ee);
}

.program-demo.is-playing .program-demo__progress span {
  animation: demo-progress 16s linear infinite;
}

.program-demo__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-demo__steps li {
  font-size: 0.74rem;
  color: #64748b;
  padding-left: 18px;
  position: relative;
}

.program-demo__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  background: #475569;
  mask: var(--icon-circle) center / contain no-repeat;
  -webkit-mask: var(--icon-circle) center / contain no-repeat;
}

.program-demo__steps li.is-done {
  color: #94a3b8;
}

.program-demo__steps li.is-done::before {
  background: #22c55e;
  mask: var(--icon-check) center / contain no-repeat;
  -webkit-mask: var(--icon-check) center / contain no-repeat;
}

.program-demo__steps li.is-active {
  color: #38bdf8;
  font-weight: 600;
}

.program-demo__map-fade {
  position: relative;
  height: 100%;
  min-height: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.program-demo__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.program-demo__map--before {
  opacity: 1;
}

.program-demo__map--after {
  opacity: 0;
}

.program-demo.is-playing .program-demo__map--before {
  animation: demo-map-before 16s linear infinite;
}

.program-demo.is-playing .program-demo__map--after {
  animation: demo-map-after 16s linear infinite;
}

.program-demo__result-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
}

.program-demo.is-playing .program-demo__result-badge {
  animation: demo-result-badge 16s linear infinite;
}

.program-demo__cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  top: 70%;
  left: 50%;
}

.program-demo.is-playing .program-demo__cursor {
  animation: demo-cursor-move 16s ease-in-out infinite;
}

@keyframes demo-rec-badge {
  0%, 4% { opacity: 0; }
  5%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes demo-rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes demo-scene-pick {
  0%, 42% { opacity: 1; }
  48%, 100% { opacity: 0; }
}

@keyframes demo-scene-load {
  0%, 44% { opacity: 0; }
  48%, 58% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes demo-scene-result {
  0%, 60% { opacity: 0; }
  66%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes demo-field-hl {
  0%, 6%, 38%, 100% { border-color: rgba(255, 255, 255, 0.06); box-shadow: none; }
  8%, 14% { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25); }
}

@keyframes demo-progress {
  0%, 46% { width: 0; }
  58% { width: 100%; }
  100% { width: 100%; }
}

@keyframes demo-map-before {
  0%, 66% { opacity: 1; }
  78%, 100% { opacity: 0; }
}

@keyframes demo-map-after {
  0%, 72% { opacity: 0; }
  82%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes demo-result-badge {
  0%, 80% { opacity: 0; transform: translateY(8px); }
  86%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

@keyframes demo-cursor-move {
  0%, 5% { opacity: 0; top: 82%; left: 72%; }
  8% { opacity: 1; top: 28%; left: 68%; }
  14% { top: 42%; left: 66%; }
  20% { top: 56%; left: 64%; }
  26% { top: 70%; left: 62%; }
  32% { top: 78%; left: 58%; }
  38% { top: 84%; left: 52%; }
  44%, 100% { opacity: 0; }
}

@keyframes demo-menu-active {
  0%, 42% { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
  48%, 100% { background: transparent; color: #64748b; }
}

/* ----- 3D map showcase & before/after slider ----- */
.tune-showcase {
  margin-bottom: 40px;
}

.tune-showcase__lead {
  margin: 8px auto 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 640px;
}

.tune-showcase__hero {
  max-width: 920px;
  margin: 0 auto 36px;
}

.tune-showcase__hero .tune-slider {
  margin-bottom: 0;
}

.tune-showcase__block {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.tune-showcase__block--solo {
  margin-top: 28px;
}

.tune-showcase__subhead {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.tune-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto 24px;
  user-select: none;
}

.tune-slider__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0a0a0a;
}

.tune-slider__canvas {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

.tune-slider__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.tune-slider__img--base {
  position: relative;
  z-index: 0;
}

.tune-slider__reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
  z-index: 1;
}

.tune-slider__reveal .tune-slider__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tune-slider--auto.is-playing .tune-slider__reveal {
  animation: tune-slider-sweep 6s ease-in-out infinite alternate;
}

.tune-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}

.tune-slider--auto.is-playing .tune-slider__handle {
  animation: tune-slider-handle 6s ease-in-out infinite alternate;
}

.tune-slider__handle::after {
  content: "◀ ▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
  font-size: 0.55rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tune-slider__label {
  position: absolute;
  top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  z-index: 3;
  pointer-events: none;
}

.tune-slider__label--before {
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
}

.tune-slider__label--after {
  right: 12px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

.tune-slider__range {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.tune-slider--auto .tune-slider__range {
  pointer-events: none;
}

.tune-slider__caption {
  text-align: center;
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.tune-showcase__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tune-showcase__facts strong {
  color: var(--text);
}

.map-gallery--pairs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.map-gallery--pairs .map-gallery__heading,
.map-gallery--solo .map-gallery__heading {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.map-pair-group {
  margin-bottom: 24px;
}

.map-pair-group:last-child {
  margin-bottom: 0;
}

.map-pair-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.map-pair-group__index {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.map-pair-group__title {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.map-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}

.map-pair__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.map-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-card--before {
  border-color: #cbd5e1;
}

.map-card--after {
  border-color: rgba(239, 68, 68, 0.25);
}

.map-card__media {
  background: #0a0a0a;
  line-height: 0;
}

.map-card__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.map-card figcaption {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.map-card__tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #1e293b;
  color: #f8fafc;
}

.map-card__tag--after {
  background: #dc2626;
  color: #fff;
}

.map-solo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.map-card--wide .map-card__media img {
  min-height: 200px;
}

.map-gallery--solo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.map-gallery--solo .map-gallery__heading {
  grid-column: 1 / -1;
}

.map-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.map-gallery--4 {
  grid-template-columns: repeat(3, 1fr);
}

.map-gallery__item {
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
}

.map-gallery__item figcaption {
  margin: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
}

.map-gallery__tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.map-gallery__tag--before {
  background: #1e293b;
  color: #f8fafc;
}

.map-gallery__tag--after {
  background: #dc2626;
  color: #fff;
}

@keyframes tune-slider-sweep {
  0% { clip-path: inset(0 72% 0 0); }
  100% { clip-path: inset(0 8% 0 0); }
}

@keyframes tune-slider-handle {
  0% { left: 28%; }
  100% { left: 92%; }
}

@media (max-width: 768px) {
  .program-demo__layout {
    grid-template-columns: 88px 1fr;
    min-height: 250px;
  }

  .map-gallery,
  .map-gallery--4,
  .map-gallery--solo,
  .map-solo-grid {
    grid-template-columns: 1fr;
  }

  .map-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .map-pair__arrow {
    width: auto;
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .tune-slider__frame {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .program-demo.is-playing *,
  .tune-slider--auto.is-playing * {
    animation: none !important;
  }

  .program-demo__scene--pick {
    opacity: 1 !important;
  }

  .program-demo__scene--load,
  .program-demo__scene--result {
    display: none;
  }

  .program-demo__map--after {
    opacity: 1;
  }

  .tune-slider__reveal {
    clip-path: inset(0 35% 0 0);
  }

  .tune-slider__handle {
    left: 65%;
  }
}

/* ── News search hero ── */
.news-search-hero {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.news-search-hero__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.news-search-hero__field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.news-search-hero__icon svg {
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
}

.news-search-hero__input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
}

.news-search-hero__input:focus {
  outline: none;
}

.news-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.news-topics__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.news-topics__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-topics__chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.news-topics__chip:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.news-empty {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  color: var(--text-secondary);
}

/* ── Floating site search ── */
.site-search-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.site-search-widget__fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--brand-glow);
}

.site-search-widget__fab svg {
  width: 22px;
  height: 22px;
}

.site-search-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(400px, calc(100vw - 32px));
  max-height: min(580px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.site-search-widget__panel[hidden] {
  display: none !important;
}

.site-search-widget__header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.site-search-widget__title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.site-search-widget__close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.site-search-widget__body {
  padding: 14px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-search-widget__form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.site-search-widget__input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.site-search-widget__submit {
  width: 42px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.site-search-widget__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.site-search-widget__topic {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  cursor: pointer;
}

.site-search-widget__results {
  overflow-y: auto;
  max-height: 280px;
}

.site-search-widget__result {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}

.site-search-widget__result:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.site-search-widget__result-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-deep);
}

.site-search-widget__footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  text-align: center;
  color: var(--text-tertiary);
}

@media (max-width: 480px) {
  .site-search-widget__fab-label {
    display: none;
  }

  .site-search-widget__fab {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* —— Path compare: WinOLS vs ORI REMAP —— */
.path-compare {
  padding-top: var(--section-pad-m);
  padding-bottom: var(--section-pad-m);
}

.path-compare--prominent {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 3px solid var(--brand);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.path-compare--prominent .section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
}

.path-compare__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0 var(--space-7);
}

.path-compare__table-col {
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.path-compare__table-col--manual {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.path-compare__table-col--ori {
  border-color: rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.1);
}

.path-compare__table-col h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.path-compare__table-note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.path-compare__table-col ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.path-compare__table-col li + li {
  margin-top: 6px;
}

.path-compare__benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.path-compare__benefit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.path-compare__benefit-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand);
}

.path-compare__benefit strong {
  font-size: 0.95rem;
}

.path-compare__benefit span:last-child {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.path-compare__intro {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.path-compare__intro strong {
  color: var(--brand-deep);
  font-weight: 700;
}

.path-compare__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto repeat(6, minmax(58px, auto)) auto;
  column-gap: var(--space-5);
  row-gap: var(--space-3);
  align-items: stretch;
  margin-top: var(--space-7);
  --path-compare-app-min: 380px;
}

.path-compare__panel {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  gap: 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.path-compare__panel--winols {
  grid-column: 1;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
  color: #e2e8f0;
}

.path-compare__panel--ori {
  grid-column: 3;
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.08);
}

.path-compare__divider {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.path-compare__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.path-compare__panel-head h3 {
  margin: 0;
  font-size: 1.35rem;
}

.path-compare__tag {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.path-compare__panel--winols .path-compare__tag {
  color: #94a3b8;
}

.path-compare__badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.path-compare__badge--neutral {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.path-compare__badge--brand {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.path-compare__screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: #020617;
  border: none;
  border-top: 1px solid #334155;
}

.path-compare__screen-inner {
  position: absolute;
  inset: 0;
}

.path-compare__screen-inner img,
.path-compare__screen-inner video,
.path-compare__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.path-compare__screen-inner img {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 8s ease-out;
}

.path-compare__screen-inner img.is-active {
  opacity: 1;
  animation: path-compare-pan 8s ease-out forwards;
}

.path-compare__video {
  background: #020617;
}

.path-compare__screen.is-scene-cut::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.14);
  animation: path-compare-scene-cut 0.14s ease-out forwards;
}

@keyframes path-compare-scene-cut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes path-compare-pan {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.14) translate(-2.5%, -1.5%);
  }
}

.path-compare__screen-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(34, 197, 94, 0.06) 48%,
    transparent 52%
  );
  animation: path-compare-scan 3.5s linear infinite;
}

@keyframes path-compare-scan {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

.path-compare__screen-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 100%);
  font-size: 11px;
  color: #86efac;
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.path-compare__counter {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.path-compare__screen-loading,
.path-compare__screen-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: var(--space-4);
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.path-compare__disclaimer {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94a3b8;
}

.path-compare__panel-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.path-compare__panel-note--winols {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.path-compare__panel-note--ori {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f9ff 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.path-compare__panel-note-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 600;
}

.path-compare__panel-note--winols .path-compare__panel-note-lead {
  color: #e2e8f0;
}

.path-compare__panel-note--ori .path-compare__panel-note-lead {
  color: var(--text-primary);
}

.path-compare__panel-note-sub {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.path-compare__panel-note--winols .path-compare__panel-note-sub {
  color: #94a3b8;
}

.path-compare__panel-note--ori .path-compare__panel-note-sub {
  color: var(--text-secondary);
}

.path-compare__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.path-compare__gallery-thumb {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.path-compare__gallery--winols .path-compare__gallery-thumb {
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}

.path-compare__gallery--ori .path-compare__gallery-thumb {
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: #f8fafc;
}

.path-compare__gallery-thumb.is-active {
  opacity: 1;
}

.path-compare__gallery--winols .path-compare__gallery-thumb.is-active {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.path-compare__gallery--ori .path-compare__gallery-thumb.is-active {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.path-compare__gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.path-compare__gallery--winols .path-compare__gallery-thumb img {
  object-position: left top;
}

.path-compare__gallery-thumb figcaption {
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.path-compare__gallery--winols .path-compare__gallery-thumb figcaption {
  color: #86efac;
  background: rgba(2, 6, 23, 0.85);
}

.path-compare__gallery--ori .path-compare__gallery-thumb figcaption {
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.92);
}

.path-compare__gallery--ori .path-compare__gallery-thumb img {
  object-fit: cover;
  object-position: center center;
}

.path-compare__flow-step {
  min-height: 58px;
}

.path-compare__flow-step-body span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.path-compare__flow {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-compare__flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  opacity: 0.5;
  transition:
    opacity 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.path-compare__flow-step--winols {
  background: rgba(15, 23, 42, 0.35);
}

.path-compare__flow-step--ori {
  background: rgba(255, 255, 255, 0.72);
}

.path-compare__flow-step.is-active {
  opacity: 1;
}

.path-compare__flow-step--winols.is-active {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(15, 23, 42, 0.75);
}

.path-compare__flow-step--ori.is-active {
  border-color: rgba(14, 165, 233, 0.4);
  background: #fff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.1);
}

.path-compare__flow-step-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.path-compare__flow-step--winols .path-compare__flow-step-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.path-compare__flow-step--ori .path-compare__flow-step-icon {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.path-compare__flow-step-icon svg {
  width: 18px;
  height: 18px;
}

.path-compare__flow-step--winols.is-active .path-compare__flow-step-icon {
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
}

.path-compare__flow-step--ori.is-active .path-compare__flow-step-icon {
  background: var(--brand);
  color: #fff;
}

.path-compare__flow-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.path-compare__flow-step-body strong {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.path-compare__flow-step--winols .path-compare__flow-step-body strong {
  color: #e2e8f0;
}

.path-compare__flow-step--ori .path-compare__flow-step-body strong {
  color: var(--text-primary);
}

.path-compare__flow-step-body span {
  font-size: 0.74rem;
  line-height: 1.45;
}

.path-compare__flow-step--winols .path-compare__flow-step-body span {
  color: #94a3b8;
}

.path-compare__flow-step--ori .path-compare__flow-step-body span {
  color: var(--text-secondary);
}

.path-compare__grid-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.path-compare__panel--winols .path-compare__disclaimer {
  color: #cbd5e1;
}

.path-compare__points {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.path-compare__panel--winols .path-compare__points {
  color: #cbd5e1;
}

.path-compare__points li + li {
  margin-top: 6px;
}

.path-compare__divider span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-tertiary);
  box-shadow: var(--shadow-sm);
}

.path-compare__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}

.path-compare__link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .path-compare__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: var(--space-4);
  }

  .path-compare__panel {
    display: flex;
    flex-direction: column;
    grid-row: auto;
    grid-column: auto;
  }

  .path-compare__divider {
    grid-column: auto;
    grid-row: auto;
    padding: var(--space-2) 0;
  }

  .path-compare__flow {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .path-compare__table {
    grid-template-columns: 1fr;
  }

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

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

  .path-compare__divider span {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 520px) {
  .path-compare__benefits {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .path-compare__screen-inner img.is-active {
    animation: none;
    transform: scale(1);
  }

  .path-compare__screen-scan {
    animation: none;
  }

  .path-compare__screen-inner img {
    transition: none;
  }

  .path-compare__flow-step,
  .path-compare__gallery-thumb {
    transition: none;
  }
}

/* —— Poster pitch section —— */
.poster-pitch {
  padding-top: var(--section-pad-m);
  padding-bottom: var(--section-pad-m);
}

.poster-pitch__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.poster-pitch__card {
  padding: var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.poster-pitch__card h3 {
  margin: 10px 0 8px;
  font-size: 1rem;
}

.poster-pitch__card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.poster-pitch__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  font-size: 1.2rem;
}

.poster-pitch__cta {
  margin-top: var(--space-6);
  text-align: center;
}

@media (max-width: 900px) {
  .poster-pitch__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .poster-pitch__grid {
    grid-template-columns: 1fr;
  }
}

/* Site icon blocks (SVG only — no emoji) */
.site-icon {
  display: inline-grid;
  place-items: center;
  color: var(--icon-tone);
}

.site-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.site-icon--benefit {
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  border-radius: 10px;
  background: var(--icon-surface);
  border: 1px solid var(--icon-border);
}

.site-icon--benefit svg {
  width: 20px;
  height: 20px;
}

.site-icon--pitch {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--icon-surface);
  border: 1px solid var(--icon-border);
}

.site-icon--pitch svg {
  width: 18px;
  height: 18px;
}

.site-icon__img {
  display: none;
}

/* Path compare — app frames + compare preview */
.path-compare__app-frame {
  display: flex;
  flex-direction: column;
  min-height: var(--path-compare-app-min);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.path-compare__app-frame--ori {
  background: #f8fafc;
  border-color: rgba(14, 165, 233, 0.25);
}

.path-compare__app-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.path-compare__app-frame--ori .path-compare__app-chrome {
  background: #e2e8f0;
  border-bottom-color: #cbd5e1;
}

.path-compare__app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.path-compare__app-frame--ori .path-compare__app-dot:nth-child(1) {
  background: #f87171;
}
.path-compare__app-frame--ori .path-compare__app-dot:nth-child(2) {
  background: #fbbf24;
}
.path-compare__app-frame--ori .path-compare__app-dot:nth-child(3) {
  background: #4ade80;
}

.path-compare__app-title {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.path-compare__app-frame--ori .path-compare__app-title {
  color: #475569;
}

.path-compare__ori-slot {
  flex: 1 1 auto;
  min-height: 0;
  background: #f1f5f9;
}

.path-compare__ori-slot .ori-preview--compare {
  max-width: none;
  margin: 0;
  height: 100%;
}

.path-compare__ori-slot .ori-preview--compare .ori-preview__app {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0;
  box-shadow: none;
}

.path-compare__ori-slot .ori-preview--compare .ori-preview__main {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 6px 8px 8px;
}

.path-compare__ori-slot .ori-preview--compare .ori-preview__tuning {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  gap: 4px !important;
  overflow: hidden !important;
  inset: auto !important;
}

.path-compare__ori-slot .ori-preview--compare .ori-preview__terminal {
  flex: 1 1 auto;
  min-height: 28px;
  max-height: 46px;
}

.path-compare__ori-slot .ori-preview--compare .ori-preview__actions {
  flex-shrink: 0;
  margin-top: auto;
}

.path-compare__ori-slot .ori-preview--compare .ori-preview__action {
  padding: 5px 6px;
  font-size: 0.55rem;
  white-space: nowrap;
}

.ori-preview--compare .ori-preview__main,
.ori-preview--compare .ori-preview__tuning,
.ori-preview--compare .ori-preview__field,
.ori-preview--compare .ori-preview__dropdown,
.ori-preview--compare .ori-preview__file-row,
.ori-preview--compare .ori-preview__checksum,
.ori-preview--compare .ori-preview__actions,
.ori-preview--compare .ori-preview__terminal,
.ori-preview--compare .ori-preview__terminal-inner,
.ori-preview--compare .ori-preview__action {
  /* inherit hero compare sizing */
}

.ori-preview--compare .ori-preview__app,
.ori-preview--hero .ori-preview__app {
  /* compare uses same rules as hero via shared selectors below */
}

.ori-preview--compare .ori-preview__app {
  height: 100%;
  min-height: 0;
  max-height: none;
  box-shadow: none;
}

.path-compare__cursor {
  position: absolute;
  width: 18px;
  height: 22px;
  margin: -2px 0 0 -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='1.2' d='M5 3l3 18 4-8 8-2z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: left 0.55s ease, top 0.55s ease, opacity 0.25s ease;
  z-index: 4;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.path-compare__cursor.is-visible {
  opacity: 1;
}

.news-card__thumb--mock img,
.news-preview-card__img .news-card__thumb--mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__thumb--mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__thumb--mock {
  background: #0f172a;
}

.poster-pitch__icon {
  display: none;
}

.path-compare__benefit-icon {
  display: none;
}

/* Demo disclaimer modal (before entering demo.html) */
.demo-disclaimer-modal[hidden] {
  display: none !important;
}

.demo-disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-disclaimer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.demo-disclaimer-modal.is-visible .demo-disclaimer-modal__backdrop {
  opacity: 1;
}

.demo-disclaimer-modal__panel {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow:
    0 0 0 1px rgba(2, 132, 199, 0.08),
    0 24px 64px rgba(15, 23, 42, 0.24),
    0 0 80px rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-disclaimer-modal.is-visible .demo-disclaimer-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.demo-disclaimer-modal__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.demo-disclaimer-modal__icon {
  animation: demoModalIconFloat 3.2s ease-in-out infinite;
}

@keyframes demoModalIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.demo-disclaimer-modal__badge {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.14), rgba(2, 132, 199, 0.1));
  color: #0284c7;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-disclaimer-modal__title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: var(--text, #0f172a);
  line-height: 1.35;
}

.demo-disclaimer-modal__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-disclaimer-modal__list li {
  position: relative;
  padding: 0.55rem 0.75rem 0.55rem 2rem;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.85);
  color: var(--text-secondary, #475569);
  font-size: 0.9rem;
  line-height: 1.55;
}

.demo-disclaimer-modal__list li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.demo-disclaimer-modal__real {
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.07), rgba(2, 132, 199, 0.05));
  border: 1px solid rgba(14, 165, 233, 0.15);
  text-align: center;
}

.demo-disclaimer-modal__real-lead {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text, #0f172a);
}

.demo-disclaimer-modal__real-sub {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary, #64748b);
}

.demo-disclaimer-modal__contact {
  margin: 0 !important;
  font-size: 0.875rem;
  font-weight: 600;
}

.demo-disclaimer-modal__contact a {
  color: #0284c7;
  text-decoration: none;
  border-bottom: 1px solid rgba(2, 132, 199, 0.35);
  transition: color 0.15s ease;
}

.demo-disclaimer-modal__contact a:hover {
  color: #0369a1;
}

.demo-disclaimer-modal__actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.demo-disclaimer-modal__accept {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 11rem;
  padding: 0.65rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.demo-disclaimer-modal__accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.42);
}

.demo-disclaimer-modal__accept-sub {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.88;
}

body.demo-disclaimer-open {
  overflow: hidden;
}

/* Models — search ในแต่ละหัวข้อ */
.models-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.models-section-head .section-heading {
  margin: 0;
  flex: 1 1 auto;
}

.models-search--inline {
  flex: 1 1 220px;
  max-width: 320px;
}

.models-toolbar--split {
  flex-wrap: wrap;
  gap: 12px 16px;
}

.models-field {
  flex: 1 1 200px;
  min-width: 180px;
}

.models-field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.model-chip--empty {
  opacity: 0.7;
  cursor: default;
}

/* FAQ live search */
.faq-search-wrap {
  margin-bottom: 24px;
}

.faq-search {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
}

.faq-search__hint {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.faq-item--best {
  border-color: var(--brand, #2563eb);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.faq-list .faq-item {
  opacity: 1;
  transform: none;
}

.faq-list .faq-item[hidden] {
  display: none !important;
}

.faq-no-match {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px dashed var(--border);
  text-align: center;
}

.faq-no-match h3 {
  margin: 0 0 8px;
}

.faq-no-match__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
