/* ═══════════════════════════════════════════════════
   PRODUCT PAGE TEMPLATE
   Shared by: Finance, Medic, Legal, GDPR, AI...
   Each page overrides --accent / --accent-2 / --accent-glow
   ═══════════════════════════════════════════════════ */

/* ───── PRODUCT HERO ───── */
.product-hero {
  min-height: 92vh;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60vw; height: 100vh;
  background:
    radial-gradient(circle at 70% 30%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 90% 70%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content { position: relative; z-index: 2; }

.product-breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.product-breadcrumb a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.product-breadcrumb a:hover { color: var(--accent); }
.product-breadcrumb .arrow { color: rgba(255,255,255,0.55); }
.product-breadcrumb .current { color: var(--accent); }

.product-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  animation: fadeUp 0.7s 0.1s ease both;
}
.product-title .brand-prefix {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 8px;
}
.product-title .accent-word {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-subtitle {
  margin-top: 28px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  font-weight: 300;
  max-width: 540px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.product-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeUp 0.7s 0.3s ease both;
}
.meta-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}
.meta-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.product-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 44px;
  animation: fadeUp 0.7s 0.4s ease both;
}

.price-tag {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  animation: fadeUp 0.7s 0.5s ease both;
}
.price-tag strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ───── HERO VISUAL (right side) ───── */
.hero-visual {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s 0.3s ease both;
}

.mock-window {
  background: linear-gradient(135deg, #1a1a24 0%, #14141e 100%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s ease;
}
.mock-window:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(2deg);
}

.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}
.mock-titlebar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.mock-titlebar .dot:nth-child(1) { background: #ff5f57; }
.mock-titlebar .dot:nth-child(2) { background: #febc2e; }
.mock-titlebar .dot:nth-child(3) { background: #28c840; }
.mock-titlebar .file-name {
  margin-left: 16px;
  font-family: var(--font-mono, monospace);
}

.mock-ribbon {
  display: flex; gap: 4px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.mock-ribbon-tab {
  padding: 6px 14px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  border-radius: 6px;
}
.mock-ribbon-tab.active {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.mock-content {
  padding: 24px;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  min-height: 280px;
  position: relative;
}

/* Floating label bubble */
.floating-bubble {
  position: absolute;
  background: var(--accent);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 14px 40px var(--accent-glow);
  animation: bobble 4s ease-in-out infinite;
  z-index: 3;
  /* Decorative only — must never intercept clicks on the video/mock
     beneath (e.g. the YouTube fullscreen button or title link). */
  pointer-events: none;
}
.floating-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px; left: 30px;
  width: 18px; height: 18px;
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes bobble {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

/* ───── PROBLEM/SOLUTION ───── */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.section-split-card {
  padding: 48px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.section-split-card.problem::before {
  content: '×';
  position: absolute;
  top: -40px; right: -10px;
  font-family: var(--font-display);
  font-size: 18rem;
  font-weight: 900;
  color: rgba(255,77,109,0.05);
  line-height: 1;
  pointer-events: none;
}
.section-split-card.solution::before {
  content: '✓';
  position: absolute;
  top: -50px; right: -10px;
  font-family: var(--font-display);
  font-size: 16rem;
  font-weight: 900;
  color: color-mix(in srgb, var(--accent) 8%, transparent);
  line-height: 1;
  pointer-events: none;
}

.split-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.split-tag.bad { background: rgba(255,77,109,0.12); color: var(--coral); }
.split-tag.good { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

.split-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.split-list {
  list-style: none;
  position: relative; z-index: 1;
}
.split-list li {
  padding: 14px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.split-list li:last-child { border-bottom: none; }
.split-list li::before {
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 700;
  font-size: 0.9rem;
}
.section-split-card.problem .split-list li::before {
  content: '−';
  color: var(--coral);
}
.section-split-card.solution .split-list li::before {
  content: '+';
  color: var(--accent);
}

/* ───── FEATURES BENTO ───── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
  margin-top: 56px;
}
.bento-cell {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.bento-cell:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: rgba(255,255,255,0.05);
}
.bento-cell.wide { grid-column: span 2; }
.bento-cell.tall { grid-row: span 2; }
.bento-cell.featured {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--ink);
  border: none;
}
.bento-cell.featured .bento-h,
.bento-cell.featured .bento-p { color: var(--ink); }

.bento-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.bento-cell.featured .bento-icon { background: rgba(10,10,15,0.15); }

.bento-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.bento-p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* big stat in bento */
.bento-bignum {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5rem;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--accent);
}
.bento-cell.featured .bento-bignum { color: var(--ink); }

/* ───── Bento bottom split (For-firms callout + 3 cards) ───── */
.bento-tail {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.bento-tail-left {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, color-mix(in srgb, var(--accent-2) 5%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius);
  padding: 36px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.btl-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.btl-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.btl-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}
.btl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.btl-list li {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
}
.btl-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.btl-cta:hover { color: #fff; }
.bento-tail-right { display: flex; flex-direction: column; }
.bento--tail {
  margin-top: 0;
  grid-template-columns: repeat(2, 1fr);
}
.bento--tail .bento-cell.wide { grid-column: span 2; }
@media (max-width: 900px) {
  .bento-tail { grid-template-columns: 1fr; }
  .bento--tail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bento--tail { grid-template-columns: 1fr; }
  .bento--tail .bento-cell.wide { grid-column: span 1; }
}

/* ───── WORKFLOW ───── */
.workflow {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.workflow-step {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  background: rgba(255,255,255,0.01);
  transition: background 0.3s;
}
.workflow-step:last-child { border-right: none; }
.workflow-step:hover { background: rgba(255,255,255,0.03); }

.workflow-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.workflow-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.workflow-p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

/* connector arrow */
.workflow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--ink);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ───── FAQ ───── */
.faq {
  max-width: 960px;
  margin: 56px auto 0;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  cursor: none;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.faq-q .plus {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.3s, border-color 0.3s;
}
.faq-item.open .plus {
  transform: rotate(45deg);
  border-color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin 0.3s;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 280px;
  margin-top: 16px;
}

/* ───── CTA BAND (themed per product) ───── */
.product-cta-band {
  margin: 0 48px;
  border-radius: 28px;
  padding: 80px 60px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.product-cta-band::before {
  content: attr(data-watermark);
  position: absolute;
  bottom: -8vw;
  right: -2vw;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22vw;
  letter-spacing: -0.05em;
  color: rgba(10,10,15,0.07);
  line-height: 0.85;
  pointer-events: none;
  white-space: nowrap;
}
.cta-h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  position: relative;
}
.cta-p {
  font-size: 1.05rem;
  color: rgba(10,10,15,0.7);
  margin-bottom: 0;
  max-width: 460px;
  position: relative;
}
.cta-actions {
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.btn-cta-dark {
  background: var(--ink);
  color: var(--accent);
  padding: 18px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.btn-cta-light {
  background: rgba(10,10,15,0.08);
  color: var(--ink);
  padding: 18px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border: 1px solid rgba(10,10,15,0.15);
  transition: background 0.2s;
}
.btn-cta-light:hover { background: rgba(10,10,15,0.15); }

/* ───── RESPONSIVE ───── */
@media (max-width: 1100px) {
  .product-hero { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { display: none; }
  .section-split { grid-template-columns: 1fr; gap: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.wide, .bento-cell.tall { grid-column: span 2; grid-row: auto; }
  .workflow { grid-template-columns: 1fr 1fr; }
  .workflow-step:nth-child(2)::after { display: none; }
  .workflow-step:nth-child(2) { border-right: none; }
  .workflow-step:nth-child(1), .workflow-step:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .product-cta-band {
    grid-template-columns: 1fr;
    padding: 50px 40px;
    margin: 0 24px;
  }
}
@media (max-width: 700px) {
  .product-hero { padding: 100px 24px 60px; }
  .bento { grid-template-columns: 1fr; }
  .bento-cell.wide, .bento-cell.tall { grid-column: span 1; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .workflow-step:last-child { border-bottom: none; }
  .workflow-step::after { display: none !important; }
  .section-split-card { padding: 32px 24px; }
}
