/* ═══════════════════════════════════════════════════════════
   CXOsignal — product-page.css
   Shared styles for /products/*.html marketing pages.
   Imports main.css token system; do not duplicate tokens here.
   ═══════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────── */
.product-page { padding-top: var(--nav-height); }

/* ── Shared nav (reused from index.html about-nav) ─────── */
.about-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 200;
}
.about-nav > a, .nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  cursor: pointer;
}
.site-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.about-nav img { height: 36px; display: block; }
.about-nav-links { display: flex; align-items: center; gap: 24px; }
.about-nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.about-nav-links a:hover { color: var(--ado-blue); border-bottom-color: var(--ado-blue); }
.about-nav-links a.btn-ghost-sm {
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.about-nav-links a.btn-ghost-sm:hover { border-color: var(--ado-blue); color: var(--ado-blue); }
.about-nav-links [data-licensed-only] { display: none; }
.nav-link-with-badge { display: inline-flex; align-items: center; gap: 5px; }
.linkedin-mark { width: 16px; height: 16px; flex-shrink: 0; border-radius: 3px; }
/* ── Hamburger button ───────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ado-gray-80);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Mobile drawer ──────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0 20px;
  z-index: 199;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.nav-drawer a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ado-gray-80);
  padding: 13px 24px;
  border-bottom: none;
  transition: background 0.12s;
}
.nav-drawer a:hover { background: var(--ado-gray-20); }
.nav-drawer a.btn-ghost-sm {
  margin: 8px 24px 0;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  justify-content: center;
}
.nav-drawer [data-licensed-only] { display: none; }
.nav-drawer.open { display: block; }

/* ── Support dropdown (public nav) ─────────────────────── */
.about-nav-links .nav-dropdown { position: relative; }
.about-nav-links .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 0 1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.about-nav-links .nav-dropdown-trigger:hover { color: var(--ado-blue); border-bottom-color: var(--ado-blue); }
.about-nav-links .nav-dropdown-trigger .dropdown-chevron { color: var(--text-muted); transition: transform 0.15s; }
.about-nav-links .nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.about-nav-links .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  min-width: 160px;
  overflow: hidden;
  z-index: 300;
}
.about-nav-links .nav-dropdown.open .nav-dropdown-menu { display: block; }
.about-nav-links .nav-dropdown-menu a {
  display: block;
  font-size: 14px;
  padding: 10px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.about-nav-links .nav-dropdown-menu a:last-child { border-bottom: none; }
.about-nav-links .nav-dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--link);
  border-bottom-color: var(--border);
}

/* ── Mobile drawer support group ────────────────────────── */
.nav-drawer-section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ado-gray-60);
  padding: 12px 24px 4px;
}
.nav-drawer .nav-drawer-child { padding-left: 36px; }

/* Animate hamburger → × when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hide-mobile { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── In-page section nav ────────────────────────────────── */
.page-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.page-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.page-nav a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.page-nav a:hover { color: var(--ado-blue); }
.page-nav a.active { color: var(--ado-blue); border-bottom-color: var(--ado-blue); }
.page-nav a:first-child { padding-left: 0; }

/* ── Section layout ─────────────────────────────────────── */
.pp-section {
  padding: 80px 24px;
  scroll-margin-top: var(--nav-height);
}
.pp-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.pp-section--subtle { background: var(--bg-subtle); }
.pp-section--dark   { background: var(--bg-dark); color: #fff; }

/* ── Eyebrow ─────────────────────────────────────────────── */
.pp-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ado-blue);
  margin-bottom: 12px;
}

/* ── Hero ────────────────────────────────────────────────── */
.pp-hero {
  padding: 72px 24px 64px;
  background: var(--bg);
  scroll-margin-top: var(--nav-height);
}
.pp-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.pp-hero-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.pp-hero-icon {
  /* To swap the product icon: replace the src of the <img> inside */
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.pp-hero-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pp-hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pp-hero-tagline {
  font-size: 15px;
  font-weight: 500;
  color: var(--ado-blue);
  margin-top: 4px;
}
.pp-hero-body {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.pp-hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  padding: 20px 24px;
  background: var(--ado-blue-tint);
  border-radius: var(--radius-md);
}
.pp-hero-cta-text {
  flex: 1;
  min-width: 220px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
}
.pp-hero-cta-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

/* ── Hero screenshot placeholder ────────────────────────── */
.pp-screenshot {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.pp-screenshot img { display: block; width: 100%; height: auto; }
.pp-screenshot-placeholder {
  /* Replace this entire div with an <img> when the real screenshot is ready */
  aspect-ratio: 16 / 9;
  background: var(--ado-gray-20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ado-gray-60);
}
.pp-screenshot-placeholder svg { opacity: 0.4; }
.pp-screenshot-placeholder span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ── Questions section ──────────────────────────────────── */
.pp-questions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.pp-question-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pp-question-item::before {
  content: "?";
  font-weight: 700;
  color: var(--ado-blue);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Features section ───────────────────────────────────── */
.pp-features { display: flex; flex-direction: column; gap: 80px; margin-top: 56px; }
.pp-feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.pp-feature:nth-child(even) { direction: rtl; }
.pp-feature:nth-child(even) > * { direction: ltr; }
.pp-feature-text {}
.pp-feature-number {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ado-gray-50);
  margin-bottom: 12px;
}
.pp-feature-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pp-feature-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
/* Feature screenshot */
.pp-feature-shot {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.pp-feature-shot img {
  display: block;
  width: 100%;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.pp-feature-shot:hover img { transform: scale(1.02); }
.pp-feature-shot-placeholder {
  /* Replace with <img> when real screenshots are ready */
  aspect-ratio: 4 / 3;
  background: var(--ado-gray-20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ado-gray-60);
}
.pp-feature-shot-placeholder svg { opacity: 0.35; }
.pp-feature-shot-placeholder span { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }

/* Feature image lightbox — uses native <dialog> / top layer */
.pp-lightbox-dialog {
  background: transparent;
  border: none;
  padding: 0;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-out;
}
.pp-lightbox-dialog::backdrop {
  background: rgba(0,0,0,0.85);
  cursor: zoom-out;
}
.pp-lightbox-dialog img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  cursor: zoom-out;
}

/* ── Deployment section ─────────────────────────────────── */
.pp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
  max-width: 680px;
}
.pp-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.pp-step:last-child { border-bottom: none; }
.pp-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ado-blue-tint);
  color: var(--ado-blue);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pp-step-content {}
.pp-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 4px;
}
.pp-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.pp-platforms {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pp-platforms-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pp-platform-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CTA band (product pages use a simpler inline version) ── */
.pp-cta {
  background: var(--bg-dark);
  padding: 80px 24px;
  text-align: center;
}
.pp-cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pp-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

/* ── Section headlines ──────────────────────────────────── */
.pp-section-headline {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pp-section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pp-pricing {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.pp-pricing-card {
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pp-pricing-card--featured {
  border-color: var(--ado-blue);
  box-shadow: 0 4px 20px rgba(12,112,216,0.12);
}
.pp-pricing-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ado-blue);
  background: rgba(12,112,216,0.08);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 4px;
}
.pp-pricing-plan {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.pp-pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.pp-pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}
.pp-pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.pp-hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0 0 0 24px;
}
.pp-hero-list li {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pp-hero-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%230C70D8' stroke-width='1.2'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-5' stroke='%230C70D8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.pp-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex: 1;
}
.pp-pricing-features li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.pp-pricing-features li::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%230C70D8' stroke-width='1.2'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-5' stroke='%230C70D8' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.pp-pricing-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--ado-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
}
.pp-pricing-cta:hover { background: var(--ado-blue-dark); color: #fff; }
.pp-pricing-cta--ghost {
  background: transparent;
  color: var(--ado-blue);
  border: 1px solid var(--ado-blue);
}
.pp-pricing-cta--ghost:hover { background: rgba(12,112,216,0.06); color: var(--ado-blue); }
.pp-pricing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pp-pricing-actions .pp-pricing-cta { flex: 1; min-width: 120px; }
.pp-pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .pp-feature { grid-template-columns: 1fr; gap: 32px; direction: ltr !important; }
  .pp-feature:nth-child(even) { direction: ltr; }
  .pp-feature-shot { order: -1; }
}
@media (max-width: 640px) {
  .pp-hero { padding: 48px 20px 48px; }
  .pp-section { padding: 56px 20px; }
  .pp-hero-brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-nav { padding: 0 20px; overflow-x: auto; }
}

/* ── Sidebar layout ─────────────────────────────────────── */
:root { --sidebar-width: 240px; }

.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  background: var(--bg-subtle);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-heading {
  display: block;
  padding: 6px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: block;
  padding: 6px 20px;
  font-size: 14px;
  color: var(--text);
  border-left: 2px solid transparent;
  transition: background 0.1s, border-color 0.1s;
}
.sidebar-nav li a:hover {
  background: var(--ado-gray-30);
  color: var(--text-title);
  text-decoration: none;
}
.sidebar-nav li a.active {
  color: var(--ado-blue);
  border-left-color: var(--ado-blue);
  background: var(--ado-blue-tint);
  font-weight: 600;
}
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
}

/* ── Page Breadcrumb Bar ───────────────────────────────────── */
.page-breadcrumb-bar {
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
  padding: 8px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
}
.page-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--link); }
.bc-sep { margin: 0 6px; color: var(--ado-gray-50); }
.bc-current { color: var(--text); }

/* ── Footer offset (mirrors app.css rule for pages with a sidebar) ── */
body:has(.sidebar) .site-footer { margin-left: var(--sidebar-width); }
@media (max-width: 900px) { body:has(.sidebar) .site-footer { margin-left: 0; } }
