/* Release layer: conversion, scoping and post-audit responsive refinements. */
.scope-builder {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 38px);
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 22, 17, .1);
}

.scope-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.scope-progress span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #7ecab8;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--ink);
  font-weight: 900;
}

.scope-progress strong:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: min(80px, 7vw);
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--line);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scope-field span,
.scope-result > label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 800;
}

.scope-field select {
  min-height: 50px;
}

.scope-field select[aria-invalid="true"],
.scope-confirm input[aria-invalid="true"] {
  outline: 3px solid #b42318;
  outline-offset: 2px;
}

.scope-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
}

.scope-confirm input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--teal-dark);
}

.scope-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.scope-actions p,
.scope-copy-status {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.scope-result {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #7ecab8;
  border-left: 5px solid var(--teal-dark);
  border-radius: 14px;
  background: #effbf7;
}

.scope-result h3 {
  margin-bottom: 18px;
  font-size: 1.45rem;
}

.scope-result textarea {
  min-height: 240px;
  color: #12271f;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .95rem;
}

.scope-result .button-outline {
  background: #fff;
}

.scope-result:focus {
  outline: 3px solid #ffca55;
  outline-offset: 4px;
}

.directory-card .card-label {
  min-height: 1.3em;
}

.directory-card .card-summary {
  flex: 1;
  margin-bottom: 16px;
  color: var(--muted);
}

.hero .button-group {
  align-items: stretch;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(7, 22, 17, .07);
}

.testimonial-context {
  margin: 0 0 24px;
  color: var(--teal-dark);
  font-size: .88rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.testimonial-card blockquote {
  flex: 1;
  margin: 0 0 28px;
  color: #1f352d;
  font-size: 1.08rem;
  line-height: 1.65;
}

.testimonial-card blockquote::before {
  content: "\201C";
  display: block;
  height: 32px;
  color: var(--teal-dark);
  font-size: 3.5rem;
  line-height: .8;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .95rem;
}

.testimonial-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.footer-cookie {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9cbc4;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-cookie:disabled {
  cursor: default;
  opacity: .78;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav a {
    font-size: .9rem;
  }
}

@media (max-width: 720px) {
  .hero h1,
  .page-home .hero h1 {
    max-width: 14ch;
    font-size: clamp(2.15rem, 10.6vw, 3rem);
    line-height: 1.06;
  }

  .page-home .hero h1 {
    max-width: 13ch;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.58;
  }

  .scope-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-height: 0;
  }

  .scope-progress {
    grid-template-columns: auto 1fr;
  }

  .scope-progress strong::after {
    display: none !important;
  }

  .scope-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .scope-actions .button,
  .scope-result .button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero h1,
  .page-home .hero h1 {
    font-size: 2.05rem;
  }

  .scope-builder,
  .scope-result {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scope-result {
    scroll-behavior: auto;
  }
}

/* Readable secondary type scale. */
.brand span {
  font-size: .9rem;
}

.desktop-nav a,
.mobile-nav a {
  font-size: .96rem;
}

.breadcrumbs ol,
.footer-bottom {
  font-size: .92rem;
}

.eyebrow,
.panel-kicker,
.card-label,
.testimonial-context {
  font-size: .88rem;
  line-height: 1.45;
}

.trust-row,
.footer-grid h2,
.footer-grid a,
.privacy-note,
.cta-steps li {
  font-size: .95rem;
}

th {
  font-size: .9rem;
}

.assurance-grid span,
.intent-card > span,
.cta-steps span {
  font-size: .86rem;
}

.assurance-grid p {
  font-size: .92rem;
  line-height: 1.5;
}

.assurance-grid strong {
  font-size: .98rem;
}

.footer-bottom {
  color: #a8bbb4;
}

@media (max-width: 1100px) {
  .desktop-nav a {
    font-size: .9rem;
  }
}

@media (max-width: 720px) {
  .brand span {
    font-size: .88rem;
  }

  .breadcrumbs ol,
  .footer-bottom,
  .assurance-grid p {
    font-size: .92rem;
  }
}

/* Live screenshot legibility correction.
   The problem was thin, low-contrast copy rather than only nominal size. */
:root {
  --muted: #354c43;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 450;
}

.section-head > p:last-child {
  color: #2e463c;
  font-size: 1.1rem;
  font-weight: 520;
  line-height: 1.72;
}

.steps li {
  padding: 28px;
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 820;
}

.steps p {
  color: #263f35;
  font-size: 1.06rem;
  font-weight: 520;
  line-height: 1.7;
}

.prose,
.directory-card > p:not(.card-label),
.directory-card .card-summary,
.intent-card p,
.split-link p,
.accordion details p,
.hero-panel p,
.tool-card p,
.tool-external p,
.action-panel p {
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.7;
}

.directory-card > p:not(.card-label),
.directory-card .card-summary,
.intent-card p,
.accordion details p,
.tool-card p,
.tool-external p,
.action-panel p {
  color: #31483f;
}

.hero-lead {
  font-weight: 480;
  line-height: 1.68;
}

.hero-panel p {
  color: #d0ddd8;
}

td,
.check-row,
.scope-field,
.scope-confirm,
.scope-result > label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer-grid p {
  color: #b3c4be;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .section-head > p:last-child,
  .steps p,
  .prose,
  .directory-card > p:not(.card-label),
  .directory-card .card-summary,
  .intent-card p,
  .accordion details p {
    font-size: 1.05rem;
  }

  .steps li {
    padding: 24px;
  }
}
