/* LV Construction — AI Room Designer page styles.
   Extends ../styles.css; brand tokens come from :root there. */

/* display rules below would defeat the hidden attribute without this */
[hidden] { display: none !important; }

/* ── Hero: paint-deck stripes ───────────────────────────────────────────── */
.rd-hero { padding-top: 150px; position: relative; overflow: hidden; }
.rd-hero-stripes {
  position: absolute;
  top: 0; right: -60px;
  height: 100%;
  width: 42%;
  display: flex;
  transform: skewX(-12deg);
  opacity: 0.14;
  pointer-events: none;
}
.rd-hero-stripes span { flex: 1; }
.rd-hero .container { position: relative; z-index: 1; }

/* ── App shell ──────────────────────────────────────────────────────────── */
.rd-app {
  max-width: 860px;
  margin: 0 auto;
  background: var(--dark);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 42px 46px 40px;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18);
}

.rd-step-head {
  display: flex;
  gap: 18px;
  align-items: baseline;
  margin-bottom: 24px;
}
.rd-step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green-light);
  line-height: 1;
}
.rd-step-head h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}
.rd-step-head p {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ── Photo zone ─────────────────────────────────────────────────────────── */
.rd-photozone {
  border: 2px dashed rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  transition: border-color var(--transition), background var(--transition);
}
.rd-photozone:hover,
.rd-photozone:focus-visible,
.rd-photozone.dragover {
  border-color: var(--green);
  background: rgba(45, 142, 50, 0.07);
  outline: none;
}
.rd-photozone svg { color: var(--green-light); margin-bottom: 10px; }
.rd-pz-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}
.rd-pz-title span { color: var(--green-light); }
.rd-pz-hint {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  margin-top: 6px;
  color: rgba(255,255,255,0.4);
}

/* ── Preview strip ──────────────────────────────────────────────────────── */
.rd-preview-strip {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 26px;
}
.rd-preview-strip img {
  height: 86px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.15);
}
.rd-linkbtn {
  background: none;
  border: none;
  color: var(--green-light);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
}
.rd-linkbtn:hover { color: var(--white); }

/* ── Element tabs ───────────────────────────────────────────────────────── */
.rd-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 0;
}
.rd-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  padding: 10px 18px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.rd-tab:hover { color: var(--white); }
.rd-tab[aria-selected="true"] {
  color: var(--green-light);
  border-bottom-color: var(--green);
}

/* ── Swatch deck ────────────────────────────────────────────────────────── */
.rd-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.rd-swatch {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 0 0 12px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.rd-swatch:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }
.rd-swatch[aria-pressed="true"] {
  border-color: var(--green);
  background: rgba(45, 142, 50, 0.1);
  box-shadow: 0 0 0 1px var(--green);
}
.rd-swatch-chip {
  height: 64px;
  width: 100%;
  display: block;
  position: relative;
}
.rd-swatch[aria-pressed="true"] .rd-swatch-chip::after {
  content: "";
  position: absolute;
  right: 8px; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/11px no-repeat;
}
.rd-swatch-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 12px 2px;
  display: block;
}
.rd-swatch-meta {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  padding: 0 12px;
  display: block;
  line-height: 1.45;
}
.rd-swatch-tier {
  color: var(--green-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd-error { margin-top: 4px; }
.rd-fineprint {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255,255,255,0.35);
  margin-top: 14px;
}

/* ── Progress: paint roller ─────────────────────────────────────────────── */
.rd-progress { text-align: center; padding: 46px 8px 34px; }
.rd-roller {
  height: 10px;
  max-width: 380px;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  overflow: hidden;
}
.rd-roller-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  transition: width 1.2s ease;
}
.rd-progress-stage {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  min-height: 1.6em;
}
.rd-progress-hint {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 10px;
}

/* ── Before / after slider ──────────────────────────────────────────────── */
.rd-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: #000;
}
.rd-slider img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.rd-before-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
}
.rd-before-wrap img {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
.rd-handle {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.rd-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2.5px;
  margin-left: -1.25px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.rd-handle-grip {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.45);
  transition: transform var(--transition);
}
.rd-handle:hover .rd-handle-grip,
.rd-handle:focus-visible .rd-handle-grip { transform: scale(1.1); }
.rd-tag {
  position: absolute;
  bottom: 12px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(17,17,17,0.65);
  padding: 5px 10px;
  border-radius: var(--radius);
  pointer-events: none;
}
.rd-tag-before { left: 12px; }
.rd-tag-after { right: 12px; }

.rd-result-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.rd-btn-dark { border-color: rgba(255,255,255,0.35); color: var(--white); }

/* ── Lead modal ─────────────────────────────────────────────────────────── */
.rd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.rd-modal {
  position: relative;
  background: var(--dark);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.rd-modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 6px;
}
.rd-modal-sub {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
  line-height: 1.5;
}
.rd-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}
.rd-modal-close:hover { color: var(--white); }
.rd-modal-done { text-align: center; padding: 18px 4px 8px; }
.rd-modal-done h3 { margin: 12px 0 8px; }
.rd-modal-done p {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rd-hero { padding-top: 120px; }
  .rd-hero-stripes { width: 70%; right: -100px; opacity: 0.09; }
  .rd-app { padding: 28px 20px 26px; }
  .rd-swatches { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
  .rd-tab { padding: 10px 12px; font-size: 0.88rem; }
  .rd-preview-strip img { height: 68px; }
}
