/* Product pages shared styles */

.product-hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.product-hero-howdify,
.product-hero-gopledge,
.product-hero-tracebook { background: linear-gradient(180deg, #f4f3fb 0%, #fbfbfe 100%); }

.product-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.wordmark-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* Checkout mock */
.checkout-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(15,30,60,.18), 0 8px 20px -8px rgba(15,30,60,.1);
  padding: 24px;
  max-width: 380px;
  margin-left: auto;
}
.checkout-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.checkout-mock-label { font-size: 13px; font-weight: 600; color: var(--text); }
.checkout-mock-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--teal); background: var(--teal-light); padding: 3px 9px; border-radius: 100px; }
.checkout-mock-invoice { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; }
.checkout-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 14px; color: var(--text-muted); padding: 9px 0; border-bottom: 1px solid var(--border); }
.checkout-row small { display: block; font-size: 11px; color: var(--purple); margin-top: 2px; }
.checkout-total { font-weight: 700; color: var(--text); font-size: 16px; border-bottom: none; padding-top: 14px; }
.checkout-mock-btn { width: 100%; margin-top: 16px; padding: 12px; border: none; border-radius: var(--radius); background: var(--text); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; cursor: default; }
.checkout-mock-foot { text-align: center; font-size: 11px; color: var(--text-faint); margin-top: 14px; }

/* Flow diagram */
.flow { display: flex; align-items: stretch; gap: 0; }
.flow-step { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.flow-num { width: 30px; height: 30px; border-radius: 50%; background: var(--purple-light); color: var(--purple); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.flow-step h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.flow-step p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.flow-arrow { display: flex; align-items: center; padding: 0 12px; color: var(--text-faint); font-size: 18px; flex-shrink: 0; }

/* Stack card */
.stack-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; box-shadow: 0 4px 24px rgba(0,0,0,.05); }
.stack-card-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 8px; }
.stack-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.stack-item:last-child { border-bottom: none; }
.stack-item span { font-size: 13px; color: var(--text-muted); }
.stack-item strong { font-size: 14px; font-weight: 600; color: var(--text); }

.feature-blue { background: var(--blue-light); color: var(--blue); }
.feature-green { background: var(--teal-light); color: var(--teal); }
.wordmark-icon-green { background: var(--teal); }

/* Marketing hero */
.product-hero-marketing { background: linear-gradient(180deg, #eef7f2 0%, #fbfdfc 100%); }
.product-hero-marketing .product-built-by { color: var(--teal); background: var(--teal-light); }
.product-hero h1 em { color: var(--teal); font-style: normal; }

/* KPI mock */
.kpi-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(15,40,30,.16), 0 8px 20px -8px rgba(15,40,30,.1);
  padding: 22px;
  max-width: 400px;
  margin-left: auto;
}
.kpi-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.kpi-mock-title { font-size: 13px; font-weight: 600; color: var(--text); }
.kpi-mock-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--teal); }
.kpi-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.kpi-revenue { background: var(--teal); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 12px; }
.kpi-revenue-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kpi-revenue-top > span:first-child { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.kpi-revenue-badge { font-size: 12px; font-weight: 700; color: var(--teal); background: #fff; padding: 2px 9px; border-radius: 100px; }
.kpi-revenue-flow { display: flex; align-items: baseline; gap: 10px; }
.kpi-rev-from { font-size: 20px; font-weight: 600; color: rgba(255,255,255,.6); }
.kpi-rev-arrow { font-size: 16px; color: rgba(255,255,255,.6); }
.kpi-rev-to { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 0; }
.kpi-tile { background: var(--bg-alt); border-radius: var(--radius-md); padding: 14px 16px; }
.kpi-val { display: block; font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.kpi-lbl { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.kpi-bench { display: flex; flex-direction: column; gap: 6px; }
.kpi-bench > span:first-child { font-size: 12px; color: var(--text-muted); }
.kpi-bench-bar { height: 8px; background: #fde2e2; border-radius: 100px; overflow: hidden; }
.kpi-bench-fill { display: block; width: 30%; height: 100%; background: var(--teal); border-radius: 100px; }
.kpi-bench-note { font-size: 11px; color: var(--text-faint); }

/* Results grid */
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.result-tile { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.result-tile-val { display: block; font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -.025em; margin-bottom: 6px; }
.result-tile-lbl { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.result-tile-hl { background: var(--teal-light); border-color: transparent; }
.result-tile-hl .result-tile-val { color: var(--teal); }
.result-tile-hl .result-tile-lbl { color: #0c5642; }

/* Creative card */
.creative-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,.05); border-top: 3px solid var(--purple); }
.creative-card-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.creative-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.creative-tag-win { background: #dcfce7; color: #15803d; }
.creative-format { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.creative-headline { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 6px; }
.creative-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.creative-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.creative-stats div { display: flex; flex-direction: column; }
.creative-stats span { font-size: 12px; color: var(--text-muted); }
.creative-stats strong { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.creative-cta { margin-top: 16px; text-align: center; font-size: 13px; font-weight: 600; color: var(--purple); }

.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.product-built-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--purple);
  background: var(--purple-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}


.product-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 28px;
}

.product-logo-gp { height: 30px; }
.product-logo-shaka { height: 50px; }

.product-hero h1 {
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  color: var(--text);
}

.product-hero-content > p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
  color: var(--text-muted);
  max-width: 440px;
}

.product-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Browser-frame mockup */
.browser-frame {
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -16px rgba(15,15,30,.22), 0 8px 20px -8px rgba(15,15,30,.12);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.browser-dot { width: 11px; height: 11px; border-radius: 50%; background: #d8d8d4; flex-shrink: 0; }
.browser-dot:nth-child(1) { background: #f0a8a0; }
.browser-dot:nth-child(2) { background: #f3cf8e; }
.browser-dot:nth-child(3) { background: #a8d8a8; }

.browser-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 14px;
  flex: 1;
  max-width: 240px;
}

.browser-shot { width: 100%; display: block; }

/* Two col layout */
.product-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-side-text h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.product-side-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.product-stat-row {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.product-stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: 4px;
}

.product-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-quote-block {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.product-quote-block blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 10px;
}

.product-quote-block cite {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  font-style: normal;
}

.product-side-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--bg);
  overflow: hidden;
}

.feature-card-lg {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.feature-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border);
}

.feature-text { padding: 24px; }
.feature-text h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; margin-top: 12px; }
.feature-text p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.feature-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; margin-top: 12px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feature-purple { background: var(--purple-light); color: var(--purple); }
.feature-teal { background: var(--teal-light); color: var(--teal); }
.feature-orange { background: var(--orange-light); color: var(--orange); }

/* Screenshot grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.screenshot-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* Pricing */
.product-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pricing-tag {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--teal); margin-bottom: 14px;
}

.pricing-card h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  color: var(--text); margin-bottom: 16px;
}

.pricing-card p {
  font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px;
}

.pricing-comparison { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }

.pricing-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
}

.pricing-row-bad { background: #fff5f5; color: var(--text); }
.pricing-row-good { background: var(--teal-light); color: var(--text); }

.pricing-pct { font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 100px; }
.pricing-pct.bad { background: #fee2e2; color: #b91c1c; }
.pricing-pct.good { background: #d1fae5; color: #065f46; }

.pricing-aside img {
  width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

/* CTA section */
.product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.product-cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.product-cta p { font-size: 15px; color: rgba(255,255,255,.5); max-width: 480px; }

.product-cta-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1.5px solid rgba(255,255,255,.2);
}

.btn-outline-light:hover { border-color: rgba(255,255,255,.4); color: #fff; opacity: 1; }

/* Case study layout */
.case-overview {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 8px;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-meta-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.case-meta-item:last-child { border-bottom: none; }

.case-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.case-meta-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.case-intro h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}

.case-intro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.case-quote {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
}

.case-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .case-overview { grid-template-columns: 1fr; gap: 32px; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; align-self: center; }
  .checkout-mock { margin: 0 auto; }
  .kpi-mock { margin: 0 auto; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-hero-img { display: none; }
  .product-two-col { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-lg { grid-column: auto; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .product-pricing { grid-template-columns: 1fr; }
  .pricing-aside { display: none; }
  .product-cta { flex-direction: column; align-items: flex-start; }
}
