/* scanner.coleoni.com. Light, like the Scanner section on coleoni.com: the same
   tokens, the same type (Geist), the same green. The phone with the beam is the
   brand's gesture: above the green line, what was read; below, what is left. */
@property --scan {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 0%;
}

:root {
  --ink: #0b0b0c;
  --ink-2: #56565f;
  --ink-3: #6b6b74;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.18);
  --soft: #f4f4f5;
  --lime: #aefa0e;
  --ok: #3f6b00;
  --warn: #a25a00;
  --fail: #c03a1e;
  --pad: clamp(1.25rem, 4.45vw, 4rem);
  --max: 76rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Geist, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --- frame ------------------------------------------------------------------ */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
}

.top__mark img {
  width: auto;
  height: 1.6rem;
}

.foot {
  display: flex;
  justify-content: center;
  padding: 3rem var(--pad) 3.5rem;
  border-top: 1px solid var(--line);
}

.foot__sign {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-3);
  font-size: 0.85rem;
  text-decoration: none;
}

.foot__sign img {
  width: 1rem;
  height: auto;
}

.foot__sign span {
  color: var(--ink);
  font-weight: 560;
}

/* --- shared pieces ----------------------------------------------------------- */
.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.label img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}

mark {
  margin: 0 -0.04em;
  padding: 0 0.08em;
  background: linear-gradient(to bottom, transparent 9%, var(--lime) 9%, var(--lime) 97%, transparent 97%);
  color: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 0 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.button:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button--lime {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.button--lime:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.form-error {
  margin: 0.75rem 0 0;
  color: var(--fail);
  font-size: 0.9rem;
}

.form-error:empty {
  display: none;
}

.section-title {
  margin: 0 0 1.75rem;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.04em;
}

/* the command bar: field and button in one piece */
.scan-form {
  display: flex;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.scan-form:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(174, 250, 14, 0.5);
}

.scan-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.scan-form input::placeholder {
  color: #8a8a93;
}

.scan-form input:focus {
  outline: none;
}

.scan-form .button {
  flex: none;
  margin: -1px -1px -1px 0;
}

/* the phone: the screenshot in two layers (dimmed below, lit above the beam), or
   the empty screen while scanning */
.phone {
  --scan: 0%;
  position: relative;
  flex: none;
  width: clamp(13rem, 19vw, 16.5rem);
  aspect-ratio: 780 / 1688;
  overflow: hidden;
  border: 0.5rem solid var(--ink);
  border-radius: 2.2rem;
  background: var(--ink);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.5);
}

.phone__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 1.7rem;
}

.phone__shot--dim {
  filter: grayscale(1) brightness(0.42);
}

.phone__shot--lit {
  clip-path: inset(0 0 calc(100% - var(--scan)) 0);
}

.phone__empty {
  position: absolute;
  inset: 0;
  border-radius: 1.7rem;
  background: #1a1a1c;
}

/* On the front door the beam reads in a loop; on a report it reads once and rests. */
.phone--loop {
  animation: read-loop 6.5s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.phone--loop .phone__shot--lit {
  animation: lit-loop 6.5s linear infinite;
}

.phone--loop .phone__beam {
  animation: beam-loop 6.5s linear infinite;
}

.phone--once {
  --scan: 100%;
  animation: read-once 2.2s cubic-bezier(0.45, 0, 0.25, 1) 0.3s both;
}

.phone--once .phone__beam {
  animation: beam-once 2.6s linear both;
}

@keyframes read-loop {
  0% { --scan: 0%; }
  55%, 100% { --scan: 100%; }
}

@keyframes lit-loop {
  0%, 82% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes beam-loop {
  0%, 55% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes read-once {
  from { --scan: 0%; }
  to { --scan: 100%; }
}

@keyframes beam-once {
  0%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* the stage: the phone and the two cards over its edges */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding-bottom: 2.25rem;
}

.stage__card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.35);
}

.stage__card--score {
  top: 12%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(16.5rem, 58%);
  padding: 1rem 1.1rem;
}

.stage__card--google {
  right: 0;
  bottom: 13%;
  width: min(21rem, 76%);
  padding: 1rem 1.15rem 1.05rem;
}

.stage--plain .stage__card--google {
  bottom: 10%;
}

.stage__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.74rem;
  text-align: center;
}

.ring.ring--small {
  width: 4.75rem;
}

.ring.ring--small circle {
  stroke-width: 9;
}

.ring.ring--small strong {
  font-size: 1.6rem;
}

.ring.ring--small span {
  font-size: 0.62rem;
}

.mini-parts {
  flex: 1;
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.mini-parts dt {
  margin-bottom: 0.2rem;
  color: var(--ink-2);
  font-size: 0.74rem;
}

.mini-parts dd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.mini-parts .bar {
  height: 0.3rem;
}

.mini-parts .bar__n {
  width: 1.6rem;
  font-size: 0.78rem;
}

.phone--scanning {
  --scan: 4%;
  background: #151517;
  animation: sweep 2.4s cubic-bezier(0.45, 0, 0.25, 1) infinite alternate;
}

.phone--scanning::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#2a2a2d 0 0) 12% 10% / 46% 0.7rem no-repeat,
    linear-gradient(#2a2a2d 0 0) 12% 20% / 76% 1.6rem no-repeat,
    linear-gradient(#2a2a2d 0 0) 12% 27% / 60% 1.6rem no-repeat,
    linear-gradient(#232326 0 0) 12% 38% / 76% 0.5rem no-repeat,
    linear-gradient(#232326 0 0) 12% 42% / 70% 0.5rem no-repeat,
    linear-gradient(#232326 0 0) 12% 46% / 72% 0.5rem no-repeat,
    linear-gradient(#2a2a2d 0 0) 12% 56% / 40% 2.2rem no-repeat,
    linear-gradient(#232326 0 0) 12% 72% / 76% 4.5rem no-repeat;
  content: "";
}

.phone__beam {
  position: absolute;
  top: var(--scan);
  right: 0;
  left: 0;
  height: 3px;
  margin-top: -1.5px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(174, 250, 14, 0.2);
}

.phone__beam {
  position: absolute;
  top: var(--scan);
  right: 0;
  left: 0;
  height: 3px;
  margin-top: -1.5px;
  background: var(--lime);
}

@keyframes sweep {
  from { --scan: 4%; }
  to { --scan: 96%; }
}

/* --- home --------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(4rem, 8vw, 6rem);
}

.hero__title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 5.4rem);
  font-weight: 510;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero__sub {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
}

.hero__form {
  max-width: 36rem;
  margin-top: 2.5rem;
}

.hero__trust {
  margin: 0.85rem 0 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.parts {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 8vw, 7rem);
}

.parts__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.parts__list li {
  padding-top: 1.5rem;
}

.parts__n {
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
}

.parts__list h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 540;
  letter-spacing: -0.03em;
}

.parts__list p {
  margin: 0;
  color: var(--ink-2);
}

/* --- scanning ----------------------------------------------------------------- */
.scanning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(4rem, 8vw, 7rem);
}


.steps {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink-3);
  transition: color 300ms ease;
}

.steps li::before {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.8rem;
  counter-increment: step;
  content: counter(step);
}

.steps li.is-active {
  color: var(--ink);
}

.steps li.is-active::before {
  border-color: var(--ink);
  animation: pulse 1.2s ease-in-out infinite;
}

.steps li.is-done {
  color: var(--ink);
}

.steps li.is-done::before {
  border-color: var(--lime);
  background: var(--lime);
  content: "✓";
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 4px rgba(174, 250, 14, 0.45); }
}

.scanning__slow {
  margin: 1.5rem 0 0;
  color: var(--ink-3);
  font-size: 0.9rem;
}

/* --- report ------------------------------------------------------------------- */
.report-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 6vw, 5rem);
}

.report-head__site,
.scanning__url {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 510;
  letter-spacing: -0.055em;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.report-head__site.is-long,
.scanning__url.is-long {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.report-head__site.is-longer,
.scanning__url.is-longer {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

.score {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: 2.25rem;
}

.ring {
  position: relative;
  flex: none;
  width: clamp(8rem, 13vw, 10.5rem);
  aspect-ratio: 1;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 8;
}

.ring__track {
  stroke: rgba(0, 0, 0, 0.08);
}

.ring__value {
  stroke: var(--lime);
  stroke-linecap: round;
}

.ring p {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  text-align: center;
}

.ring strong {
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 540;
  letter-spacing: -0.05em;
  line-height: 1;
}

.ring span {
  color: var(--ink-3);
  font-size: 0.8rem;
}

.score__parts {
  flex: 1;
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.score__parts dt {
  margin-bottom: 0.3rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.score__parts dd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.bar {
  flex: 1;
  height: 0.4rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
}

.bar__n {
  width: 2rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.notice {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--lime);
  background: var(--soft);
  color: var(--ink-2);
  font-size: 0.9rem;
}

.card-label {
  margin: 0 0 0.75rem;
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serp {
  font-family: Arial, Helvetica, sans-serif;
}

.serp__site {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.serp__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 0.75rem;
  font-weight: 700;
}

.serp__name {
  display: block;
  color: #202124;
  font-size: 0.8rem;
}

.serp__url {
  display: block;
  color: #4d5156;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.serp__title {
  margin: 0.55rem 0 0;
  color: #1a0dab;
  font-size: 1.12rem;
  line-height: 1.3;
}

.serp__desc {
  display: -webkit-box;
  margin: 0.25rem 0 0;
  overflow: hidden;
  color: #4d5156;
  font-size: 0.8rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.serp-card__note {
  display: flex;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.78rem;
}

.serp-card__note::before {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--warn);
  content: "";
}

.serp-card__note--fail::before {
  background: var(--fail);
}

/* what to fix first */
.talk {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3.5rem, 7vw, 5.5rem);
}

.fix__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fix__item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--warn);
  background: #ffffff;
}

.fix__item.check--fail {
  border-top-color: var(--fail);
}

.fix__n {
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.85rem;
}

.fix__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.fix__item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.gate__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.gate__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.gate__form label:nth-of-type(3),
.gate__consent,
.gate__form .button,
.gate__privacy,
.gate__form .form-error {
  grid-column: 1 / -1;
}

.gate__form em {
  color: #8a8a8a;
  font-style: normal;
}

.gate__form input[type="text"],
.gate__form input[type="email"],
.gate__form input[type="tel"] {
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  font: inherit;
}

.gate__form input:focus {
  border-color: var(--lime);
  outline: none;
}

.gate__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  color: #a0a0a0;
}

.gate__consent input {
  margin-top: 0.2rem;
  accent-color: var(--lime);
}

.gate__privacy {
  margin: 0;
  color: #8a8a8a;
  font-size: 0.8rem;
}

.talk {
  text-align: center;
}

.talk h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 520;
  letter-spacing: -0.045em;
}

.talk p {
  margin: 0.75rem auto 1.75rem;
  max-width: 32rem;
  color: var(--ink-2);
}

/* --- motion off ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .phone--loop,
  .phone--once,
  .phone--loop .phone__shot--lit {
    --scan: 100%;
    animation: none;
  }

  .phone--loop .phone__beam,
  .phone--once .phone__beam {
    display: none;
  }

  .phone--scanning {
    --scan: 50%;
    animation: none;
  }

  .steps li.is-active::before {
    animation: none;
  }
}

/* --- small screens --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero,
  .report-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .fix__list,
  .parts__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .scanning {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .scanning .label {
    justify-content: center;
  }

  .steps {
    justify-items: start;
    text-align: left;
  }

  .scan-form {
    flex-direction: column;
  }

  .scan-form input[type="text"] {
    min-height: 3.5rem;
  }

  .scan-form .button {
    margin: 0 -1px -1px;
  }

  .score {
    flex-direction: column;
    align-items: stretch;
  }

  .ring {
    align-self: center;
  }

  .stage {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0;
  }

  .stage__card {
    position: static;
    width: 100% !important;
  }

  .stage__card--score {
    margin-top: -4.5rem;
  }

  .stage--plain .stage__card--google {
    margin-top: -4.5rem;
  }

  .stage__caption {
    position: static;
  }

  .gate__form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- the mark: "SEO" on green, then the wordmark ------------------------------- */
.top__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.seo-tag {
  display: inline-grid;
  place-items: center;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 0.3rem;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* --- the language menu, as on coleoni.com (light) ---------------------------------- */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 0.6rem 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #ffffff;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  list-style: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.lang__btn::-webkit-details-marker {
  display: none;
}

.lang__btn:hover,
.lang[open] .lang__btn {
  border-color: var(--line-strong);
  color: var(--ink);
}

.lang__btn svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang__btn .lang__chev {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: -0.15rem;
  transition: transform 240ms ease;
}

.lang[open] .lang__chev {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.5rem);
  right: 0;
  display: grid;
  gap: 2px;
  min-width: 10.5rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 2.25rem;
  padding: 0 0.6rem;
  border-radius: 0.5rem;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
}

.lang__menu a:hover {
  background: var(--soft);
  color: var(--ink);
}

.lang__menu a[aria-current="true"] {
  color: var(--ink);
}

.lang__menu svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.lang__menu a[aria-current="true"] svg {
  opacity: 1;
}

/* --- scanning: the console ---------------------------------------------------------- */
.console {
  max-width: 38rem;
}

.progress {
  margin-top: 2rem;
}

.progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.progress__phase {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.progress__phase::after {
  display: inline-block;
  width: 1.2em;
  text-align: left;
  content: "";
  animation: dots 1.2s steps(4) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

.progress__pct {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 540;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.progress__bar {
  display: block;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.08);
}

.progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 500ms ease;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.chips li::before {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.65rem;
  content: "";
}

.chips li.is-active {
  color: var(--ink);
}

.chips li.is-active::before {
  border-color: var(--ink);
  animation: pulse 1.2s ease-in-out infinite;
}

.chips li.is-done {
  color: var(--ink);
}

.chips li.is-done::before {
  border-color: var(--lime);
  background: var(--lime);
  content: "✓";
}

.feed {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feed__title {
  margin: 0 0 0.75rem;
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed ul {
  display: grid;
  gap: 0.45rem;
  max-height: 16rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
}

.feed li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  animation: feed-in 360ms ease both;
}

.feed li::before {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ok);
  content: "";
  transform: translateY(-0.05rem);
}

.feed li.is-warn::before {
  background: #f5a524;
}

.feed li.is-fail::before {
  background: var(--fail);
}

.feed li small {
  color: var(--ink-3);
}

@keyframes feed-in {
  from { opacity: 0; transform: translateY(6px); }
}

/* --- report: the tools under the score ------------------------------------------------ */
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.tool {
  display: inline-flex;
  align-items: center;
  height: 2.4rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: none;
}

.tool:hover {
  border-color: var(--ink);
}

.block {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(3rem, 6vw, 4.5rem);
}

.block__sub {
  max-width: 44rem;
  margin: -1rem 0 1.75rem;
  color: var(--ink-2);
}

.block__h3 {
  margin: 2.25rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

/* the locked part: an outline blurred under the form */
.locked {
  position: relative;
  max-width: var(--max);
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
  padding: 0 var(--pad);
}

.locked__outline {
  display: grid;
  gap: 2.5rem;
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.locked__block .section-title {
  margin-bottom: 1rem;
}

.locked__block span {
  display: block;
  height: 0.85rem;
  margin-top: 0.7rem;
  border-radius: 0.3rem;
  background: #e6e6e8;
}

.locked__block span:nth-child(2) { width: 92%; }
.locked__block span:nth-child(3) { width: 78%; }
.locked__block span:nth-child(4) { width: 64%; }

.gate {
  position: absolute;
  top: clamp(1rem, 4vw, 3rem);
  left: 50%;
  display: block;
  width: min(36rem, calc(100% - 2 * var(--pad)));
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #f5f5f5;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55);
  transform: translateX(-50%);
}

.gate h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.gate > p {
  margin: 0.85rem 0 1.5rem;
  color: #a0a0a0;
}

.gate__form .gate__wide {
  grid-column: 1 / -1;
}

.trap {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* the AI reading */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.facts-grid > div {
  padding: 1.1rem 1.25rem;
  background: #ffffff;
}

.facts-grid dt {
  margin-bottom: 0.35rem;
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts-grid dd {
  margin: 0;
}

.level {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.level--high { background: rgba(174, 250, 14, 0.4); color: var(--ok); }
.level--medium { background: rgba(245, 165, 36, 0.18); color: var(--warn); }
.level--low { background: rgba(192, 58, 30, 0.12); color: var(--fail); }

.actions {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.actions li {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
}

.actions__n {
  font-family: "Geist Mono", monospace;
  color: var(--ink-3);
}

.actions h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.actions p {
  margin: 0;
  color: var(--ink-2);
}

.terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.terms ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-2);
}

.terms li {
  margin: 0.25rem 0;
}

.serp-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.serp-compare__item {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.serp-compare__item--suggested {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* every recommendation */
.recs {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.recs li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.recs h4 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}

.recs p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.priority,
.state {
  align-self: start;
  justify-self: start;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.priority--high { background: rgba(192, 58, 30, 0.12); color: var(--fail); }
.priority--medium { background: rgba(245, 165, 36, 0.18); color: var(--warn); }
.priority--low { background: var(--soft); color: var(--ink-2); }
.state--ok { background: rgba(174, 250, 14, 0.35); color: var(--ok); }
.state--warn { background: rgba(245, 165, 36, 0.16); color: var(--warn); }
.state--fail { background: rgba(192, 58, 30, 0.12); color: var(--fail); }
.state--na { background: var(--soft); color: var(--ink-3); }

/* technical rows */
.details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-row dt {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.detail-row q {
  quotes: "“" "”";
}

.detail-row small {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-3);
}

/* content numbers and headings */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
}

.stats dd {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 540;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stats dt {
  order: 2;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.headings {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.headings li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--line);
}

.headings span {
  display: inline-block;
  min-width: 2rem;
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
}

.headings__h2 { padding-left: 1rem !important; }
.headings__h3 { padding-left: 2rem !important; }
.headings__h4,
.headings__h5,
.headings__h6 { padding-left: 3rem !important; }

/* speed */
.speed {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.speed .ring.ring--small {
  width: 7.5rem;
}

.speed .ring.ring--small strong {
  font-size: 2.2rem;
}

.metrics {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric {
  padding: 1rem 1.1rem;
  background: #ffffff;
}

.metric dt {
  color: var(--ink-3);
  font-size: 0.82rem;
}

.metric dd {
  margin: 0.3rem 0 0;
  font-size: 1.45rem;
  font-weight: 540;
  letter-spacing: -0.03em;
}

.metric--ok dd { color: var(--ok); }
.metric--warn dd { color: var(--warn); }
.metric--fail dd { color: var(--fail); }

/* ready for AI search */
.ai-ready {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-ready li {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.ai-ready li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 0.8rem;
}

.ai-ready .is-ok > span { background: var(--lime); color: var(--ink); }
.ai-ready .is-no > span { background: rgba(192, 58, 30, 0.12); color: var(--fail); }

.ai-ready strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 560;
}

.ai-ready small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-3);
}

.ai-ready__count {
  margin: 1rem 0 0;
  color: var(--ink-2);
  font-family: "Geist Mono", monospace;
}

@media (max-width: 900px) {
  .facts-grid,
  .terms,
  .serp-compare,
  .ai-ready {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speed {
    flex-direction: column;
    align-items: stretch;
  }

  .speed .ring {
    align-self: center;
  }

  .detail-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .detail-row dd {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .gate {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin-top: -14rem;
    transform: none;
  }

  .recs li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
}

/* --- the PDF: the browser's print, without the page's chrome ---------------------- */
@media print {
  .top .lang,
  .tools,
  .talk .button,
  .foot {
    display: none !important;
  }

  .phone--once,
  .phone--loop {
    --scan: 100%;
    animation: none;
  }

  .phone__beam {
    display: none;
  }

  .block,
  .report-head {
    break-inside: avoid-page;
  }

  body {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
