/* Landing product vignettes — the hero "written site review" document and the
   captioned client-dashboard preview. Additive layer over tks-landing.css;
   remove the single <link> in show.blade.php to revert. Everything here is
   illustrative UI (no fabricated metrics) and both frames carry a caption. */

/* Captioned frames: pin the caption to the bottom edge of the window. */
.tks-landing .tks-dashboard-preview--captioned {
  display: flex;
  flex-direction: column;
}

.tks-landing .tks-dashboard-preview--captioned > .tks-review-doc,
.tks-landing .tks-dashboard-preview--captioned > .tks-dashboard-preview__body {
  flex: 1;
}

.tks-landing .tks-preview-caption {
  margin: 0;
  padding: 9px 20px;
  border-top: 1px solid var(--tks-landing-border);
  background: #fbfaf7;
  color: var(--tks-landing-muted);
  font-size: 11.5px;
  font-style: italic;
}

/* Fake-browser address pill inside the existing chrome bar. */
.tks-landing .tks-dashboard-preview__chrome .tks-preview-url {
  margin-left: 10px;
  padding: 4px 12px;
  border: 1px solid var(--tks-landing-border);
  border-radius: 999px;
  background: var(--tks-landing-card);
  color: var(--tks-landing-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ---- The written site review document (hero) ---- */

.tks-landing .tks-review-doc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 22px 24px;
}

.tks-landing .tks-review-doc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tks-landing .tks-review-doc__brand {
  color: var(--tks-landing-accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tks-landing .tks-review-doc__title strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
}

.tks-landing .tks-review-doc__title span {
  display: block;
  margin-top: 4px;
  color: var(--tks-landing-muted);
  font-size: 13px;
}

.tks-landing .tks-review-doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px;
}

.tks-landing .tks-review-score,
.tks-landing .tks-review-compare {
  border: 1px solid var(--tks-landing-border);
  border-radius: var(--tks-landing-radius-sm, 12px);
  background: #fbfaf7;
  padding: 14px;
  min-width: 0;
}

.tks-landing .tks-review-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tks-landing .tks-review-score__ring {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--tks-landing-accent) 0 62%, #e8e5de 62% 100%);
}

.tks-landing .tks-review-score__ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fbfaf7;
}

.tks-landing .tks-review-score strong {
  display: block;
  font-size: 13.5px;
}

.tks-landing .tks-review-score div span {
  display: block;
  margin-top: 2px;
  color: var(--tks-landing-muted);
  font-size: 12px;
}

.tks-landing .tks-review-compare > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.tks-landing .tks-review-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-bottom: 9px;
}

.tks-landing .tks-review-compare__row span {
  color: var(--tks-landing-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.tks-landing .tks-review-compare__row i {
  display: block;
  height: 7px;
  border-radius: 999px;
}

.tks-landing .tks-review-compare__row i.is-them {
  width: 88%;
  background: var(--tks-landing-navy, #21324a);
  opacity: 0.85;
}

.tks-landing .tks-review-compare__row i.is-you {
  width: 34%;
  background: var(--tks-landing-accent);
}

.tks-landing .tks-review-compare__legend {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tks-landing-muted);
  font-size: 11px;
}

.tks-landing .tks-review-compare__legend em {
  width: 14px;
  height: 7px;
  border-radius: 999px;
  font-style: normal;
}

.tks-landing .tks-review-compare__legend em.is-them { background: var(--tks-landing-navy, #21324a); opacity: 0.85; }
.tks-landing .tks-review-compare__legend em.is-you { background: var(--tks-landing-accent); margin-left: 8px; }

.tks-landing .tks-review-fixes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.tks-landing .tks-review-fixes li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tks-landing-border);
  border-radius: var(--tks-landing-radius-sm, 12px);
  background: var(--tks-landing-card);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 650;
}

.tks-landing .tks-review-fixes li em {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tks-landing-accent-soft);
  color: var(--tks-landing-accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.tks-landing .tks-review-doc__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tks-landing .tks-review-doc__sections span {
  padding: 4px 10px;
  border: 1px solid var(--tks-landing-border);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--tks-landing-muted);
  font-size: 11px;
  font-weight: 750;
}

/* Hero layout: wider than the rest of the page, with the columns rebalanced
   so the copy isn't cramped. The hero's inner width comes from the same
   --tks-landing-max the padding calc uses, so scoping a larger value here
   widens only this section (its navy background is full-bleed already).

   Desktop only, and it must stay that way. landing.css collapses the hero to a
   single column at <=1040px; this file loads after it at equal specificity, so
   an unconditional grid-template-columns here won that media query at EVERY
   width. On a phone the 500px minimum on the visual column then exceeded the
   viewport on its own, which drove the copy column's minmax(0, 1fr) to zero
   width: the h1 spilled out of its own track, the review card started on top of
   it, and the rest of the card ran off the right edge of the screen. */
@media (min-width: 1041px) {
  .tks-landing .tks-landing-hero {
    --tks-landing-max: 1360px;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 1fr);
    gap: 48px;
  }
}

/* The visual column: review vignette with the primary CTA directly beneath. */
.tks-landing .tks-landing-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.tks-landing .tks-landing-hero__visual > .tks-dashboard-preview--hero {
  width: 100%;
}

.tks-landing .tks-landing-hero__visual-cta {
  margin-top: 12px;
}

/* "Already decided?" path under the hero copy — same text treatment as
   .tks-landing-hero__reassurance so it reads clearly on the navy. */
.tks-landing .tks-hero-startlink {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.45;
}

.tks-landing .tks-hero-startlink a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Secondary (review) link in the sticky CTA bar. Unscoped on purpose — the
   sticky bar sits outside .tks-landing. */
.tks-sticky-cta .tks-sticky-cta__link {
  color: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .tks-landing .tks-review-doc__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tks-landing .tks-dashboard-preview__chrome .tks-preview-url {
    display: none;
  }

  .tks-sticky-cta .tks-sticky-cta__link {
    display: none;
  }
}
