/* ============================================================
   WebsiteRedirect - content pages: redirect checker, guides, comparison
   ============================================================ */

/* ---------- Page hero ---------- */
.page-hero { margin-top: calc(var(--nav-space) * -1); padding: calc(var(--nav-space) + clamp(28px, 5vw, 72px)) 0 clamp(44px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero.on-dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 6px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 56px, transparent 56px 96px); }
.page-hero-light { background: var(--road); }
.page-title { font-size: clamp(42px, 6.4vw, 88px); max-width: 16ch; }
.page-hero.on-dark .page-title { color: var(--on-dark); }
.page-lead { margin-top: 22px; max-width: 40em; }
.page-hero.on-dark .page-lead { color: var(--on-dark-2); }
.page-check { margin-top: 32px; max-width: 760px; }
.page-hint { margin: 14px 0 0; font-size: 15px; color: var(--on-dark-2); }
.page-hint .mono { color: var(--on-dark); }
.byline { display: flex; align-items: center; gap: 14px; margin: 28px 0 0; font-size: 15.5px; color: var(--tx-2); max-width: 60ch; line-height: 1.45; }
.byline strong { color: var(--tx); }
.founder-avatar { width: 44px; height: 44px; border-radius: 11px; background: var(--asphalt); color: var(--lime); display: grid; place-items: center; font-weight: 800; flex: none; font-size: 15px; }

/* ---------- Alerts ---------- */
.alert { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 18px 22px; border-radius: var(--r); border: 1.5px solid; }
.alert-bad { background: var(--red-wash); border-color: #F2B8B3; color: #7E1710; }

/* ---------- Checker report ---------- */
.report-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.report-summary { position: sticky; top: calc(var(--nav-space) + 20px); display: flex; flex-direction: column; gap: 18px; }
.grade { width: 168px; height: 168px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; animation: grade-in .7s cubic-bezier(.2,1.4,.4,1) both; }
.grade-letter { font-size: 104px; font-weight: 800; line-height: .82; letter-spacing: -0.05em; }
.grade-score { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.grade-a, .grade-b { background: var(--lime); color: var(--asphalt); box-shadow: inset 0 0 0 5px var(--lime), inset 0 0 0 9px var(--asphalt); }
.grade-c, .grade-d { background: #F6C343; color: var(--asphalt); box-shadow: inset 0 0 0 5px #F6C343, inset 0 0 0 9px var(--asphalt); }
.grade-f { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 5px var(--red), inset 0 0 0 9px var(--white); }
@keyframes grade-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
.break { word-break: break-all; }
.report-facts { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-facts div { background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.report-facts dt { font-size: 13px; color: var(--tx-3); font-weight: 600; }
.report-facts dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-note { margin: 0; font-size: 13.5px; color: var(--tx-3); }

.report-sub { font-size: 15px; font-weight: 800; color: var(--tx-2); margin: 0 0 14px; }
.report-sub:not(:first-child) { margin-top: 40px; }
.hops { list-style: none; margin: 0; padding: 0; position: relative; }
.hops::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 4px; background: repeating-linear-gradient(180deg, var(--asphalt) 0 12px, transparent 12px 22px); opacity: .25; }
.hop { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 8px 0; position: relative; }
.hop-no { width: 46px; height: 40px; border-radius: 9px; background: var(--lime); color: var(--asphalt); display: grid; place-items: center; font-weight: 800; box-shadow: inset 0 0 0 2.5px var(--lime), inset 0 0 0 4.5px var(--asphalt); position: relative; z-index: 1; animation: hop-in .45s cubic-bezier(.2,.8,.2,1) both; }
.hop:nth-child(2) .hop-no, .hop:nth-child(2) .hop-body { animation-delay: .08s; }
.hop:nth-child(3) .hop-no, .hop:nth-child(3) .hop-body { animation-delay: .16s; }
.hop:nth-child(4) .hop-no, .hop:nth-child(4) .hop-body { animation-delay: .24s; }
.hop:nth-child(n+5) .hop-no, .hop:nth-child(n+5) .hop-body { animation-delay: .32s; }
@keyframes hop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hop-body { background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px; min-width: 0; animation: hop-in .45s cubic-bezier(.2,.8,.2,1) both; }
.hop:last-child .hop-body { border-color: var(--asphalt); }
.hop-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hop-status { font-family: var(--mono); font-size: 14px; padding: 5px 10px; }
.hop-status-label { font-family: var(--sans); font-weight: 600; margin-left: 6px; }
.hop-url { font-size: 15px; word-break: break-all; }
.hop-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13.5px; color: var(--tx-3); }
.hop-meta .ok { color: var(--green); font-weight: 700; }
.hop-error { margin: 10px 0 0; color: #A51F17; font-size: 15px; }

.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.finding { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); }
.finding p { margin: 4px 0 0; color: var(--tx-2); font-size: 16px; }
.finding-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.finding-ic svg { width: 20px; height: 20px; }
.finding-good .finding-ic { background: var(--green-wash); color: var(--green); }
.finding-info .finding-ic { background: var(--blue-wash); color: var(--blue); }
.finding-warn .finding-ic { background: var(--amber-wash); color: var(--amber); }
.finding-bad .finding-ic { background: var(--red-wash); color: var(--red); }
.finding-bad { border-color: #F2B8B3; }

.report-cta { margin-top: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--asphalt); color: var(--on-dark); border-radius: 16px; padding: 24px 26px; }
.report-cta p { margin: 6px 0 0; color: var(--on-dark-2); font-size: 16px; max-width: 56ch; }
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
  .report-summary { position: static; }
  .grade { width: 132px; height: 132px; }
  .grade-letter { font-size: 80px; }
}

/* ---------- Prose (guides, checker info, comparison) ---------- */
.prose-sec { background: var(--white); border-block: 1.5px solid var(--line); }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 96px); align-items: start; }
.prose { max-width: 760px; font-size: 18.5px; line-height: 1.7; color: #2A2C30; }
.prose > :first-child { margin-top: 0; }
.prose-lead { font-size: 21px; line-height: 1.6; color: var(--tx); }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; margin: 56px 0 16px; color: var(--tx); }
.prose h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 32px 0 8px; color: var(--tx); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--lime-deep); font-weight: 800; }
.prose .mono { font-size: .86em; background: var(--road); padding: 2px 6px; border-radius: 5px; word-break: break-word; }
.prose a:not(.link):not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--tx); }
.prose pre { background: var(--asphalt); color: var(--on-dark); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }
.prose pre code { background: none; padding: 0; }
.prose code { font-family: var(--mono); font-size: .88em; }
.prose :not(pre) > code { background: var(--road); padding: 2px 6px; border-radius: 5px; }

.steps-list { list-style: none; padding-left: 0 !important; counter-reset: step; }
.steps-list li { counter-increment: step; position: relative; padding-left: 56px; margin-bottom: 18px; min-height: 36px; }
.steps-list li::before { content: "U" counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 32px; border-radius: 7px; background: var(--lime); color: var(--asphalt); font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--lime), inset 0 0 0 3.5px var(--asphalt); }

.callout { background: var(--lime-wash); border-left: 6px solid var(--lime); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 24px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1.5px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; vertical-align: top; }
.table-wrap thead th { background: var(--road); font-size: 14px; color: var(--tx-2); }
.table-wrap tbody tr + tr td, .table-wrap tbody tr + tr th { border-top: 1px solid var(--line); }

.legend { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.legend div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; }
.legend .pill { justify-self: start; font-family: var(--mono); }

.prose-aside { position: sticky; top: calc(var(--nav-space) + 20px); display: flex; flex-direction: column; gap: 14px; }
.aside-card { display: flex; flex-direction: column; gap: 10px; background: var(--road); border-radius: 14px; padding: 20px 22px; font-size: 15.5px; }
.aside-card ul, .aside-card ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aside-card a:hover { color: var(--blue); }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 22px 1fr; }
.toc li::before { content: counter(toc); color: var(--tx-3); font-weight: 700; font-size: 14px; }
.aside-check { background: var(--asphalt); color: var(--on-dark); transition: transform .18s; }
.aside-check:hover { transform: translateY(-2px); }
.aside-check span:not(.link) { color: var(--on-dark-2); }
@media (max-width: 960px) { .prose-grid { grid-template-columns: 1fr; } .prose-aside { position: static; } }

/* ---------- Guide hub + cards ---------- */
.more-title { margin-bottom: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; }
.guide-card strong { font-size: 19px; }
.guide-card span { color: var(--tx-2); font-size: 15.5px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hub-card { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; }
.hub-card .plate { width: 84px; height: 60px; padding: 0; font-family: var(--mono); font-size: 18px; }
.hub-card h2 { font-size: 23px; margin: 0 0 8px; letter-spacing: -0.015em; }
.hub-card p { margin: 0; color: var(--tx-2); font-size: 16px; }
@media (max-width: 860px) { .hub-grid { grid-template-columns: 1fr; } .hub-card { grid-template-columns: 1fr; } }

/* ---------- Comparison ---------- */
.vs-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.vs-head .plate { font-size: 18px; }
.vs-head .vs { font-weight: 800; color: var(--tx-3); }
.compare-table th:nth-child(2), .compare-table td:nth-child(2) { background: var(--lime-wash); }
.compare-table thead th:nth-child(2) { background: var(--lime); color: var(--asphalt); }
.compare-table td .yes { color: var(--green); font-weight: 700; }
.compare-table td .no { color: var(--tx-3); }
.compare-table td small { display: block; color: var(--tx-3); font-size: 13.5px; }
.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.verdict { border-radius: 14px; padding: 22px 24px; border: 1.5px solid var(--line); background: var(--white); }
.verdict h3 { margin-top: 0 !important; }
.verdict ul { margin-bottom: 0; }
.verdict-us { border-color: var(--asphalt); box-shadow: inset 0 6px 0 var(--lime); }
@media (max-width: 760px) { .verdict-grid { grid-template-columns: 1fr; } }
.source-note { font-size: 14px; color: var(--tx-3); }
.aside-check .link { color: var(--lime); }
