/* Listrank home. The hero is the seller's own sentence, corrected the way Listrank corrects a listing: the plum
   caret from the icon inserts what the audit found. Below it, one listing from a sample shop carries the same marks. */
.caret-hero { padding: clamp(72px, 9vw, 120px) 0 64px; border-bottom: 4px double var(--ink); }
.caret-line { margin: 0; max-width: none; font-size: clamp(42px, 6vw, 88px); font-stretch: 78%; line-height: 1.02; letter-spacing: -0.03em; word-spacing: 0.08em; text-wrap: balance; }
/* The insertion: the caret sits on the baseline right after "listings" (the two never wrap apart), and the inserted
   words ride on a plum rule in a band the line reserves above itself, ending at the caret. The line grows to hold the
   band, so the note never covers the headline at any width. */
.insert-at { white-space: nowrap; }
.insert { position: relative; display: inline-block; padding-top: .74em; margin-inline: .06em .1em; line-height: 1; }
.insert::after { content: ""; display: inline-block; vertical-align: -.16em; width: .74em; height: .54em; background: var(--plum-text); -webkit-mask: var(--caret-mask) center / contain no-repeat; mask: var(--caret-mask) center / contain no-repeat; }
.insert-words { position: absolute; top: 0; right: 0; white-space: nowrap; font-size: .42em; font-stretch: 85%; line-height: 1; letter-spacing: 0.005em; word-spacing: 0.12em; color: var(--plum-text); }
.insert-words::after { content: ""; display: block; height: .16em; margin-top: .16em; background: var(--plum-text); border-radius: 1em; }

.hero-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: 44px; padding-top: 28px; border-top: 3px double var(--ink); }
.hero-copy .lede { margin: 0 0 22px; font-size: 19px; max-width: 40ch; }
.hero-copy .cta-row { flex-direction: column; align-items: stretch; gap: 12px; max-width: 300px; margin: 0; }
.hero-copy .cta-row > .btn { flex: none; text-align: left; }
.hero-alt { margin: 14px 0 0; font-size: 15px; }

/* One listing as the seller sees it: photo, title, tags. The carets insert, the struck words go. */
.listing-card { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); }
.listing-card img { display: block; width: 340px; height: 270px; }
.listing-body { padding: 20px 24px; }
.listing-body .problems { position: absolute; right: 16px; top: 16px; padding: 3px 10px; font-size: 14px; }
.listing-meta { margin: 0; font-size: 13px; color: var(--muted); }
.listing-title { margin: 10px 0 0; font: 700 23px/1.3 var(--head); font-stretch: 90%; }
.listing-title ins, .listing-tags ins { text-decoration: none; color: var(--plum-text); }
.listing-title del { color: var(--muted); font-weight: 500; text-decoration-color: var(--plum-text); text-decoration-thickness: 2px; }
.listing-why { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.listing-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.listing-tags > span:not(.caret), .listing-tags ins { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.listing-tags ins { border-color: var(--plum-text); font-weight: 600; }
.listing-tags .caret { font-size: 22px; }

@media (max-width: 1060px) {
  .hero-row { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy .cta-row { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .listing-card { max-width: 720px; }
}
@media (max-width: 680px) {
  .caret-hero { padding: 64px 0 40px; }
  .caret-line { line-height: 1.3; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-card img { width: 100%; height: auto; aspect-ratio: 340 / 270; }
  .listing-body .problems { top: auto; right: 16px; }
}

/* More in the extension: label column wide enough for one line, two columns of facts */
#features .change { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
#features .change li { grid-template-columns: 150px minmax(0, 1fr); }
#features .change b { white-space: nowrap; }
@media (max-width: 760px) {
  #features .change { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  #features .change li { grid-template-columns: minmax(0, 1fr); }
}
