/* Site completion layer: loaded after the base stylesheet. */

:root {
  --completion-max: 1120px;
  --home-blue: #2357e5;
  --home-blue-dark: #173baf;
  --home-blue-soft: #eff5ff;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #eef2ff 100%);
}

.site-header { overflow: visible; }

.site-header__inner,
.site-footer__inner,
.container,
main,
.nav-link { max-width: var(--completion-max); }

.site-nav { justify-content: flex-end; }
.site-nav a,
.site-footer__links a { white-space: nowrap; }

.button,
button { max-width: 100%; line-height: 1.25; }
.section--soft { overflow: hidden; }

/* Home redesign layout based on the accepted reference mock. */
.page-home-redesign {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 55%, #eef5ff 100%);
}

.home-redesign-header {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.96);
}

.home-redesign-header__inner {
  min-height: 68px;
  border: 1px solid #d6e5ff;
  border-radius: 10px;
  margin-top: 16px;
  padding: 0 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 59, 175, 0.06);
}

.home-redesign-brand {
  font-size: 1.42rem;
  letter-spacing: -0.03em;
}

.home-redesign-nav { gap: 10px; }

.home-redesign-nav a {
  min-height: 36px;
  padding: 0 10px;
  color: #172033;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-redesign-nav__cta {
  margin-left: 8px;
  padding: 0 16px !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--home-blue), #4869f4) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(35, 87, 229, 0.22);
}

.home-redesign-main { padding-top: 18px; }

.home-redesign-firstview {
  position: relative;
  padding-bottom: 56px;
}

.home-redesign-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #d6e5ff;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(23, 59, 175, 0.11);
}

.home-redesign-hero__copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 58px);
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 72%, #f8fbff 100%);
}

.home-redesign-hero__eyebrow {
  color: var(--home-blue);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.home-redesign-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.55rem, 5.7vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -0.08em !important;
}

.home-redesign-hero h1 span { color: var(--home-blue); }

.home-redesign-hero__lead {
  max-width: 560px;
  margin-top: 18px;
  color: #3d4b63;
  font-size: 0.98rem;
  line-height: 1.9;
}

.home-redesign-hero__actions {
  display: grid;
  grid-template-columns: minmax(240px, max-content);
  gap: 12px;
  margin-top: 26px;
  justify-items: start;
}

.home-redesign-hero__actions .button {
  min-width: 320px;
  justify-content: center;
}

.home-redesign-hero__actions .button::after,
.home-redesign-nav__cta::after {
  content: "›";
  margin-left: 10px;
  font-size: 1.15em;
  line-height: 1;
}

.home-redesign-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
  border-left: 1px solid #d6e5ff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.64), rgba(245,249,255,0.88)),
    radial-gradient(circle at 90% 12%, rgba(35, 87, 229, 0.08), transparent 28%);
}

.home-redesign-hero__image-slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 360px;
  padding: 22px;
}

.home-redesign-hero__visual img {
  display: block;
  width: min(96%, 590px);
  max-height: 380px;
  object-fit: contain;
}

.home-redesign-hero__note {
  position: absolute;
  top: 66px;
  left: 46px;
  transform: rotate(-8deg);
  color: #2563eb;
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  pointer-events: none;
}

.home-redesign-feature-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid #d6e5ff;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(23, 59, 175, 0.07);
}

.home-redesign-feature-strip article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
}

.home-redesign-feature-strip span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  grid-row: span 2;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  color: var(--home-blue);
  font-weight: 900;
}

.home-redesign-feature-strip h2 {
  margin-top: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em !important;
}

.home-redesign-feature-strip p {
  margin-top: 5px;
  color: #526173;
  font-size: 0.8rem;
  line-height: 1.65;
}

.home-redesign-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 1;
  height: 70px;
  border-radius: 0 0 40% 40%;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.7), rgba(239, 246, 255, 0));
  clip-path: ellipse(70% 54% at 50% 0%);
  pointer-events: none;
}

.completion-grid,
.problem-grid,
.feature-grid,
.trust-grid,
.flow-grid { display: grid; gap: 16px; }

.problem-grid,
.feature-grid,
.trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.completion-card,
.problem-card,
.feature-card,
.trust-card,
.flow-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.problem-card h3,
.feature-card h3,
.trust-card h3,
.flow-card h3,
.completion-card h3 { margin-top: 10px; }

.problem-card p,
.feature-card p,
.trust-card p,
.flow-card p,
.completion-card p {
  margin-top: 8px;
  color: #526173;
  font-size: 0.94rem;
  line-height: 1.75;
}

.card-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.result-alert,
.local-result-note {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: #eff6ff;
}

.local-result-note p { color: #1e3a8a; }
.result-card__body ul { padding-left: 1.1rem; }
.result-card__body li { color: #334155; }

.completion-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.completion-checklist li {
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  color: #334155;
}

@media (max-width: 980px) {
  .home-redesign-hero,
  .home-redesign-feature-strip,
  .problem-grid,
  .feature-grid,
  .trust-grid,
  .flow-grid,
  .journey-strip,
  .sample-preview-strip,
  .quick-flow,
  .tool-grid,
  .scenario-grid,
  .scenario-grid--two,
  .persona-grid,
  .prep-grid,
  .prep-grid--outputs,
  .template-feature-grid,
  .route-grid,
  .route-grid--four,
  .faq-list {
    grid-template-columns: 1fr !important;
  }

  .home-redesign-hero__visual {
    border-left: 0;
    border-top: 1px solid #d6e5ff;
  }

  .home-redesign-feature-strip article {
    grid-template-columns: 42px 1fr;
  }

  .cta-band,
  .site-footer__inner,
  .calculator-layout { grid-template-columns: 1fr !important; }
  .cta-band__actions { width: 100%; }
}

@media (max-width: 760px) {
  main,
  .container,
  .nav-link { width: calc(100% - 24px) !important; }

  .site-header__inner { align-items: stretch !important; }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .site-nav a { flex: 0 0 auto; }

  .home-redesign-header__inner {
    min-height: 0;
    margin-top: 10px;
    padding: 12px;
  }

  .home-redesign-brand { font-size: 1.08rem; }
  .home-redesign-main { padding-top: 14px; }
  .home-redesign-firstview { padding-bottom: 38px; }

  .home-redesign-hero {
    min-height: 0;
    border-radius: 10px;
  }

  .home-redesign-hero__copy { padding: 28px 20px; }

  .home-redesign-hero h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }

  .home-redesign-hero__actions,
  .cta-band__actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-redesign-hero__actions .button {
    min-width: 0;
  }

  .home-redesign-hero__visual { min-height: 260px; }
  .home-redesign-hero__image-slot { min-height: 260px; padding: 16px; }

  .home-redesign-hero__visual img {
    width: min(96%, 420px);
    max-height: 250px;
  }

  .home-redesign-hero__note {
    top: 18px;
    left: 18px;
    font-size: 0.82rem;
  }

  .home-redesign-feature-strip {
    margin-top: 8px;
    padding: 12px;
  }

  .button,
  button {
    width: 100%;
    min-height: 46px;
    white-space: normal !important;
    text-align: center;
  }

  .hero-proof { justify-content: flex-start !important; }
  .hero-proof span { white-space: normal !important; }

  .completion-card,
  .problem-card,
  .feature-card,
  .trust-card,
  .flow-card,
  .card,
  .notice-card { padding: 18px !important; }
}
