/* Nova RCMS public website */

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --surface: #ffffff;
  --border: #e6e6ee;
  --text: #14141c;
  --text-muted: #5d5d6c;
  --text-subtle: #8d8d9c;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --ink: #0f0f1a;
  --success: #16803c;
  --danger: #c42b2b;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 16, 32, 0.06), 0 1px 3px rgba(16, 16, 32, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(30, 27, 75, 0.35), 0 12px 24px -12px rgba(16, 16, 32, 0.2);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin: 0; color: var(--text); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.45); outline-offset: 2px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Loader ---------- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #fff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.site-loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #818cf8, #4f46e5 55%, #3730a3);
  box-shadow: 0 16px 40px -12px rgba(79, 70, 229, 0.6);
  animation: mark-pop 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}
.loader-name { font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.loader-bar { width: 140px; height: 3px; overflow: hidden; border-radius: 999px; background: var(--primary-soft); }
.loader-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--primary); animation: bar-slide 1.1s ease-in-out infinite; }
@keyframes mark-pop {
  0%, 100% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.08) rotate(-6deg); }
}
@keyframes bar-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.btn-primary:hover { color: #fff; background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.7); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: #fff; border-color: #d4d4e0; }
.btn-outline { color: var(--primary); background: #fff; border-color: #c7c9f7; }
.btn-outline:hover { color: var(--primary-hover); background: var(--primary-soft); }
.btn i { font-size: 1em; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -16px rgba(16, 16, 32, 0.4); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; font-weight: 500; }
.logo:hover { color: var(--text); }
.logo strong { font-weight: 800; }
.logo-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #818cf8, #4f46e5 55%, #3730a3);
}
.main-nav { display: flex; gap: 26px; margin-left: 12px; }
.main-nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-signin { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.link-signin { color: var(--text); font-size: 15px; font-weight: 500; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--text); transition: transform 0.2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; text-align: center; }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(129, 140, 248, 0.28), transparent 70%),
    radial-gradient(35% 45% at 72% 20%, rgba(56, 189, 248, 0.2), transparent 70%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid #dcdcf7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.eyebrow.light { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #c7d2fe; }
.hero h1 { max-width: 900px; font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.035em; }
.lede { max-width: 680px; margin-top: 20px; color: var(--text-muted); font-size: clamp(17px, 1.6vw, 19px); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px; color: var(--text-muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points i { color: var(--success); }

/* ---------- Product tour: vertical scroll drives a sideways track ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tour { --slide-w: min(820px, 64vw, calc((100vh - var(--header-h) - 290px) * 1.5)); --gap: 56px; position: relative; padding: 72px 0; overflow: hidden; }
.tour-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tour-heading { margin-top: 14px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.tour-tabs { display: flex; gap: 6px; }
.tour-tab {
  position: relative;
  width: 64px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-subtle);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.tour-tab:hover { color: var(--text); }
.tour-tab-fill { position: absolute; inset: 0; background: var(--primary-soft); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.tour-tab-label { position: relative; }
.tour-tab.is-active { border-color: var(--primary); color: var(--primary); }

.tour-viewport { margin-top: 36px; }
/* Without the scroll effect (no JS, reduced motion) the track is a swipeable row. */
.tour-track {
  display: flex;
  gap: var(--gap);
  padding: 28px calc((100vw - var(--slide-w)) / 2) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-slide { flex: none; width: var(--slide-w); scroll-snap-align: center; }
.tour-frame { position: relative; }
.tour-device {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 40, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(30, 27, 75, 0.35), 0 24px 48px -28px rgba(16, 16, 32, 0.3);
}
.tour-device::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: var(--dim, 0); pointer-events: none; }
.tour-chrome { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid #ececf3; background: #f6f6fa; }
.tour-chrome > span { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #dcdce6; }
.tour-chrome > span:nth-child(1) { background: #ff6159; }
.tour-chrome > span:nth-child(2) { background: #ffbd2e; }
.tour-chrome > span:nth-child(3) { background: #28c941; }
.tour-url {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 380px;
  height: 24px;
  margin: 0 auto;
  padding: 0 12px;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e6e6ee;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}
.tour-url i { color: var(--success); font-size: 10px; }
.tour-url span { overflow: hidden; text-overflow: ellipsis; }
.tour-screen { overflow: hidden; aspect-ratio: 16 / 10; background: #f7f7f8; }
.tour-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%); }

.tour-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(15, 15, 40, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px -12px rgba(30, 27, 75, 0.35);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.tour-chip-1 { left: -28px; bottom: 12%; }
.tour-chip-2 { right: -28px; top: 20%; transition-delay: 0.1s; }
.tour-slide.is-active .tour-chip { opacity: 1; transform: none; }
.tour-chip-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 16px; }
.tour-chip strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.2; }
.tour-chip small { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.3; }

.tour-caption { display: flex; gap: 16px; max-width: 620px; margin-top: 26px; opacity: var(--caption, 1); transform: translateY(calc((1 - var(--caption, 1)) * 10px)); }
.tour-num { flex: none; padding-top: 4px; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.tour-caption h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.tour-caption p { margin-top: 6px; color: var(--text-muted); font-size: 16px; }

/* Scroll-driven: the section is tall, the stage stays in view and the track moves with the scroll. */
.tour-live { height: calc(var(--scenes) * 75vh + 100vh); padding: 0; overflow: visible; }
.tour-live .tour-sticky {
  position: sticky;
  top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.tour-live .tour-track { overflow: visible; scroll-snap-type: none; padding-bottom: 0; transform: translate3d(var(--shift, 0px), 0, 0); will-change: transform; }
.tour-live .tour-frame { transform: scale(var(--scale, 1)); transform-origin: 50% 60%; }
.tour-live .tour-viewport { margin-top: clamp(8px, 3vh, 36px); }
@media (max-height: 820px) and (min-width: 701px) {
  .tour-live .tour-caption { margin-top: 16px; }
  .tour-live .tour-heading { font-size: 28px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.section-lede { margin-top: 16px; color: var(--text-muted); font-size: 18px; }

.problems { background: var(--bg-soft); }
.problems .section-title { text-align: center; }
.problem-list { display: grid; gap: 12px; margin-top: 36px; }
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: 17px;
}
.problem-list i { margin-top: 2px; color: #e5484d; font-size: 20px; }
.problem-answer { margin-top: 28px; color: var(--text); font-size: 19px; font-weight: 600; text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { border-color: #d0d2f5; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 20px; }
.feature-card h3 { font-size: 18px; font-weight: 700; }
.feature-card p { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
}
.inline-cta p { font-size: 18px; font-weight: 600; }

.industries { background: var(--bg-soft); }
.chip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.chip-list li { padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-grid.count-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.price-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.price-grid.count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.price-card h3 { font-size: 20px; font-weight: 700; }
.price-desc { min-height: 48px; margin-top: 6px; color: var(--text-muted); font-size: 15px; }
.price { margin: 18px 0 20px; font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price .currency { margin-right: 2px; font-size: 26px; vertical-align: 10px; }
.price .per { margin-left: 4px; color: var(--text-muted); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.price-features { display: grid; gap: 10px; flex: 1; margin-bottom: 26px; font-size: 15px; }
.price-features li { display: flex; gap: 10px; }
.price-features i { color: var(--success); font-size: 17px; }
.price-note { margin-top: 28px; color: var(--text-muted); text-align: center; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq-item summary i { color: var(--text-subtle); transition: transform 0.2s; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--text-muted); }

/* ---------- Demo / lead form ---------- */
.demo { background: var(--ink); color: #e4e4f0; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 64px; }
.demo .section-title { color: #fff; }
.demo-copy > p:not(.eyebrow) { margin-top: 16px; color: #b8b8cc; font-size: 17px; }
.demo-points { display: grid; gap: 12px; margin-top: 22px; font-size: 16px; }
.demo-points li { display: flex; gap: 10px; }
.demo-points i { color: #4ade80; font-size: 18px; }
.demo-copy .demo-small { margin-top: 24px; color: #8e8ea6; font-size: 14px; }
.demo-card { padding: 30px; border-radius: var(--radius-lg); background: #fff; color: var(--text); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d6d6e2;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a8a96' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; }
.form-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: var(--danger); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-success { padding: 24px 8px; text-align: center; }
.success-icon { width: 60px; height: 60px; display: inline-grid; place-items: center; margin-bottom: 16px; border-radius: 50%; background: #e7f6ec; color: var(--success); font-size: 30px; }
.demo-success h3 { font-size: 22px; }
.demo-success p { margin-top: 8px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { max-width: 320px; margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { color: var(--text-muted); font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 13px; }
.footer-bottom a { color: var(--text-muted); }

.mobile-cta { display: none; }

/* ---------- Documentation ---------- */
.docs-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.docs-hero h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.docs-hero .lede { max-width: 720px; margin-top: 14px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 18px; color: var(--text-subtle); font-size: 14px; }
.breadcrumbs a { color: var(--text-muted); }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; }
.docs-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc-title { margin-bottom: 10px; color: var(--text-subtle); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.docs-toc ol { display: grid; gap: 2px; border-left: 1px solid var(--border); }
.docs-toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--text-muted); font-size: 14px; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.active { border-left-color: var(--primary); color: var(--primary); font-weight: 600; }
.docs-content { max-width: 760px; }
.docs-content section + section { margin-top: 56px; padding-top: 8px; }
.docs-content h2 { margin-bottom: 14px; font-size: 28px; font-weight: 800; }
.docs-content h3 { margin: 28px 0 10px; font-size: 19px; font-weight: 700; }
.docs-content h4 { margin: 20px 0 6px; font-size: 16px; font-weight: 700; }
.docs-content p { margin-top: 12px; color: #34343f; }
.docs-content code { padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.9em; }
.steps-list { margin: 16px 0 0; padding-left: 22px; list-style: decimal; color: #34343f; }
.steps-list li { margin-top: 8px; padding-left: 4px; }
.docs-list { display: grid; gap: 10px; margin-top: 14px; padding-left: 20px; list-style: disc; color: #34343f; }
.docs-dl { margin: 16px 0 0; display: grid; gap: 4px 0; }
.docs-dl dt { margin-top: 12px; font-weight: 700; }
.docs-dl dd { margin: 2px 0 0; color: #34343f; }
.table-scroll { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.docs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.docs-table th { padding: 10px 14px; background: var(--bg-soft); color: var(--text-muted); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.docs-table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill-open { background: #e8f1fd; color: #1d6fd1; }
.pill-done { background: #e8f6ed; color: #15803d; }
.pill-issue { background: #fdf3e1; color: #b45309; }
.pill-return { background: #fdeceb; color: #c42b2b; }
.release-meta { color: var(--text-subtle) !important; font-size: 14px; }
.docs-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
}
.docs-cta h2 { margin: 0; font-size: 22px; }
.docs-cta p { margin-top: 4px; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .docs-toc { position: static; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
  .docs-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; }
  .docs-toc a { padding-left: 0; border-left: 0; }
  .docs-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll (only once JS has run) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid, .price-grid.count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .tour { --slide-w: min(74vw, calc((100vh - var(--header-h) - 330px) * 1.5)); --gap: 28px; }
  .tour-head { flex-direction: column; align-items: flex-start; }
  .tour-chip-1 { left: -10px; }
  .tour-chip-2 { right: -10px; }
}

@media (max-width: 700px) {
  .tour { --slide-w: 84vw; --gap: 14px; padding: 56px 0; }
  .tour-live .tour-sticky { justify-content: flex-start; padding-top: 18px; }
  .tour-head { gap: 14px; }
  .tour-tab { width: auto; flex: 1; height: 6px; border: 0; background: var(--primary-soft); }
  .tour-tab.is-active { border: 0; }
  .tour-tab-fill { background: var(--primary); }
  .tour-tab-label { display: none; }
  .tour-tabs { order: 2; width: 100%; gap: 5px; }
  .tour-tabs li { flex: 1; display: flex; }
  .tour-chip-1 { display: none; }
  .tour-chip-2 { top: auto; right: 6px; bottom: -16px; }
  .tour-caption { gap: 10px; margin-top: 22px; }
  .tour-caption h3 { font-size: 18px; }
  .tour-caption p { font-size: 14.5px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 20px 30px -20px rgba(16, 16, 32, 0.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .main-nav .nav-signin { display: block; border-bottom: 0; }
  .link-signin { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .hero { padding: 48px 0 24px; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .feature-grid, .price-grid, .price-grid.count-2, .price-grid.count-4 { grid-template-columns: minmax(0, 1fr); }
  .tour-live { height: calc(var(--scenes) * 60vh + 100vh); }
  .tour-chrome { height: 28px; padding: 0 10px; }
  .tour-chrome > span { width: 7px; height: 7px; }
  .tour-url { height: 18px; font-size: 10.5px; }
  .tour-chip { gap: 8px; padding: 7px 10px 7px 7px; border-radius: 11px; }
  .tour-chip-icon { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
  .tour-chip strong { font-size: 12.5px; }
  .tour-chip small { font-size: 11px; }
  .inline-cta { flex-direction: column; text-align: center; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-card { padding: 22px 18px; }
  .price-desc { min-height: 0; }
  body { padding-bottom: 72px; }
  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }
  .mobile-cta.show { transform: none; }
}

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

/* ---------- Blog ---------- */
.blog-narrow { max-width: 800px; }
.post-meta { margin-top: 12px; color: var(--text-subtle); font-size: 14px; }
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 96px; }
.blog-card { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.blog-card:hover { border-color: #d0d2f5; box-shadow: var(--shadow-sm); }
.blog-card .post-meta { margin: 0 0 8px; }
.blog-card h2 { font-size: 20px; font-weight: 700; line-height: 1.35; }
.blog-card h2 a { color: var(--text); }
.blog-card p { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.blog-more { margin-top: auto; padding-top: 16px; color: var(--primary); font-weight: 600; font-size: 15px; }
.blog-post { max-width: none; padding-top: 40px; padding-bottom: 96px; }
.blog-post > p:first-child { font-size: 18px; color: var(--text-muted); }
.blog-post h2 { margin-top: 44px; }
.blog-post ol.docs-list { list-style: decimal; }
.blog-post .docs-table { margin-top: 16px; }
.table-wrap { overflow-x: auto; }
.template-msg { margin-top: 12px; padding: 14px 16px; border-left: 3px solid #25d366; border-radius: 8px; background: var(--bg-soft); white-space: pre-line; font-size: 15px; }
.blog-related { margin-top: 48px; }
.blog-related h2 { font-size: 20px; }
.blog-related ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 20px; list-style: disc; }
