/* Industry page: real estate (EN/DE/ES). Product-shot mockups drawn in HTML/CSS,
   sample data only. Scoped to body.ind-re so nothing leaks into other pages. */

.ind-re {
  --re-line: #e4e4e7;
  --re-sage: #5d7a6b;
  --re-sage-ink: #4f6a5c; /* darker sage for small text (AA on white) */
  --re-wash: rgba(93, 122, 107, 0.08);
}

/* ---------- shared mockup window ---------- */
.re-win {
  background: var(--surface);
  border: 1px solid var(--re-line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}
.re-win__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--re-line);
  background: var(--bg-elev);
}
.re-mono,
.re-win__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.re-win__label { display: inline-flex; align-items: center; gap: 0.5rem; }
.re-win__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}
.re-win__sample {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--re-line);
  border-radius: 99px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}
.re-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--re-line);
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
}
.re-tag--hot { border-color: var(--re-sage); color: var(--re-sage-ink); background: var(--re-wash); }
.re-btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--re-line);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
.re-btn--dark { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* ---------- hero ---------- */
.re-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.re-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.re-hero .section__head { margin-bottom: 0; gap: 1.4rem; }
.re-hero .section__title { font-size: clamp(2.4rem, 4.6vw, 4.1rem); max-width: 13ch; }
.re-hero .pagehead__local { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--text-muted); max-width: 40ch; }
.re-hero .section__sub { align-self: flex-start; }
.re-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* inbox mockup */
.re-inbox__body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); }
.re-inbox__list { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--re-line); }
.re-inbox__item { padding: 0.8rem 0.95rem; border-bottom: 1px solid var(--re-line); position: relative; }
.re-inbox__item:last-child { border-bottom: 0; }
.re-inbox__item.is-on { background: var(--re-wash); }
.re-inbox__item.is-on::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--re-sage);
}
.re-inbox__from { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.72rem; color: var(--text-soft); }
.re-inbox__subj { margin: 0.2rem 0 0.45rem; font-weight: 500; font-size: 0.82rem; }
.re-inbox__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.re-inbox__detail { padding: 1rem 1.1rem 1.1rem; display: grid; gap: 0.85rem; align-content: start; }
.re-inbox__title { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em; margin: 0.15rem 0 0; }
.re-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1rem; margin: 0; }
.re-fields div { min-width: 0; }
.re-fields dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.re-fields dd { margin: 0.1rem 0 0; font-size: 0.82rem; }
.re-card { border: 1px solid var(--re-line); border-radius: 10px; padding: 0.7rem 0.8rem; background: var(--bg-elev); }
.re-card__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.re-card p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.re-card--draft { background: var(--surface); }
.re-card__actions { display: flex; gap: 0.45rem; margin-top: 0.7rem; flex-wrap: wrap; align-items: center; }
.re-wait { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--re-sage-ink); margin-left: auto; }
.re-wait::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--re-sage); }
@media (prefers-reduced-motion: no-preference) {
  .re-wait::before { animation: re-pulse 2.2s var(--ease) infinite; }
}
@keyframes re-pulse {
  0% { box-shadow: 0 0 0 0 rgba(93, 122, 107, 0.45); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(93, 122, 107, 0); }
}

/* ---------- section rhythm ---------- */
.re-sec { padding: clamp(4rem, 8vw, 7rem) 0; }
.re-sec--line { border-top: 1px solid var(--re-line); }
.re-sec .section__title { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 18ch; }

/* ---------- day in the work ---------- */
.re-day__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.re-day__col { border: 1px solid var(--re-line); border-radius: 16px; background: var(--surface); padding: 1.4rem 1.5rem 0.6rem; }
.re-day__col--after { border-color: var(--re-sage); box-shadow: 0 0 0 3px var(--re-wash); }
.re-day__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--re-line); }
.re-day__head h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.re-day__col--after .re-day__head .re-mono { color: var(--re-sage-ink); }
.re-day__list { list-style: none; margin: 0; padding: 0; }
.re-day__list li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 0.9rem; padding: 0.95rem 0; border-bottom: 1px solid var(--re-line); }
.re-day__list li:last-child { border-bottom: 0; }
.re-day__list time { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-soft); padding-top: 0.1rem; }
.re-day__list p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.re-day__list strong { color: var(--text); font-weight: 500; }

/* ---------- industry context (sourced facts) ---------- */
.re-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--text); }
.re-fact { padding: 1.4rem 1.3rem 1.5rem 0; border-right: 1px solid var(--re-line); display: flex; flex-direction: column; gap: 0.7rem; }
.re-fact + .re-fact { padding-left: 1.3rem; }
.re-fact:last-child { border-right: 0; }
.re-fact__big { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.re-fact p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.re-fact__src { margin-top: auto; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.re-fact__src a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.re-fact__src a:hover { color: var(--text); text-decoration-color: var(--re-sage); }
.re-facts__note { margin: 1.8rem 0 0; max-width: 46rem; font-size: 1.06rem; color: var(--text); }

/* ---------- what we build: rows with mockups ---------- */
.re-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.re-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.re-row:nth-child(even) .re-row__shot { order: 2; }
.re-row__copy h3 { margin: 0.6rem 0 0.8rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.re-row__copy p { margin: 0; color: var(--text-muted); }
.re-row__parts { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.re-row__parts li { font-size: 0.82rem; border: 1px solid var(--re-line); border-radius: 99px; padding: 0.25rem 0.7rem; background: var(--surface); }
.re-row__link { display: inline-block; margin-top: 1.2rem; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid var(--re-sage); }

/* rate-check table */
.re-table { width: 100%; border-collapse: collapse; }
.re-table th, .re-table td { text-align: left; padding: 0.65rem 1rem; border-bottom: 1px solid var(--re-line); vertical-align: top; }
.re-table th { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); font-weight: 400; }
.re-table td { font-size: 0.82rem; }
.re-table td.re-num { font-family: var(--font-mono); font-size: 0.78rem; }
.re-table tr.is-flag td { background: var(--re-wash); }
.re-win__foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.7rem 1rem; background: var(--bg-elev); }

/* lease abstract */
.re-lease { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); }
.re-lease__doc { padding: 1rem; border-right: 1px solid var(--re-line); background: var(--bg-elev); }
.re-page { background: var(--surface); border: 1px solid var(--re-line); border-radius: 6px; padding: 0.6rem 0.55rem; display: grid; gap: 5px; box-shadow: var(--shadow-sm); }
.re-page i { display: block; height: 4px; border-radius: 2px; background: var(--surface-muted); }
.re-page i.hl { background: rgba(93, 122, 107, 0.35); }
.re-page i.s { width: 60%; }
.re-page + .re-page { margin-top: 0.5rem; }
.re-lease__fields { list-style: none; margin: 0; padding: 0; }
.re-lease__fields li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) auto; gap: 0.6rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--re-line); align-items: baseline; }
.re-lease__fields li > span:first-child { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.re-lease__fields li > span:nth-child(2) { font-size: 0.82rem; }
.re-lease__fields .re-pg { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-soft); }
.re-lease__fields li.is-key { background: var(--re-wash); }
.re-lease__fields li.is-key > span:nth-child(2) { font-weight: 500; }
.re-flag { display: flex; gap: 0.55rem; align-items: center; padding: 0.7rem 1rem; font-size: 0.8rem; color: var(--text-muted); }
.re-flag b { font-weight: 500; color: var(--text); }

/* enquiry thread */
.re-thread { padding: 1rem; display: grid; gap: 0.7rem; }
.re-msg { border: 1px solid var(--re-line); border-radius: 10px; padding: 0.7rem 0.85rem; max-width: 88%; background: var(--surface); }
.re-msg--out { justify-self: end; background: var(--bg-elev); }
.re-msg .re-mono { display: block; margin-bottom: 0.25rem; }
.re-msg p { margin: 0; font-size: 0.82rem; }
.re-slots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.6rem; }
.re-slot { font-family: var(--font-mono); font-size: 0.66rem; padding: 0.25rem 0.55rem; border: 1px solid var(--re-line); border-radius: 6px; background: var(--surface); }
.re-slot.is-on { border-color: var(--re-sage); color: var(--re-sage-ink); background: var(--re-wash); }
.re-event { display: flex; align-items: center; gap: 0.6rem; border: 1px dashed var(--border-strong); border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.8rem; color: var(--text-muted); }
.re-event b { color: var(--text); font-weight: 500; }

/* owner report tile */
.re-report { padding: 1rem; display: grid; gap: 1rem; }
.re-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--re-line); border-radius: 10px; }
.re-kpi { padding: 0.75rem 0.85rem; border-right: 1px solid var(--re-line); min-width: 0; }
.re-kpi:last-child { border-right: 0; }
.re-kpi strong { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 0.2rem; }
.re-bars { display: grid; gap: 0.55rem; }
.re-bar { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 3rem; gap: 0.7rem; align-items: center; font-size: 0.78rem; }
.re-bar span:last-child { font-family: var(--font-mono); font-size: 0.72rem; text-align: right; color: var(--text-muted); }
.re-bar__track { height: 8px; border-radius: 4px; background: var(--surface-muted); overflow: hidden; }
.re-bar__track i { display: block; height: 100%; border-radius: 4px; background: var(--text); }
.re-bar.is-flag .re-bar__track i { background: var(--re-sage); }

/* ---------- systems strip + proof ---------- */
.re-sys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.re-sys li { border: 1px solid var(--re-line); border-radius: 10px; background: var(--surface); padding: 0.95rem 1rem; display: grid; gap: 0.25rem; }
.re-sys strong { font-weight: 500; font-size: 0.95rem; }
.re-sys span { font-size: 0.82rem; color: var(--text-muted); }
.re-proof { display: flex; align-items: center; gap: 1.2rem; margin-top: clamp(2.2rem, 4vw, 3rem); padding-top: 1.5rem; border-top: 1px solid var(--re-line); }
.re-proof img { width: 44px; height: auto; flex: none; }
.re-proof p { margin: 0; font-size: 1.06rem; }

/* ---------- Audit > Demo > Run, told in property terms ---------- */
.re-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--text); }
.re-step { padding: 1.5rem 1.4rem 0.5rem 0; border-right: 1px solid var(--re-line); }
.re-step + .re-step { padding-left: 1.4rem; }
.re-step:last-child { border-right: 0; }
.re-step h3 { margin: 0.7rem 0 0.7rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.re-step p { margin: 0 0 0.8rem; color: var(--text-muted); font-size: 0.95rem; }
.re-step__eg { border-left: 2px solid var(--re-sage); padding-left: 0.8rem; color: var(--text) !important; }
.re-steps__cta { margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .re-hero__grid { grid-template-columns: 1fr; }
  .re-hero .section__title { max-width: 16ch; }
  .re-row, .re-row:nth-child(even) { grid-template-columns: 1fr; }
  .re-row:nth-child(even) .re-row__shot { order: 0; }
  .re-row__shot { order: 0; }
  .re-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .re-fact:nth-child(2) { border-right: 0; }
  .re-fact:nth-child(3) { padding-left: 0; }
  .re-fact:nth-child(n+3) { border-top: 1px solid var(--re-line); }
  .re-sys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .re-inbox__body { grid-template-columns: 1fr; }
  .re-inbox__list { border-right: 0; border-bottom: 1px solid var(--re-line); }
  .re-inbox__item:nth-child(n+3) { display: none; }
  .re-day__grid { grid-template-columns: 1fr; }
  .re-day__col { padding: 1.1rem 1.1rem 0.4rem; }
  .re-facts { grid-template-columns: 1fr; }
  .re-fact, .re-fact + .re-fact { padding: 1.2rem 0; border-right: 0; border-top: 1px solid var(--re-line); }
  .re-fact:first-child { border-top: 0; }
  .re-steps { grid-template-columns: 1fr; }
  .re-step, .re-step + .re-step { padding: 1.3rem 0 0.4rem; border-right: 0; border-top: 1px solid var(--re-line); }
  .re-step:first-child { border-top: 0; }
  .re-lease { grid-template-columns: 1fr; }
  .re-lease__doc { display: none; }
  .re-lease__fields li { grid-template-columns: minmax(0, 1fr) auto; }
  .re-lease__fields li > span:first-child { grid-column: 1 / -1; }
  .re-table th:nth-child(3), .re-table td:nth-child(3) { display: none; }
  .re-table th, .re-table td { padding: 0.6rem 0.7rem; }
  .re-bar { grid-template-columns: 5.5rem minmax(0, 1fr) 2.6rem; }
  .re-kpi strong { font-size: 1.1rem; }
  .re-proof { align-items: flex-start; }
}
@media (max-width: 480px) {
  .re-sys { grid-template-columns: 1fr; }
  .re-fields { grid-template-columns: 1fr 1fr; }
  .re-win__sample { display: none; }
}

/* no automatic hyphenation in display type on these pages */
.ind-re .section__title,
.ind-re .pagehead__local,
.ind-re .re-row__copy h3 { hyphens: manual; -webkit-hyphens: manual; }
