/* FOUND Score demo (demo-free-seo-audit). Built on the base tokens.
   Score colours are the one addition: green for good (75%+), the brand yellow
   for average (50 to 74%), red for poor (under 50%). */

.found-page [hidden] {
  display: none !important;
}

.found-page {
  --good: #3ecf70;
  --average: var(--yellow);
  --poor: #f2474a;
}

[data-band="good"]    { --band-color: var(--good); }
[data-band="average"] { --band-color: var(--average); }
[data-band="poor"]    { --band-color: var(--poor); }
[data-band="unread"]  { --band-color: var(--muted); }

/* Shared boxed panel: the hero and "What we look at" each sit in one. */
.found-box {
  position: relative;
  padding: clamp(1.75rem, 5vw, 4rem) clamp(1.1rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: rgba(6, 19, 19, 0.88);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

/* ── Hero box ───────────────────────────────────────────────────── */
.found-hero {
  padding-bottom: clamp(24px, 3vw, 40px);
}

.found-hero__box {
  overflow: hidden;
  scroll-margin-top: 110px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 90, 61, 0.22), transparent 55%),
    radial-gradient(90% 70% at 100% 110%, rgba(234, 216, 61, 0.1), transparent 60%),
    rgba(6, 19, 19, 0.92);
  border-color: rgba(255, 118, 95, 0.35);
}

.found-hero__box .eyebrow {
  margin-bottom: var(--space-eyebrow-heading);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
}

.found-hero__title {
  margin-inline: auto;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
}

.found-hero__line {
  display: block;
}

.found-hero__sub {
  max-width: 720px;
  margin: var(--space-heading-copy) auto 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
}

.found-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  text-align: left;
}

.found-form input {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 7, 8, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.found-form input::placeholder {
  color: rgba(246, 240, 223, 0.45);
}

.found-form input[aria-invalid="true"] {
  border-color: var(--poor);
}

.found-turnstile {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.found-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.4rem;
}

.found-card__note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Scanning state: the five letters light up in turn. */
.found-progress {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  max-width: 560px;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 7, 8, 0.7);
}

.found-progress__letters {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.found-progress__letters li {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: rgba(246, 240, 223, 0.35);
  font-family: var(--font-display);
  font-size: 1.4rem;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.found-progress__letters li.is-on {
  border-color: rgba(255, 90, 61, 0.7);
  background: rgba(255, 90, 61, 0.14);
  color: var(--yellow);
}

.found-progress__msg {
  min-height: 1.5em;
  color: var(--yellow);
  font-weight: 700;
}

.found-card--error .found-progress__msg {
  color: var(--orange-2);
}

/* With results showing, the hero box becomes a compact header, like a fresh
   results page: eyebrow and headline only, no box. */
.found-has-results .found-hero {
  padding-bottom: 0;
}

.found-has-results .found-hero__box {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.found-has-results .found-hero__title {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.found-has-results .found-hero__line {
  display: inline;
}

.found-has-results .found-hero__sub,
.found-has-results .found-card__note {
  display: none;
}

/* ── "What we look at" box ──────────────────────────────────────── */
.found-explainer {
  padding-top: clamp(24px, 3vw, 40px);
}

.found-explainer__sub {
  margin-top: var(--space-heading-copy);
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.found-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
}

.found-tile {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.1rem 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.found-tile:hover {
  background: var(--panel-strong);
  transform: translateY(-2px);
}

.found-tile:active {
  transform: scale(0.98);
  transition-duration: 160ms;
}

.found-tile[aria-selected="true"] {
  border-color: var(--orange);
  background: var(--panel-strong);
}

.found-tile__letter {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  background: rgba(234, 216, 61, 0.1);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

.found-tile[aria-selected="true"] .found-tile__letter {
  background: rgba(255, 90, 61, 0.18);
}

.found-tile[aria-selected="true"] .found-tile__name {
  color: var(--orange-2);
}

.found-tile__name {
  font-weight: 800;
  font-size: 1.05rem;
}

.found-tile__q {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.found-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 240, 223, 0.05);
  text-align: left;
}

.found-panel__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--orange-2);
  border-radius: 12px;
  color: var(--orange-2);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.found-panel__body {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.found-panel__checks {
  margin-top: 0.6rem;
  color: var(--muted);
  line-height: 1.6;
}

.found-panel__checks b {
  color: var(--orange-2);
}

/* ── Results ────────────────────────────────────────────────────── */
.found-results {
  padding-top: clamp(24px, 3vw, 40px);
}

.found-results__shell {
  display: grid;
  gap: 1rem;
  max-width: 980px;
}

.found-results a:not(.btn) {
  color: var(--orange-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.found-results a:not(.btn):hover {
  color: var(--ink);
}

.found-summary,
.found-cat,
.found-error {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 19, 19, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scroll-margin-top: 110px;
}

.found-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  text-align: left;
}

.found-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(120px, 14vw, 150px);
  aspect-ratio: 1;
}

.found-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.found-ring__track,
.found-ring__value {
  fill: none;
  stroke-width: 11;
}

.found-ring__track {
  stroke: rgba(246, 240, 223, 0.1);
}

.found-ring__value {
  stroke: var(--band-color);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out) 0.15s;
}

.found-ring.is-in .found-ring__value {
  stroke-dashoffset: calc(1 - var(--pct, 0));
}

.found-ring__center {
  position: absolute;
  display: grid;
  justify-items: center;
}

.found-ring__num {
  color: var(--band-color);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1;
}

.found-ring__label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.found-summary__title {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.found-summary__domain {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-all;
}

.found-summary__verdict {
  margin-top: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
}

.found-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(246, 240, 223, 0.1);
}

.found-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--band-color);
  transition: width 1s var(--ease-out) 0.2s;
}

.is-in .found-bar i {
  width: var(--v, 0%);
}

/* Category cards */
.found-cat {
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
}

.found-cat__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.found-cat__letter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--orange);
  color: var(--dark-pill);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.found-cat__name {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.found-cat__score {
  color: var(--band-color);
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  white-space: nowrap;
}

.found-cat__score small {
  font-size: 0.6em;
  opacity: 0.8;
}

.found-cat .found-bar {
  margin: 0.9rem 0 1.1rem;
}

.found-cat__verdict {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
}

.found-cat__lines {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.found-cat__lines li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.found-cat__lines b {
  color: var(--ink);
  font-weight: 700;
}

.found-fix {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255, 90, 61, 0.35);
  border-radius: 14px;
  background: rgba(255, 90, 61, 0.1);
  color: var(--ink);
  line-height: 1.6;
}

.found-fix--small {
  border-color: var(--line);
  background: rgba(246, 240, 223, 0.05);
}

.found-fix__label {
  color: var(--orange-2);
  font-weight: 800;
}

.found-fix--small .found-fix__label {
  color: var(--yellow);
}

.found-details {
  margin-top: 0.85rem;
}

.found-details + .found-details {
  margin-top: 0.3rem;
}

.found-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.found-details summary::-webkit-details-marker {
  display: none;
}

.found-details summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--orange-2);
  border-bottom: 2px solid var(--orange-2);
  transform: rotate(-45deg);
  transition: transform 0.2s var(--ease-out);
}

.found-details[open] summary::before {
  transform: rotate(45deg);
}

.found-details__why {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.found-details__why b {
  color: var(--ink);
}

.found-checks {
  display: grid;
  gap: 0.2rem;
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.2rem;
  list-style: none;
}

.found-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--faint);
}

.found-check:last-child {
  border-bottom: 0;
}

.found-check__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.found-check[data-status="pass"] .found-check__icon    { background: rgba(62, 207, 112, 0.18); color: var(--good); }
.found-check[data-status="partial"] .found-check__icon { background: rgba(234, 216, 61, 0.18); color: var(--average); }
.found-check[data-status="fail"] .found-check__icon    { background: rgba(242, 71, 74, 0.18); color: var(--poor); }
.found-check[data-status="skipped"] .found-check__icon { background: rgba(246, 240, 223, 0.06); color: var(--muted); }

.found-check__label {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.found-check__detail {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.found-check__pts {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.found-check[data-status="pass"] .found-check__pts    { color: var(--good); }
.found-check[data-status="partial"] .found-check__pts { color: var(--average); }
.found-check[data-status="fail"] .found-check__pts    { color: var(--poor); }

/* Checks scored by the AI read of the page. */
.found-check__ai {
  display: block;
  margin-top: 0.2rem;
  color: var(--orange-2);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-align: right;
}

.found-bench {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(62, 207, 112, 0.35);
  border-radius: 16px;
  background: rgba(62, 207, 112, 0.08);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.found-bench strong {
  color: var(--good);
}

/* After the cards */
.found-next {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.found-why h2,
.found-cta h2 {
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.02;
  text-transform: uppercase;
}

.found-why p,
.found-cta p {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.found-cta {
  padding: clamp(1.4rem, 3.4vw, 2.4rem);
  border: 1px solid rgba(255, 118, 95, 0.4);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 90, 61, 0.22), transparent 60%),
    rgba(6, 19, 19, 0.92);
  box-shadow: var(--shadow);
}

.found-cta .eyebrow {
  margin-bottom: 0.6rem;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
}

.found-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
  margin-top: var(--space-copy-action);
}

.found-foot {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.found-again {
  justify-self: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}

.found-again:hover {
  background: var(--panel-strong);
}

.found-again:active {
  transform: scale(0.98);
}

.found-error {
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: left;
}

.found-error h2 {
  color: var(--ink);
  font-size: 1.2rem;
}

.found-error p {
  margin: 0.5rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Once results are up, the flying widgets would cross the score summary. */
.found-page.found-has-results .page-widgets {
  display: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .found-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .found-form {
    grid-template-columns: 1fr;
  }

  .found-form .btn {
    justify-self: stretch;
    justify-content: center;
  }

  .found-tiles {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .found-tile {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.9rem;
    row-gap: 0.1rem;
    padding: 0.85rem 1rem;
  }

  .found-tile__letter {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    margin: 0;
    font-size: 1.55rem;
  }

  .found-panel {
    grid-template-columns: 1fr;
  }

  .found-summary {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .found-check {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .found-check__pts {
    grid-column: 2;
  }

  .found-check__ai {
    display: inline;
    margin: 0 0 0 0.6rem;
  }

  .found-checks,
  .found-details__why {
    padding-left: 0;
  }
}

/* JavaScript-built sites: what visitors see versus what AI crawlers get. */
.found-notice {
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(234, 216, 61, 0.4);
  border-radius: 16px;
  background: rgba(234, 216, 61, 0.08);
  color: var(--ink);
  line-height: 1.6;
}

.found-notice > p > b {
  color: var(--yellow);
}

.found-notice ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
}

.found-notice li {
  color: var(--muted);
  line-height: 1.55;
}

.found-notice li b {
  color: var(--ink);
}

.found-notice__fix {
  margin-top: 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

.found-cat__score--unread {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
}

/* "How it works": three steps, centred as a group, text starting at the top
   of each card. Desktop only; the base mobile rule stacks them. */
@media (min-width: 761px) {
  .found-content .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 1060px);
    margin-inline: auto;
  }
}

.found-content .process-step {
  align-content: start;
}
