/* ============================================
  wpessentia — Shared Design System
  ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg: #f4f3ef;
  --bg-alt: #edece7;
  --card-bg: #ffffff;
  --text: #1a1a1a;
  --text-mid: #555555;
  --text-light: #888888;
  --border: #2a2a2a;
  --border-mid: #999999;
  --border-light: #d5d4d0;
  --accent-lav: #b8a9d4;
  --accent-lav-light: #e8e0f5;
  --accent-lav-bg: #f0ecf7;
  --accent-lime: #c5e84d;
  --accent-lime-dark: #9fbf2e;
  --accent-lime-bg: #f3fad6;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 999px;
  --font-display: 'Oswald', 'Impact', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- Typography --- */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-transform: none;
}

.t-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-mid);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--text);
  color: var(--card-bg);
}

.btn-primary {
  background: var(--text);
  color: var(--card-bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #333;
  border-color: #333;
}

.btn-lime {
  background: var(--accent-lime);
  border-color: var(--accent-lime-dark);
  color: var(--text);
}

.btn-lime:hover {
  background: var(--accent-lime-dark);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.header-pricing {
  min-height: 44px;
  padding: 10px 18px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--text);
  color: var(--card-bg);
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-sm);
}

.card-accent-lav {
  background: var(--accent-lav-bg);
  border-color: var(--accent-lav);
}

.card-accent-lime {
  background: var(--accent-lime-bg);
  border-color: var(--accent-lime-dark);
}

.card-ghost {
  background: transparent;
  border: 1.5px dashed var(--border-light);
}

.products-intro {
  margin-bottom: 8px;
}

.products-api-note {
  min-height: 1.5em;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.products-api-note.is-ready {
  color: var(--text-mid);
}

.products-api-note.is-error {
  color: #9a3b2f;
}

.mp-meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-light);
}

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding: 0 32px;
}

.page-docs .site-header {
  position: relative;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-lime);
  border: 1.5px solid var(--accent-lime-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a,
.main-nav > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}

.main-nav > li > a:hover,
.main-nav > li > button:hover,
.main-nav > li > a.is-current,
.main-nav > li > button.is-current {
  background: var(--bg-alt);
}

.main-nav > li > a.is-current,
.main-nav > li > button.is-current,
.header-pricing.is-current {
  background: rgba(184, 169, 212, 0.24);
}

.header-pricing.is-current,
.header-pricing.is-current:hover {
  border-color: rgba(184, 169, 212, 0.56);
  background: rgba(184, 169, 212, 0.24);
  color: var(--text);
}

.nav-arrow {
  font-size: 0.6rem;
  opacity: 0.5;
  transition: transform var(--transition);
}

.has-dropdown:hover .nav-arrow,
.has-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
}

.dropdown a:hover,
.dropdown a.is-current {
  background: var(--bg-alt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-pricing-menu {
  position: relative;
}

.header-actions .dropdown {
  left: auto;
  right: 0;
}

.header-pricing-menu .dropdown {
  min-width: min(280px, calc(100vw - 32px));
}

.header-pricing-menu .dropdown a {
  white-space: nowrap;
}

.page-shell-main {
  overflow-x: hidden;
}

.section-copy {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-mid);
  line-height: 1.8;
}

/* --- Product Pages --- */
.page-product .site-footer,
.page-info .site-footer,
.page-docs .site-footer,
.page-contact .site-footer,
.page-blog .site-footer,
.page-article .site-footer {
  margin-top: 0;
}

/* --- Blog Pages --- */
.blog-hero,
.blog-index,
.article-shell,
.blog-related {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.blog-hero {
  padding-top: 40px;
  padding-bottom: 28px;
}

.blog-hero-card {
  padding: clamp(34px, 5vw, 64px);
  border: 1.5px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 169, 212, 0.34), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(197, 232, 77, 0.24), transparent 24%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(237, 236, 231, 0.9));
  text-align: center;
  box-shadow: 0 22px 70px rgba(26, 26, 26, 0.08);
}

.blog-hero-card h1 {
  max-width: 840px;
  margin: 0 auto 18px;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
}

.blog-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 3vw, 46px);
  padding-bottom: 28px;
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 26, 26, 0.22);
  box-shadow: 0 24px 58px rgba(26, 26, 26, 0.11);
}

.blog-card-cover {
  display: block;
  flex: 0 0 66.666%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 520ms ease;
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.035);
}

.blog-card-body {
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(14px, 1.35vw, 18px);
}

.blog-card-meta {
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: none;
}

.blog-card h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: clamp(0.98rem, 1.08vw, 1.16rem);
  line-height: 1.08;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 32px 72px;
}

.blog-page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.blog-page-link:hover {
  border-color: rgba(26, 26, 26, 0.24);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.blog-page-link.is-current {
  border-color: var(--text);
  background: var(--text);
  color: var(--card-bg);
}

.blog-page-link-nav {
  padding-left: 18px;
  padding-right: 18px;
}

.blog-card h2 a:hover {
  color: var(--text-mid);
}

.blog-card-body > p:last-child {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--text-mid);
  font-size: 0.86rem;
  line-height: 1.45;
}

.article-shell {
  padding-top: 40px;
  padding-bottom: 32px;
}

.article-hero {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.article-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--text-mid);
  font-size: 0.84rem;
  font-weight: 800;
}

.article-hero h1 {
  max-width: 980px;
  margin: 12px auto 18px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.article-subtitle {
  max-width: 760px;
  margin: 0 auto 30px;
  color: var(--text-mid);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.7;
}

.article-cover,
.article-image,
.article-video {
  margin: 0;
}

.article-cover {
  overflow: hidden;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 28px;
  background: var(--bg-alt);
  box-shadow: 0 24px 70px rgba(26, 26, 26, 0.1);
}

.article-cover img,
.article-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-cover img {
  aspect-ratio: 16 / 8.6;
}

.article-content {
  max-width: 820px;
  margin: 42px auto 0;
  color: var(--text);
}

.article-content > * + * {
  margin-top: 24px;
}

.article-content h2 {
  margin-top: 42px;
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1.08;
}

.article-content p,
.article-content li {
  color: var(--text-mid);
  font-size: 1.03rem;
  line-height: 1.85;
}

.article-content a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.article-content a:hover {
  color: var(--text-mid);
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  padding-left: 1.45rem;
  list-style-position: outside;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  padding-left: 0.2rem;
}

.article-content li::marker {
  color: var(--accent-lav);
  font-weight: 800;
}

.article-image {
  overflow: visible;
}

.article-image img {
  aspect-ratio: 16 / 9;
  border-radius: 22px;
}

.article-image figcaption,
.article-video figcaption {
  margin-top: 10px;
  padding: 0 4px;
  color: var(--text-light);
  font-size: 0.84rem;
  line-height: 1.5;
}

.article-video {
  overflow: visible;
}

.article-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 22px;
  background: var(--text);
}

.article-table-wrap {
  overflow-x: auto;
  border: 1.5px solid rgba(26, 26, 26, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.article-table th,
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
}

.article-table td {
  color: var(--text-mid);
  line-height: 1.55;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-content blockquote,
.article-callout {
  padding: 22px 24px;
  border-left: 5px solid var(--accent-lime-dark);
  border-radius: 18px;
  background: rgba(243, 250, 214, 0.66);
}

.article-content blockquote p,
.article-callout p {
  color: var(--text);
}

.article-content cite {
  display: block;
  margin-top: 12px;
  color: var(--text-mid);
  font-style: normal;
  font-weight: 800;
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.blog-related {
  padding-top: 24px;
  padding-bottom: 72px;
}

.blog-index-related {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.product-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 24px;
}

.product-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 56px;
  border: 1.5px solid var(--border);
  border-radius: 32px;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 80px rgba(26, 26, 26, 0.08);
}

.product-hero-panel.has-live-hero {
  min-height: 0;
}

.product-hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.55));
}

.product-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.product-hero-grid.has-live-hero {
  grid-template-columns: minmax(300px, 350px) minmax(0, 1fr);
  gap: 30px;
}

.product-hero-copy {
  max-width: none;
  display: flex;
  flex-direction: column;
}

.product-hero-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 16px;
}

.product-hero-title-copy {
  min-width: 0;
  width: 100%;
}

.product-hero-logo {
  width: clamp(84px, 8vw, 108px);
  flex: 0 0 auto;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 18px 36px rgba(26, 26, 26, 0.1);
}

.product-hero-copy h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.85rem);
  margin-bottom: 0;
  line-height: 0.92;
}

.product-hero-tagline {
  max-width: 420px;
  font-size: 1.14rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.product-hero-sub {
  max-width: 420px;
  margin-bottom: 22px;
  color: rgba(26, 26, 26, 0.72);
  font-size: 0.98rem;
  line-height: 1.75;
}

.product-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.product-hero-tag-block {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.product-hero-tag-label {
  margin: 0 0 14px;
  color: rgba(26, 26, 26, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.product-hero-tags {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.product-hero-media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.product-device {
  position: relative;
  width: min(100%, 620px);
  min-height: 500px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 32px 90px rgba(26, 26, 26, 0.12);
  animation: drift-float 8s ease-in-out infinite;
}

.product-device.has-hero-image {
  width: 100%;
  max-width: none;
  min-height: 600px;
  padding: 16px;
}

.product-device.has-live-hero {
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 16px;
}

.product-device::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: rgba(26, 26, 26, 0.45);
}

.product-device-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.product-device-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.18);
}

.product-device-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 96px;
  gap: 14px;
  min-height: 404px;
}

.product-device-stage.is-image-only {
  grid-template-columns: 1fr;
  min-height: 460px;
}

.product-device-stage.is-live-hero {
  grid-template-columns: 1fr;
  min-height: 0;
}

.product-device-main-panel,
.product-media-screen-main,
.story-visual-card {
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(255, 255, 255, 0.75);
}

.product-device-main-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-device-main-panel.is-image-only {
  padding: 0;
  border: 0;
  background: transparent;
}

.product-device-main-panel.is-live-hero {
  padding: 0;
  border: 0;
  background: transparent;
}

.product-device-hero-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: #050607;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.product-device-hero-embed {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #050607;
}

.product-device.has-live-hero .product-device-badge {
  background: rgba(5, 6, 7, 0.58);
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.product-device-image-frame,
.product-media-image-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.product-media-image-frame {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}

.product-device.has-hero-image .product-device-image-frame {
  min-height: 540px;
}

.product-device-image,
.product-media-image {
  width: 100%;
  height: 100%;
  display: block;
}

.product-device-image {
  object-fit: cover;
}

.product-media-image {
  object-fit: contain;
  object-position: center center;
  background: #fff;
  image-rendering: auto;
}

.product-media-image-frame.has-media-overlay {
  overflow: visible;
  isolation: isolate;
}

.product-media-image-frame.has-media-overlay .product-media-image,
.product-media-image-frame.has-media-overlay::after {
  border-radius: inherit;
}

.product-media-image-frame.has-media-overlay::after {
  z-index: 3;
  pointer-events: none;
}

.product-media-image-frame.has-media-overlay .product-media-tag,
.product-media-image-frame.has-media-overlay .product-media-image-overlay {
  z-index: 4;
}

.product-media-image-frame.has-media-overlay .product-media-image-overlay {
  right: 43%;
}

.product-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.product-media-overlay-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-media-overlay-motion-gifs .product-media-overlay-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media-overlay-item-anchored {
  top: 6%;
  right: 3.6%;
  width: min(70%, 468px);
  height: 84%;
  filter: drop-shadow(0 18px 28px rgba(8, 10, 7, 0.24));
}

.product-media-overlay-item-float-a,
.product-media-overlay-item-float-b {
  filter: drop-shadow(0 18px 24px rgba(7, 9, 5, 0.24));
}

.product-media-overlay-item-float-a {
  top: -12%;
  left: 70%;
  width: min(86%, 810px);
  height: 76%;
  z-index: 2;
  transform: translateX(-18%) rotate(-4deg);
}

.product-media-overlay-item-float-b {
  left: 0%;
  bottom: -18%;
  width: min(88%, 840px);
  height: 64%;
  z-index: 3;
  transform: rotate(5deg);
}

.product-device-image-frame .product-device-badge,
.product-media-image-frame .product-media-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
}

.product-device-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.product-device-bars {
  display: grid;
  gap: 12px;
}

.product-device-bars span,
.story-visual-line {
  display: block;
  height: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(26, 26, 26, 0.09), rgba(26, 26, 26, 0.18));
}

.product-device-bars span:nth-child(1) { width: 62%; }
.product-device-bars span:nth-child(2) { width: 92%; }
.product-device-bars span:nth-child(3) { width: 76%; }

.product-carousel-section,
.product-capability-section,
.product-story-section,
.product-detail-section,
.product-operational-section,
.product-faq-section,
.product-download-section,
.info-hero,
.info-grid-section {
  padding: 28px 0 40px;
}

.product-section-head {
  max-width: 840px;
  margin: 0 auto 28px;
  padding: 0 32px;
}

.product-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 18px;
}

.product-carousel {
  position: relative;
}

.product-demo-viewer {
  max-width: min(1680px, calc(100% - 48px));
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1.5px solid rgba(26, 26, 26, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 22px 80px rgba(26, 26, 26, 0.08);
}

.product-demo-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.product-demo-thumbs {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.product-demo-thumb {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 94px;
  padding: 12px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
  opacity: 0.72;
  transition: transform var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-demo-thumb:hover,
.product-demo-thumb:focus-visible,
.product-demo-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(26, 26, 26, 0.34);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.08);
  outline: none;
}

.product-demo-thumb-preview {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 68px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.08), rgba(26, 26, 26, 0.02));
}

.product-demo-thumb-preview span {
  display: block;
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.22);
}

.product-demo-thumb-preview span:nth-child(2) {
  width: 74%;
}

.product-demo-thumb-preview span:nth-child(3) {
  width: 54%;
}

.product-demo-thumb-copy {
  min-width: 0;
  display: grid;
  gap: 0;
  align-content: center;
}

.product-demo-thumb-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.product-demo-open {
  margin-top: auto;
}

.product-demo-open-link {
  width: 100%;
  justify-content: center;
}

.product-demo-open-link.is-disabled,
.product-demo-open-link.is-disabled:hover {
  border-color: rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.46);
  color: var(--text-mid);
  box-shadow: none;
  cursor: default;
}

.product-demo-thumb-copy small {
  color: var(--text-mid);
  font-size: 0.74rem;
  line-height: 1.35;
}

.product-demo-stage {
  position: relative;
  height: clamp(720px, 78vh, 920px);
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 24px;
  background: #111;
}

.product-demo-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(14px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.product-demo-pane.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.product-demo-pane iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}

.product-demo-mockup {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--text);
  background: linear-gradient(145deg, #fbfaf7 0%, #edece7 100%);
}

.product-demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.product-demo-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(26, 26, 26, 0.28);
}

.product-demo-browser-bar strong {
  margin-left: auto;
  color: var(--text-mid);
  font-size: 0.76rem;
}

.product-demo-mockup-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 54px);
  align-items: center;
}

.product-demo-mockup-visual {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18));
  background-size: 34px 34px, 34px 34px, auto;
}

.product-demo-mockup-card {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12%;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(26, 26, 26, 0.14);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.product-demo-mockup-card p {
  margin-bottom: 12px;
  color: var(--text-mid);
  font-size: 0.82rem;
}

.product-demo-mockup-card h4,
.product-demo-mockup-copy h4 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  margin-bottom: 18px;
}

.product-demo-marker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-demo-marker-row span {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.08);
  font-size: 0.74rem;
  font-weight: 600;
}

.product-demo-mockup-copy p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
}

.product-demo-orbit {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.72;
}

.product-demo-orbit-a {
  width: 220px;
  height: 220px;
  top: 12%;
  left: 12%;
  background: rgba(184, 169, 212, 0.46);
}

.product-demo-orbit-b {
  width: 170px;
  height: 170px;
  right: 10%;
  bottom: 18%;
  background: rgba(197, 232, 77, 0.42);
}

.product-demo-mockup-neutral .product-demo-orbit-a {
  background: rgba(210, 205, 194, 0.74);
}

.product-demo-mockup-neutral .product-demo-orbit-b {
  background: rgba(245, 242, 235, 0.9);
}

.product-demo-mockup-lime .product-demo-orbit-a {
  background: rgba(197, 232, 77, 0.54);
}

.product-demo-mockup-lime .product-demo-orbit-b {
  background: rgba(255, 255, 255, 0.72);
}

.product-carousel-subhead {
  margin-top: 18px;
}

.product-carousel-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  padding: 18px max(24px, calc((100% - min(86vw, 1180px)) / 2));
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.product-carousel-track::-webkit-scrollbar {
  display: none;
}

.product-media-card {
  position: relative;
  flex: 0 0 min(86vw, 1180px);
  min-height: 0;
  border-radius: 34px;
  border: 1.5px solid rgba(26, 26, 26, 0.08);
  overflow: hidden;
  scroll-snap-align: center;
  opacity: 0.58;
  transform: none;
  transition: opacity 0.35s ease, box-shadow 0.35s ease;
}

.product-media-card::before,
.product-story-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
}

.product-story-visual::before {
  background-image: var(--story-bg);
}

.product-media-card::after,
.product-story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.68));
}

.product-media-card.is-active {
  opacity: 1;
  transform: none;
  box-shadow: 0 26px 90px rgba(26, 26, 26, 0.14);
}

.product-media-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.55fr);
  gap: 18px;
  height: auto;
  padding: 28px;
  align-items: center;
}

.product-media-visual {
  align-self: start;
  min-height: 0;
}

.product-media-screen {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.product-media-screen-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.product-media-screen-main strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: none;
  line-height: 1.15;
}

.product-media-screen-main p,
.product-media-content p,
.highlight-card p,
.product-story-copy p,
.detail-card li,
.product-faq p,
.info-card p {
  color: var(--text-mid);
}

.product-media-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.product-media-image-frame .product-media-tag,
.product-media-image-overlay {
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}

.product-media-image-frame .product-media-tag {
  transform: translateY(-8px);
}

.product-media-image-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(10px);
}

.product-media-image-overlay strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.08;
}

.product-media-image-overlay p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.68;
}

.product-media-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.02) 18%, rgba(12, 12, 12, 0.8) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-media-image-frame:hover::after,
.product-media-image-frame:focus-within::after,
.product-media-image-frame:hover .product-media-tag,
.product-media-image-frame:focus-within .product-media-tag,
.product-media-image-frame:hover .product-media-image-overlay,
.product-media-image-frame:focus-within .product-media-image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.product-media-content {
  max-width: 260px;
  padding: 12px 4px 8px;
}

.product-media-content h3,
.product-story-copy h3,
.detail-card h3,
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.12;
  text-transform: none;
  margin-bottom: 14px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  font-size: 1.3rem;
  transform: translateY(-50%);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--card-bg);
  transform: translateY(-50%) scale(1.04);
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
}

.carousel-arrow-prev {
  left: max(16px, calc(50% - min(86vw, 1180px) / 2 - 72px));
}

.carousel-arrow-next {
  right: max(16px, calc(50% - min(86vw, 1180px) / 2 - 72px));
}

.carousel-thumbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 32px 0;
}

.carousel-thumb {
  width: 76px;
  height: 48px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  opacity: 0.7;
  transition: all var(--transition);
}

.carousel-thumb.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.product-highlights,
.product-story-list,
.product-detail-grid,
.info-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.product-highlights,
.product-detail-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-detail-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.highlight-card,
.detail-card,
.info-card {
  padding: 28px;
  border: 1.5px solid var(--border-light);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.highlight-value {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: none;
}

.highlight-card h3 {
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.product-story-list {
  display: grid;
  gap: 24px;
}

.product-story-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  padding: 28px;
  border: 1.5px solid var(--border-light);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.product-story-card.is-reversed {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.product-story-card.is-reversed .product-story-copy {
  order: 2;
}

.product-story-card.is-reversed .product-story-visual {
  order: 1;
}

.product-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px;
}

.product-story-visual {
  position: relative;
  min-height: 260px;
  border-radius: 26px;
  overflow: hidden;
}

.story-visual-card {
  position: relative;
  z-index: 1;
  max-width: 260px;
  margin: 36px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.story-visual-line {
  width: 68%;
  margin-bottom: 12px;
}

.story-visual-line-wide {
  width: 100%;
}

.story-visual-pill {
  display: inline-block;
  width: 96px;
  height: 34px;
  margin-top: 22px;
  border-radius: var(--radius-pill);
  background: rgba(26, 26, 26, 0.12);
}

.detail-card ul {
  display: grid;
  gap: 12px;
}

.detail-card li {
  position: relative;
  padding-left: 18px;
}

.detail-card li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}

.product-faq {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

.product-faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.product-faq summary {
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.product-faq summary::-webkit-details-marker {
  display: none;
}

.product-faq p {
  margin-top: 12px;
  line-height: 1.8;
}

.product-download-section {
  padding-bottom: 80px;
}

.product-download-card,
.info-hero-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 32px;
  border: 1.5px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(237, 236, 231, 0.96));
  text-align: center;
  box-shadow: 0 22px 70px rgba(26, 26, 26, 0.08);
}

.product-download-card h2,
.info-hero-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

.product-download-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.info-hero {
  padding-top: 40px;
}

.info-card-link {
  margin-top: 18px;
}

.info-card-theme-lavender {
  border-color: rgba(184, 169, 212, 0.6);
  background: linear-gradient(140deg, rgba(240, 236, 247, 0.96), rgba(255, 255, 255, 0.74));
}

.info-card-theme-neutral {
  border-color: rgba(94, 91, 83, 0.24);
  background: linear-gradient(140deg, rgba(251, 250, 247, 0.98), rgba(237, 236, 231, 0.86));
}

.info-card-theme-lime {
  border-color: rgba(159, 191, 46, 0.52);
  background: linear-gradient(140deg, rgba(243, 250, 214, 0.96), rgba(255, 255, 255, 0.76));
}

.info-card-theme-lavender .t-eyebrow,
.info-card-theme-lavender h3 {
  color: #78698f;
}

.info-card-theme-neutral .t-eyebrow,
.info-card-theme-neutral h3 {
  color: #5e5b53;
}

.info-card-theme-lime .t-eyebrow,
.info-card-theme-lime h3 {
  color: #71861f;
}

/* --- Contact Page --- */
.contact-hero,
.contact-section {
  padding: 28px 0 40px;
}

.contact-hero-card {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 36px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(240, 236, 247, 0.96), rgba(244, 243, 239, 0.96) 52%, rgba(243, 250, 214, 0.9));
  text-align: center;
  box-shadow: 0 22px 70px rgba(26, 26, 26, 0.08);
}

.contact-hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-lav), var(--bg), var(--accent-lime));
}

.contact-hero-card > * {
  position: relative;
  z-index: 1;
}

.contact-hero-card h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 18px;
}

.contact-hero-card .section-copy {
  max-width: 680px;
  margin: 0 auto;
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.contact-side {
  display: grid;
  gap: 16px;
}

.contact-side-card,
.contact-form-card {
  padding: 28px;
  border: 1.5px solid var(--border-light);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
}

.contact-side-card h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.12;
  text-transform: none;
}

.contact-side-card p,
.contact-field,
.contact-alert p,
.contact-alert li {
  color: var(--text-mid);
}

.contact-side-card-lavender {
  border-color: rgba(184, 169, 212, 0.54);
  background: linear-gradient(140deg, rgba(240, 236, 247, 0.96), rgba(255, 255, 255, 0.72));
}

.contact-side-card-green {
  border-color: rgba(159, 191, 46, 0.46);
  background: linear-gradient(140deg, rgba(243, 250, 214, 0.96), rgba(255, 255, 255, 0.72));
}

.contact-form-card {
  border-color: rgba(26, 26, 26, 0.14);
  box-shadow: 0 18px 56px rgba(26, 26, 26, 0.06);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field span {
  color: var(--text);
  font-weight: 700;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent-lav);
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(184, 169, 212, 0.18);
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-alert {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
}

.contact-alert strong {
  display: block;
  margin-bottom: 6px;
}

.contact-alert ul {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  list-style: disc;
}

.contact-alert-success {
  border-color: rgba(159, 191, 46, 0.46);
  background: var(--accent-lime-bg);
}

.contact-alert-error {
  border-color: rgba(184, 169, 212, 0.54);
  background: rgba(240, 236, 247, 0.72);
}

/* --- Pricing Page --- */
.page-pricing .site-footer {
  margin-top: 0;
}

.pricing-hero {
  padding: 40px 32px 26px;
}

.pricing-hero-card {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 62px);
  border: 1.5px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 18%, rgba(197, 232, 77, 0.28), transparent 24%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.86), rgba(237, 236, 231, 0.94));
  text-align: center;
  box-shadow: 0 22px 70px rgba(26, 26, 26, 0.08);
}

.pricing-hero-card h1 {
  max-width: 720px;
  margin: 0 auto 18px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

.pricing-product-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  text-align: left;
}

.pricing-product-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
  min-height: 138px;
  padding: 22px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.pricing-product-link:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 26, 26, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(26, 26, 26, 0.08);
}

.pricing-product-logo {
  grid-row: span 2;
  width: clamp(62px, 5.8vw, 78px);
  height: clamp(62px, 5.8vw, 78px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.pricing-product-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pricing-product-name {
  font-size: clamp(1.08rem, 1.35vw, 1.36rem);
  font-weight: 800;
  line-height: 1.2;
}

.pricing-product-link small {
  color: var(--text-mid);
  font-size: clamp(0.92rem, 1vw, 1.02rem);
  line-height: 1.35;
}

.pricing-product-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 34px 32px 56px;
  scroll-margin-top: 88px;
}

.pricing-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 18vw, 260px);
  align-items: stretch;
  gap: clamp(18px, 2.2vw, 32px);
  margin-bottom: 24px;
}

.pricing-section-main {
  min-width: 0;
}

.pricing-section-title-row {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin-bottom: 14px;
}

.pricing-section-title-copy {
  min-width: 0;
}

.pricing-money-back-badge {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  max-width: 260px;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-money-back-badge img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 170px;
  object-fit: contain;
}

.pricing-section-logo {
  width: clamp(58px, 5vw, 76px);
  height: clamp(58px, 5vw, 76px);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid rgba(26, 26, 26, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.pricing-section-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pricing-section-head h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.pricing-section-title-copy p {
  margin-top: 6px;
  color: var(--text-mid);
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  font-weight: 800;
  line-height: 1.35;
}

.pricing-section-head .section-copy {
  max-width: none;
  margin: 0;
}

.pricing-section-meta {
  justify-self: end;
  display: grid;
  gap: 6px;
  max-width: 310px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.pricing-section-meta span {
  font-weight: 800;
}

.pricing-section-meta small {
  color: var(--text-mid);
  line-height: 1.45;
}

.pricing-billing-toggle {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 6px;
  border: 1.5px solid rgba(26, 26, 26, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.06);
  isolation: isolate;
}

.pricing-billing-slider {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(50% - 6px);
  height: calc(100% - 12px);
  border-radius: var(--radius-pill);
  background: var(--text);
  box-shadow: 0 10px 22px rgba(26, 26, 26, 0.14);
  transition: transform 240ms ease;
  z-index: 0;
}

.pricing-product-section[data-billing="lifetime"] .pricing-billing-slider {
  transform: translateX(100%);
}

.pricing-billing-toggle button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-mid);
  font-weight: 800;
  transition: color 220ms ease;
}

.pricing-billing-toggle button.is-active {
  color: var(--card-bg);
}

.pricing-billing-toggle button:focus-visible {
  outline: 2px solid rgba(26, 26, 26, 0.34);
  outline-offset: 1px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.pricing-conversion-block {
  margin-top: 30px;
}

.pricing-conversion-head {
  margin-top: 8px;
}

.pricing-conversion-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.pricing-story-list {
  display: grid;
  gap: 10px;
}

.pricing-story-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.pricing-story-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  background: rgba(197, 232, 77, 0.22);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 850;
}

.pricing-story-copy {
  min-width: 0;
}

.pricing-story-copy .t-eyebrow {
  margin-bottom: 8px;
  font-size: 0.66rem;
}

.pricing-story-copy h3 {
  margin-bottom: 8px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.18;
}

.pricing-story-copy p:last-child {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.48;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  min-height: 408px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1.5px solid rgba(26, 26, 26, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
}

.pricing-card-featured {
  border-color: var(--text);
  background:
    radial-gradient(circle at 82% 10%, rgba(197, 232, 77, 0.24), transparent 32%),
    linear-gradient(145deg, #272727, #111111);
  color: #fff;
}

.pricing-card-pending {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.pricing-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-lime);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 850;
}

.pricing-card-head {
  min-height: 102px;
  padding-right: 68px;
}

.pricing-card-head h3 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.05;
}

.pricing-card-head p {
  color: var(--text-mid);
  font-size: 0.86rem;
  line-height: 1.42;
}

.pricing-card-featured .pricing-card-head p,
.pricing-card-featured .pricing-price-term,
.pricing-card-featured .pricing-license-line {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-price-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 16px 0 6px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.3vw, 3.45rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.pricing-price-term {
  padding-bottom: 8px;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing-license-line {
  min-height: 30px;
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 800;
}

.pricing-buy {
  justify-content: center;
  width: min(180px, 100%);
  min-height: 48px;
  margin-bottom: 26px;
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.pricing-buy:hover {
  background: #333;
  color: #fff;
}

.pricing-card-featured .pricing-buy {
  border-color: var(--accent-lime-dark);
  background: var(--accent-lime);
  color: var(--text);
}

.pricing-card-featured .pricing-buy:hover {
  background: #d5f35f;
  color: var(--text);
}

.pricing-buy-disabled,
.pricing-buy-disabled:hover {
  border-color: rgba(26, 26, 26, 0.16);
  background: rgba(26, 26, 26, 0.08);
  color: var(--text-mid);
  cursor: default;
}

.pricing-card-featured .pricing-buy-disabled,
.pricing-card-featured .pricing-buy-disabled:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}

.pricing-feature-list {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.38;
}

.pricing-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 900;
}

/* --- Docs Pages --- */
.docs-hero,
.docs-shell {
  padding: 32px 0 40px;
}

.docs-hero-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 32px;
  border: 1.5px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.84), rgba(237, 236, 231, 0.96));
  text-align: center;
  box-shadow: 0 22px 70px rgba(26, 26, 26, 0.08);
}

.docs-hero-card h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

.page-docs.page-theme-lavender .docs-hero-card {
  border-color: rgba(184, 169, 212, 0.62);
  background: linear-gradient(135deg, #fbf8ff 0%, #f0ecf7 54%, #d8c9f0 100%);
}

.page-docs.page-theme-neutral .docs-hero-card {
  border-color: rgba(94, 91, 83, 0.24);
  background: linear-gradient(135deg, #fbfaf7 0%, #f0eee8 54%, #dfdacf 100%);
}

.page-docs.page-theme-lime .docs-hero-card {
  border-color: rgba(159, 191, 46, 0.52);
  background: linear-gradient(135deg, #fbfff0 0%, #f3fad6 54%, #d8ed72 100%);
}

.docs-layout {
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 980px);
  gap: 40px;
  align-items: start;
}

.docs-sidebar {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  align-self: start;
  display: grid;
  gap: 16px;
}

.docs-sidebar-card,
.docs-intro-card,
.docs-section-card,
.docs-video-card,
.docs-support-card {
  padding: 28px 24px;
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.docs-sidebar-card {
  position: static !important;
  inset: auto !important;
  top: auto !important;
}

.docs-toc {
  display: grid;
  gap: 12px;
}

.docs-toc-group {
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.docs-toc-sublist {
  display: grid;
  gap: 6px;
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.docs-toc-summary {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.docs-toc-summary::-webkit-details-marker {
  display: none;
}

.docs-toc-caret {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--text-light);
  transition: transform var(--transition), color var(--transition);
}

.docs-toc-group[open] .docs-toc-caret {
  transform: rotate(90deg);
  color: var(--text);
}

.docs-toc-summary-copy {
  display: grid;
  gap: 4px;
}

.docs-toc-summary-title {
  font-weight: 600;
  line-height: 1.4;
}

.docs-toc-link {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--text-mid);
  line-height: 1.45;
  transition: background var(--transition), color var(--transition);
}

.docs-toc-link:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.docs-toc-link-step {
  font-size: 0.84rem;
}

.docs-toc-link span:first-child,
.docs-step-index {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.docs-sidebar-note {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-mid);
}

.docs-content {
  display: grid;
  gap: 24px;
}

.docs-guide-card {
  display: grid;
  gap: 14px;
}

.docs-guide-head {
  padding: 30px 28px;
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.docs-guide-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3vw, 2.7rem);
  line-height: 1.06;
  text-transform: none;
  margin-bottom: 12px;
}

.docs-guide-head p {
  color: var(--text-mid);
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.82;
}

.docs-guide-sections {
  display: grid;
  gap: 14px;
}

.docs-intro-card h2,
.docs-support-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.16;
  text-transform: none;
  margin-bottom: 14px;
}

.docs-step-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.26;
  margin-bottom: 12px;
}

.docs-intro-card p,
.docs-support-card p,
.docs-prose p,
.docs-prose li {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 1.82;
}

.docs-guide-head strong,
.docs-intro-card strong,
.docs-support-card strong,
.docs-prose strong,
.docs-sidebar-note strong {
  color: var(--text);
  font-weight: 700;
}

.docs-section-card {
  padding: 28px 28px 26px;
  scroll-margin-top: 28px;
}

.docs-step-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.docs-step-summary::-webkit-details-marker {
  display: none;
}

.docs-step-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-width: 0;
  margin-bottom: 0;
}

.docs-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.docs-step-title {
  min-width: 0;
  color: var(--text);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.22;
}

.docs-step-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
}

.docs-step-toggle::before {
  content: '+';
  transform: translateY(-1px);
}

.docs-section-card[open] .docs-step-toggle::before {
  content: '-';
}

.docs-step-body {
  margin-top: 16px;
}

.docs-prose {
  display: grid;
  gap: 10px;
}

.docs-prose ul {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.docs-prose li {
  position: relative;
  padding-left: 18px;
}

.docs-prose li::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
}

.docs-media-card {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  background: var(--card-bg);
}

.docs-media-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.docs-step-video {
  margin-top: 18px;
}

.docs-video-frame {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  aspect-ratio: 16 / 9;
  background: #111;
}

.docs-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.page-theme-lavender .product-chip,
.page-theme-lavender .carousel-thumb.is-active,
.page-theme-lavender .product-demo-thumb.is-active {
  background: rgba(240, 236, 247, 0.92);
  border-color: rgba(184, 169, 212, 0.62);
}

.page-theme-lavender .highlight-value {
  color: #78698f;
}

.page-theme-neutral .product-chip,
.page-theme-neutral .carousel-thumb.is-active,
.page-theme-neutral .product-demo-thumb.is-active {
  background: rgba(240, 238, 232, 0.96);
  border-color: rgba(122, 122, 122, 0.2);
}

.page-theme-neutral .highlight-value {
  color: #5e5b53;
}

.page-theme-lime .product-chip,
.page-theme-lime .carousel-thumb.is-active,
.page-theme-lime .product-demo-thumb.is-active {
  background: rgba(243, 250, 214, 0.96);
  border-color: rgba(159, 191, 46, 0.48);
}

.page-theme-lime .highlight-value {
  color: #71861f;
}

@keyframes drift-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 48px 32px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 280px;
  line-height: 1.5;
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 16px;
}

.footer-contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color var(--transition);
}

.footer-contact-links a:hover {
  color: var(--text);
}

.footer-contact-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-mid);
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  padding: 4px 0;
  color: var(--text-mid);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1400px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- Utility --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Decorative shared elements --- */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-lav { background: var(--accent-lav); }
.dot-lime { background: var(--accent-lime); }
.dot-black { background: var(--text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.divider {
  border: none;
  border-top: 1px dashed var(--border-light);
  margin: 24px 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }

  .product-hero-grid,
  .product-hero-grid.has-live-hero,
  .product-story-card,
  .product-story-card.is-reversed {
    grid-template-columns: 1fr;
  }

  .product-hero-grid.has-live-hero {
    gap: 24px;
  }

  .product-hero-grid.has-live-hero .product-hero-copy {
    max-width: none;
  }

  .product-hero-title-row {
    gap: 12px;
  }

  .product-hero-media {
    justify-content: flex-start;
  }

  .product-media-content {
    max-width: none;
  }

  .product-highlights,
  .product-detail-grid,
  .info-grid,
  .blog-index,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-index-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static !important;
  }

  .product-media-card {
    flex-basis: min(90vw, 980px);
  }

  .product-demo-viewer {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .pricing-product-nav,
  .pricing-section-head {
    grid-template-columns: 1fr;
  }

  .pricing-money-back-badge {
    width: clamp(150px, 30vw, 210px);
    max-width: none;
    min-height: 0;
    justify-self: start;
  }

  .pricing-money-back-badge img {
    height: auto;
    max-height: none;
  }

  .pricing-section-meta {
    justify-self: start;
  }

  .product-demo-stage {
    height: clamp(680px, 80vh, 880px);
    min-height: 680px;
  }

  .carousel-arrow-prev {
    left: 16px;
  }

  .carousel-arrow-next {
    right: 16px;
  }
}

@media (max-width: 768px) {
  .site-header { padding: 0 16px; }
  .container { padding: 0 16px; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav > li > a,
  .main-nav > li > button {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; }

  .header-actions .dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: auto;
    right: 0;
    min-width: min(330px, calc(100vw - 32px));
    padding: 8px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
  }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .blog-index,
  .blog-index-related {
    grid-template-columns: 1fr;
  }

  .blog-card {
    aspect-ratio: auto;
  }

  .blog-card-cover {
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }

  .blog-hero-card {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .article-cover {
    border-radius: 22px;
  }

  .article-cover img {
    aspect-ratio: 16 / 11;
  }

  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .section { padding: 48px 0; }

  .header-pricing {
    padding: 10px 14px;
    font-size: 0.75rem;
  }

  .product-hero,
  .blog-hero,
  .blog-index,
  .article-shell,
  .blog-related,
  .product-section-head,
  .product-highlights,
  .product-hero-tags,
  .product-story-list,
  .product-detail-grid,
  .product-faq,
  .carousel-thumbs,
  .product-demo-viewer,
  .info-grid,
  .contact-layout,
  .docs-layout,
  .pricing-hero,
  .pricing-product-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-demo-viewer {
    max-width: calc(100% - 24px);
    padding: 14px;
    border-radius: 24px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-demo-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .product-demo-open {
    margin-top: 0;
  }

  .product-demo-thumb {
    flex: 0 0 min(240px, 72vw);
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 86px;
    padding: 10px;
    border-radius: 18px;
    scroll-snap-align: start;
  }

  .product-demo-thumb-preview {
    min-height: 58px;
  }

  .product-demo-thumb-copy strong {
    font-size: 0.82rem;
  }

  .product-demo-thumb-copy small {
    display: block;
    font-size: 0.68rem;
  }

  .product-demo-stage {
    height: clamp(640px, 78vh, 820px);
    min-height: 640px;
    border-radius: 20px;
  }

  .product-demo-mockup-body {
    grid-template-columns: 1fr;
  }

  .product-demo-mockup-visual {
    min-height: 300px;
  }

  .product-hero {
    padding-top: 24px;
  }

  .product-hero-panel,
  .product-download-card,
  .info-hero-card,
  .contact-hero-card,
  .docs-hero-card,
  .pricing-hero-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .product-device,
  .product-media-card,
  .product-story-card,
  .highlight-card,
  .detail-card,
  .info-card,
  .contact-side-card,
  .contact-form-card,
  .pricing-card,
  .docs-sidebar-card,
  .docs-intro-card,
  .docs-section-card,
  .docs-video-card,
  .docs-support-card {
    border-radius: 24px;
  }

  .product-device-stage,
  .product-media-screen,
  .product-media-card-inner {
    grid-template-columns: 1fr;
  }

  .product-hero-title-row {
    gap: 10px;
    margin-bottom: 14px;
  }

  .product-hero-logo {
    width: 74px;
    border-radius: 20px;
  }

  .product-hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.15rem);
  }

  .product-carousel-track {
    gap: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .product-media-card {
    flex-basis: 92vw;
    min-height: 0;
  }

  .product-media-content {
    max-width: none;
  }

  .product-media-image-frame.has-media-overlay .product-media-image-overlay {
    left: 12px;
    right: 35%;
    bottom: 12px;
  }

  .product-media-overlay-item-anchored {
    top: 8%;
    right: 3.5%;
    width: 40%;
    height: 78%;
  }

  .product-media-overlay-item-float-a {
    top: -12%;
    left: 24%;
    width: 82%;
    height: 66%;
  }

  .product-media-overlay-item-float-b {
    left: 8%;
    bottom: -18%;
    width: 76%;
    height: 62%;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
  }

  .product-highlights,
  .product-detail-grid,
  .info-grid,
  .contact-layout,
  .pricing-product-nav {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: 0;
  }

  .pricing-card-head {
    min-height: 0;
  }

  .product-detail-grid-2 {
    grid-template-columns: 1fr;
  }

  .product-download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-layout {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .btn { padding: 10px 22px; }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
