/* The front page. */

/* ── Banner: an inset grey panel; the example scan stands in it ── */

.banner {
  position: relative;
  margin: 0 12px;
  border-radius: 22px;
  background: var(--panel);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  /* the banner sits 12px in from the window; its text still lines up with the column below */
  padding: 72px max(40px, calc((100vw - var(--column)) / 2 - 12px)) 0;
  min-height: 560px;
}

.banner-copy {
  padding-bottom: 96px;
}

.banner-sub {
  margin: 18px 0 28px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--ink-2);
}

.banner.closing {
  display: block;
  min-height: 0;
  padding-top: 72px;
}

.banner.closing .banner-copy {
  padding-bottom: 72px;
}

.banner.closing h2 {
  margin-bottom: 24px;
}

/* The example scan: a white window, cut off by the bottom of the banner. */
.demo {
  align-self: end;
  display: block;
  text-decoration: none;
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-window);
  padding: 10px 10px 0;
  transition: transform 0.6s var(--spring), opacity 0.5s var(--out);
}

.demo[hidden] {
  display: block;
  visibility: hidden;
}

.demo.arriving {
  opacity: 0;
  transform: translateY(28px);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.demo-name {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fill);
  font-weight: 500;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-state {
  color: var(--ink-2);
  margin-left: auto;
  padding-right: 6px;
  white-space: nowrap;
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 14px;
  height: 436px;
}

.demo-shot {
  position: relative;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: var(--fill);
}

.demo-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: opacity 0.5s var(--out);
}

/* Not read yet: grey. The colour copy on top is uncovered as the scan line passes. */
.demo-shot .unread {
  filter: grayscale(1) contrast(0.8) brightness(1.08);
}

.demo-shot .read {
  clip-path: inset(0 0 calc(100% - var(--read, 0%)) 0);
}

.demo-line {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--read, 0%);
  height: 2px;
  margin-top: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s var(--out);
}

.demo.scanning .demo-line {
  opacity: 1;
}

.demo-side {
  display: flex;
  flex-direction: column;
  padding: 2px 4px 0 0;
  min-width: 0;
}

.demo-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1;
}

.demo-score b {
  font-size: 40px;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.demo-score span {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  font-weight: 500;
}

.demo-word {
  margin: 6px 0 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  min-height: 19px;
}

.demo-rows {
  display: grid;
  gap: 7px;
  font-size: 12px;
}

.demo-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  color: var(--ink-3);
  transition: color 0.35s var(--out);
}

.demo-rows li.read {
  color: var(--ink);
}

.demo-rows .meter i {
  width: 9px;
  height: 5px;
}

@media (max-width: 980px) {
  .banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 56px 24px 0;
  }
  .banner-copy {
    padding-bottom: 48px;
  }
  .banner.closing {
    padding-top: 56px;
  }
  .banner.closing .banner-copy {
    padding-bottom: 56px;
  }
}

@media (max-width: 560px) {
  .banner {
    padding: 40px 16px 0;
  }
  .demo-body {
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: 10px;
    height: 372px;
  }
  .demo-score b {
    font-size: 32px;
  }
  .demo-rows {
    gap: 5px;
    font-size: 12px;
  }
  .demo-rows .meter i {
    width: 6px;
  }
  .demo-state {
    display: none;
  }
  .demo-name {
    max-width: 100%;
  }
}

/* ── Sections ─────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.lead {
  display: grid;
  gap: 14px;
  justify-items: start;
  max-width: 38ch;
}

.lead .button {
  margin-top: 10px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* What it looks at: two quiet columns, no cards, no icons. */
.aspects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}

.aspects dt {
  font-weight: 600;
}

.aspects dd {
  color: var(--ink-2);
  font-size: 13px;
}

@media (max-width: 480px) {
  .aspects {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

/* Scanned sites */
.headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

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

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

@media (max-width: 520px) {
  .wall {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  display: block;
  text-decoration: none;
  transition: transform 0.12s var(--out);
}

.card-shot {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fill);
  box-shadow: var(--shadow-card);
}

.card-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 1.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-shot img {
    transform: scale(1.02);
  }
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-weight: 600;
}

.card-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-score {
  font-variant-numeric: tabular-nums;
}

.card-sub {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.wall-empty {
  grid-column: 1 / -1;
  color: var(--ink-2);
}

/* The full report: the words on the page, the sample as the one card. */
.panel {
  align-items: center;
}

.sample {
  background: var(--paper);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 28px 28px 30px;
}

.sample h3 + ul {
  margin: 10px 0 22px;
}

.sample ul:last-child {
  margin-bottom: 0;
}

.sample li {
  padding: 5px 0;
}

/* What is paid for: there, but not readable. */
.veiled {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

/* Questions: soft bars */
.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--fill);
  border-radius: 14px;
}

.faq summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
}

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

/* A plus that turns into a minus. */
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform 0.5s var(--spring);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 18px 18px;
  max-width: 62ch;
  color: var(--ink-2);
}

@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.45s var(--out), content-visibility 0.45s allow-discrete;
  }
  .faq details[open]::details-content {
    block-size: auto;
  }
}

/* ── The pinned row: appears once the paste field has scrolled away ── */

.jumper {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  height: var(--control);
  padding: 3px;
  display: flex;
  border-radius: 999px;
  box-shadow: var(--shadow-float);
  transform: translate(-50%, 72px);
  opacity: 0;
  transition: transform 0.45s var(--out), opacity 0.3s var(--out);
}

.jumper.on {
  transform: translate(-50%, 0);
  opacity: 1;
  transition: transform 0.7s var(--spring), opacity 0.3s var(--out);
}

.jumper a {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: transform 0.12s var(--out), color 0.15s var(--out), background-color 0.2s var(--out);
}

.jumper a:active {
  transform: scale(0.97);
}

.jumper a[aria-current="true"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.jumper a.go {
  background: var(--ink);
  color: #fff;
  margin-left: 3px;
}

@media (max-width: 520px) {
  .jumper .optional {
    display: none;
  }
}
