/* RevSpace Design — light neoclassical × modern space-age */

:root {
  --bg: #f7f4ef;
  --bg-elev: #fffcf8;
  --bg-card: #ffffff;
  --bg-soft: #efeae2;
  --line: rgba(90, 78, 62, 0.12);
  --line-strong: rgba(90, 78, 62, 0.22);
  --text: #2a2620;
  --text-muted: #6b645a;
  --champagne: #a6895a;
  --champagne-bright: #c4a574;
  --silver: #7a8494;
  --steel: #9aa3b0;
  --accent: #b89a6a;
  --accent-glow: rgba(184, 154, 106, 0.28);
  --danger: #c45c5c;
  --success: #3d8a5a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 48px rgba(42, 38, 32, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --topbar-h: 64px;
  --max: 1080px;
  --tap: 48px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(184, 154, 106, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 15%, rgba(154, 163, 176, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(184, 154, 106, 0.06), transparent 45%),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 40%, #f3efe8 100%);
  -webkit-font-smoothing: antialiased;
}

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* —— Topbar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(255, 252, 248, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(154, 163, 176, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--champagne);
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 4px transparent, 0 0 0 1px rgba(154, 163, 176, 0.35);
  background: linear-gradient(145deg, #fff, var(--bg-soft));
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--silver);
  border-radius: 50%;
  opacity: 0.7;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.logo-text em {
  font-style: italic;
  color: var(--champagne);
  font-weight: 400;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px rgba(154, 163, 176, 0.12);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  min-height: 32px;
  min-width: 36px;
  padding: 0 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text);
  outline: none;
}

.lang-btn.active {
  background: linear-gradient(145deg, #fff, var(--bg-soft));
  color: var(--text);
  box-shadow: 0 1px 4px rgba(42, 38, 32, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 420px) {
  .lang-btn {
    min-width: 30px;
    padding: 0 0.4rem;
    font-size: 0.65rem;
  }
  .topbar-right {
    gap: 0.4rem;
  }
}

.user-chip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .user-chip {
    display: inline-flex;
    max-width: 200px;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--tap);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--champagne-bright), var(--accent));
  color: #1f1a14;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(184, 154, 106, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--champagne);
  background: rgba(184, 154, 106, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  min-height: 40px;
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(42, 38, 32, 0.05);
}

/* —— Typography helpers —— */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

.accent {
  color: var(--champagne);
  font-style: italic;
}

.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.req {
  color: var(--champagne);
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
}

/* —— Main / views —— */
#main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.view {
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* —— Landing —— */
.hero {
  position: relative;
  text-align: center;
  padding: 2.5rem 0 3rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-ornament {
  width: 64px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
  position: relative;
}

.hero-ornament::before,
.hero-ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-ornament::before { left: -12px; }
.hero-ornament::after { right: -12px; }

.hero-lead {
  margin: 1.25rem auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

@media (min-width: 520px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.pillar-row {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 3rem;
}

@media (min-width: 720px) {
  .pillar-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pillar-icon {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--champagne);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.pillar h3 {
  margin-bottom: 0.5rem;
}

.pillar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.space-types {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .space-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.space-card {
  aspect-ratio: 1.15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 35%, rgba(247, 244, 239, 0.92)),
    linear-gradient(145deg, #ffffff 0%, var(--bg-soft) 55%, rgba(154, 163, 176, 0.18) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 1.15rem;
  position: relative;
}

.space-card::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--champagne), transparent);
}

.space-card span {
  color: var(--champagne);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* —— Auth —— */
.auth-shell {
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-bottom: 0.4rem;
}

.auth-sub {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.auth-switch {
  text-align: center;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--champagne);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-hint {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
  text-align: center;
}

.form-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(196, 92, 92, 0.1);
  border: 1px solid rgba(196, 92, 92, 0.35);
  color: #8b3030;
  font-size: 0.9rem;
}

/* —— Fields —— */
.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: auto;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b645a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--danger);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

/* —— Dashboard —— */
.dash-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.project-list {
  display: grid;
  gap: 0.85rem;
}

.project-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  color: inherit;
  font: inherit;
  width: 100%;
}

.project-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.project-card h3 {
  font-size: 1.2rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--champagne);
  background: rgba(184, 154, 106, 0.12);
  white-space: nowrap;
}

.status-pill.quoted {
  color: var(--success);
  border-color: rgba(61, 138, 90, 0.35);
  background: rgba(61, 138, 90, 0.1);
}

.status-pill.handoff {
  color: var(--silver);
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 252, 248, 0.7);
}

.empty-ornament {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--champagne);
  border-radius: 50%;
  opacity: 0.6;
  position: relative;
}

.empty-ornament::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--silver);
  border-radius: 50%;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* —— Wizard —— */
.wizard-shell {
  max-width: 680px;
  margin: 0 auto;
}

.wizard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.save-indicator {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s;
}

.save-indicator.visible {
  opacity: 1;
  color: var(--success);
}

.save-indicator.saving {
  opacity: 1;
  color: var(--text-muted);
}

.progress-wrap {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 3px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--champagne-bright));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.progress-steps li {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.progress-steps li span {
  display: block;
}

.progress-steps li.active {
  color: var(--champagne);
  font-weight: 500;
}

.progress-steps li.done {
  color: var(--silver);
}

@media (max-width: 420px) {
  .progress-steps li span {
    font-size: 0.62rem;
  }
}

.wizard-step h2 {
  margin-bottom: 0.4rem;
}

.step-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.type-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .type-card:last-child {
    grid-column: span 2;
  }
}

@media (min-width: 720px) {
  .type-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .type-card:last-child {
    grid-column: auto;
  }
}

.type-card {
  text-align: left;
  padding: 1.25rem 1.35rem;
  min-height: 88px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.type-card:hover {
  border-color: var(--line-strong);
}

.type-card[aria-pressed="true"] {
  border-color: var(--champagne);
  background: rgba(184, 154, 106, 0.1);
  box-shadow: 0 0 0 1px var(--champagne), 0 8px 24px rgba(184, 154, 106, 0.12);
}

.type-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.type-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Upload */
.upload-zone {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg-soft);
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--champagne);
  background: rgba(184, 154, 106, 0.08);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.media-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb .thumb-badge {
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  color: #fff;
}

.thumb .thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

/* Rooms */
.room-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.room-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.room-title {
  font-size: 1.15rem;
  color: var(--champagne);
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.chip[aria-pressed="true"],
.chip.active {
  border-color: var(--champagne);
  background: rgba(184, 154, 106, 0.14);
  color: var(--champagne);
}

/* Quote */
.quote-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.quote-total {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.quote-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.quote-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: var(--champagne);
}

.quote-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.quote-breakdown li:last-child {
  border-bottom: none;
}

.quote-breakdown .qb-label {
  color: var(--text-muted);
}

.quote-breakdown .qb-val {
  font-weight: 500;
  white-space: nowrap;
}

.quote-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Handoff */
.handoff-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .handoff-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.chat-stub {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.chat-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-body {
  padding: 1rem;
  min-height: 140px;
}

.chat-bubble {
  max-width: 95%;
  padding: 0.85rem 1rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.chat-footnote {
  margin: 0;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.wa-demo-note {
  margin: 0.75rem 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.wa-demo-note code {
  color: var(--champagne);
  font-size: 0.85em;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.wizard-nav .btn-primary {
  min-width: 140px;
}


/* Floating team chat */
.float-chat {
  position: fixed;
  z-index: 50;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem 0.75rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: #1f1a14;
  background: linear-gradient(135deg, #d4b88a, var(--accent));
  border: 1px solid rgba(166, 137, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(154, 163, 176, 0.25),
    0 12px 32px rgba(42, 38, 32, 0.18),
    0 0 24px var(--accent-glow);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.float-chat:hover,
.float-chat:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(154, 163, 176, 0.35),
    0 16px 36px rgba(42, 38, 32, 0.22),
    0 0 32px var(--accent-glow);
  outline: none;
}

.float-chat-icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(145deg, #5c6675, #3a4250);
  border: 1px solid rgba(42, 38, 32, 0.2);
  position: relative;
  flex-shrink: 0;
}

.float-chat-icon::after {
  content: "";
  position: absolute;
  inset: 28% 22% 32% 28%;
  border: 1.5px solid #e8dcc4;
  border-radius: 40% 40% 40% 8%;
  opacity: 0.95;
}

.float-chat-label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .float-chat {
    /* Compact on small phones so primary CTAs stay clear */
    padding: 0.7rem 0.85rem;
    gap: 0;
  }
  .float-chat-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .float-chat {
    width: 3.25rem;
    height: 3.25rem;
    justify-content: center;
    padding: 0;
  }
  .float-chat-icon {
    width: 1.7rem;
    height: 1.7rem;
  }
}

/* Give wizard nav room above the float on short screens */
.view-wizard .wizard-nav,
.view-dashboard .dash-header {
  padding-bottom: 0.25rem;
}

@media (max-width: 480px) {
  .wizard-nav {
    padding-bottom: 4.5rem;
  }
  .view-dashboard {
    padding-bottom: 5rem;
  }
}

/* Footer */
.site-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.footer-sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* —— Path choice —— */
.path-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.path-grid {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
}

@media (min-width: 640px) {
  .path-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.path-card {
  text-align: left;
  padding: 1.5rem 1.4rem;
  min-height: 140px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.path-card:hover {
  border-color: var(--champagne);
  box-shadow: 0 8px 28px rgba(184, 154, 106, 0.12);
}

.path-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.path-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.path-back {
  margin-top: 0.5rem;
}

.path-preview-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .path-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.path-preview-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.path-preview-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.path-preview-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* —— Commercial signup (intro + form) —— */
.auth-shell-wide {
  max-width: 560px;
}

.auth-card-wide {
  max-width: 100%;
}

.comm-intro {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.lead-save-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--success);
  font-weight: 500;
}

.biz-grid {
  margin-top: 0.35rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: var(--bg-soft);
}

.cat-pill.cat-residential {
  color: var(--champagne-deep, #8a6d3b);
  border-color: rgba(184, 154, 106, 0.4);
  background: rgba(184, 154, 106, 0.1);
}

.cat-pill.cat-commercial {
  color: var(--silver-deep, #5a6570);
  border-color: rgba(120, 140, 160, 0.4);
  background: rgba(120, 140, 160, 0.1);
}

.comm-submit-card .comm-submit-summary {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
}
