/* Keep every view in the document so selections and quote drafts survive navigation. */
html { scroll-behavior: auto; }
main > [data-view][hidden] { display: none !important; }
main > [data-view] { min-height: min(70vh, 590px); }
#how, #quote, #workflow, #main { scroll-margin-top: 94px; }

.site-nav {
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e6e7e9;
  border-radius: 999px;
  background: #f5f5f6;
}
.site-nav a {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #595960;
  line-height: 1.15;
  white-space: nowrap;
}
.site-nav a::after { content: none; }
.site-nav a:hover { color: #18181b; }
.site-nav a[aria-current="page"] {
  color: #18181b;
  background: white;
  border-color: #e6e7e9;
  box-shadow: 0 2px 5px #18181b0b;
  text-decoration: none;
}

.scene-halo-lilac {
  background: radial-gradient(ellipse, #edddf4a0, #f7e9f16e 50%, transparent 76%);
}
.scene-card-mail { border-color: #edf0f6; }
.scene-card-mail .scene-card-icon { background: #edf3ff; color: #3e66a3; }
.scene-caption { bottom: -20px; justify-content: flex-start; }
.hero-companion .companion-body,
.hero-companion .companion-image,
.agent-tab .agent-tab-image { animation: none !important; }
.journey-people img:hover,
.quote-host img:hover { translate: none; rotate: none; scale: none; }

#home .how-section { padding-block: clamp(54px, 6vw, 84px); }
.process-grid { margin-top: 34px; gap: 14px; }
.process-grid article {
  --step-accent: #496538;
  --step-surface: #f3f6ee;
  min-width: 0;
  padding: 24px 24px 26px;
  border: 1px solid #e6e8e3;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--step-surface), #fff 95%);
}
.process-grid article:nth-child(2) { --step-accent: #365c93; --step-surface: #f1f5fd; }
.process-grid article:nth-child(3) { --step-accent: #70508c; --step-surface: #f7f2fa; }
.process-grid .process-number {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  margin-bottom: 20px;
  padding-inline: 7px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: var(--step-accent);
}
.process-grid h3 { margin-bottom: 12px; }
.process-grid .process-with-peek { margin-top: 0; }
.process-grid .process-with-peek .site-peek {
  top: 7px;
  right: 14px;
  width: 76px;
  height: 52px;
}
.process-grid .peek-lens .peek-person {
  width: 99px;
  height: 99px;
  margin-left: -49.5px;
}
#questions {
  padding-top: 86px;
  margin-top: 0;
}
#questions::before { top: 67px; }
#questions .peek-echo { top: 0; }

@media (max-width: 850px) {
  .site-nav a { padding-inline: 12px; }
}
@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding-block: 10px 8px;
  }
  .site-header .wordmark { justify-self: start; }
  .header-cta { grid-area: 1 / 2; }
  .site-nav {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 3px;
    font-size: 12px;
    box-shadow: none;
    background: #f5f5f6;
  }
  .site-nav a { min-height: 42px; padding-inline: 4px; }
  #how, #quote, #workflow, #main { scroll-margin-top: 123px; }
  .hero-copy { padding-block: 36px 17px; }
  .living-hero-stage { margin-bottom: 35px; }
  .scene-caption { bottom: -18px; align-items: center; }
  .process-grid article { margin-bottom: 12px; padding: 18px 18px 20px; }
  .process-grid .process-number { margin-bottom: 14px; }
  .process-grid .process-with-peek .site-peek { top: 3px; }
  .process-grid h3 { font-size: 24px; }
  #home .quote-layout { padding-block: 54px 59px; }
  #questions { padding-top: 78px; }
}

@media print {
  main > [data-view][hidden] { display: block !important; }
  main > [data-view] { min-height: 0; }
}
