/* ============================================================================
   HOTSPACE — ESTILOS POR TELA
   Ajustes de layout específicos de cada tela da Fase 1, sobre os componentes.
   ========================================================================== */

/* ---- Cadastro / Login ----------------------------------------------------- */
.auth {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: var(--sp-6) var(--sp-5) var(--sp-8);
}
.auth__top { display: flex; align-items: center; justify-content: space-between; }
.auth__hero { text-align: center; padding-block: var(--sp-8) var(--sp-6); }
.auth__mark {
  display: block;
  height: 96px; width: 40px; aspect-ratio: 118.57 / 314.96;
  margin: 0 auto var(--sp-5);
  background: url("../img/logo-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 12px 24px rgba(221,10,0,0.28));
}
.auth__title { font-size: clamp(1.9rem, 6vw, 2.4rem); }
.auth__tagline { color: var(--text-soft); margin-top: var(--sp-2); max-width: 30ch; margin-inline: auto; }
.auth__card { margin-top: var(--sp-4); }
.auth__modes { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.auth__mode {
  flex: 1; text-align: left;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--surface);
}
.auth__mode .icon { width: 22px; height: 22px; }
.auth__mode--solo { color: var(--security); }
.auth__mode--casal { color: var(--brand); }
.auth__mode-name { font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: var(--fs-sm); color: var(--text); margin-top: var(--sp-2); }
.auth__mode-desc { font-size: var(--fs-caption); color: var(--text-muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

/* ---- Escolha de modo (onboarding pós-cadastro) ---------------------------- */
.onboard { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: var(--sp-8); }
.onboard__hero { text-align: center; padding: var(--sp-4) 0 var(--sp-8); }
.onboard__title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text);
  text-wrap: balance;
}
.onboard__title b { color: var(--brand); font-weight: 400; }
.onboard__sub { color: var(--text-muted); margin-top: var(--sp-3); font-size: var(--fs-lg); }

.modes-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.mode-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-6);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.mode-card:active { transform: translateY(-1px) scale(0.995); }
.mode-card__ic { width: 60px; height: 60px; display: grid; place-items: center; border-radius: var(--radius-md); transition: inherit; }
.mode-card__ic .icon { width: 30px; height: 30px; }
.mode-card__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h4); }
.mode-card__desc { color: var(--text-soft); font-size: var(--fs-sm); line-height: var(--lh-normal); max-width: 44ch; }
.mode-card__arrow {
  position: absolute; top: var(--sp-6); right: var(--sp-6);
  width: 22px; height: 22px; color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.mode-card:hover .mode-card__arrow { transform: translateX(4px); }

/* Casal = calor / vermelho da marca */
.mode-card--casal .mode-card__ic { background: var(--brand-soft); color: var(--brand); }
.mode-card--casal:hover { border-color: var(--brand-border); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 55%); }
.mode-card--casal:hover .mode-card__arrow { color: var(--brand); }
/* Solo = frio / petróleo (segurança) */
.mode-card--solo .mode-card__ic { background: var(--security-soft); color: var(--security); }
.mode-card--solo:hover { border-color: var(--security-border); background: linear-gradient(180deg, var(--security-soft), var(--surface) 55%); }
.mode-card--solo:hover .mode-card__arrow { color: var(--security); }

/* ---- Conectar parceiro (onboarding do Modo Casal) ------------------------- */
.connect-card {
  text-align: center;
  border: 1.5px dashed var(--brand-border);
  background: linear-gradient(180deg, var(--brand-soft), var(--surface) 80%);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
.couple-code {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(2.4rem, 12vw, 3.4rem);
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--brand);
  margin: var(--sp-3) 0 var(--sp-5);
  word-break: break-all;
}
.couple-code::selection { background: var(--brand); color: #fff; }

/* ---- Questionário de onboarding ------------------------------------------- */
.quiz { min-height: 100dvh; display: flex; flex-direction: column; }
.quiz-head { display: flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-4) var(--sp-5); }
.quiz-progress__track { height: 6px; border-radius: var(--radius-pill); background: var(--surface-inset); overflow: hidden; }
.quiz-progress__fill {
  height: 100%; width: var(--v, 4%); border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--vulcanico), var(--incandescente));
  transition: width var(--dur-slow) var(--ease);
}
.quiz-progress__count { font-size: var(--fs-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz__body { flex: 1; display: flex; flex-direction: column; }

.quiz-cat {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
}
.quiz-cat .icon { width: 1.05em; height: 1.05em; }
.quiz-question {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(1.6rem, 6.2vw, 2.1rem);
  line-height: 1.22;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: var(--sp-6);
  text-wrap: balance;
}

.opt-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.opt {
  width: 100%; text-align: left;
  padding: 1rem 1.15rem; min-height: 56px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); font-weight: var(--fw-regular);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.opt:hover { border-color: var(--border-strong); }
.opt:active { transform: scale(0.99); }
.opt--center { text-align: center; display: flex; align-items: center; justify-content: center; }

/* selecionado — padrão (listas e escala): vermelho da marca */
.opt.is-selected { border-color: var(--brand); background: var(--brand-soft); }

/* selecionado — grade de intimidade: semáforo (consentimento claro) */
.opt[data-answer="gosto"].is-selected            { border-color: var(--success-500); color: var(--success-500); background: color-mix(in srgb, var(--success-500) 14%, var(--surface)); }
.opt[data-answer="topo_experimentar"].is-selected{ border-color: var(--warning-500); color: var(--warning-500); background: color-mix(in srgb, var(--warning-500) 14%, var(--surface)); }
.opt[data-answer="nao_sei"].is-selected          { border-color: var(--brand);       color: var(--text);        background: var(--brand-soft); }
.opt[data-answer="nao_gosto"].is-selected        { border-color: var(--danger-500);  color: var(--text);        background: color-mix(in srgb, var(--danger-500) 14%, var(--surface)); }

.quiz-foot { margin-top: auto; padding-block: var(--sp-6) var(--sp-4); }

/* ---- Convite de parceiro -------------------------------------------------- */
.invite__viz {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding-block: var(--sp-6) var(--sp-4);
}
.invite__node {
  width: 72px; height: 72px; border-radius: var(--radius-pill);
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.invite__node--me { background: linear-gradient(140deg, var(--red-400), var(--red-600)); }
.invite__node--partner {
  background: var(--surface); color: var(--text-muted);
  border: 2px dashed var(--border-strong);
  box-shadow: none;
}
.invite__node .icon { width: 30px; height: 30px; }
.invite__link {
  position: relative; width: 64px; height: 2px; margin-inline: -6px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 12px);
  align-self: center;
}
.invite__link .icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 22px; height: 22px; color: var(--brand);
  background: var(--bg); padding: 2px; border-radius: 50%;
}

/* ---- Tela inicial do casal ------------------------------------------------ */
.couple-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--incandescente) 20%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, var(--brand-soft), var(--surface) 70%);
  border: 1px solid var(--brand-border);
}
.couple-hero__meta { display: flex; flex-direction: column; justify-content: space-between; }
.couple-points { font-family: var(--font-display); font-weight: var(--fw-extra); font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.couple-points span { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-muted); letter-spacing: 0; }
.streak {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.45rem 0.85rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.streak .icon { color: var(--brand); width: 18px; height: 18px; fill: currentColor; stroke: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--sp-3); }
.section-head h3 { font-size: var(--fs-h4); }
.link-more { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }

.reflection-card {
  background: linear-gradient(135deg, var(--petrol-500), var(--petrol-700));
  color: #EAF1F4; border: none;
}
.reflection-card .overline { color: color-mix(in srgb, #EAF1F4 70%, transparent); }
.reflection-card__quote { font-family: var(--font-editorial); font-style: italic; font-size: var(--fs-h4); line-height: var(--lh-snug); }

/* ---- Rodada --------------------------------------------------------------- */
.round__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-block: var(--sp-4); }
.round__question {
  font-family: var(--font-display);
  font-weight: 500; /* Neue Montreal Medium */
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.round__card { position: relative; }
.round__footer { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.round__footer .btn--ghost { flex: 0 0 auto; }
.round__footer .btn--heat { flex: 1; }
.intensity { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-soft); }
.intensity__label { color: var(--secondary); }

.complete { text-align: center; padding-block: var(--sp-8); }
.complete__mark {
  width: 92px; height: 92px; margin: 0 auto var(--sp-5);
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: linear-gradient(140deg, var(--incandescente), var(--red-600));
  color: #fff; box-shadow: var(--shadow-brand);
}
.complete__mark .icon { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ---- Guia de estilo (design-system.html) ---------------------------------- */
.ds-section { padding-block: var(--sp-8); border-top: 1px solid var(--border-soft); }
.ds-section:first-of-type { border-top: none; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sp-4); }
.swatch { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-soft); background: var(--surface); }
.swatch__chip { height: 82px; }
.swatch__meta { padding: var(--sp-3); }
.swatch__name { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.swatch__hex { font-size: var(--fs-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; text-transform: uppercase; }

.temp-scale { display: flex; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-soft); }
.temp-scale__seg { flex: 1; height: 88px; display: flex; align-items: flex-end; padding: var(--sp-2); color: #fff; font-size: var(--fs-caption); font-weight: var(--fw-semibold); text-shadow: 0 1px 2px rgba(0,0,0,.3); }

.type-row { display: flex; align-items: baseline; gap: var(--sp-4); padding-block: var(--sp-3); border-bottom: 1px dashed var(--border-soft); }
.type-row__tag { flex: 0 0 96px; font-size: var(--fs-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--sp-3); }
.icon-cell {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2); border-radius: var(--radius-md);
  border: 1px solid var(--border-soft); background: var(--surface); text-align: center;
}
.icon-cell .icon { width: 26px; height: 26px; color: var(--text); }
.icon-cell small { font-size: 0.68rem; color: var(--text-muted); word-break: break-word; }
.icon-cell--security .icon { color: var(--security); }

.ds-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft); }
.ds-nav__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}

/* ---- Impressão / exportação em PDF do guia de estilo ---------------------- */
@media print {
  :root { color-scheme: light; }
  /* imprime cores de fundo (swatches, escala de temperatura, gradientes) */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page { margin: 12mm; }
  html, body { background-image: none !important; }
  .ds-nav { position: static !important; backdrop-filter: none !important; border-bottom: 1px solid var(--border); }
  [data-theme-toggle] { display: none !important; }
  /* evita quebras no meio de blocos visuais */
  .swatch, .icon-cell, .type-row, .card, .temp-scale, .level-pill,
  .answers, .answer, .safenote, .heatbar { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }
  .ds-section { padding-block: 18px; }
  .ds-section:first-of-type { padding-top: 0; }
  /* os botões de navegação do rodapé não funcionam em papel */
  footer.ds-section { display: none !important; }
}
