/* demo.css — homeowner-facing demo proposal page */

.demo-page { padding-top: 60px; }

/* ── HERO ─────────────────────────────────────────────── */
.demo-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #13161d;
}
.demo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a2a3a 0%, #2c1810 50%, #1a1208 100%);
  z-index: 0;
}
.demo-hero-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.015) 40px,
    rgba(255,255,255,0.015) 41px
  );
  z-index: 1;
}
.demo-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 64px 56px;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-contractor-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.demo-contractor-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8a84c;
  color: #13161d;
  font-family: 'Bitter', serif;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo-contractor-name {
  font-family: 'Bitter', serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.demo-contractor-tag {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.demo-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a84c;
}
.demo-title {
  font-family: 'Bitter', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 4px;
}
.demo-homeowner-name {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.demo-est-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.demo-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-primary {
  background: #e8a84c;
  color: #13161d;
}
.btn-primary:hover {
  background: #c8893a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,168,76,0.3);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
}
.btn-sign {
  background: #2e9b5a;
  color: #fff;
}
.btn-sign:hover { background: #24854d; }
.btn-deposit {
  background: #13161d;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-deposit:hover { background: #2a2d3a; }

/* ── SECTION SHARED ────────────────────────────────────── */
.demo-section-header { text-align: center; margin-bottom: 48px; }
.demo-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a84c;
  margin-bottom: 12px;
}
.demo-section-title {
  font-family: 'Bitter', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #1a1d24;
  margin-bottom: 12px;
}
.demo-section-sub {
  font-size: 0.95rem;
  color: #4a5166;
  max-width: 480px;
  margin: 0 auto;
}

/* ── VIDEO ──────────────────────────────────────────────── */
.demo-video-section {
  background: #faf8f5;
  padding: 80px 64px;
}
.demo-video-inner { max-width: 900px; margin: 0 auto; }
.demo-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #13161d;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}
.demo-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.demo-video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2330 0%, #2c3a4a 50%, #1a2638 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}
.demo-video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 40px;
}
.demo-video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
  backdrop-filter: blur(8px);
}
.demo-video-placeholder-title {
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.demo-video-placeholder-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  max-width: 360px;
  line-height: 1.5;
}
.demo-video-placeholder-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e8a84c;
  text-decoration: none;
  border: 1px solid rgba(232,168,76,0.3);
  padding: 8px 20px;
  border-radius: 20px;
  background: rgba(232,168,76,0.08);
  transition: background 0.15s;
}
.demo-video-placeholder-cta:hover {
  background: rgba(232,168,76,0.15);
}
.demo-video-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #7a8299;
  margin-top: 14px;
  justify-content: center;
}

/* ── PHOTO GALLERY ──────────────────────────────────────── */
.demo-inspection { background: #13161d; padding: 80px 64px; }
.demo-inspection-inner { max-width: 1100px; margin: 0 auto; }
.demo-inspection .demo-section-title { color: #fff; }
.demo-inspection .demo-section-sub { color: rgba(255,255,255,0.5); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-card {
  background: #1e2330;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.photo-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-body { padding: 18px 20px 20px; }
.photo-label {
  font-family: 'Bitter', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.photo-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 12px;
}
.photo-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  padding: 4px 10px;
  border-radius: 6px;
}
.photo-tag-alert {
  background: rgba(232,168,76,0.15);
  color: #e8a84c;
}

/* ── ESTIMATE TABLE ─────────────────────────────────────── */
.demo-estimate-table-section {
  background: #f5f1ec;
  padding: 80px 64px;
}
.demo-et-inner { max-width: 1100px; margin: 0 auto; }
.estimate-table-wrap {
  background: #fff;
  border: 1px solid #e0dbd5;
  border-radius: 14px;
  overflow: hidden;
}
.estimate-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
}
.estimate-table thead th {
  background: #13161d;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 20px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.estimate-table thead th:first-child {
  text-align: left;
  border-left: none;
}
.estimate-table th.col-good { background: #3d4356; }
.estimate-table th.col-better { background: #5a4a2a; }
.estimate-table th.col-best { background: #1e2a1a; }
.tier-note {
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.7;
  letter-spacing: 0.03em;
  text-transform: none;
}
.estimate-table tbody td {
  padding: 13px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0ece7;
  color: #1a1d24;
  vertical-align: top;
}
.estimate-table tbody tr.row-even td { background: #faf8f5; }
.estimate-table tbody td.item-name-cell { width: 46%; }
.item-name {
  font-weight: 500;
  color: #1a1d24;
  margin-bottom: 2px;
}
.item-desc {
  font-size: 0.78rem;
  color: #7a8299;
}
.estimate-table tbody td.col-good,
.estimate-table tbody td.col-better,
.estimate-table tbody td.col-best {
  text-align: center;
  font-size: 0.88rem;
  color: #4a5166;
  font-weight: 500;
  border-left: 1px solid #f0ece7;
}
.estimate-table tfoot tr {
  background: #f5f1ec;
  font-weight: 600;
}
.estimate-table tfoot td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: #1a1d24;
  border-top: 2px solid #e0dbd5;
}
.estimate-table tfoot td:first-child { text-align: right; padding-right: 24px; font-weight: 600; }
.estimate-table tfoot td:nth-child(2),
.estimate-table tfoot td:nth-child(3),
.estimate-table tfoot td:nth-child(4) {
  text-align: center;
  border-left: 1px solid #e0dbd5;
  font-size: 0.9rem;
}
.subtotal-row td { background: #faf8f5 !important; }
.tax-row td { background: #f0ece7 !important; font-size: 0.82rem; }
.total-row td {
  background: #13161d !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-family: 'Bitter', serif;
}
.estimate-table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}
.scope-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #7a8299;
  max-width: 540px;
  line-height: 1.55;
}
.scope-note svg { flex-shrink: 0; margin-top: 2px; }
.estimate-id-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7a8299;
  background: #fff;
  border: 1px solid #e0dbd5;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── PRICING CARDS ──────────────────────────────────────── */
.demo-pricing { background: #faf8f5; padding: 80px 64px; }
.demo-pricing-inner { max-width: 1100px; margin: 0 auto; }
.demo-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.demo-tier-card {
  position: relative;
  background: #fff;
  border: 2px solid #e0dbd5;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.demo-tier-card:hover {
  border-color: #e8a84c;
  box-shadow: 0 8px 32px rgba(232,168,76,0.15);
  transform: translateY(-3px);
}
.demo-tier-card.tier-selected {
  border-color: #e8a84c;
  box-shadow: 0 8px 32px rgba(232,168,76,0.25);
}
.demo-tier-featured {
  background: #fffdf8;
  border-color: #e8a84c;
}
.demo-tier-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #e8a84c;
  color: #13161d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.demo-tier-header {
  border-top: 4px solid #ccc;
  padding: 20px 24px 16px;
}
.demo-tier-name {
  font-family: 'Bitter', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1d24;
}
.demo-tier-price {
  padding: 8px 24px 4px;
  font-family: 'Bitter', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1d24;
}
.demo-tier-tagline {
  padding: 0 24px 20px;
  font-size: 0.82rem;
  color: #7a8299;
  font-weight: 400;
}
.demo-tier-includes {
  padding: 0 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #f0ece7;
  padding-top: 16px;
  margin-top: 0;
}
.demo-tier-include-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #4a5166;
  font-weight: 400;
}
.demo-tier-include-item svg { color: #2e9b5a; flex-shrink: 0; }
.demo-tier-excluded { opacity: 0.38; }
.demo-tier-excluded svg { color: #7a8299; }
.demo-tier-cta {
  background: #13161d;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-family: 'Bitter', serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.demo-tier-card.tier-selected .demo-tier-cta {
  background: #e8a84c;
  color: #13161d;
}
.demo-tier-cta-featured {
  background: #e8a84c;
  color: #13161d;
}

/* CTA Row */
.demo-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  background: #13161d;
  border-radius: 14px;
  padding: 28px 40px;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-cta-selected {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.demo-cta-selected strong { color: #e8a84c; font-weight: 600; }
.demo-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── TRUST SECTION ──────────────────────────────────────── */
.demo-trust {
  background: #f5f1ec;
  padding: 72px 64px;
  border-top: 1px solid #e0dbd5;
}
.demo-trust-inner { max-width: 1100px; margin: 0 auto; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-card {
  background: #fff;
  border: 1px solid #e0dbd5;
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #13161d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8a84c;
  flex-shrink: 0;
}
.trust-card h3 {
  font-family: 'Bitter', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1d24;
}
.trust-card p {
  font-size: 0.85rem;
  color: #4a5166;
  line-height: 1.6;
}

/* ── NAV BADGE ──────────────────────────────────────────── */
.nav-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(232,168,76,0.15);
  color: #e8a84c;
  border: 1px solid rgba(232,168,76,0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13,15,20,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f5f1ec;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4a5166;
  transition: background 0.15s;
}
.modal-close:hover { background: #e0dbd5; }
.modal-title {
  font-family: 'Bitter', serif;
  font-size: 1.4rem;
  color: #1a1d24;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 0.88rem;
  color: #4a5166;
  margin-bottom: 24px;
  line-height: 1.6;
}
.modal-selected-tier {
  background: #faf8f5;
  border: 1px solid #e0dbd5;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1d24;
  margin-bottom: 24px;
}
.modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-fields .modal-field:last-child { grid-column: 1 / -1; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5166;
}
.modal-field input {
  padding: 11px 14px;
  border: 1.5px solid #e0dbd5;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: 'DM Sans', sans-serif;
  color: #1a1d24;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.modal-field input:focus { border-color: #e8a84c; }
.modal-sig-wrap { margin-bottom: 24px; }
.modal-sig-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a5166;
  margin-bottom: 4px;
}
.modal-sig-hint {
  font-size: 0.78rem;
  color: #7a8299;
  margin-bottom: 10px;
}
.modal-sig-input-wrap {
  border: 2px dashed #e0dbd5;
  border-radius: 10px;
  overflow: hidden;
  background: #faf8f5;
}
.modal-sig-input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  font-family: 'Bitter', serif;
  color: #1a1d24;
  font-style: italic;
  outline: none;
  letter-spacing: 0.02em;
}
.modal-consent { margin-bottom: 24px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #4a5166;
  line-height: 1.55;
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.modal-success {
  text-align: center;
  padding: 48px 40px;
}
.modal-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(46,155,90,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.modal-success-id {
  margin-top: 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7a8299;
  background: #f5f1ec;
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-tier-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 40px; }
}
@media (max-width: 768px) {
  .demo-hero-content,
  .demo-video-section,
  .demo-estimate-table-section,
  .demo-pricing { padding-left: 28px; padding-right: 28px; }
  .demo-inspection { padding: 64px 28px; }
  .demo-trust { padding: 56px 28px; }
  .photo-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .estimate-table-wrap { overflow-x: auto; }
  .estimate-table { min-width: 600px; }
  .demo-cta-row { flex-direction: column; gap: 20px; padding: 24px; }
  .demo-cta-btns { flex-direction: column; width: 100%; }
  .demo-cta-btns .btn { justify-content: center; }
  .modal-fields { grid-template-columns: 1fr; }
  .modal-box { padding: 28px 24px; }
}