 :root {
  --qr3x-navy: #071a2d;
  --qr3x-navy-2: #0b2238;
  --qr3x-green: #7ac943;
  --qr3x-green-soft: #9be15d;
  --qr3x-white: #ffffff;
  --qr3x-muted: #aab6c3;
  --qr3x-text: #162033;
  --qr3x-light: #f5f8fb;
  --qr3x-card: #ffffff;
  --qr3x-line: rgba(7, 26, 45, 0.10);
  --qr3x-dark-line: rgba(255, 255, 255, 0.14);
  --qr3x-shadow: 0 24px 80px rgba(7, 26, 45, 0.18);
  --qr3x-radius: 28px;
  --qr3x-bg: var(--qr3x-navy);
  --qr3x-bg-soft: var(--qr3x-navy-2);
  --qr3x-card-strong: #ffffff;
  --qr3x-border: var(--qr3x-line);
  --qr3x-teal: #7ac943;
  --qr3x-teal-2: #4ea31d;
  --qr3x-gold: #7ac943;
  --qr3x-coral: #9be15d;
  --qr3x-red: #ef4444;
  --qr3x-sand: #f5f8fb;
  --qr3x-dark-text: #162033;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--qr3x-bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--qr3x-text);
  background:
    radial-gradient(circle at top left, rgba(244, 185, 66, 0.23), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(0, 160, 168, 0.35), transparent 26rem),
    linear-gradient(135deg, #06171c 0%, #0b2a31 52%, #071b21 100%);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.qr3x-noscript {
  margin: 1rem;
  padding: 1rem;
  background: #fee2e2;
  color: #7f1d1d;
  border-radius: 12px;
}

.qr3x-intel-app {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px 64px;
}

.qr3x-shell {
  display: grid;
  gap: 18px;
}

.qr3x-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--qr3x-border);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow: var(--qr3x-shadow);
  padding: clamp(22px, 5vw, 52px);
}

.qr3x-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% 20%;
  height: 260px;
  transform: rotate(-8deg);
  background: linear-gradient(90deg, transparent, rgba(244, 185, 66, 0.19), transparent);
  pointer-events: none;
}

.qr3x-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.qr3x-logo-wordmark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr3x-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--qr3x-gold), #fff2bd);
  color: #0f2a2e;
  box-shadow: 0 12px 34px rgba(244, 185, 66, 0.28);
}

.qr3x-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qr3x-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--qr3x-muted);
  font-size: 0.84rem;
}

.qr3x-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 850px;
}

.qr3x-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--qr3x-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.qr3x-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.qr3x-card {
  grid-column: span 12;
  border: 1px solid var(--qr3x-border);
  border-radius: var(--qr3x-radius);
  background: var(--qr3x-card);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
  padding: clamp(16px, 3vw, 26px);
  backdrop-filter: blur(15px);
}

.qr3x-card--light {
  background: rgba(255, 244, 220, 0.96);
  color: var(--qr3x-dark-text);
}

.qr3x-card--accent {
  background: linear-gradient(135deg, rgba(0, 160, 168, 0.22), rgba(244, 185, 66, 0.12));
}

.qr3x-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  letter-spacing: -0.03em;
}

.qr3x-subtle { color: var(--qr3x-muted); }
.qr3x-card--light .qr3x-subtle { color: #51636b; }

.qr3x-tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.qr3x-tool-tile {
  text-align: left;
  border: 1px solid var(--qr3x-border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.095);
  color: var(--qr3x-text);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.qr3x-tool-tile:hover,
.qr3x-tool-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(244, 185, 66, 0.7);
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.qr3x-tool-tile strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.qr3x-tool-tile span { display: block; color: var(--qr3x-muted); font-size: .9rem; line-height: 1.45; }

.qr3x-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.qr3x-field { grid-column: span 12; }
.qr3x-field--half { grid-column: span 12; }
.qr3x-field label,
.qr3x-field .qr3x-label {
  display: block;
  margin-bottom: 7px;
  color: var(--qr3x-muted);
  font-weight: 700;
  font-size: .92rem;
}

.qr3x-field input,
.qr3x-field select,
.qr3x-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--qr3x-text);
  padding: 12px 13px;
  outline: none;
}

.qr3x-field textarea { min-height: 92px; resize: vertical; }
.qr3x-field input:focus,
.qr3x-field select:focus,
.qr3x-field textarea:focus {
  border-color: var(--qr3x-gold);
  box-shadow: 0 0 0 4px rgba(244, 185, 66, 0.14);
}

.qr3x-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.qr3x-btn {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .12s ease, opacity .12s ease;
}
.qr3x-btn:active { transform: scale(.98); }
.qr3x-btn[disabled] { opacity: .55; cursor: not-allowed; }
.qr3x-btn--primary { background: var(--qr3x-gold); color: #17262b; }
.qr3x-btn--secondary { background: rgba(255, 255, 255, 0.13); color: var(--qr3x-text); border: 1px solid var(--qr3x-border); }
.qr3x-btn--teal { background: var(--qr3x-teal); color: white; }

.qr3x-result-card {
  border-radius: 22px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  background: linear-gradient(140deg, rgba(244, 185, 66, 0.14), rgba(0, 160, 168, 0.12));
  padding: 18px;
  margin-top: 18px;
}

.qr3x-metric {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.qr3x-metric small { color: var(--qr3x-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.qr3x-metric strong { font-size: clamp(1.8rem, 7vw, 3.4rem); line-height: .98; letter-spacing: -.05em; }

.qr3x-scenarios,
.qr3x-dimensions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.qr3x-mini-card {
  border: 1px solid var(--qr3x-border);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
}
.qr3x-mini-card small { display: block; color: var(--qr3x-muted); margin-bottom: 5px; }
.qr3x-mini-card strong { display: block; font-size: 1.2rem; }

.qr3x-question {
  border: 1px solid var(--qr3x-border);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.075);
  margin-bottom: 14px;
}
.qr3x-question h3 { margin: 0 0 8px; font-size: 1.06rem; }
.qr3x-question p { margin: 0 0 12px; color: var(--qr3x-muted); }

.qr3x-options { display: grid; gap: 9px; }
.qr3x-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.16);
}
.qr3x-option input { margin-top: 4px; }
.qr3x-option strong { display: block; }
.qr3x-option span { display: block; color: var(--qr3x-muted); font-size: .9rem; margin-top: 4px; }

.qr3x-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.qr3x-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.qr3x-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--qr3x-teal), var(--qr3x-gold));
  transition: width .18s ease;
}

.qr3x-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 78px;
  border-radius: 24px;
  background: var(--qr3x-gold);
  color: #17262b;
  font-size: 1.65rem;
  font-weight: 900;
}

.qr3x-alert {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 12px;
}
.qr3x-success {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.qr3x-lead-form { margin-top: 18px; }
.qr3x-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  color: var(--qr3x-muted);
  font-size: .92rem;
}
.qr3x-consent input { margin-top: 3px; }

.qr3x-loading {
  display: grid;
  min-height: 70vh;
  place-items: center;
  text-align: center;
}
.qr3x-loader-ring {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--qr3x-gold);
  animation: qr3xSpin 900ms linear infinite;
}
@keyframes qr3xSpin { to { transform: rotate(360deg); } }

.qr3x-footer-note {
  text-align: center;
  color: rgba(255,255,255,.62);
  font-size: .82rem;
  margin-top: 18px;
}

.qr3x-hidden { display: none !important; }

@media (min-width: 720px) {
  .qr3x-intel-app { padding: 26px 20px 80px; }
  .qr3x-card--span-6 { grid-column: span 6; }
  .qr3x-card--span-7 { grid-column: span 7; }
  .qr3x-card--span-5 { grid-column: span 5; }
  .qr3x-field--half { grid-column: span 6; }
}



/* ============================================================
   QR3X Phase 1F-R1 Brand Alignment
   Uses the same visual language as the public QR3X landing page:
   deep navy, green CTA, light section cards, soft shadows and
   privacy-aware hospitality positioning.
   ============================================================ */
@media screen {
  html {
    min-height: 100%;
    background: var(--qr3x-light);
    scroll-behavior: smooth;
  }

  body {
    color: var(--qr3x-text);
    background: var(--qr3x-light);
    min-height: 100vh;
  }

  a { text-decoration: none; }

  .qr3x-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 26, 45, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .qr3x-site-container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
  }

  .qr3x-nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }

  .qr3x-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  .qr3x-site-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 34px rgba(122, 201, 67, 0.15);
  }

  .qr3x-site-mark i {
    display: block;
    border-radius: 2px;
    background: var(--qr3x-green);
  }

  .qr3x-site-mark i:nth-child(3),
  .qr3x-site-mark i:nth-child(5),
  .qr3x-site-mark i:nth-child(7) {
    background: #ffffff;
  }

  .qr3x-site-brand b { color: var(--qr3x-green); }

  .qr3x-site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #d9e4ef;
    font-size: 14px;
    font-weight: 650;
  }

  .qr3x-site-nav a:hover { color: var(--qr3x-green-soft); }

  .qr3x-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 20px;
    background: var(--qr3x-green);
    color: var(--qr3x-navy);
    font-weight: 800;
    font-size: 14px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .qr3x-nav-cta:hover { transform: translateY(-2px); }

  .qr3x-intel-app {
    width: min(1160px, calc(100% - 40px));
    padding: 34px 0 86px;
  }

  .qr3x-shell { gap: 24px; }

  .qr3x-hero {
    border: 0;
    border-radius: 0;
    margin: 0 calc(50% - 50vw) 0;
    padding: clamp(72px, 8vw, 112px) max(calc((100vw - 1160px) / 2), 20px);
    color: #ffffff;
    background:
      radial-gradient(circle at 72% 22%, rgba(122, 201, 67, 0.18), transparent 30%),
      linear-gradient(135deg, var(--qr3x-navy), var(--qr3x-navy-2));
    box-shadow: none;
  }

  .qr3x-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
      linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
  }

  .qr3x-hero::after {
    inset: auto -18% -38% 20%;
    height: 260px;
    transform: rotate(-8deg);
    background: linear-gradient(90deg, transparent, rgba(122, 201, 67, 0.18), transparent);
  }

  .qr3x-hero > * { position: relative; z-index: 1; }

  .qr3x-brand-row { margin-bottom: 30px; }

  .qr3x-logo-wordmark {
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .12em;
  }

  .qr3x-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(122, 201, 67, 0.14);
    color: var(--qr3x-green-soft);
    border: 1px solid rgba(122, 201, 67, 0.42);
    box-shadow: 0 18px 40px rgba(122, 201, 67, 0.18);
  }

  .qr3x-pill {
    border: 1px solid rgba(122, 201, 67, 0.42);
    background: rgba(122, 201, 67, 0.11);
    color: #eaf7e2;
    font-weight: 800;
  }

  .qr3x-hero h1 {
    max-width: 850px;
    font-size: clamp(44px, 5.7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .qr3x-hero p {
    max-width: 700px;
    color: #d3deea;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
  }

  .qr3x-card {
    border: 1px solid rgba(7, 26, 45, 0.08);
    border-radius: var(--qr3x-radius);
    background: var(--qr3x-card);
    color: var(--qr3x-text);
    box-shadow: 0 14px 44px rgba(7, 26, 45, 0.06);
    backdrop-filter: none;
  }

  .qr3x-card--light,
  .qr3x-card--accent {
    background: #ffffff;
    color: var(--qr3x-text);
  }

  .qr3x-card--accent {
    border-color: rgba(122, 201, 67, 0.22);
    background:
      radial-gradient(circle at 90% 10%, rgba(122, 201, 67, 0.12), transparent 30%),
      #ffffff;
  }

  .qr3x-section-title,
  .qr3x-card h2,
  .qr3x-card h3 {
    color: var(--qr3x-text);
  }

  .qr3x-subtle,
  .qr3x-card--light .qr3x-subtle,
  .qr3x-question p,
  .qr3x-option span,
  .qr3x-field label,
  .qr3x-field .qr3x-label,
  .qr3x-consent {
    color: #607086;
  }

  .qr3x-tool-list { gap: 18px; }

  .qr3x-tool-tile {
    border: 1px solid rgba(7, 26, 45, 0.08);
    border-radius: 22px;
    background: #ffffff;
    color: var(--qr3x-text);
    box-shadow: 0 12px 36px rgba(7, 26, 45, 0.05);
  }

  .qr3x-tool-tile:hover,
  .qr3x-tool-tile:focus-visible {
    border-color: rgba(122, 201, 67, 0.52);
    background: #fbfef8;
    box-shadow: 0 18px 42px rgba(7, 26, 45, 0.09);
  }

  .qr3x-tool-tile strong { color: var(--qr3x-text); }
  .qr3x-tool-tile span { color: #607086; }

  .qr3x-field input,
  .qr3x-field select,
  .qr3x-field textarea {
    border: 1px solid rgba(7, 26, 45, 0.12);
    background: #ffffff;
    color: var(--qr3x-text);
  }

  .qr3x-field input:focus,
  .qr3x-field select:focus,
  .qr3x-field textarea:focus {
    border-color: var(--qr3x-green);
    box-shadow: 0 0 0 4px rgba(122, 201, 67, 0.18);
  }

  .qr3x-btn {
    min-height: 50px;
    font-size: 14px;
    box-shadow: none;
  }

  .qr3x-btn--primary,
  .qr3x-btn--teal {
    background: var(--qr3x-green);
    color: var(--qr3x-navy);
    box-shadow: 0 18px 40px rgba(122, 201, 67, 0.20);
  }

  .qr3x-btn--secondary {
    background: var(--qr3x-navy);
    color: #ffffff;
    border: 1px solid rgba(7, 26, 45, 0.16);
  }

  .qr3x-hero .qr3x-btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
  }

  .qr3x-result-card {
    border: 1px solid rgba(122, 201, 67, 0.32);
    background:
      radial-gradient(circle at 96% 10%, rgba(122, 201, 67, 0.16), transparent 28%),
      #ffffff;
    color: var(--qr3x-text);
    box-shadow: 0 16px 44px rgba(7, 26, 45, 0.06);
  }

  .qr3x-metric small { color: #4ea31d; }
  .qr3x-metric strong { color: var(--qr3x-text); }

  .qr3x-mini-card,
  .qr3x-question {
    border: 1px solid rgba(7, 26, 45, 0.08);
    background: #f8fafc;
    color: var(--qr3x-text);
  }

  .qr3x-option {
    border: 1px solid rgba(7, 26, 45, 0.10);
    background: #ffffff;
    color: var(--qr3x-text);
  }

  .qr3x-option:has(input:checked) {
    border-color: rgba(122, 201, 67, 0.60);
    background: rgba(122, 201, 67, 0.08);
  }

  .qr3x-progress-bar { background: rgba(7, 26, 45, 0.10); }
  .qr3x-progress-bar i { background: linear-gradient(90deg, var(--qr3x-green), var(--qr3x-green-soft)); }

  .qr3x-grade {
    background: var(--qr3x-green);
    color: var(--qr3x-navy);
  }

  .qr3x-alert {
    border-color: rgba(239, 68, 68, 0.35);
    background: #fff1f2;
    color: #991b1b;
  }

  .qr3x-success {
    border-color: rgba(122, 201, 67, 0.45);
    background: rgba(122, 201, 67, 0.12);
    color: #255c10;
  }

  .qr3x-loader-ring {
    border-color: rgba(7, 26, 45, 0.12);
    border-top-color: var(--qr3x-green);
  }

  .qr3x-loading .qr3x-subtle,
  .qr3x-footer-note { color: #607086; }

  .qr3x-site-footer {
    padding: 34px 0;
    background: #04101d;
    color: #b9c6d5;
  }

  .qr3x-footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
  }

  .qr3x-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
  }

  .qr3x-footer-brand b { color: var(--qr3x-green); }
  .qr3x-footer-copy p { margin: 0; }
  .qr3x-footer-trust {
    margin-top: 8px !important;
    color: #8898aa;
    font-size: 13px;
    line-height: 1.5;
    max-width: 720px;
  }
}

@media screen and (max-width: 980px) {
  .qr3x-site-nav { display: none; }
  .qr3x-footer-wrap { flex-direction: column; align-items: flex-start; }
}

@media screen and (max-width: 640px) {
  .qr3x-site-container,
  .qr3x-intel-app { width: min(100% - 28px, 1160px); }
  .qr3x-nav-wrap { min-height: 72px; }
  .qr3x-nav-cta { display: none; }
  .qr3x-hero { padding-top: 72px; padding-bottom: 72px; }
  .qr3x-hero h1 { font-size: 42px; }
}

@media print {
  body { background: #fff !important; color: #111 !important; }
  .qr3x-intel-app { display: none !important; }
  #qr3x-report { display: block !important; color: #111; padding: 20px; }
  .qr3x-report h1 { margin-top: 0; }
  .qr3x-report-card { border: 1px solid #ddd; border-radius: 12px; padding: 14px; margin: 12px 0; }
}

/* ============================================================
   QR3X Phase 1F-R2 UI Fixes
   - Prevent horizontal scrolling / clipped hero text.
   - Use the same public QR3X logo asset as the main landing page.
   - Keep hero full-width while keeping content cards centered.
   ============================================================ */
@media screen {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
  }

  .qr3x-site-header,
  .qr3x-site-footer,
  .qr3x-intel-app,
  .qr3x-shell,
  .qr3x-hero {
    max-width: 100%;
  }

  .qr3x-site-brand {
    min-width: 0;
    flex-shrink: 0;
  }

  .qr3x-brand-logo {
    width: 190px;
    max-width: 42vw;
    display: block;
    height: auto;
  }

  .qr3x-footer-logo {
    width: 210px;
    max-width: 52vw;
    display: block;
    height: auto;
  }

  .qr3x-hero-logo-img {
    width: 118px;
    max-width: 38vw;
    display: block;
    height: auto;
  }

  .qr3x-logo-wordmark {
    min-width: 0;
  }

  .qr3x-logo-mark,
  .qr3x-site-mark {
    display: none !important;
  }

  .qr3x-intel-app {
    width: 100%;
    padding: 0 0 86px;
    margin: 0;
    overflow-x: hidden;
  }

  .qr3x-shell {
    width: 100%;
    gap: 24px;
    overflow-x: hidden;
  }

  .qr3x-hero {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: clamp(72px, 8vw, 112px) max(calc((100vw - 1160px) / 2), 20px);
  }

  .qr3x-shell > .qr3x-card,
  .qr3x-shell > .qr3x-grid,
  .qr3x-shell > .qr3x-footer-note,
  .qr3x-lead-form {
    width: min(1160px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }

  .qr3x-grid {
    width: min(1160px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }

  .qr3x-hero h1,
  .qr3x-hero p {
    overflow-wrap: anywhere;
  }

  .qr3x-brand-row {
    min-width: 0;
  }
}

@media screen and (max-width: 640px) {
  .qr3x-brand-logo {
    width: 170px;
    max-width: 58vw;
  }

  .qr3x-footer-logo {
    width: 170px;
    max-width: 62vw;
  }

  .qr3x-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .qr3x-shell > .qr3x-card,
  .qr3x-shell > .qr3x-grid,
  .qr3x-shell > .qr3x-footer-note,
  .qr3x-grid,
  .qr3x-lead-form {
    width: min(100% - 28px, 1160px);
  }
}


/* ============================================================
   QR3X Phase 1F-R4 Hero Layout Hard Fix
   - Removes viewport-width/negative-margin hero behavior.
   - Hero background spans the actual page width through a full-width
     shell, while content is contained in .qr3x-hero-inner.
   - Prevents left-clipped title and right-side white panel on desktop.
   ============================================================ */
@media screen {
  html,
  body {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: var(--qr3x-light) !important;
  }

  body .qr3x-intel-app {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 86px !important;
    overflow-x: hidden !important;
  }

  body .qr3x-shell {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  body .qr3x-hero {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    background:
      radial-gradient(circle at 72% 22%, rgba(122, 201, 67, 0.18), transparent 30%),
      linear-gradient(135deg, var(--qr3x-navy), var(--qr3x-navy-2)) !important;
    box-shadow: none !important;
  }

  body .qr3x-hero-inner {
    position: relative !important;
    z-index: 2 !important;
    width: min(1160px, calc(100% - 40px)) !important;
    max-width: 1160px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: clamp(72px, 8vw, 112px) 0 !important;
    box-sizing: border-box !important;
  }

  body .qr3x-hero::before {
    z-index: 0 !important;
  }

  body .qr3x-hero::after {
    z-index: 1 !important;
  }

  body .qr3x-hero .qr3x-brand-row,
  body .qr3x-hero h1,
  body .qr3x-hero p,
  body .qr3x-hero .qr3x-actions {
    max-width: 850px !important;
  }

  body .qr3x-hero .qr3x-brand-row {
    width: 100% !important;
    max-width: 100% !important;
  }

  body .qr3x-shell > .qr3x-card,
  body .qr3x-shell > .qr3x-grid,
  body .qr3x-shell > .qr3x-footer-note,
  body .qr3x-lead-form {
    width: min(1160px, calc(100% - 40px)) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body .qr3x-shell > .qr3x-card {
    margin-top: -36px !important;
    position: relative !important;
    z-index: 3 !important;
  }

  body .qr3x-site-header,
  body .qr3x-site-footer {
    width: 100% !important;
    max-width: none !important;
    overflow-x: hidden !important;
  }
}

@media screen and (max-width: 640px) {
  body .qr3x-hero-inner,
  body .qr3x-shell > .qr3x-card,
  body .qr3x-shell > .qr3x-grid,
  body .qr3x-shell > .qr3x-footer-note,
  body .qr3x-lead-form {
    width: min(100% - 28px, 1160px) !important;
  }

  body .qr3x-hero-inner {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
}


/* ============================================================
   QR3X Phase 1F-R5 Hero Polish + CTA Alignment
   - Header logo is the only QR3X logo.
   - Hero pills sit below the paragraph on index/revenue/health.
   - Hero CTAs are aligned below the pills.
   - Hero is slightly more compact so users reach the tool area faster.
   ============================================================ */
@media screen {
  body .qr3x-hero-inner {
    padding-top: clamp(58px, 6vw, 92px) !important;
    padding-bottom: clamp(58px, 6vw, 92px) !important;
  }

  body .qr3x-hero-logo-img,
  body .qr3x-hero .qr3x-logo-wordmark,
  body .qr3x-hero .qr3x-brand-row {
    display: none !important;
  }

  body .qr3x-hero h1 {
    max-width: 800px !important;
    margin: 0 !important;
  }

  body .qr3x-hero p {
    max-width: 760px !important;
    margin-top: 24px !important;
  }

  body .qr3x-hero-pills {
    justify-content: flex-start !important;
    max-width: 820px !important;
    margin-top: 28px !important;
  }

  body .qr3x-hero-actions {
    max-width: 820px !important;
    margin-top: 24px !important;
  }

  body .qr3x-hero .qr3x-btn {
    text-decoration: none !important;
  }

  body .qr3x-hero .qr3x-btn--primary {
    background: var(--qr3x-green) !important;
    color: var(--qr3x-navy) !important;
    box-shadow: 0 18px 40px rgba(122, 201, 67, 0.20) !important;
  }

  body .qr3x-hero .qr3x-btn--secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
  }

  body .qr3x-shell > .qr3x-card {
    margin-top: -28px !important;
  }
}

@media screen and (max-width: 640px) {
  body .qr3x-hero-inner {
    padding-top: 58px !important;
    padding-bottom: 62px !important;
  }

  body .qr3x-hero-actions .qr3x-btn {
    width: 100% !important;
  }

  body .qr3x-hero-pills {
    gap: 8px !important;
  }
}

/* ============================================================
   QR3X Phase 2A-R1 Public UI Readiness Polish
   - Clearer calculator helpers, result hierarchy, lead gate, consent text.
   - Safer mobile spacing and better footer readability.
   ============================================================ */
@media screen {
  body .qr3x-card {
    border-color: rgba(7, 26, 45, 0.08) !important;
  }

  body .qr3x-preview-panel {
    position: relative !important;
  }

  body .qr3x-field-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
  }

  body .qr3x-result-card {
    border-color: rgba(122, 201, 67, 0.30) !important;
    background: linear-gradient(145deg, rgba(122, 201, 67, 0.10), rgba(255,255,255,0.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.72) !important;
  }

  body .qr3x-result-card--verified {
    border-color: rgba(122, 201, 67, 0.42) !important;
    background: linear-gradient(135deg, rgba(122, 201, 67, 0.14), #ffffff 54%, rgba(122, 201, 67, 0.06)) !important;
  }

  body .qr3x-result-kicker,
  body .qr3x-lead-kicker {
    margin: 0 0 8px;
    color: #4ea31d;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body .qr3x-verified-result {
    margin-top: 2px !important;
  }

  body .qr3x-verified-result .qr3x-section-title {
    margin-bottom: 14px;
  }

  body .qr3x-report-actions {
    margin-top: 16px !important;
  }

  body .qr3x-alert--soft {
    border-color: rgba(245, 158, 11, 0.36) !important;
    background: rgba(255, 251, 235, 0.95) !important;
    color: #92400e !important;
    font-size: 13px;
    line-height: 1.45;
  }

  body .qr3x-blueprint-block {
    margin-top: 16px;
    border: 1px solid rgba(7, 26, 45, 0.08);
    border-radius: 20px;
    padding: 18px;
    background: #ffffff;
  }

  body .qr3x-blueprint-block ul {
    margin: 12px 0 0 20px;
    padding: 0;
  }

  body .qr3x-blueprint-block li {
    margin: 8px 0;
    line-height: 1.55;
  }

  body .qr3x-lead-form {
    border-top: 4px solid rgba(122, 201, 67, 0.55) !important;
    margin-top: 28px !important;
  }

  body .qr3x-lead-intro {
    max-width: 860px;
  }

  body .qr3x-consent {
    grid-column: span 12;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(7, 26, 45, 0.08);
    color: #475569 !important;
  }

  body .qr3x-consent > span,
  body .qr3x-consent-copy,
  body .qr3x-consent-purpose,
  body .qr3x-consent-meta {
    display: block;
  }

  body .qr3x-consent-copy {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.45;
  }

  body .qr3x-consent-purpose,
  body .qr3x-consent-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
  }

  body .qr3x-lead-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  body .qr3x-site-footer {
    font-size: 15px;
  }

  body .qr3x-footer-copy p {
    line-height: 1.55;
  }

  body .qr3x-footer-trust,
  body .qr3x-footer-note {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}

@media screen and (max-width: 760px) {
  body .qr3x-actions,
  body .qr3x-lead-submit {
    align-items: stretch !important;
  }

  body .qr3x-actions .qr3x-btn,
  body .qr3x-lead-submit .qr3x-btn {
    width: 100% !important;
  }

  body .qr3x-metric strong {
    font-size: clamp(2.1rem, 12vw, 3rem) !important;
    line-height: 1.05 !important;
  }

  body .qr3x-field-help,
  body .qr3x-consent-purpose,
  body .qr3x-consent-meta {
    font-size: 12px !important;
  }
}


/* ============================================================
   QR3X Phase 2A-R2 Public Tool Layout + Contact/Consent Polish
   - Adds breathing room after hero.
   - Keeps verified result inside the same content container.
   - Uses a shared Contact details required label for Email OR WhatsApp.
   - Removes technical consent version from the public checkbox.
   ============================================================ */
@media screen {
  body .qr3x-shell > .qr3x-grid#qr3x-tool-main {
    margin-top: clamp(34px, 4vw, 54px) !important;
  }

  body .qr3x-shell > #qr3x-assessment-result {
    width: min(1160px, calc(100% - 40px)) !important;
    max-width: 1160px !important;
    margin: clamp(26px, 3vw, 40px) auto 0 !important;
    box-sizing: border-box !important;
  }

  body .qr3x-shell > #qr3x-assessment-result:empty {
    display: none !important;
  }

  body #qr3x-assessment-result > .qr3x-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body .qr3x-verified-result {
    margin-top: 0 !important;
  }

  body #qr3x-lead-mount {
    margin-top: clamp(24px, 3vw, 38px) !important;
  }

  body .qr3x-lead-form {
    margin-top: 0 !important;
  }

  body .qr3x-contact-group {
    grid-column: span 12 !important;
    margin: 2px 0 -2px !important;
    padding: 10px 12px !important;
    border-left: 3px solid rgba(122, 201, 67, 0.7) !important;
    border-radius: 12px !important;
    background: rgba(122, 201, 67, 0.06) !important;
  }

  body .qr3x-contact-group .qr3x-label {
    margin-bottom: 3px !important;
    color: #1f2937 !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
  }

  body .qr3x-contact-group .qr3x-field-help {
    margin-top: 0 !important;
  }

  body .qr3x-consent-copy {
    font-weight: 650 !important;
  }

  body .qr3x-consent-purpose {
    color: #64748b !important;
  }

  body .qr3x-consent-meta {
    display: none !important;
  }

  body .qr3x-inline-status {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    margin-left: 0 !important;
  }

  body .qr3x-footer-note {
    width: min(1160px, calc(100% - 40px)) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 640px) {
  body .qr3x-shell > .qr3x-grid#qr3x-tool-main,
  body .qr3x-shell > #qr3x-assessment-result,
  body .qr3x-footer-note {
    width: min(100% - 28px, 1160px) !important;
  }

  body .qr3x-shell > .qr3x-grid#qr3x-tool-main {
    margin-top: 28px !important;
  }

  body .qr3x-contact-group {
    padding: 10px !important;
  }

  body .qr3x-inline-status {
    width: 100% !important;
    min-height: 0 !important;
    margin-top: 8px !important;
  }
}

/* ============================================================
   QR3X Phase 2A-R3 Public Result Copy & Risk Signal Polish
   - Converts raw machine flags into prospect-friendly risk signals.
   - Softens public severity labels and improves health result guidance.
   - Improves footer wrapping for long/narrow viewports.
   ============================================================ */
@media screen {
  body .qr3x-grade--soft {
    min-width: 98px !important;
    min-height: 62px !important;
    padding: 12px 14px !important;
    border-radius: 22px !important;
    text-align: center !important;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem) !important;
    line-height: 1.1 !important;
    white-space: normal !important;
  }

  body .qr3x-risk-meaning {
    margin: 10px 0 0 !important;
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body .qr3x-risk-signals {
    margin-top: 14px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(245, 158, 11, 0.30) !important;
    border-radius: 16px !important;
    background: #fffdf7 !important;
    color: #334155 !important;
  }

  body .qr3x-risk-title {
    margin: 0 0 4px !important;
    color: #92400e !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
  }

  body .qr3x-risk-signals .qr3x-subtle {
    margin: 0 0 10px !important;
  }

  body .qr3x-risk-signals ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    gap: 10px !important;
  }

  body .qr3x-risk-signals li {
    position: relative !important;
    padding-left: 20px !important;
    line-height: 1.45 !important;
  }

  body .qr3x-risk-signals li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.58em !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: var(--qr3x-green) !important;
    box-shadow: 0 0 0 4px rgba(122, 201, 67, 0.14) !important;
  }

  body .qr3x-risk-signals strong {
    display: block !important;
    color: #1f2937 !important;
    font-weight: 800 !important;
  }

  body .qr3x-risk-signals span {
    display: block !important;
    margin-top: 2px !important;
    color: #64748b !important;
    font-size: 13px !important;
  }

  body .qr3x-site-footer,
  body .qr3x-footer-copy,
  body .qr3x-footer-copy p,
  body .qr3x-footer-trust,
  body .qr3x-footer-note {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media screen and (max-width: 760px) {
  body .qr3x-grade--soft {
    min-width: 100% !important;
    min-height: auto !important;
  }

  body .qr3x-risk-signals {
    padding: 13px !important;
  }
}

/* ============================================================
   QR3X Phase 2C-R1 Better Results & Blueprint Experience
   - Adds consultative result explanation, blueprint action steps,
     and cleaner browser-print report output.
   ============================================================ */
@media screen {
  body .qr3x-explain-block {
    margin-top: 18px !important;
    padding: 18px 20px !important;
    border: 1px solid rgba(7, 26, 45, 0.08) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
  }

  body .qr3x-explain-block p:last-child {
    margin: 0 !important;
    color: #334155 !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  body .qr3x-blueprint-block--consultative {
    border-color: rgba(122, 201, 67, 0.35) !important;
    background: linear-gradient(145deg, #ffffff, rgba(122, 201, 67, 0.06)) !important;
  }

  body .qr3x-blueprint-kicker {
    margin: 0 0 7px !important;
    color: #4ea31d !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
  }

  body .qr3x-blueprint-actions {
    margin: 16px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    gap: 12px !important;
    counter-reset: qr3xBlueprint;
  }

  body .qr3x-blueprint-actions li {
    display: grid !important;
    grid-template-columns: 34px 1fr !important;
    align-items: start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 13px 14px !important;
    border: 1px solid rgba(7, 26, 45, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.78) !important;
  }

  body .qr3x-blueprint-actions li > span {
    display: inline-grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    background: var(--qr3x-green) !important;
    color: var(--qr3x-navy) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body .qr3x-blueprint-actions p {
    margin: 0 !important;
    color: #334155 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body .qr3x-result-disclaimer {
    margin: 16px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
}

@media screen and (max-width: 640px) {
  body .qr3x-explain-block,
  body .qr3x-blueprint-block--consultative {
    padding: 15px !important;
  }

  body .qr3x-blueprint-actions li {
    grid-template-columns: 30px 1fr !important;
    padding: 12px !important;
  }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111827 !important; }
  .qr3x-site-header,
  .qr3x-site-footer,
  .qr3x-intel-app,
  .qr3x-noscript { display: none !important; }
  #qr3x-report {
    display: block !important;
    color: #111827 !important;
    padding: 0 !important;
    font-family: Arial, sans-serif !important;
  }
  .qr3x-report-header {
    border-bottom: 3px solid #7ac943 !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
  }
  .qr3x-report-header h1 {
    margin: 0 0 8px !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
  }
  .qr3x-report-header p,
  .qr3x-report-generated {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 12px !important;
  }
  .qr3x-report-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .qr3x-report-card {
    border: 1px solid #d9e2ec !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
    margin: 0 !important;
    break-inside: avoid !important;
  }
  .qr3x-report-card strong {
    color: #0b1f33 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
  }
  .qr3x-report-section {
    border: 1px solid #d9e2ec !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    margin: 14px 0 !important;
    break-inside: avoid !important;
  }
  .qr3x-report-section h2 {
    margin: 0 0 8px !important;
    color: #0b1f33 !important;
    font-size: 17px !important;
  }
  .qr3x-report-section p,
  .qr3x-report-list,
  .qr3x-report-risk-list {
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }
  .qr3x-report-list,
  .qr3x-report-risk-list {
    margin: 8px 0 0 20px !important;
    padding: 0 !important;
  }
  .qr3x-report-list li,
  .qr3x-report-risk-list li {
    margin: 6px 0 !important;
  }
  .qr3x-report-risk-list span,
  .qr3x-report-disclaimer p {
    color: #64748b !important;
  }
  .qr3x-report-disclaimer {
    background: #f8fafc !important;
  }
}


/* Phase 2E-R1: static SEO/content expansion for public intelligence tools. */
.qr3x-seo-section {
  background: #f3f7fa;
  padding: 0 0 72px;
}
.qr3x-seo-wrap {
  max-width: 1100px;
}
.qr3x-seo-intro,
.qr3x-seo-card,
.qr3x-seo-related,
.qr3x-seo-faq {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .07);
}
.qr3x-seo-intro {
  padding: 30px;
  margin: 0 0 18px;
}
.qr3x-seo-section--index .qr3x-seo-intro {
  margin-top: 0;
}
.qr3x-seo-intro h2,
.qr3x-seo-card h3,
.qr3x-seo-related h3,
.qr3x-seo-faq h3 {
  color: var(--qr3x-navy);
  margin-top: 0;
}
.qr3x-seo-intro h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.qr3x-seo-intro p,
.qr3x-seo-card p,
.qr3x-seo-card li,
.qr3x-seo-faq p,
.qr3x-seo-link-card span {
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}
.qr3x-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.qr3x-seo-card,
.qr3x-seo-related,
.qr3x-seo-faq {
  padding: 24px;
}
.qr3x-seo-card ul {
  margin: 0;
  padding-left: 20px;
}
.qr3x-seo-card li + li {
  margin-top: 8px;
}
.qr3x-seo-related,
.qr3x-seo-faq {
  margin-top: 18px;
}
.qr3x-seo-link-grid,
.qr3x-seo-mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.qr3x-seo-mini-links {
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.qr3x-seo-link-card {
  display: block;
  padding: 15px 16px;
  border: 1px solid rgba(122, 201, 67, .28);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f7fbf2);
  text-decoration: none;
  color: var(--qr3x-navy);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.qr3x-seo-link-card:hover,
.qr3x-seo-link-card:focus {
  transform: translateY(-1px);
  border-color: rgba(122, 201, 67, .65);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}
.qr3x-seo-link-card strong {
  display: block;
  color: var(--qr3x-navy);
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.qr3x-seo-link-card span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}
.qr3x-seo-faq details {
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
}
.qr3x-seo-faq details + details {
  margin-top: 10px;
}
.qr3x-seo-faq summary {
  cursor: pointer;
  color: var(--qr3x-navy);
  font-weight: 800;
}
.qr3x-seo-faq p {
  margin: 10px 0 0;
}
@media screen and (max-width: 780px) {
  .qr3x-seo-section {
    padding-bottom: 46px;
  }
  .qr3x-seo-grid,
  .qr3x-seo-link-grid {
    grid-template-columns: 1fr;
  }
  .qr3x-seo-intro,
  .qr3x-seo-card,
  .qr3x-seo-related,
  .qr3x-seo-faq {
    border-radius: 20px;
    padding: 20px;
  }
}
@media print {
  .qr3x-seo-section { display: none !important; }
}


/* ============================================================
   QR3X Phase W2A-R3 Global Brand Consistency Patch
   - Aligns /tools/ shell header/footer with WordPress QR3X site.
   - Does not change calculator logic, REST calls, lead capture, or reports.
   ============================================================ */
@media screen {
  :root {
    --qr3x-navy: #071421;
    --qr3x-navy-2: #0d2033;
    --qr3x-green: #24f28c;
    --qr3x-green-soft: #8fffc2;
    --qr3x-light: #f5f8fb;
    --qr3x-text: #102033;
  }

  body .qr3x-site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(7, 20, 33, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
  }

  body .qr3x-site-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
  }

  body .qr3x-nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  body .qr3x-site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
  }

  body .qr3x-brand-logo {
    display: block;
    width: 154px;
    max-height: 48px;
    object-fit: contain;
  }

  body .qr3x-site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: #d8e4f2;
    font-size: 15px;
    font-weight: 800;
  }

  body .qr3x-site-nav a {
    color: #d8e4f2;
    text-decoration: none;
    white-space: nowrap;
  }

  body .qr3x-site-nav a:hover { color: var(--qr3x-green); }

  body .qr3x-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--qr3x-green);
    color: #06120c;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.15s ease;
  }

  body .qr3x-nav-cta:hover { transform: translateY(-1px); }

  body .qr3x-site-footer {
    background: #04101d;
    color: #d8e4f2;
    padding: 56px 0 30px;
  }

  body .qr3x-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 42px;
    align-items: start;
  }

  body .qr3x-footer-logo-link { display: inline-flex; margin-bottom: 14px; }
  body .qr3x-footer-logo { width: 136px; max-height: 44px; object-fit: contain; }
  body .qr3x-site-footer p {
    color: #aebdd0;
    line-height: 1.7;
    max-width: 430px;
    margin: 0;
  }

  body .qr3x-site-footer h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 14px;
  }

  body .qr3x-site-footer a {
    display: block;
    color: #aebdd0;
    text-decoration: none;
    margin-bottom: 10px;
  }

  body .qr3x-site-footer a:hover { color: var(--qr3x-green); }

  body .qr3x-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding-top: 22px;
    color: #8ea0b7;
    font-size: 14px;
  }
}

@media screen and (max-width: 760px) {
  body .qr3x-site-container,
  body .qr3x-intel-app { width: min(100% - 28px, 1180px); }
  body .qr3x-nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }
  body .qr3x-site-nav {
    width: 100%;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 14px;
  }
  body .qr3x-nav-cta { width: 100%; }
  body .qr3x-brand-logo { width: 132px; }
  body .qr3x-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   QR3X Phase W2A-R4 Tools Brand Polish
   - Final header/footer alignment with WordPress pages.
   - Improves readability and mobile grid padding.
   - No calculator JS, REST bridge, lead logic, /q/, /go/, plugin, DB, or .htaccess changes.
   ============================================================ */
@media screen {
  body .qr3x-site-nav a[href="/markets/bali/"]::before,
  body .qr3x-site-nav a[href="/privacy/"]::before {
    content: "";
  }

  body .qr3x-pill,
  body .qr3x-footer-note,
  body .qr3x-shell > .qr3x-footer-note {
    color: #d6e4f5;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 650;
  }

  body .qr3x-card p,
  body .qr3x-tool-card p,
  body .qr3x-seo-card p,
  body .qr3x-seo-link-card span,
  body .qr3x-site-footer p,
  body .qr3x-site-footer a,
  body .qr3x-footer-bottom {
    font-size: 15.5px;
    line-height: 1.72;
  }

  body .qr3x-tool-card,
  body .qr3x-seo-card,
  body .qr3x-seo-link-card {
    padding: 22px;
  }

  body .qr3x-footer-bottom span {
    display: inline-block;
    word-spacing: 0.02em;
  }
}

@media screen and (max-width: 760px) {
  body .qr3x-tool-grid,
  body .qr3x-seo-grid,
  body .qr3x-seo-grid--tools,
  body .qr3x-grid,
  body .qr3x-tools-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  body .qr3x-tool-card,
  body .qr3x-seo-card,
  body .qr3x-seo-link-card,
  body .qr3x-card {
    padding: 20px !important;
  }

  body .qr3x-card p,
  body .qr3x-tool-card p,
  body .qr3x-seo-card p,
  body .qr3x-seo-link-card span,
  body .qr3x-site-footer p,
  body .qr3x-site-footer a,
  body .qr3x-footer-bottom {
    font-size: 14.75px;
    line-height: 1.72;
  }

  body .qr3x-site-nav {
    gap: 16px;
    padding-bottom: 6px;
  }
}
