/* ============================================================
   SAMPLE REPORT — the "see a real report before you buy" block on the PDP.

   Additive only: this file is linked alongside site.css + pages.css and
   redefines nothing from either, so the ported design CSS stays byte-identical
   to design/current. Tokens (--forest, --line, --ink-*, --shadow-*) come from
   site.css.

   The preview mirrors the real dashboard's Results <-> Recommendations toggle,
   sits in a browser frame, and fades out at the fold; the button opens the
   full-length screenshot in a scrollable full-screen viewer.
   ============================================================ */

.sample-report { background: var(--cream-2); }
.sample-report .sr-head { max-width: 62ch; margin: 0 auto 30px; text-align: center; }
.sample-report .sr-head .lede { margin-top: 14px; }

/* ---------- toggle: the dashboard's own rec-tabs, restated for the PDP ---- */
.sr-tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-1);
}
.sr-tabswrap { display: flex; justify-content: center; margin-bottom: 22px; }
.sr-tab {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 700; line-height: 1;
  color: var(--ink-500); background: transparent;
  padding: 11px 20px; border-radius: 999px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.sr-tab:hover { color: var(--ink-900); }
.sr-tab[aria-selected="true"] { background: var(--green); color: #fff; }
.sr-tab:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.sr-tab .sr-count {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--green-tint); color: var(--green-700);
}
.sr-tab[aria-selected="true"] .sr-count { background: rgba(255,255,255,0.22); color: #fff; }

/* ---------- browser frame ------------------------------------------------ */
.sr-frame {
  margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.sr-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; background: var(--sunken);
  border-bottom: 1px solid var(--line);
}
.sr-chrome .sr-dot { width: 10px; height: 10px; border-radius: 50%; background: #d9d2c2; flex: none; }
.sr-chrome .sr-url {
  flex: 1; text-align: center; margin-right: 42px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* The shot is deliberately cropped at the fold: top-aligned, fixed height, and
   faded out so the frame reads as "there is more below" rather than as a
   short page. Opening the viewer is what shows the rest. */
.sr-shot { position: relative; height: clamp(380px, 52vw, 730px); overflow: hidden; background: #f6f7f2; }
.sr-shot > img { display: block; width: 100%; height: auto; }
.sr-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 190px; pointer-events: none;
  background: linear-gradient(180deg, rgba(253,251,246,0) 0%, rgba(253,251,246,0.86) 58%, var(--cream) 100%);
}
.sr-open {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  appearance: none; cursor: pointer; border: 1px solid var(--green-600);
  background: var(--green); color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1;
  padding: 14px 22px; border-radius: 999px; box-shadow: var(--shadow-2);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.sr-open:hover { background: var(--green-600); transform: translateX(-50%) translateY(-1px); }
.sr-open:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.sr-note {
  margin: 16px auto 0; max-width: 70ch; text-align: center;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-400);
}

/* ---------- full-screen viewer ------------------------------------------- */
.sr-viewer {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(18,26,15,0.90); backdrop-filter: blur(3px);
  display: flex; flex-direction: column;
}
.sr-viewer-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(14px, 3vw, 28px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sr-viewer-title {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em;
  text-transform: uppercase; color: rgba(244,248,234,0.78);
}
.sr-viewer-actions { display: flex; align-items: center; gap: 8px; }
.sr-viewer-tab {
  appearance: none; cursor: pointer; border: 1px solid rgba(255,255,255,0.22);
  background: transparent; color: rgba(244,248,234,0.86);
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; line-height: 1;
  padding: 9px 15px; border-radius: 999px;
}
.sr-viewer-tab[aria-selected="true"] { background: var(--lime); border-color: var(--lime); color: #14310c; }
.sr-viewer-close {
  appearance: none; cursor: pointer; border: 1px solid rgba(255,255,255,0.22);
  background: transparent; color: #fff; font-family: var(--sans);
  font-size: 13.5px; font-weight: 700; line-height: 1; padding: 9px 15px; border-radius: 999px;
}
.sr-viewer-close:hover, .sr-viewer-tab:hover { background: rgba(255,255,255,0.14); }
.sr-viewer-close:focus-visible, .sr-viewer-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.sr-viewer-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: clamp(14px, 3vw, 30px); }
.sr-viewer-scroll > img {
  display: block; width: 100%; max-width: 1180px; height: auto; margin: 0 auto;
  border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}

@media (max-width: 760px) {
  .sr-chrome .sr-url { margin-right: 0; }
  .sr-shot { height: clamp(300px, 74vw, 430px); }
  .sr-tab { padding: 10px 15px; font-size: 13.5px; }
  .sr-viewer-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sr-tab, .sr-open { transition: none; }
  .sr-open:hover { transform: translateX(-50%); }
}
