/* Landing "Louer une salle" do Phénix Atelier — refeita em 26/11/2026 (card 1amndjnrn5c) pelo método da v3 das
   locatárias: crítica com nota, exercício do desenho genérico, plano, protótipo e revisor isolado.
   Cores e tipos da marca (os do site da Phénix): escuro na capa e no fecho, papel no meio. Sem arco: vídeo e foto
   em retângulo de canto suave; o vídeo da capa não tem moldura e some no escuro. Celular primeiro. */

@font-face {
  font-family: 'Elegance Signature Serif';
  src: url('/phenix/site/fonts/Elegance-Signature-Serif.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --nuit: #2c2114;
  --nuit-2: #3a2b19;
  --papier: #f7f1e7;
  --sable: #efe4d3;
  --or: #7c4908;
  --or-deep: #5c3505;
  --tan: #d8c8ac;
  --ink: #2f2a24;
  --muted: #645b4f;
  --on-nuit: #f7f1e7;
  --on-nuit-muted: #e6dccb;
  --line: rgba(124, 73, 8, 0.18);
  --line-nuit: rgba(216, 200, 172, 0.22);
  --display: 'Elegance Signature Serif', 'Cormorant Garamond', Georgia, serif;
  --body: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --band-h: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--or);
  accent-color: var(--or);
}

::selection {
  background: var(--tan);
  color: var(--nuit);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

h1,
h2,
.form-title,
.feedback-title,
.footer-nav-title {
  /* a ligadura "st" da Elegance desenha um laço solto acima da linha ("questions") */
  font-variant-ligatures: no-common-ligatures;
}

h1,
h2 {
  font-family: var(--display);
  color: var(--or);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(2.1rem, 6.2vw, 3.3rem);
  margin-bottom: 1rem;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--papier);
  color: var(--nuit);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ===================== Botões ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.btn-primary {
  background: var(--or);
  border-color: var(--or);
  color: #fff;
}
.btn-primary:hover {
  background: var(--or-deep);
  border-color: var(--or-deep);
}
.btn-light {
  background: var(--tan);
  border-color: var(--tan);
  color: var(--nuit);
}
.btn-light:hover {
  background: var(--papier);
  border-color: var(--papier);
}
.btn-ghost {
  background: transparent;
  border-color: var(--or);
  color: var(--or);
}
.btn-ghost:hover {
  background: #fff;
}
.btn-small {
  min-height: 38px;
  padding: 0.4rem 1.05rem;
  font-size: 0.92rem;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.icon-wa {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex: none;
}
.foot :focus-visible,
.band :focus-visible,
.hero :focus-visible {
  outline-color: var(--tan);
}

/* ===================== Faixa da Phénix ===================== */
.band {
  position: relative;
  z-index: 40;
  background: var(--nuit);
  color: var(--on-nuit);
  border-bottom: 1px solid var(--line-nuit);
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--band-h);
}
.band-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-underline-offset: 4px;
}
.band-back:hover {
  text-decoration: underline;
}
.band-back svg,
.contact-site svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band-nav,
.band-cta {
  display: none;
}

/* ===================== Capa ===================== */
/* Celular: a capa ocupa a primeira tela; o vídeo fica com o que sobra acima do texto, e a ação cabe nela. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--band-h));
  background: var(--nuit);
  color: var(--on-nuit);
  overflow: hidden;
}
.hero-media {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 38svh;
  background: var(--nuit-2);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-media::after {
  /* o vídeo some no escuro, sem moldura; desce 2 px abaixo da borda para não sobrar linha clara de subpixel */
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 58%;
  background: linear-gradient(
    to bottom,
    rgba(44, 33, 20, 0) 0%,
    rgba(44, 33, 20, 0.35) 40%,
    rgba(44, 33, 20, 0.8) 72%,
    var(--nuit) 100%
  );
  pointer-events: none;
}
.video-pause {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 231, 0.45);
  background: rgba(44, 33, 20, 0.55);
  color: var(--on-nuit);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-pause svg {
  width: 20px;
  height: 20px;
}
.video-pause .icon-pause {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.video-pause .icon-play {
  display: none;
  fill: currentColor;
  margin-left: 2px;
}
.video-pause[aria-pressed='true'] .icon-pause {
  display: none;
}
.video-pause[aria-pressed='true'] .icon-play {
  display: block;
}
.room-pause {
  top: 10px;
  right: 10px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  /* no celular o texto sobe 3 px sobre o vídeo, com o fundo escuro: a borda do vídeo cai em fração de pixel */
  margin-top: -3px;
  padding-top: calc(0.25rem + 3px);
  padding-bottom: 1.75rem;
  background: var(--nuit);
}
.hero-title {
  font-family: var(--display);
  color: var(--on-nuit);
  font-size: clamp(2.3rem, 9.6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
  max-width: 17ch;
  animation: focus-in 0.6s var(--ease-out) both;
}
@keyframes focus-in {
  from {
    filter: blur(8px);
    opacity: 0.35;
  }
  to {
    filter: none;
    opacity: 1;
  }
}
.hero-lead {
  color: var(--on-nuit-muted);
  font-size: 1.02rem;
  max-width: 46ch;
  margin-bottom: 1.25rem;
}
#hero-cta {
  width: 100%;
}

/* passagens entre o escuro e o papel (sem mancha de luz solta) */
.passage {
  height: clamp(56px, 9vw, 120px);
}
.passage-down {
  /* sobe 3 px sobre a capa: a borda do vídeo cai em fração de pixel e deixava uma linha clara */
  position: relative;
  z-index: 1;
  margin-top: -3px;
  background: linear-gradient(to bottom, var(--nuit) 3px, var(--papier));
}
.passage-up {
  background: linear-gradient(to bottom, var(--papier), var(--nuit));
}

/* ===================== Vídeos: visita e salas ===================== */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sable);
}
.frame video,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-section {
  padding-top: clamp(1rem, 4vw, 3rem);
}
/* no celular: título, frase, vídeo e depois o convite à visita (o bloco do texto se desfaz para a ordem) */
.tour-grid {
  display: flex;
  flex-direction: column;
}
.tour-copy {
  display: contents;
}
.tour-copy h2 { order: 1; }
.tour-copy .lead { order: 2; margin-bottom: 1.5rem; }
.tour { order: 3; }
.tour-copy .visit-call { order: 4; }
.tour {
  margin: 0;
}
.frame-tour {
  width: min(100%, 400px);
  aspect-ratio: 9 / 16;
  max-height: 78svh;
  background: var(--nuit);
}
.tour-play {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 3.5rem 1.1rem 1.1rem;
  border: 0;
  background: linear-gradient(to top, rgba(28, 20, 10, 0.85), rgba(28, 20, 10, 0));
  color: #fff;
  font-family: var(--body);
  text-align: left;
  cursor: pointer;
}
.tour-play-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--papier);
  color: var(--or);
  transition: transform 0.3s var(--ease-out);
}
.tour-play-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 3px;
}
.tour-play:hover .tour-play-icon {
  transform: scale(1.06);
}
.tour-play-label {
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
}
.tour-play-label small {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tan);
}
.tour-play[hidden] {
  display: none;
}

.rooms {
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
}
.rooms-title {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.rooms-list {
  list-style: none;
  margin: 0 -1.25rem;
  padding: 0 1.25rem 0.75rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--tan) transparent;
}
.room {
  scroll-snap-align: start;
}
.frame-room {
  aspect-ratio: 4 / 5;
  margin-bottom: 0.75rem;
}
.room-name {
  font-weight: 800;
  margin: 0 0 0.1rem;
}
.room-text {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.visit-call {
  margin-top: 1.75rem;
}
.visit-call p {
  font-weight: 700;
  max-width: 40ch;
}
.visit-call .btn {
  margin-bottom: 0.75rem;
}
.visit-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  width: fit-content;
  color: var(--muted);
  font-weight: 600;
  text-underline-offset: 4px;
}
.visit-address svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===================== A conta do aluguel ===================== */
.rent {
  background: var(--sable);
}
.rent-grid {
  display: grid;
  gap: 2rem;
}
.rent-question {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
}
.rent-intro p:last-child {
  color: var(--muted);
}
.rent-intro strong {
  color: var(--ink);
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums lining-nums;
}
.ledger caption {
  text-align: left;
  font-weight: 800;
  padding-bottom: 0.75rem;
}
.ledger thead th {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  padding: 0 0 0.6rem;
  border-bottom: 1.5px solid var(--ink);
}
.ledger .num {
  text-align: right;
  white-space: nowrap;
  padding-left: 0.75rem;
}
.ledger tbody th,
.ledger tbody td {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger tbody td.num {
  padding-left: 0.75rem;
}
.ledger tbody th {
  font-weight: 800;
  text-align: left;
  line-height: 1.35;
}
.ledger tbody th span {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.93rem;
  color: var(--muted);
}
.ledger td {
  color: var(--muted);
}
.ledger td.inc {
  color: var(--or);
  font-weight: 800;
}
.ledger tr.group th {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}
.ledger tr.sub th {
  font-weight: 600;
  padding-left: 1rem;
}
.ledger tr.sub th,
.ledger tr.sub td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.ledger tr.contract-row th,
.ledger tr.contract-row td {
  border-bottom: 1.5px solid var(--ink);
}
.ledger-after {
  margin: 1.25rem 0 0;
  font-weight: 700;
  max-width: 52ch;
}

/* ===================== Contrato ===================== */
.contract-grid {
  display: grid;
  gap: 2.25rem;
}
.contract-copy .lead {
  margin-bottom: 1.6rem;
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.actions-row .btn {
  flex: 1 1 220px;
}
.contract-photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  max-width: 460px;
}

/* ===================== FAQ ===================== */
.faq {
  padding-top: 0;
}
.faq-grid {
  display: grid;
  gap: 1.25rem;
  padding-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid var(--or);
  border-bottom: 2px solid var(--or);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.3s var(--ease-out);
}
.faq-list details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq-list details p {
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 66ch;
}

/* ===================== Formulário ===================== */
.join {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.join-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1rem, 4vw, 2.25rem);
}
.form-title {
  font-family: var(--display);
  color: var(--or);
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.form-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.lead-form {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.92rem;
  font-weight: 700;
}
.required {
  color: var(--or);
}
.form-group input,
.form-group select {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--papier);
  border: 1.5px solid #d9ccb6;
  border-radius: 12px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--or) 50%), linear-gradient(135deg, var(--or) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form-group input::placeholder {
  color: #857a6b;
}
.form-group input:hover,
.form-group select:hover {
  border-color: #a67c3d;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--or);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(124, 73, 8, 0.16);
}
.form-error {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a1261b;
}
.form-group.has-error input,
.form-group.has-error select {
  border-color: #a1261b;
  background: #fff6f4;
}
.form-group.has-error .form-error,
.captcha-container.has-error .form-error {
  display: block;
}
.captcha-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-submit-btn {
  width: 100%;
}
.form-whatsapp-alternative {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.whatsapp-or {
  color: var(--muted);
  font-size: 0.92rem;
}
.btn-whatsapp-alt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 800;
  color: #1c6e43;
  text-decoration: none;
  text-underline-offset: 4px;
}
.btn-whatsapp-alt:hover {
  text-decoration: underline;
}
.lead-feedback-box {
  text-align: center;
  padding: 1rem 0.5rem;
}
.feedback-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
.feedback-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lead-feedback-box.success .feedback-icon {
  background: #e3efe4;
  color: #1c6e43;
}
.lead-feedback-box.error .feedback-icon {
  background: #f7e1dc;
  color: #a1261b;
}
.feedback-title {
  font-family: var(--display);
  color: var(--or);
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.feedback-message {
  color: var(--muted);
}

/* ===================== Contato e rodapé (escuro) ===================== */
.foot {
  background: var(--nuit);
  color: var(--on-nuit);
  padding: 1rem 0 calc(2.5rem + env(safe-area-inset-bottom));
}
.foot-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-title {
  color: var(--on-nuit);
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin-bottom: 0.6rem;
}
.contact > p {
  color: var(--on-nuit-muted);
}
.contact-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  border-top: 1px solid var(--line-nuit);
}
.contact-list li {
  border-bottom: 1px solid var(--line-nuit);
}
.contact-list a {
  display: block;
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.contact-list a:hover {
  text-decoration: underline;
}
.contact-site {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  font-weight: 800;
  color: var(--tan);
  text-underline-offset: 4px;
}
.footer-nav {
  display: grid;
  gap: 0.15rem;
  align-content: start;
}
.footer-nav-title {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--tan);
  margin: 0 0 0.4rem;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  width: fit-content;
  color: var(--on-nuit);
  text-decoration: none;
  font-weight: 600;
  text-underline-offset: 4px;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.foot-brand img {
  height: 46px;
  width: auto;
  max-width: none;
}
.footer-social {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(216, 200, 172, 0.45);
  color: var(--on-nuit);
  transition: background-color 0.2s, color 0.2s;
}
.footer-social a:hover {
  background: var(--papier);
  color: var(--nuit);
}
.footer-social svg {
  width: 18px;
  height: 18px;
}
.footer-legal {
  font-size: 0.88rem;
  color: #cbbfa9;
  margin: 0;
}
.footer-legal a {
  display: block;
  margin-top: 0.35rem;
  color: var(--on-nuit);
  text-underline-offset: 4px;
}

/* ===================== Barra do celular ===================== */
.floating-main-button {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(247, 241, 231, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.floating-main-button .btn {
  width: 100%;
}
.floating-main-button.show {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease-out), visibility 0s;
}

/* ===================== Telas maiores ===================== */
@media (max-width: 639.98px) {
  /* a conta do aluguel no celular: cada linha em duas colunas, serviço e frase à esquerda, custo típico e
     "Inclus" empilhados à direita; o cabeçalho segue a mesma forma */
  .ledger,
  .ledger thead,
  .ledger tbody {
    display: block;
  }
  .ledger caption {
    display: block;
  }
  .ledger tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
    row-gap: 0.15rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .ledger thead tr {
    padding-top: 0;
    border-bottom: 1.5px solid var(--ink);
  }
  .ledger thead th,
  .ledger tbody th,
  .ledger tbody td,
  .ledger tbody td.num {
    padding: 0;
    border: 0;
  }
  .ledger thead th:first-child,
  .ledger tbody th {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .ledger .num {
    grid-column: 2;
    padding-left: 0;
  }
  .ledger .num.inc,
  .ledger thead th.num:last-child {
    grid-row: 1;
  }
  .ledger td.num:not(.inc),
  .ledger thead th.num:not(:last-child) {
    grid-row: 2;
    font-size: 0.85rem;
  }
  .ledger td.num:not(.inc) {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
  }
  .ledger thead th.num {
    text-align: right;
  }
  .ledger tr.group {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }
  .ledger tr.group th {
    grid-column: 1 / -1;
  }
  .ledger tr.sub {
    padding: 0.45rem 0;
  }
  .ledger tr.sub th,
  .ledger tr.sub td {
    padding-top: 0;
    padding-bottom: 0;
  }
  .ledger tr.contract-row {
    border-bottom: 1.5px solid var(--ink);
  }
  .ledger tr.contract-row th,
  .ledger tr.contract-row td {
    border: 0;
  }

  /* o quadro do reCAPTCHA tem 304 px: no celular o cartão do formulário avança 8 px sobre a margem de cada lado
     (miolo de 317 px a 375 px de tela; sem isso, 301 px e o quadro passava da borda) */
  .form-panel {
    margin-inline: -0.5rem;
  }
}

@media (max-width: 959.98px) and (max-height: 720px) {
  .hero-media {
    min-height: 22svh;
  }
  .hero-title {
    font-size: clamp(2.1rem, 8.6vw, 2.6rem);
    margin-bottom: 0.6rem;
  }
  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .rooms-list {
    grid-auto-columns: 42%;
  }
  #hero-cta {
    width: auto;
    align-self: flex-start;
  }
}

@media (min-width: 960px) {
  :root {
    --band-h: 60px;
  }
  .container {
    padding: 0 2rem;
  }

  /* faixa presa no topo, com os links da página e o botão que só aparece quando o da capa sai da tela */
  .band {
    position: sticky;
    top: 0;
    border-bottom: 0;
  }
  html {
    scroll-padding-top: calc(var(--band-h) + 16px);
  }
  .band-nav {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
  }
  .band-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--on-nuit-muted);
    transition: color 0.2s;
  }
  .band-nav a:hover {
    color: var(--on-nuit);
  }
  .band-cta {
    display: inline-flex;
    margin-left: 1.5rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0s linear 0.25s;
  }
  .band-cta.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s, visibility 0s;
  }

  /* capa: texto à esquerda no escuro, vídeo à direita com a altura da tela, sumindo no escuro pela esquerda */
  .hero {
    display: block;
    min-height: min(calc(100vh - var(--band-h)), 860px);
  }
  .hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 56%;
    min-height: 0;
  }
  .hero-media::after {
    inset: 0 0 -2px -2px;
    width: auto;
    height: auto;
    background:
      linear-gradient(to right, var(--nuit) 0%, rgba(44, 33, 20, 0.75) 18%, rgba(44, 33, 20, 0.25) 36%, rgba(44, 33, 20, 0) 52%),
      linear-gradient(to top, var(--nuit) 0%, rgba(44, 33, 20, 0.6) 12%, rgba(44, 33, 20, 0) 30%);
  }
  .hero-pause {
    top: auto;
    bottom: 24px;
    right: 24px;
  }
  .hero-copy {
    margin-top: 0;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: min(calc(100vh - var(--band-h)), 860px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero-title {
    font-size: clamp(3.8rem, 5.2vw, 5.4rem);
    max-width: 12.5ch;
  }
  .hero-lead {
    font-size: 1.12rem;
    max-width: 44ch;
  }

  .tour-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .tour-copy {
    display: block;
  }
  .tour-copy .visit-call {
    margin-top: 2.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
  }
  .tour {
    display: flex;
    justify-content: flex-end;
  }
  .rooms-list {
    margin: 0;
    padding: 0;
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    overflow: visible;
  }

  .rent-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: start;
  }
  .rent-intro {
    position: sticky;
    top: calc(var(--band-h) + 2rem);
  }

  .contract-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .contract-photo {
    justify-self: end;
    width: 100%;
  }
  .actions-row .btn {
    flex: 0 0 auto;
  }

  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }

  .join-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
  }
  .join-copy {
    position: sticky;
    top: calc(var(--band-h) + 2rem);
  }

  .foot {
    padding-bottom: 3.5rem;
  }
  .foot-grid {
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
  .floating-main-button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-title {
    animation: none;
  }
  .btn,
  .band-cta,
  .band-cta.show,
  .floating-main-button,
  .floating-main-button.show,
  .tour-play-icon,
  .faq-list summary::after {
    transition: none;
  }
}
