:root {
  --ink: #101312;
  --ink-soft: #252a27;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d7;
  --white: #fffdf8;
  --line: rgba(16, 19, 18, 0.15);
  --muted: #626760;
  --signal: #c8f567;
  --signal-deep: #9dce3c;
  --coral: #ff765d;
  --blue: #526dff;
  --amber: #f3b64a;
  --danger: #ba3e32;
  --shadow: 0 22px 60px rgba(29, 31, 27, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(200, 245, 103, 0.18), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1440px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  display: block;
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  inset: 5px;
  border: 2px solid var(--ink);
}

.brand-mark::after {
  width: 7px;
  height: 7px;
  background: var(--coral);
  right: -1px;
  top: 1px;
  box-shadow: 0 0 0 3px var(--paper);
}

.brand-name {
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-product {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.9125rem;
  font-weight: 600;
}

.header-actions a {
  text-decoration: none;
}

.header-actions a:hover,
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.64);
}

.connection-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-deep);
  box-shadow: 0 0 0 4px rgba(157, 206, 60, 0.16);
}

.connection-state.offline i {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(243, 182, 74, 0.16);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1320px, calc(100% - 64px));
  min-height: 690px;
  margin: 0 auto;
  padding: 88px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.82fr);
  gap: clamp(56px, 8vw, 132px);
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  left: -360px;
  top: 105px;
  border: 1px solid rgba(16, 19, 18, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(16, 19, 18, 0.018),
    0 0 0 144px rgba(16, 19, 18, 0.014);
}

.hero-copy,
.trace-card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.step-label {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 0.8225rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow span {
  display: inline-flex;
  margin-right: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--ink);
  background: var(--signal);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.25rem, 6.6vw, 6.8rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
  font-weight: 780;
}

.hero-lead {
  max-width: 670px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.62;
}

.privacy-line {
  max-width: 590px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.privacy-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.privacy-line strong {
  color: var(--ink);
}

.privacy-icon {
  color: var(--signal-deep);
  font-size: 1.15rem;
  line-height: 1.25;
}

.trace-card {
  padding: clamp(26px, 3.2vw, 40px);
  border: 1px solid rgba(16, 19, 18, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-heading,
.panel-heading,
.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.card-heading {
  margin-bottom: 30px;
}

.step-label {
  margin-bottom: 6px;
  color: var(--muted);
}

.card-heading h2,
.panel-heading h3,
.next-panel h3,
.challenge-panel h3,
.method-stack h3 {
  margin: 0;
  letter-spacing: -0.035em;
}

.card-heading h2 {
  font-size: 1.55rem;
}

.local-badge,
.risk-pill,
.platform-pill,
.finding-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.805rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.local-badge {
  background: var(--paper-deep);
}

.field-label {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 8px;
  font-size: 0.8425rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.field-label span {
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.url-field {
  position: relative;
}

.url-field > span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  min-height: 52px;
  padding: 0 14px;
}

.url-field input {
  padding-left: 42px;
}

textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(82, 109, 255, 0.14);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(186, 62, 50, 0.1);
}

.field-help,
.textarea-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8225rem;
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.textarea-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sample-button,
.text-button,
.icon-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.sample-button {
  color: var(--blue);
  font-size: 0.8225rem;
}

.evidence-details {
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-details summary {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.evidence-details summary::-webkit-details-marker {
  display: none;
}

.evidence-details summary span {
  display: grid;
  gap: 3px;
}

.evidence-details summary strong {
  font-size: 0.88rem;
}

.evidence-details summary small {
  color: var(--muted);
}

.evidence-details summary i {
  font-style: normal;
  font-size: 1.3rem;
  transition: transform 160ms ease;
}

.evidence-details[open] summary i {
  transform: rotate(45deg);
}

.evidence-fields {
  display: grid;
  gap: 14px;
  padding: 0 0 20px;
}

.evidence-fields label {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.8825rem;
  font-weight: 700;
}

.evidence-fields select {
  min-height: 46px;
}

.form-error {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: #8f2f27;
  background: #ffebe7;
  font-size: 0.9025rem;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 780;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button {
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--ink);
  color: var(--white);
  background: var(--ink);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #242826;
  box-shadow: 0 12px 26px rgba(16, 19, 18, 0.15);
}

.button-arrow {
  margin-left: auto;
  font-size: 1.2rem;
}

.secondary-button {
  width: auto;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.trust-strip {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.trust-strip > div {
  min-height: 118px;
  padding: 26px 30px 0 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.trust-strip > div:not(:first-child) {
  padding-left: 30px;
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip span,
.method-number {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.845rem;
}

.trust-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.trust-strip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.results-section {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto 110px;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 32px 80px rgba(16, 19, 18, 0.2);
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 0.845rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-summary {
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.result-status-row {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.risk-pill {
  color: var(--ink);
  background: var(--amber);
}

.risk-pill.low {
  background: var(--signal);
}

.risk-pill.high {
  color: var(--white);
  background: var(--coral);
}

.platform-pill {
  color: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.result-intro h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.result-intro > p:not(.profile-reference) {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.65;
}

.profile-reference {
  max-width: 780px;
  margin: 24px 0 0;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coverage-meter {
  width: 178px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--signal) var(--coverage), rgba(255, 255, 255, 0.12) 0);
  position: relative;
}

.coverage-meter::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--ink);
}

.coverage-meter > div {
  z-index: 1;
  display: grid;
  text-align: center;
}

.coverage-meter strong {
  font-size: 2.15rem;
  letter-spacing: -0.05em;
}

.coverage-meter span {
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--mono);
  font-size: 0.745rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-card {
  min-height: 190px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.signal-card:last-child {
  border-right: 0;
}

.signal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-card h3 {
  margin: 0;
  font-size: 0.88rem;
}

.signal-card .signal-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.845rem;
}

.signal-card strong {
  display: block;
  margin-top: 38px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.signal-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8625rem;
  line-height: 1.5;
}

.signal-bar {
  height: 4px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.signal-bar i {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--signal);
}

.signal-card.concern .signal-bar i {
  background: var(--coral);
}

.signal-card.unknown .signal-bar i {
  background: rgba(255, 255, 255, 0.36);
}

.report-layout {
  padding: 52px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 52px;
}

.findings-panel,
.next-panel {
  min-width: 0;
}

.finding-count {
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.findings-list {
  margin-top: 22px;
}

.finding {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.finding-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.finding.support .finding-dot {
  background: var(--signal);
}

.finding.risk .finding-dot {
  background: var(--coral);
}

.finding h4 {
  margin: 0;
  font-size: 0.9rem;
}

.finding p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8425rem;
  line-height: 1.5;
}

.finding-source {
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 0.745rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.next-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.next-panel ol {
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.next-panel li {
  counter-increment: steps;
  padding: 14px 0 14px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8825rem;
  line-height: 1.5;
  position: relative;
}

.next-panel li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.765rem;
}

.next-panel .secondary-button {
  width: 100%;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.challenge-panel {
  margin-top: 36px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--ink);
  background: var(--signal);
}

.challenge-panel p:not(.step-label) {
  max-width: 710px;
  margin: 10px 0 0;
  color: rgba(16, 19, 18, 0.68);
  font-size: 0.8825rem;
  line-height: 1.55;
}

.challenge-code-wrap {
  min-width: 260px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  border: 1px solid rgba(16, 19, 18, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.challenge-code-wrap code {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
}

.challenge-code-wrap span {
  grid-column: 1 / -1;
  color: rgba(16, 19, 18, 0.58);
  font-size: 0.805rem;
}

.icon-button {
  color: var(--blue);
  font-size: 0.8225rem;
}

.report-actions {
  margin-top: 36px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  flex-wrap: wrap;
}

.report-actions .primary-button.compact {
  width: auto;
  color: var(--ink);
  border-color: var(--signal);
  background: var(--signal);
}

.report-actions .secondary-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.report-actions .text-button {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.66);
}

.history-section,
.method-section,
.boundary-section {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.history-section {
  padding: 0 0 110px;
}

.section-heading-row h2,
.method-copy h2,
.boundary-section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.danger {
  color: var(--danger);
}

.history-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.history-item {
  width: 100%;
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.6fr auto;
  gap: 24px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.history-item:hover .history-handle {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.history-handle {
  display: block;
  overflow: hidden;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-url,
.history-date {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.805rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-risk {
  justify-self: start;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.785rem;
}

.history-arrow {
  font-size: 1.15rem;
}

.method-section {
  padding: 120px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(70px, 10vw, 150px);
  border-top: 1px solid var(--line);
}

.method-copy {
  align-self: start;
  position: sticky;
  top: 40px;
}

.method-copy > p:not(.eyebrow) {
  margin: 28px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.inline-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 760;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
}

.method-stack {
  border-top: 1px solid var(--line);
}

.method-stack article {
  min-height: 150px;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.method-stack h3 {
  font-size: 1.5rem;
}

.method-stack p {
  max-width: 570px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.boundary-section {
  margin-bottom: 100px;
  padding: clamp(34px, 5vw, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(50px, 8vw, 110px);
  border-radius: var(--radius-lg);
  background: var(--paper-deep);
}

.boundary-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  min-height: 190px;
  padding: 46px max(32px, calc((100vw - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 60px;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  background: var(--ink);
  font-size: 0.8825rem;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  border-color: var(--white);
}

.footer-brand .brand-mark::before {
  border-color: var(--white);
}

.footer-brand .brand-mark::after {
  box-shadow: 0 0 0 3px var(--ink);
}

footer p {
  margin: 0;
}

footer p a {
  color: var(--white);
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 0.805rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 14px 18px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--signal);
  box-shadow: var(--shadow);
  font-size: 0.9025rem;
  font-weight: 750;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 62px;
    padding-top: 68px;
  }

  .hero-copy {
    max-width: 880px;
  }

  .hero h1 {
    font-size: clamp(4rem, 10vw, 7rem);
  }

  .trace-card {
    max-width: 780px;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .signal-card:nth-child(2) {
    border-right: 0;
  }

  .signal-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .report-layout,
  .method-section,
  .boundary-section {
    grid-template-columns: 1fr;
  }

  .method-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header,
  .trust-strip {
    width: min(100% - 32px, 1440px);
  }

  .site-header {
    min-height: 74px;
  }

  .header-actions > a,
  .connection-state {
    display: none;
  }

  .brand-product {
    display: none;
  }

  .hero,
  .results-section,
  .history-section,
  .method-section,
  .boundary-section {
    width: min(100% - 32px, 1320px);
  }

  .hero {
    padding: 48px 0 56px;
    gap: 44px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }

  .hero-lead {
    margin-top: 26px;
  }

  .trace-card {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .card-heading {
    display: grid;
  }

  .local-badge {
    justify-self: start;
  }

  .field-row,
  .evidence-fields label {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .trust-strip > div,
  .trust-strip > div:not(:first-child) {
    min-height: auto;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .results-section {
    margin-bottom: 76px;
    padding: 28px 18px;
    border-radius: 24px;
  }

  .result-summary {
    padding: 38px 0;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .coverage-meter {
    width: 142px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-card,
  .signal-card:nth-child(2) {
    min-height: 160px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .signal-card:last-child {
    border-bottom: 0;
  }

  .signal-card strong {
    margin-top: 26px;
  }

  .report-layout {
    gap: 30px;
  }

  .finding {
    grid-template-columns: 18px 1fr;
  }

  .finding-source {
    grid-column: 2;
  }

  .challenge-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .challenge-code-wrap {
    min-width: 0;
  }

  .report-actions {
    align-items: stretch;
  }

  .report-actions > * {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .section-heading-row {
    display: grid;
  }

  .section-heading-row .danger {
    justify-self: start;
  }

  .history-item {
    grid-template-columns: 1fr auto;
  }

  .history-risk {
    grid-column: 1;
  }

  .history-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .method-section {
    padding: 86px 0;
    gap: 60px;
  }

  .method-stack article {
    grid-template-columns: 38px 1fr;
  }

  .boundary-section {
    margin-bottom: 54px;
    padding: 34px 24px;
    border-radius: 24px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 42px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
