* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Navbar with Integrated Search */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
  flex-shrink: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-mark {
  background: #0f172a;
  color: #facc15;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

/* Search Bar inside Header */
.search-row-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.search-row input {
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

.search-row input:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.nav-tab.active {
  background: #0f172a;
  color: #ffffff;
}

.nav-link-ext {
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 6px 10px;
}

/* Compact Hero Strip */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.hero-lead {
  font-size: 13px;
  color: #475569;
}

.hero-lead strong {
  color: #0f172a;
}

.steps-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 11px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.step-pill .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 11.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-pill strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

/* Main Split Grid */
.main-split {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prop-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.prop-top h2,
.sign-header h2,
.status-top h2 {
  font-size: 18.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.owner-line {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.code-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 3 Clean Metric Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.metric-box {
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
}

.metric-highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.m-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
}

.metric-highlight .m-label {
  color: #166534;
}

.m-val {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0;
}

.val-red {
  color: #b91c1c;
}

.val-green {
  color: #15803d;
}

.m-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

/* 5-Column Comparable Sales Table */
.comps-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 12px;
}

.comps-title-row {
  background: #f8fafc;
  padding: 7px 12px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.info-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.clean-table th {
  text-align: left;
  padding: 6px 10px;
  background: #ffffff;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.clean-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.clean-table tr:last-child td {
  border-bottom: none;
}

.clean-table tr.subject-row {
  background: #f8fafc;
  font-weight: 700;
}

.clean-table .r {
  text-align: right;
}

/* Subtle Packet Footer Row */
.packet-bar {
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}

.packet-bar strong {
  color: #0f172a;
}

.btn-outline {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-outline:hover {
  background: #f8fafc;
}

/* Right Column: Sign Card */
.sign-header {
  margin-bottom: 10px;
}

.sign-header p {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.pricing-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.price-option {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  background: #ffffff;
}

.price-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.price-option input {
  display: none;
}

.po-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-pop {
  background: #16a34a;
  color: #ffffff;
  font-size: 10px;
  padding: 1.5px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.po-sub {
  font-size: 11px;
  color: #475569;
  margin-top: 1px;
}

.po-right {
  text-align: right;
  flex-shrink: 0;
}

.po-amt {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
}

.price-option.selected .po-amt {
  color: #1d4ed8;
}

.po-note {
  font-size: 10px;
  color: #64748b;
}

/* Merged Single Summary Line */
.net-keep-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11.5px;
  padding: 7px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
}

.net-keep-banner strong {
  color: #15803d;
}

.quiet-guarantee {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.input-grid label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
}

.input-grid input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  color: #0f172a;
}

.input-grid input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.signature-inline {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sig-lbl {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.sig-display {
  font-family: "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  color: #1d4ed8;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #475569;
  margin-bottom: 10px;
}

.consent-line input {
  margin-top: 2px;
}

.consent-line a {
  color: #2563eb;
}

.btn-cta {
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.btn-cta:hover {
  background: #15803d;
}

/* Search Autocomplete Dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.sugg-item {
  width: 100%;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.sugg-item:hover {
  background: #eff6ff;
}

.sugg-left strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
}

.sugg-left span {
  display: block;
  font-size: 11px;
  color: #64748b;
}

.sugg-right {
  text-align: right;
  flex-shrink: 0;
}

.sugg-sav {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #15803d;
}

.sugg-code {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Status Tracker View */
.status-tracker-card {
  gap: 14px;
}

.submit-success-banner {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12.5px;
}

.status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.status-pill-large {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
}

.progress-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.rail-step {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.rail-step.done {
  background: #f0fdf4;
  border-color: #86efac;
}

.rail-step.current {
  background: #eff6ff;
  border-color: #3b82f6;
  border-width: 2px;
}

.rail-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11.5px;
  background: #e2e8f0;
  color: #475569;
}

.rail-step.done .rail-circle {
  background: #16a34a;
  color: #ffffff;
}

.rail-step.current .rail-circle {
  background: #2563eb;
  color: #ffffff;
}

.rail-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}

.rail-meta {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

.status-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
}

.status-info-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}

.status-info-box h4 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.status-info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.status-info-box li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.status-info-box li span {
  color: #64748b;
}

.status-info-box p {
  font-size: 12px;
  color: #475569;
  margin-bottom: 10px;
}

.stripe-autopay-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stripe-autopay-card strong {
  display: block;
  font-size: 11.5px;
  color: #0f172a;
}

.stripe-autopay-card span {
  display: block;
  font-size: 10.5px;
  color: #64748b;
}

.btn-stripe {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.status-doc-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-ghost {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

/* Details & FAQ Page */
.details-page {
  padding: 24px 20px 36px;
}

.hero-compact {
  max-width: 720px;
  margin-bottom: 18px;
}

.hero-compact h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-compact p {
  font-size: 14px;
  color: #475569;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.faq-card h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.faq-card p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 16px;
  background: #0f172a;
  color: #ffffff;
}

.cta-strip h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.cta-strip p {
  font-size: 12.5px;
  color: #cbd5e1;
}

/* Slim Footer */
.footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 11.5px;
  padding: 8px 0;
  flex-shrink: 0;
}

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

.footer-inner a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================================
   MOBILE-FIRST QR CODE EXPERIENCE (< 960px, e.g. iPhone 375px - 430px)
   ============================================================================ */
@media (max-width: 959px) {
  .container {
    padding: 0 14px;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand-sub {
    display: none;
  }

  .nav-links {
    order: 2;
  }

  .search-row-wrap {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 16px font on inputs prevents iOS Safari auto-zoom on tap */
  .search-row input,
  .input-grid input {
    font-size: 16px;
    padding: 9px 11px;
  }

  .btn-primary {
    padding: 9px 14px;
    font-size: 13.5px;
  }

  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-lead {
    font-size: 12.5px;
  }

  .steps-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .step-pill {
    justify-content: center;
    padding: 5px 6px;
    gap: 5px;
  }

  .step-pill strong {
    font-size: 10.5px;
  }

  .main-split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 14px;
  }

  .prop-top h2,
  .sign-header h2,
  .status-top h2 {
    font-size: 16.5px;
  }

  .metrics-row {
    gap: 6px;
    margin-bottom: 10px;
  }

  .metric-box {
    padding: 8px 6px;
  }

  .m-label {
    font-size: 9.5px;
  }

  .m-val {
    font-size: 16.5px;
  }

  .m-sub {
    font-size: 9.5px;
  }

  /* Hide SqFt and Distance columns on small mobile screens so the Comps table fits 375px cleanly with zero horizontal scroll */
  .clean-table th:nth-child(2),
  .clean-table td:nth-child(2),
  .clean-table th:nth-child(3),
  .clean-table td:nth-child(3) {
    display: none;
  }

  .clean-table th,
  .clean-table td {
    padding: 6px 8px;
    font-size: 11.5px;
  }

  .input-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-cta {
    min-height: 48px;
    font-size: 14.5px;
  }

  .progress-rail {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rail-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 8px 12px;
  }

  .rail-circle {
    margin: 0;
  }

  .status-details-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .stripe-autopay-card {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-stripe {
    text-align: center;
    padding: 10px;
  }
}

/* Mobile Comps Drawer Toggle (Hidden on Desktop, Shown on Mobile so the entire page fits 1 screen on iPhone) */
.mobile-comps-bar {
  display: none;
}

@media (max-width: 959px) {
  .hero-bar {
    display: none;
  }

  .main-content {
    padding-top: 8px;
    padding-bottom: 10px;
    justify-content: flex-start;
  }

  .main-split {
    gap: 8px;
  }

  .card {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .prop-top {
    margin-bottom: 8px;
  }

  .prop-top h2,
  .sign-header h2 {
    font-size: 15.5px;
  }

  .owner-line {
    font-size: 11px;
  }

  .metrics-row {
    gap: 6px;
    margin-bottom: 8px;
  }

  .metric-box {
    padding: 6px 4px;
  }

  .m-label {
    font-size: 9px;
  }

  .m-val {
    font-size: 15.5px;
  }

  .m-sub {
    font-size: 9px;
  }

  .mobile-comps-bar {
    display: block;
  }

  .btn-comps-toggle {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    font-family: inherit;
  }

  .toggle-link {
    color: #2563eb;
    font-weight: 700;
  }

  .comps-drawer {
    display: none;
    margin-top: 8px;
  }

  .comps-drawer.open {
    display: block;
  }

  .sign-header {
    margin-bottom: 6px;
  }

  .sign-header p {
    font-size: 11px;
  }

  .pricing-options {
    gap: 5px;
    margin-bottom: 7px;
  }

  .price-option {
    padding: 6px 10px;
  }

  .po-title {
    font-size: 12px;
  }

  .po-sub {
    font-size: 10px;
  }

  .po-amt {
    font-size: 15px;
  }

  .net-keep-banner {
    padding: 5px 8px;
    font-size: 11px;
    margin-bottom: 7px;
  }

  .quiet-guarantee {
    font-size: 10px;
  }

  /* Side-by-side Full Legal Name & Email on Mobile with 16px font (no iOS zoom) */
  .input-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }

  .input-grid label {
    font-size: 10.5px;
    margin-bottom: 2px;
  }

  .input-grid input {
    font-size: 16px;
    padding: 6px 8px;
  }

  .signature-inline {
    padding: 4px 8px;
    margin-bottom: 6px;
  }

  .sig-lbl {
    font-size: 10.5px;
  }

  .sig-display {
    font-size: 13.5px;
  }

  .consent-line {
    font-size: 10.5px;
    margin-bottom: 7px;
  }

  .btn-cta {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13.5px;
  }

  .footer {
    padding: 6px 0;
    font-size: 10.5px;
  }
}

/* Ultra-tight mobile fit so 390x844 has ZERO vertical scrollbar */
@media (max-width: 959px) {
  .navbar {
    padding: 6px 0;
  }
  .nav-inner {
    gap: 5px;
  }
  .brand-mark {
    font-size: 11.5px;
    padding: 4px 6px;
  }
  .brand-name {
    font-size: 13.5px;
  }
  .nav-tab, .nav-link-ext {
    padding: 4px 9px;
    font-size: 11.5px;
  }
  .search-row input {
    padding: 6px 10px;
    font-size: 16px;
  }
  .btn-primary {
    padding: 6px 12px;
    font-size: 12.5px;
  }
  .main-content {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .main-split {
    gap: 6px;
  }
  .card {
    padding: 9px 11px;
  }
  .eyebrow {
    font-size: 9.5px;
    margin-bottom: 1px;
  }
  .prop-top {
    margin-bottom: 6px;
  }
  .prop-top h2, .sign-header h2 {
    font-size: 14.5px;
  }
  .owner-line {
    font-size: 10.5px;
    margin-top: 1px;
  }
  .code-badge {
    font-size: 10px;
    padding: 2px 6px;
  }
  .metrics-row {
    gap: 5px;
    margin-bottom: 6px;
  }
  .metric-box {
    padding: 5px 4px;
  }
  .m-val {
    font-size: 14.5px;
    margin: 1px 0;
  }
  .btn-comps-toggle {
    padding: 5px 9px;
    font-size: 11px;
  }
  .sign-header {
    margin-bottom: 5px;
  }
  .sign-header p {
    font-size: 10.5px;
    margin-top: 1px;
  }
  .pricing-options {
    gap: 4px;
    margin-bottom: 5px;
  }
  .price-option {
    padding: 5px 8px;
  }
  .po-title {
    font-size: 11.5px;
  }
  .po-sub {
    font-size: 9.5px;
  }
  .po-amt {
    font-size: 14px;
  }
  .net-keep-banner {
    padding: 4px 7px;
    font-size: 10.5px;
    margin-bottom: 5px;
  }
  .quiet-guarantee {
    font-size: 9.5px;
    margin-top: 1px;
  }
  .input-grid {
    gap: 6px;
    margin-bottom: 5px;
  }
  .input-grid label {
    font-size: 10px;
    margin-bottom: 1px;
  }
  .input-grid input {
    padding: 5px 8px;
    font-size: 16px;
  }
  .signature-inline {
    padding: 4px 8px;
    margin-bottom: 5px;
  }
  .sig-lbl {
    font-size: 10px;
  }
  .sig-display {
    font-size: 12.5px;
  }
  .consent-line {
    font-size: 10px;
    margin-bottom: 5px;
    line-height: 1.25;
  }
  .btn-cta {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .footer {
    padding: 4px 0;
    font-size: 9.5px;
  }
  .footer-inner span:nth-child(2) {
    display: none;
  }
}

/* ============================================================================
   FINGER / MOUSE SIGNATURE PAD (NY RP-524 PART 4) + ZERO-SCROLL FIT
   ============================================================================ */
.navbar {
  padding: 8px 0;
}

.main-content {
  padding-top: 8px;
  padding-bottom: 8px;
}

.hero-bar {
  margin-bottom: 8px;
}

.card {
  padding: 14px 18px;
}

.sign-header {
  margin-bottom: 7px;
}

.pricing-options {
  gap: 5px;
  margin-bottom: 7px;
}

.price-option {
  padding: 6px 11px;
}

.net-keep-banner {
  padding: 5px 9px;
  margin-bottom: 7px;
}

.input-grid {
  margin-bottom: 6px;
}

.input-grid input {
  padding: 6px 9px;
}

.sig-pad-wrap {
  margin-bottom: 6px;
}

.sig-pad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.sig-lbl {
  font-size: 11px;
  color: #0f172a;
  font-weight: 700;
}

.req-star {
  color: #dc2626;
  font-weight: 800;
}

.sig-sub-lbl {
  font-weight: 500;
  color: #64748b;
  font-size: 10.5px;
}

.btn-clear-sig {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}

.btn-clear-sig:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sig-canvas-box {
  position: relative;
  background: #ffffff;
  border: 1.5px dashed #94a3b8;
  border-radius: 7px;
  height: 62px;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.sig-canvas-box.sig-active {
  border-style: solid;
  border-color: #2563eb;
  background: #f8fafc;
}

.sig-canvas-box.sig-error {
  border-style: solid;
  border-color: #dc2626;
  background: #fef2f2;
}

#sigCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.sig-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  pointer-events: none;
  user-select: none;
}

.sig-error-msg {
  color: #dc2626;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 3px;
}

.consent-line {
  margin-bottom: 7px;
}

.btn-cta {
  padding: 10px 16px;
}

@media (max-width: 959px) {
  .navbar {
    padding: 5px 0;
  }
  .main-content {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .main-split {
    gap: 5px;
  }
  .card {
    padding: 8px 10px;
  }
  .prop-top {
    margin-bottom: 5px;
  }
  .metrics-row {
    margin-bottom: 5px;
  }
  .sign-header {
    margin-bottom: 4px;
  }
  .pricing-options {
    gap: 3.5px;
    margin-bottom: 4px;
  }
  .price-option {
    padding: 4.5px 8px;
  }
  .net-keep-banner {
    padding: 3.5px 7px;
    margin-bottom: 4px;
  }
  .input-grid {
    margin-bottom: 4px;
  }
  .input-grid input {
    padding: 4px 7px;
    font-size: 16px;
  }
  .sig-pad-wrap {
    margin-bottom: 4px;
  }
  .sig-pad-header {
    margin-bottom: 2px;
  }
  .sig-lbl {
    font-size: 10px;
  }
  .sig-sub-lbl {
    display: none;
  }
  .btn-clear-sig {
    font-size: 10px;
    padding: 1.5px 7px;
  }
  .sig-canvas-box {
    height: 50px;
  }
  .sig-placeholder {
    font-size: 11px;
  }
  .consent-line {
    font-size: 9.8px;
    margin-bottom: 4px;
    line-height: 1.2;
  }
  .btn-cta {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 13px;
  }
}

/* ============================================================================
   3-COLUMN CONTACT CAPTURE GRID (NAME + EMAIL + MOBILE SMS OPT-IN)
   ============================================================================ */
.input-grid.input-grid-3 {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.95fr;
  gap: 7px;
  margin-bottom: 6px;
}

.input-grid.input-grid-3 label {
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 2px;
  white-space: nowrap;
}

.input-grid.input-grid-3 input {
  padding: 6px 8px;
  font-size: 12.5px;
}

.input-grid input.input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

@media (max-width: 959px) {
  .input-grid.input-grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 4px;
  }

  .input-grid.input-grid-3 .field-name {
    grid-column: 1 / -1;
  }

  .input-grid.input-grid-3 label {
    font-size: 9.5px;
    margin-bottom: 1px;
  }

  .input-grid.input-grid-3 input {
    padding: 4px 7px;
    font-size: 16px;
  }
}

/* Ensure 390x844 mobile viewport is strictly <= 844px scrollHeight with 2-row contact grid */
@media (max-width: 959px) {
  .navbar {
    padding: 4px 0;
  }
  .main-content {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .main-split {
    gap: 4px;
  }
  .card {
    padding: 6px 9px;
  }
  .prop-top {
    margin-bottom: 3px;
  }
  .metrics-row {
    margin-bottom: 4px;
  }
  .metric-box {
    padding: 4px 3px;
  }
  .btn-comps-toggle {
    padding: 4px 8px;
  }
  .sign-header {
    margin-bottom: 3px;
  }
  .pricing-options {
    gap: 3px;
    margin-bottom: 3px;
  }
  .price-option {
    padding: 3.5px 7px;
  }
  .net-keep-banner {
    padding: 3px 6px;
    margin-bottom: 3px;
  }
  .input-grid.input-grid-3 {
    gap: 4px;
    margin-bottom: 3px;
  }
  .input-grid.input-grid-3 input {
    padding: 3px 6px;
    font-size: 16px;
  }
  .sig-pad-wrap {
    margin-bottom: 3px;
  }
  .sig-canvas-box {
    height: 42px;
  }
  .consent-line {
    font-size: 9.2px;
    margin-bottom: 3px;
    line-height: 1.15;
  }
  .btn-cta {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 12.5px;
  }
  .footer {
    padding: 3px 0;
  }
}

/* ============================================================================
   2026-10-27 fixes: lookup prompt, readable consent, visible disclaimer, errors
   ============================================================================ */
.lookup-prompt {
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.45;
  color: #334155;
}
.consent-line {
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
}
.disclaimer-line {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}
.footer-inner span:nth-child(2) {
  display: inline !important;
}
.form-error {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #b91c1c;
}
