/* Business review: /review and /review/r/<id>. Builds on the tokens in home.css. */
:root {
  --good: #1f8f5f;
  --good-bg: #e6f5ee;
  --ok: #b7791f;
  --ok-bg: #fdf3dc;
  --bad: #c4161c;
  --bad-bg: #fde8e8;
  --soft: #f6f6f8;
}
.rv-ico { width: 1.2em; height: 1.2em; flex: none; }
.rv-lock { overflow: hidden; }

/* ---------- landing ---------- */
.rv-hero { padding: 64px 0 56px; background: radial-gradient(900px 420px at 85% -10%, rgba(138, 15, 20, 0.09), transparent 60%), #fff; }
.rv-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.rv-copy h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 16px; }
.rv-lead { font-size: 1.1rem; line-height: 1.65; color: var(--muted); max-width: 40rem; margin: 0 0 28px; }
.rv-form { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px -24px rgba(21, 21, 26, 0.28); }
.rv-field { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px; border-radius: 12px; background: var(--soft); }
.rv-field span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rv-field em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.rv-field input { border: 0; background: transparent; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 4px 0; outline: none; width: 100%; }
.rv-field:focus-within { outline: 2px solid var(--red); background: #fff; }
.rv-go { grid-column: 1 / -1; justify-content: center; padding: 16px 24px; font-size: 1.05rem; }
.rv-form .form-error { grid-column: 1 / -1; margin: 0; }
.rv-examples { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rv-examples button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.85rem; color: var(--ink); cursor: pointer; }
.rv-examples button:hover { border-color: var(--red); color: var(--red); }
.rv-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.92rem; }
.rv-trust li { display: flex; align-items: center; gap: 8px; }
.rv-trust .ico { width: 18px; height: 18px; color: var(--red); }
.rv-resume { margin-top: 16px; padding: 10px 14px; background: var(--good-bg); border-radius: 10px; color: var(--good); font-weight: 600; }
.rv-resume a { text-decoration: underline; }

.rv-sample { position: relative; }
.rv-sample-tag { position: absolute; top: -14px; left: 24px; z-index: 2; background: var(--ink); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.rv-sample-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 30px 70px -30px rgba(21, 21, 26, 0.35); transform: rotate(1.4deg); }
.rv-sample-top { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rv-sample-top small, .rv-sample-row small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.rv-ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) 54%, #ececf0 0); position: relative; flex: none; }
.rv-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.rv-ring b { position: relative; z-index: 1; font-size: 1.15rem; }
.rv-sample-row { display: flex; gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 8px; background: var(--soft); align-items: flex-start; }
.rv-sample-row i { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.rv-sample-row.bad i { background: var(--bad); } .rv-sample-row.mid i { background: var(--ok); } .rv-sample-row.ok i { background: var(--good); }
.rv-sample-cta { margin-top: 14px; text-align: center; background: var(--red); color: #fff; font-weight: 700; padding: 12px; border-radius: 999px; }

.rv-how { padding: 64px 0 80px; background: var(--soft); }
.rv-how h2 { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 36px; }
.rv-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rv-how-grid > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.rv-how-grid h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.rv-how-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.rv-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }

/* ---------- modal ---------- */
.rv-modal[hidden] { display: none; }
.rv-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.rv-backdrop { position: absolute; inset: 0; background: rgba(15, 15, 18, 0.62); backdrop-filter: blur(3px); }
.rv-dialog { position: relative; width: min(460px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; padding: 32px 28px 26px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55); }
.rv-dialog h2 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -0.02em; }
.rv-dialog-sub { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }
.rv-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; }
.rv-hint { background: var(--ok-bg); color: #7a5214; border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; line-height: 1.5; margin: 0 0 14px; }
.rv-full { width: 100%; justify-content: center; margin-top: 4px; }
#rvCode { letter-spacing: 0.4em; font-size: 1.4rem; text-align: center; font-weight: 700; }
.rv-dialog-links { display: flex; justify-content: space-between; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.rv-link { border: 0; background: none; color: var(--red); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 4px 0; }
.rv-link:disabled { color: var(--muted); cursor: default; font-weight: 500; }

/* ---------- progress ---------- */
.rv-progress { padding: 64px 0 80px; min-height: 70vh; }
.rv-progress[hidden] { display: none; }
.rv-progress-box { max-width: 900px; }
.rv-progress-box h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.03em; margin: 6px 0 12px; }
.rv-bar { height: 12px; border-radius: 999px; background: #ececf0; overflow: hidden; margin: 22px 0 10px; }
.rv-bar i { display: block; height: 100%; width: 4%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--red-bright)); transition: width 0.8s ease; }
.rv-step { font-weight: 700; margin: 0 0 24px; }
.rv-progress-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; }
.rv-stages { list-style: none; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 10px; align-content: start; }
.rv-stages li { display: flex; align-items: center; gap: 12px; color: #9a9aa3; font-weight: 600; }
.rv-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d9d9df; display: grid; place-items: center; color: transparent; flex: none; }
.rv-dot .rv-ico { width: 14px; height: 14px; }
.rv-stages li.now { color: var(--ink); } .rv-stages li.now .rv-dot { border-color: var(--red); animation: rvPulse 1.2s infinite; }
.rv-stages li.done { color: var(--ink); } .rv-stages li.done .rv-dot { background: var(--good); border-color: var(--good); color: #fff; }
@keyframes rvPulse { 50% { box-shadow: 0 0 0 6px rgba(138, 15, 20, 0.14); } }
.rv-feed { list-style: none; margin: 0; padding: 20px; background: var(--soft); border-radius: 18px; display: grid; gap: 12px; align-content: start; min-height: 220px; }
.rv-feed li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; animation: rvIn 0.4s ease; }
.rv-feed-ico { color: var(--red); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; flex: none; }
@keyframes rvIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- report ---------- */
.rp-loading, .rp-empty-page { padding: 120px 0; text-align: center; color: var(--muted); }
.rp-empty-page h1 { color: var(--ink); }
.rp-spin { width: 36px; height: 36px; margin: 0 auto 14px; border: 3px solid #e3e3e8; border-top-color: var(--red); border-radius: 50%; animation: rpSpin 0.8s linear infinite; }
@keyframes rpSpin { to { transform: rotate(360deg); } }
.rp-head { padding: 56px 0 40px; background: radial-gradient(800px 380px at 90% -20%, rgba(138, 15, 20, 0.1), transparent 60%), #fff; }
.rp-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; align-items: center; }
.rp-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 6px; overflow-wrap: anywhere; }
.rp-meta { color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.rp-headline { font-size: 1.25rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.rp-summary { color: var(--muted); line-height: 1.7; margin: 0 0 18px; max-width: 46rem; }
.rp-warn { display: flex; gap: 8px; align-items: flex-start; background: var(--ok-bg); color: #7a5214; border-radius: 10px; padding: 10px 12px; font-size: 0.9rem; margin: 0 0 18px; }
.rp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-actions.center { justify-content: center; }
.rp-sent { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px 16px; background: var(--good-bg); color: var(--good); font-weight: 600; font-size: 0.92rem; text-align: center; }
.rp-section { padding: 52px 0; }
.rp-section:nth-of-type(even) { background: var(--soft); }
.rp-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.rp-sub { color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.rp-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.rp-score { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; text-align: center; }
.rp-score h3 { font-size: 0.98rem; margin: 10px 0 6px; }
.rp-score p { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.rp-ring { position: relative; width: 92px; height: 92px; margin: 0 auto; }
.rp-ring svg { width: 100%; height: 100%; }
.rp-ring circle { fill: none; stroke-width: 8; }
.rp-ring .bg { stroke: #ececf0; }
.rp-ring .fg { stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.rp-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.55rem; }
.rp-score.good .fg { stroke: var(--good); } .rp-score.ok .fg { stroke: var(--ok); } .rp-score.low .fg { stroke: var(--bad); }
.rp-score.good b { color: var(--good); } .rp-score.ok b { color: var(--ok); } .rp-score.low b { color: var(--bad); }
.rp-overall .rp-score { padding: 24px 16px; box-shadow: 0 24px 60px -34px rgba(21, 21, 26, 0.4); }
.rp-overall .rp-ring { width: 130px; height: 130px; } .rp-overall .rp-ring b { font-size: 2.3rem; }
.rp-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.rp-tag.measured { background: #e8eefc; color: #2b4fb0; } .rp-tag.estimate { background: #efeff3; color: #5d5d66; }

.rp-shot-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 28px; align-items: end; }
.rp-browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -36px rgba(21, 21, 26, 0.5); }
.rp-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f0f0f4; border-bottom: 1px solid var(--line); }
.rp-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3d3da; }
.rp-browser img, .rp-phone img { display: block; width: 100%; height: auto; }
.rp-phone { border: 8px solid #15151a; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(21, 21, 26, 0.55); }

.rp-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rp-checks li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.rp-checks li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; flex: none; }
.rp-checks .ok span { background: var(--good-bg); color: var(--good); } .rp-checks .no span { background: var(--bad-bg); color: var(--bad); }
.rp-checks .no { color: #6b1115; }

.rp-found { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rp-fact { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 44px 14px 16px; display: grid; gap: 2px; }
.rp-fact span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.rp-fact b { overflow-wrap: anywhere; line-height: 1.4; }
.rp-fact a { position: absolute; top: 12px; right: 12px; color: var(--muted); }
.rp-fact a:hover { color: var(--red); }
.rp-strengths { margin-top: 22px; background: var(--good-bg); border-radius: 16px; padding: 18px 20px; }
.rp-strengths h3 { margin: 0 0 10px; color: var(--good); }
.rp-strengths ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-strengths li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.rp-strengths li span { color: var(--good); margin-top: 2px; }

.rp-social { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.rp-soc { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rp-soc > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--red); }
.rp-soc small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.rp-soc.not_found { border-color: #f0b4b6; }
.rp-empty { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px dashed #d4d4da; border-radius: 14px; padding: 18px; color: var(--muted); }
.rp-empty p { margin: 0; }

.rp-issue { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--ok); border-radius: 16px; padding: 22px 24px; margin-bottom: 16px; }
.rp-issue.sev-high { border-left-color: var(--bad); } .rp-issue.sev-low { border-left-color: var(--good); }
.rp-issue header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.rp-num { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.rp-issue h3 { margin: 6px 0 0; font-size: 1.15rem; line-height: 1.3; }
.rp-issue p { margin: 8px 0 0; line-height: 1.65; color: #3a3a42; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #efeff3; color: #5d5d66; }
.chip.sev { background: var(--ok-bg); color: #7a5214; }
.sev-high .chip.sev { background: var(--bad-bg); color: var(--bad); } .sev-low .chip.sev { background: var(--good-bg); color: var(--good); }
.chip.ver { background: var(--good-bg); color: var(--good); } .chip.unv { background: #efeff3; color: #5d5d66; }
.rp-evidence { background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 0.92rem; }
.rp-fix { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff6f6; border: 1px solid #f3d3d4; line-height: 1.55; }
.rp-fix > span { color: var(--red); margin-top: 2px; }
.rp-fix small { display: block; margin-top: 6px; color: var(--red); font-weight: 700; }

.rp-plan .container { display: grid; gap: 20px; }
.rp-plan h2, .rp-plan .rp-sub { margin-bottom: 0; }
.rp-when { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.rp-when h3 { margin: 0 0 14px; color: var(--red); }
.rp-step { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rp-step:first-of-type { border-top: 0; padding-top: 0; }
.rp-step > span { color: var(--red); margin-top: 2px; }
.rp-step p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }

.rp-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rp-service { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 6px; justify-items: start; }
.rp-service > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff0f0; color: var(--red); }
.rp-service small { color: var(--muted); }

.rp-cta { background: var(--dark); color: #fff; padding: 64px 0; text-align: center; }
.rp-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.rp-cta p { color: #c9c9d2; max-width: 38rem; margin: 0 auto 24px; line-height: 1.65; }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, 0.45); color: #fff; background: transparent; border-radius: 999px; padding: 13px 26px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.rp-fine { background: #fff !important; }
.rp-fine h3 { margin: 18px 0 6px; font-size: 1rem; }
.rp-fine p, .rp-fine li { color: var(--muted); line-height: 1.6; }
.rp-src { padding-left: 18px; } .rp-src a { text-decoration: underline; overflow-wrap: anywhere; }

@media (max-width: 920px) {
  .rv-hero-grid, .rp-head-grid, .rv-progress-grid, .rp-shot-wrap { grid-template-columns: minmax(0, 1fr); }
  .rv-hero { padding: 40px 0; } .rv-sample { max-width: 460px; margin: 10px auto 0; }
  .rv-how-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-overall { max-width: 230px; } .rp-phone { max-width: 220px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .rv-form { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .rv-dialog { padding: 28px 20px 22px; }
  .rp-issue { padding: 18px 16px; } .rp-section { padding: 38px 0; }
  .rp-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .rv-bar i, .rp-ring .fg, .rv-feed li, .rp-spin, .rv-stages li.now .rv-dot { animation: none; transition: none; } }
.rp-stat .rp-ring { display: grid; place-items: center; border-radius: 50%; border: 8px solid #ececf0; }
.rp-stat.good .rp-ring { border-color: var(--good); } .rp-stat.ok .rp-ring { border-color: var(--ok); } .rp-stat.low .rp-ring { border-color: var(--bad); }
.rp-stat .rp-ring b { position: static; font-size: 1.35rem; }
