:root {
  --bg: #071820;
  --bg-deep: #041117;
  --panel: #0c222c;
  --panel-2: #102b36;
  --soft: #eef7f4;
  --soft-2: #f7faf9;
  --white: #ffffff;
  --text: #e8f2f1;
  --muted: #a8bdc0;
  --ink: #13272e;
  --ink-muted: #536b70;
  --accent: #35d1a2;
  --accent-2: #78e7c2;
  --accent-dark: #0c765d;
  --line: rgba(255,255,255,.12);
  --soft-line: #d5e7e2;
  --warning: #f0ca69;
  --danger: #db8b7c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0,0,0,.20);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
strong { font-weight: 760; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: #fff; color: #111; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4,17,23,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -.02em;
}
.brand > span:last-child > span { color: var(--accent); }
.site-header .brand, .site-footer .brand { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: url('/scopemill-icon-512.png') center / cover no-repeat;
  box-shadow: 0 0 18px rgba(53,209,162,.14);
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 690;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--white); }
.nav-links .nav-cta {
  color: #052119;
  background: var(--accent);
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 800;
}
.nav-links .nav-cta:hover { background: var(--accent-2); color: #052119; }

.hero {
  padding: 86px 0 42px;
  background:
    radial-gradient(circle at 78% 12%, rgba(53,209,162,.13), transparent 34%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  gap: 56px;
  align-items: center;
}
.eyebrow,
.kicker,
.mini-label {
  color: var(--accent-2);
  font-size: .77rem;
  font-weight: 830;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(53,209,162,.12);
}
h1 {
  margin: 18px 0;
  max-width: 850px;
  font-size: clamp(2.8rem, 5.9vw, 5.25rem);
  line-height: .99;
  letter-spacing: -.055em;
}

/* Homepage conversion tune v11.6.15 R4: keep product-page H1 sizing unchanged. */
.home-page .hero h1 {
  font-size: clamp(2.6rem, 5.05vw, 4.6rem);
}
h2 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
h3 {
  margin: 0 0 8px;
  line-height: 1.28;
}
.lede,
.hero-lede {
  max-width: 780px;
  margin: 0;
  color: #c9d8da;
  font-size: clamp(1.04rem, 1.7vw, 1.25rem);
}
.cta,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 790;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
.nav-links a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(120,231,194,.45);
  outline-offset: 3px;
}
.btn.primary,
.btn:not(.secondary) {
  color: #052119;
  background: var(--accent);
}
.btn.primary:hover,
.btn:not(.secondary):hover { background: var(--accent-2); }
.btn.secondary {
  color: var(--white);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}
.btn.secondary:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.07); }
.btn.full { width: 100%; }
.microcopy,
.fine {
  color: #8da4a9;
  font-size: .87rem;
}

.hero-card,
.purchase-card {
  background: linear-gradient(180deg, rgba(18,48,58,.96), rgba(9,32,41,.98));
  border: 1px solid rgba(120,231,194,.22);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.fit-list,
.clean-list,
.included-list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}
.fit-list li,
.clean-list li,
.included-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: #d5e2e3;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.fit-list li::before,
.clean-list li::before,
.included-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--accent);
  font-weight: 900;
}
.price-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 16px 0 20px;
}
.price-line > div { display: flex; align-items: baseline; gap: 7px; }
.price-line strong { font-size: 2.55rem; line-height: 1; letter-spacing: -.04em; }
.price-line span,
.price-line small { color: var(--muted); }
.price-line small { max-width: 145px; text-align: right; }
.card-note,
.purchase-note { color: #9fb3b7; font-size: .84rem; margin: 12px 0 0; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip > div {
  padding: 19px 20px;
  border-right: 1px solid var(--line);
}
.proof-strip > div:last-child { border-right: 0; }
.proof-strip strong,
.proof-strip span { display: block; }
.proof-strip strong { font-size: .94rem; }
.proof-strip span { margin-top: 4px; color: #82999e; font-size: .81rem; }

.surface { padding: 86px 0; }
.surface-light { background: var(--white); color: var(--ink); }
.surface-soft { background: var(--soft); color: var(--ink); }
.surface-dark { background: var(--bg); color: var(--text); }
.section-head { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.surface-light .kicker,
.surface-soft .kicker { color: var(--accent-dark); }
.surface-light .section-head p,
.surface-soft .section-head p,
.surface-light .lede,
.surface-soft .lede { color: var(--ink-muted); }
.surface-dark .section-head p { color: var(--muted); }

.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}
.product-card-modern {
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  padding: 28px;
  background: #fbfdfc;
  box-shadow: 0 14px 34px rgba(12,68,55,.06);
}
.product-card-modern h3 {
  margin: 16px 0 10px;
  font-size: 1.55rem;
  letter-spacing: -.025em;
}
.product-card-modern p { color: var(--ink-muted); }
.product-card-modern .product-price {
  margin: 20px 0 0;
  color: var(--ink);
  font-weight: 820;
}
.product-card-modern .cta-row { margin-top: 20px; }
.product-card-modern .btn.secondary {
  color: var(--ink);
  border-color: #c9ddd7;
  background: transparent;
}
.product-card-modern .btn.secondary:hover { background: #f1f7f5; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .71rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.status.live { color: #096b53; background: #e8f7f1; }
.status.validation { color: #075e4b; background: #e7f6f1; }
.status.archived { color: #66777b; background: #e9efed; }

.archive-grid-modern {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.archive-card {
  border: 1px solid #d9e5e1;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  padding: 24px;
}
.archive-card h3 { margin: 14px 0 8px; }
.archive-card p { color: var(--ink-muted); }
.text-link {
  color: #075e4b;
  font-weight: 760;
  text-underline-offset: 3px;
}

.trust-grid,
.validation-grid,
.metric-row,
.proof {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.trust-card,
.metric,
.proof .stat {
  border: 1px solid var(--soft-line);
  border-radius: 15px;
  padding: 22px;
  background: #fbfdfc;
}
.trust-card h3 { margin: 10px 0 6px; }
.trust-card p { color: var(--ink-muted); margin: 0; }
.metric strong,
.stat strong {
  display: block;
  color: var(--accent-dark);
  font-size: 2rem;
  letter-spacing: -.035em;
}
.metric span,
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: .88rem;
}

.case-shell {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 20px;
  align-items: start;
}
.case-summary {
  border: 1px solid var(--soft-line);
  border-radius: 18px;
  padding: 26px;
  background: #fbfdfc;
}
.case-summary h3 { font-size: 1.5rem; margin-top: 12px; }
.case-summary p { color: var(--ink-muted); }
.case-facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.case-fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}
.case-fact strong { color: var(--ink); }
.case-fact span { color: var(--ink-muted); }
.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.info-card {
  border: 1px solid var(--soft-line);
  border-radius: 15px;
  padding: 20px;
  background: #fff;
}
.info-card h3 { font-size: 1.05rem; }
.info-card p,
.info-card li { color: var(--ink-muted); }
.info-card ul { margin: 10px 0 0; padding-left: 20px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.card {
  border: 1px solid rgba(120,231,194,.16);
  border-radius: 16px;
  padding: 22px;
  background: rgba(14,34,44,.92);
  color: var(--text);
}
.card h2,
.card h3 { color: var(--text); }
.card p,
.card li,
.card .muted { color: var(--muted); }
.card a { color: var(--accent-2); }
.card.compact { max-width: 880px; margin: 0 auto; }
.callout.warning { border-color: rgba(240,202,105,.35); }
.callout.warning .eyebrow { color: var(--warning); }

.pill-row,
.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(120,231,194,.2);
  background: rgba(53,209,162,.07);
  color: var(--accent-2);
  font-size: .78rem;
  font-weight: 780;
}
.badge.high { color: var(--accent-2); }
.step::before {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(53,209,162,.14);
  color: var(--accent-2);
  font-weight: 900;
}
.grid .step:nth-child(1)::before { content: "1"; }
.grid .step:nth-child(2)::before { content: "2"; }
.grid .step:nth-child(3)::before { content: "3"; }

.legal-shell {
  background: var(--white);
  color: var(--ink);
}
.legal-hero {
  padding: 74px 0 34px;
  background: var(--bg);
  color: var(--text);
}
.legal-body { padding: 58px 0 86px; }
.legal-content {
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  margin: 34px 0 8px;
  font-size: 1.28rem;
  letter-spacing: -.015em;
}
.legal-content p,
.legal-content li { color: var(--ink-muted); }
.legal-content a { color: #075e4b; text-underline-offset: 3px; }
.legal-note {
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  padding: 18px 20px;
  background: #f5faf8;
}

.site-footer {
  padding: 44px 0 30px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-grid p { margin: 0; color: #769096; font-size: .87rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.footer-links a { color: #a9bdc0; font-size: .86rem; text-underline-offset: 3px; }
.legal-line {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #678188;
  font-size: .77rem;
}

/* Existing archive/detail page compatibility */
body.archive-page,
body.rr-page { background: var(--bg-deep); color: var(--text); }
body.archive-page > .wrap,
body.rr-page > .wrap { padding-top: 0; padding-bottom: 30px; }
body.archive-page nav,
body.rr-page nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
body.archive-page nav .brand,
body.rr-page nav .brand { color: var(--text); }
body.archive-page nav .brand > span:last-child,
body.rr-page nav .brand > span:last-child { color: var(--text); font-weight: 850; font-size: 1.12rem; }
body.archive-page nav .brand > span:last-child > span,
body.rr-page nav .brand > span:last-child > span { color: var(--accent); font-weight: 850; font-size: inherit; }
body.archive-page nav .links,
body.rr-page nav .links { display: flex; align-items: center; gap: 16px; }
body.archive-page nav .links a,
body.rr-page nav .links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .89rem;
  font-weight: 680;
}
body.archive-page header,
body.rr-page header { padding: 68px 0 32px; }
body.archive-page header h1,
body.rr-page header h1 { font-size: clamp(2.5rem,5.2vw,4.6rem); }
body.archive-page section,
body.rr-page section { padding: 36px 0; }
body.archive-page footer,
body.rr-page footer {
  margin-top: 40px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: #7f999e;
}
body.archive-page footer a,
body.rr-page footer a { color: #a8bdc0; }
body.archive-page .metric,
body.rr-page .metric,
body.archive-page .stat,
body.rr-page .stat {
  background: var(--panel);
  border-color: rgba(120,231,194,.16);
}
body.archive-page .metric strong,
body.rr-page .metric strong,
body.archive-page .stat strong,
body.rr-page .stat strong { color: var(--accent); }
body.archive-page .metric span,
body.rr-page .metric span,
body.archive-page .stat span,
body.rr-page .stat span { color: var(--muted); }

/* Tables and structured signal pages */
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: left;
  vertical-align: top;
}
th { color: var(--accent-2); }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.signal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.signal-location { color: #c8d6e3; }
.badge-stack { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.signal-facts { display: grid; gap: 8px; }
.signal-list,
.check-list,
.evidence-list { padding-left: 20px; }
dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 18px; }
dt { color: var(--muted); }
dd { margin: 0; }

@media (max-width: 920px) {
  .hero-grid,
  .case-shell { grid-template-columns: 1fr; }
  .hero-card { max-width: 640px; }
  .proof-strip,
  .trust-grid,
  .validation-grid,
  .metric-row,
  .proof { grid-template-columns: repeat(2,1fr); }
  .product-grid-modern,
  .archive-grid-modern,
  .two-col { grid-template-columns: 1fr; }
  .case-detail-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .site-header { position: static; }
  .nav-shell { min-height: 62px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 60px 0 28px; }
  h1 { font-size: clamp(2.55rem,13vw,3.7rem); }
  .surface { padding: 66px 0; }
  .proof-strip,
  .trust-grid,
  .validation-grid,
  .metric-row,
  .proof,
  .grid,
  .case-detail-grid { grid-template-columns: 1fr; }
  .proof-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip > div:last-child { border-bottom: 0; }
  .footer-grid { flex-direction: column; }
  .footer-links { flex-direction: column; align-items: flex-start; gap: 10px; }
  .case-fact { grid-template-columns: 1fr; gap: 2px; }
  body.archive-page nav .links a:not(.btn),
  body.rr-page nav .links a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
