/* =====================================================================
   Keyhole: shared rules for the feature pages (features.html and features/*).
   Linked right AFTER keyhole.css. Spec: docs/design/KEYHOLE.md.
   Page-only rules live in each page's <style id="keyhole-page"> block.
   ===================================================================== */

/* ---------- Hero: the product mockup stands in a navy arch ---------- */
.feature-hero .hero-mockup {
  background: var(--k-navy-2);
  border-radius: 999px 999px 16px 16px;
  padding: 112px 24px 24px;
  animation: none;
  min-width: 0;
}
/* The mockup's own frame was drawn for the old glassy style: the arch is the frame now */
.feature-hero .hero-mockup > :first-child {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.feature-hero .hero-mockup * { backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- The short answer (quotable, near the top) ---------- */
.k-answer-sec {
  background: var(--k-parchment);
  padding: 72px 48px 8px;
}
.k-answer-inner { max-width: min(95vw, 1440px); margin: 0 auto; }
.k-answer-sec h2 {
  font-family: var(--k-serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  color: var(--k-navy);
  margin: 10px 0 18px;
  max-width: 860px;
  text-wrap: balance;
}
.k-answer {
  background: var(--k-gold-pale);
  border-radius: var(--k-panel);
  padding: 26px 30px;
  max-width: 860px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--k-ink);
}
.k-answer p { margin: 0; }
.k-answer p + p { margin-top: 12px; }
.k-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  max-width: 860px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--k-ink-3);
}
.k-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--k-navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--k-gold);
  text-underline-offset: 4px;
}
.k-related a:hover { color: var(--k-gold-ink); }

/* ---------- Highlight panels: small UI rows use the 12px field corner ---------- */
.highlight-visual [style*="border-radius:7px"],
.highlight-visual [style*="border-radius:8px"],
.highlight-visual [style*="border-radius:9px"],
.highlight-visual [style*="border-radius:10px"],
.highlight-visual [style*="border-radius: 8px"],
.highlight-visual [style*="border-radius: 10px"] { border-radius: 12px !important; }
.highlight-content p a, .benefit-card p a, .step-content p a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--k-gold);
  text-underline-offset: 3px;
}

/* ---------- Steps band (navy on most pages; client-management has a light band and overrides this in its page block) ---------- */
.steps .step-content p, .steps-intro p { color: var(--k-on-navy); }
.steps .step-content h3 { color: var(--k-cream); }
.step-num { font-variant-numeric: lining-nums; }

/* ---------- FAQ ---------- */
.faq-answer { color: var(--k-ink-2); }
.faq-chevron { color: var(--k-gold-dark); }

/* ---------- Closing band ---------- */
.cta-section .section-label { color: var(--k-gold); }

/* ---------- Phones: 16px gutters, one column, no sideways scroll ---------- */
@media (max-width: 860px) {
  .feature-hero .hero-mockup { padding: 104px 20px 20px; }
}
@media (max-width: 600px) {
  .breadcrumb { padding-left: 16px; padding-right: 16px; }
  .feature-hero { padding-left: 0; padding-right: 0; }
  /* the pages' own phone rules set 20px gutters with !important */
  .feature-hero-inner { max-width: none; padding-left: 16px !important; padding-right: 16px !important; }
  .cta-section { padding-left: 16px !important; padding-right: 16px !important; }
  .feature-hero .hero-mockup { padding: 92px 14px 16px; }
  .k-answer-sec { padding: 56px 16px 0; }
  .k-answer { padding: 22px 20px; font-size: 17px; }
  .highlights, .steps, .benefits, .faq, .cta-section { padding-left: 16px; padding-right: 16px; }
  .highlights-inner, .benefits-inner { max-width: none; }
}
