/* Phase 3: priority-page customer journeys and interaction polish. */
:root {
  --phase3-ink: #3f1f17;
  --phase3-green: #0f7563;
  --phase3-green-dark: #114f43;
  --phase3-red: #8d2d24;
  --phase3-gold: #d39a38;
  --phase3-paper: #fffaf1;
  --phase3-line: rgba(83, 51, 34, 0.16);
  --phase3-shadow: 0 18px 42px rgba(65, 41, 27, 0.1);
}

.phase3-core-page :where(h1, h2) {
  text-wrap: balance;
}

.phase3-core-page :where(p, li, small) {
  text-wrap: pretty;
}

.phase3-intent-nav {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(44px, 5vw, 72px) clamp(18px, 4vw, 72px);
  overflow: hidden;
  border-block: 1px solid var(--phase3-line);
  background:
    linear-gradient(105deg, rgba(255, 248, 232, 0.98) 0%, rgba(250, 246, 237, 0.98) 52%, rgba(235, 248, 241, 0.94) 100%);
}

.phase3-intent-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(90deg, transparent 0 49.8%, rgba(17, 79, 67, 0.035) 50%, transparent 50.2%);
  background-size: 160px 100%;
}

.phase3-intent-shell {
  width: min(100%, 1480px);
  margin-inline: auto;
}

.phase3-intent-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 42px);
}

.phase3-intent-kicker {
  margin: 0 0 10px;
  color: var(--phase3-green);
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.phase3-intent-head h2 {
  max-width: 780px;
  margin: 0;
  color: var(--phase3-ink);
  font-family: "Merienda", "Berkshire Swash", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.65rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.phase3-intent-head > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #6f5b4e;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.75;
}

.phase3-intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.phase3-intent-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  gap: 13px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  color: var(--phase3-ink);
  text-decoration: none;
  border: 1px solid var(--phase3-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(65, 41, 27, 0.06);
}

.phase3-intent-link > i:last-child {
  color: var(--phase3-red);
  font-size: 0.88rem;
}

.phase3-intent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--phase3-green);
}

.phase3-intent-link strong,
.phase3-intent-link small {
  display: block;
}

.phase3-intent-link strong {
  color: inherit;
  font-size: 0.98rem;
  line-height: 1.35;
}

.phase3-intent-link small {
  margin-top: 4px;
  color: #78665b;
  font-size: 0.78rem;
  line-height: 1.5;
}

.phase3-intent-link.is-primary {
  color: #fffaf1;
  border-color: transparent;
  background: linear-gradient(135deg, var(--phase3-green-dark), var(--phase3-green));
}

.phase3-intent-link.is-primary .phase3-intent-icon {
  color: var(--phase3-green-dark);
  background: #fff7e8;
}

.phase3-intent-link.is-primary small,
.phase3-intent-link.is-primary > i:last-child {
  color: rgba(255, 250, 241, 0.78);
}

.phase3-core-page :where(.button, .seo-related-card, .phase3-answer-card, .phase11-trust-card, .product-clean-card, .r13-card, .phase4-guide-card, .phase3-intent-link) {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.phase3-core-page :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(211, 154, 56, 0.9);
  outline-offset: 4px;
}

.phase3-core-page .product-clean-card figure {
  overflow: hidden;
}

.phase3-core-page .product-clean-card img {
  transition: transform 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .phase3-intent-link:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 117, 99, 0.42);
    box-shadow: var(--phase3-shadow);
  }

  .phase3-core-page :where(.button, .seo-related-card, .phase3-answer-card, .phase11-trust-card, .r13-card, .phase4-guide-card):hover {
    transform: translateY(-2px);
  }

  .phase3-core-page .product-clean-card:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 1050px) {
  .phase3-intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .phase3-intent-nav {
    padding: 40px 16px;
  }

  .phase3-intent-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .phase3-intent-head h2 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .phase3-intent-grid {
    grid-template-columns: 1fr;
    padding-right: 62px;
  }

  .phase3-intent-link {
    min-height: 92px;
  }
}

@media (max-width: 420px) {
  .phase3-intent-link {
    grid-template-columns: 40px minmax(0, 1fr) 14px;
    gap: 10px;
    padding: 15px;
  }

  .phase3-intent-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase3-core-page *,
  .phase3-core-page *::before,
  .phase3-core-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .phase3-intent-nav {
    display: none;
  }
}
