/* =============================================================
   Squad · Pré-configuração de onboarding (protótipo)
   Neutros e acentos vêm do design system do Squad. A estrutura
   segue as referências: card centralizado com borda fina sobre
   um padrão de pontos, labels acima dos campos e ação principal
   em largura total no fim do card.
   ============================================================= */

:root {
  --black: #0c0d0d;
  --gray-1: #353a3a;
  --gray-2: #525b5b;
  --gray-3: #798282;
  --gray-4: #9ba4a4;
  --gray-5: #b2b9b9;
  --gray-8: #d3d7d7;
  --gray-9: #e3e6e6;
  --gray-10: #ebeded;
  --gray-11: #f4f5f5;
  --white: #fdfdfd;
  --page-bg: var(--gray-11);
  --whatsapp: #25d366; /* verde oficial do WhatsApp */
  --facebook: #1877f2; /* azul oficial do Facebook */
  --facebook-soft: #eef4fe; /* azul do Facebook bem clarinho */
  --whatsapp-soft: #edf9f2; /* verde do WhatsApp bem clarinho */
  --page-dots: var(--gray-5);

  --green: #01b46c;
  --orange: #ff9230;
  --red: #ff2633;

  --radius-control: 8px;
  --radius-card: 16px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  display: block;
  flex-shrink: 0;
}

/* ---------- Página ---------- */

.page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Padrão de pontos: textura neutra que aparece ao redor do card e some nas bordas. */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at center, var(--page-dots) 1px, transparent 1.5px);
  background-size: 20px 20px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 72% 64% at 50% 42%, transparent 34%, #000 52%, transparent 82%);
  mask-image: radial-gradient(ellipse 72% 64% at 50% 42%, transparent 34%, #000 52%, transparent 82%);
  opacity: 0.7;
  pointer-events: none;
}

.page-top {
  display: flex;
  justify-content: center;
  padding: 32px 40px 0;
}

.logo {
  display: block;
  width: auto;
  height: 26px;
  color: var(--black);
}

.page-main {
  flex: 1;
  padding: 32px 16px 48px;
}

.page-note {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.003em;
  color: var(--gray-2);
  text-align: center;
}

/* ---------- Card ---------- */

.card {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 40px 40px;
  border: 1px solid var(--gray-9);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.04);
}

.card-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 32px;
  margin: 0 -8px 32px;
}

.card-top .nav-back {
  grid-column: 1;
  justify-self: start;
}

.card-top .dots {
  grid-column: 2;
}

.card-top .nav-exit {
  grid-column: 3;
  justify-self: end;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gray-2);
  transition: color 0.15s, background-color 0.15s;
}

.nav-btn:hover {
  color: var(--black);
  background: var(--gray-11);
}

.nav-back {
  padding-left: 4px;
}

.dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-8);
  transition: background-color 0.2s;
}

.dot.is-done {
  background: var(--gray-3);
}

.dot.is-current {
  width: 20px;
  background: var(--black);
}

/* ---------- Conteúdo da tela ---------- */

.screen.is-entering {
  animation: enter 0.28s var(--ease);
}

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

.title {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.024em;
}

.brand-whatsapp {
  color: var(--whatsapp);
}

.brand-facebook {
  color: var(--facebook);
}

.subtitle {
  margin: 24px 0 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gray-1);
}

.title--solo {
  margin-bottom: 24px;
}

.title-count {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gray-3);
  font-variant-numeric: tabular-nums;
}

.title:focus {
  outline: none;
}

.lead {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 24px;
  color: var(--gray-2);
}

.nowrap {
  white-space: nowrap;
}

.lead strong {
  font-weight: 600;
  color: var(--black);
  overflow-wrap: anywhere;
}

.body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.caption {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.003em;
  color: var(--gray-2);
}

.caption strong {
  font-weight: 600;
  color: var(--black);
}

.group-label {
  display: block;
  float: left;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gray-1);
}

.group-label + * {
  clear: both;
}

.screen-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-control);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--gray-1);
}

.btn-primary:disabled {
  background: var(--gray-10);
  color: var(--gray-4);
  cursor: not-allowed;
}

.btn-secondary {
  border: 1px solid var(--gray-8);
  background: var(--white);
  color: var(--black);
}

.btn-outline {
  border: 1px solid #000;
  background: #fff;
  color: #000;
  white-space: normal;
  height: auto;
  min-height: 48px;
}
.btn-outline:hover:not(:disabled) { background: #fff; border-color: #000; }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary:hover {
  border-color: var(--gray-5);
  background: var(--gray-11);
}

.btn-facebook {
  background: var(--facebook);
  color: #fff;
}

.btn-facebook:hover {
  background: #166fe0;
}

.btn-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--gray-5);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}

.btn-link:hover {
  text-decoration-color: var(--black);
}

.page-note .btn-link {
  font-size: inherit;
  line-height: inherit;
  text-underline-offset: 3px;
}

/* ---------- Campos ---------- */

.field + .field {
  margin-top: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  color: var(--gray-1);
}

.input,
.input-group {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-control);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input {
  padding: 0 16px;
  font-size: 16px;
  line-height: 24px;
  color: var(--black);
  outline: none;
}

.input::placeholder {
  color: var(--gray-3);
  opacity: 1;
}

.input:hover,
.input-group:hover {
  border-color: var(--gray-5);
}

.input:focus,
.input-group:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.input-group {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.input-group .input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.input-group .input:focus {
  box-shadow: none;
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  border-right: 1px solid var(--gray-9);
  background: var(--gray-11);
  font-size: 16px;
  color: var(--gray-2);
  white-space: nowrap;
}

.has-error .input,
.has-error .input-group,
.has-error .input:focus,
.has-error .input-group:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

.has-error .input-group .input {
  box-shadow: none;
}

.field-help {
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.003em;
  color: var(--gray-2);
  overflow-wrap: anywhere;
}

.field-help strong {
  font-weight: 600;
  color: var(--black);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.003em;
  color: var(--gray-1);
}

#domain-error, .document-error {
  color: #c62828;
  font-weight: 500;
}

.field-error .icon {
  margin-top: 1px;
  color: var(--red);
}

/* ---------- Opções (radio) ---------- */

.options {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-control);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.option:hover {
  border-color: var(--gray-5);
}

.meeting-schedule {
  width: 100%;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--black);
  font-family: inherit;
}

.meeting-schedule > .icon {
  flex-shrink: 0;
}

.meeting-schedule:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.option:has(:checked) {
  border-color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}

.option:has(:focus-visible),
.tile:has(:focus-visible),
.upload:has(:focus-visible) {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.option-mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--gray-5);
  border-radius: 50%;
  transition: border 0.15s var(--ease);
}

.option-input:checked + .option-mark {
  border: 5.5px solid var(--black);
}

.option-text {
  min-width: 0;
}

.option-title {
  display: block;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.option-desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.003em;
  color: var(--gray-2);
}

/* ---------- Confirmação (checkbox) ---------- */

.confirm {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}

.confirm input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.confirm-box {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--gray-5);
  border-radius: 5px;
  color: var(--white);
  transition: background-color 0.15s, border-color 0.15s;
}

.confirm-box .icon {
  opacity: 0;
  transition: opacity 0.15s;
}

.confirm input:checked + .confirm-box {
  border-color: var(--black);
  background: var(--black);
}

.confirm input:checked + .confirm-box .icon {
  opacity: 1;
}

.confirm input:focus-visible + .confirm-box {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* ---------- Listas ---------- */

.rows {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gray-9);
}

.rows > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-9);
}

.rows > li > div {
  flex: 1;
  min-width: 0;
}

.rows--whatsapp {
  padding: 4px 20px;
  border-top: 0;
  border-radius: 12px;
  background: var(--whatsapp-soft);
}

.rows--whatsapp > li {
  border-bottom-color: rgba(37, 211, 102, 0.18);
}

.rows--whatsapp > li:last-child {
  border-bottom: 0;
}

.rows--whatsapp .row-num--green {
  background: var(--white);
}

.row-tag {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--white);
  font-size: 11px;
  line-height: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-2);
  vertical-align: 2px;
}

.store-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.store-links a {
  font-weight: 500;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--gray-5);
  text-underline-offset: 3px;
}

.store-links a:hover {
  text-decoration-color: var(--black);
}

.rows--bullets {
  padding: 4px 20px;
  border-top: 0;
  border-radius: 12px;
  background: var(--facebook-soft);
}

.rows--bullets > li {
  border-bottom-color: rgba(24, 119, 242, 0.12);
}

.rows--bullets > li:last-child {
  border-bottom: 0;
}

.rows--bullets > li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--facebook);
}

.row-num {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-10);
  font-size: 12px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.row-num--green {
  background: #dcf5e7; /* verde clarinho */
  color: #0b7a4b;
}

.row-title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.row-aside {
  margin-left: 4px;
  font-size: 13px;
  color: var(--gray-2);
}

.row-desc {
  margin-top: 2px;
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.003em;
  color: var(--gray-2);
}

.row-meta {
  flex-shrink: 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--gray-2);
}

.note {
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--gray-11);
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.003em;
  color: var(--gray-2);
}

.note strong {
  font-weight: 600;
  color: var(--black);
}

.note-success {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #edfaf3;
  color: #168348;
  border: 1px solid #87dcb0;
}
.note-success svg { flex-shrink: 0; }

.handoff {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 0;
  list-style: none;
}

.handoff li {
  padding: 12px;
  border: 1px solid var(--gray-9);
  border-radius: var(--radius-control);
}

.handoff-who {
  display: block;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.handoff-what {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-2);
}

/* ---------- Análise do site ---------- */

.scan-group + .scan-group {
  margin-top: 8px;
}

.scan-list {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--gray-9);
}

.scan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-9);
  font-size: 15px;
  line-height: 20px;
}

.scan-icon {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.scan-icon.is-ok {
  color: var(--green);
}

.scan-icon.is-warn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.scan-icon.is-pending::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gray-9);
  border-top-color: var(--gray-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scan-label {
  min-width: 0;
}

.scan-status {
  margin-left: auto;
  padding-left: 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-2);
  white-space: nowrap;
}

.scan-status.is-warn {
  font-weight: 500;
  color: var(--black);
}

.scan-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Upload ---------- */

.upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 152px;
  padding: 24px;
  border: 1px dashed var(--gray-5);
  border-radius: var(--radius-control);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.upload:hover,
.upload.is-dragging {
  border-color: var(--black);
  background: var(--gray-11);
}

.has-error .upload {
  border-color: var(--red);
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.upload-icon {
  color: var(--gray-2);
}

.upload-title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.upload-link {
  text-decoration: underline;
  text-decoration-color: var(--gray-5);
  text-underline-offset: 4px;
}

.upload-meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-2);
}

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-control);
}

.file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-control);
  background: var(--gray-11);
  color: var(--gray-2);
}

.file-text {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.file-meta {
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-2);
}

/* ---------- Agenda ---------- */

.days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.hours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 76px;
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.tile:hover {
  border-color: var(--gray-5);
}

.tile:has(:checked) {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.tile--hour {
  height: 44px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tile-small {
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-2);
}

.tile:has(:checked) .tile-small {
  color: var(--gray-8);
}

.tile-day {
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary-line {
  font-size: 15px;
  line-height: 22px;
}

.summary {
  border-top: 1px solid var(--gray-9);
}

.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-9);
  font-size: 15px;
  line-height: 22px;
}

.summary dt {
  color: var(--gray-2);
}

.booked-divider {
  border: 0;
  border-top: 1px solid var(--gray-9);
  margin: 32px 0 0;
}

.summary dd {
  font-weight: 500;
  text-align: right;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--gray-11);
  color: var(--green);
}

/* ---------- Tutorial em vídeo ---------- */

.tutorial {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--gray-9);
  border-radius: 12px;
  background: var(--white);
}

.tutorial-frame {
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.tutorial-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.tutorial-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #171717;
  color: #fff;
}
.tutorial-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.tutorial-controls button:hover { background: #393939; }
.tutorial-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tutorial-controls svg { width: 24px; height: 24px; fill: currentColor; }
.tutorial-controls input[type="range"] { width: 90px; min-width: 0; accent-color: #fff; }
#tutorial-fullscreen { margin-left: auto; }
#tutorial-speed { width: 58px; flex-shrink: 0; font-size: 14px; font-weight: 600; padding: 8px 4px; }
#tutorial-mute[aria-pressed="true"] { opacity: 0.5; }
.tutorial-player:fullscreen { display: flex; flex-direction: column; background: #000; }
.tutorial-player:fullscreen .tutorial-frame { flex: 1; min-height: 0; aspect-ratio: auto; }
.tutorial-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-9);
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-2);
}

.tutorial-duration {
  margin-left: auto;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--gray-1);
  font-weight: 500;
}

.tutorial .tutorial-notice {
  margin: 4px 16px 16px;
  padding: 16px;
  border: 1px solid #d8dde2;
  border-radius: 8px;
  background: #f0f2f4;
  color: #20252a;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.tutorial-error {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-9);
  background: var(--gray-11);
  font-size: 13px;
  line-height: 18px;
  color: var(--gray-1);
}

.tutorial-error .icon { color: var(--red); margin-top: 0; }
.tutorial-error > span { flex: 1; min-width: 200px; }
.tutorial-error .btn-link { font-size: 13px; line-height: 18px; }
.tutorial.has-error .tutorial-frame { opacity: 0.5; }

/* ---------- Carregamento ---------- */

.loader {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--gray-10);
}

.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-100%) scaleX(0.4);
  transform-origin: left center;
  animation: slide 1.2s var(--ease) infinite;
}

@keyframes slide {
  to {
    transform: translateX(100%) scaleX(0.4);
  }
}

/* ---------- Responsivo ---------- */

@media (max-width: 640px) {
  .file {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .file > .btn-link {
    grid-column: 2;
    justify-self: start;
  }
  .file-text .btn-link {
    text-align: left;
  }

  .page-top {
    padding: 20px 20px 0;
  }

  .page-main {
    padding: 20px 12px 32px;
  }

  .card {
    padding: 16px 20px 24px;
  }

  .card-top {
    margin: 0 -8px 24px;
  }

  .title {
    font-size: 22px;
    line-height: 28px;
    letter-spacing: -0.02em;
  }

  .lead {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 22px;
  }

  .screen-actions {
    margin-top: 24px;
  }

  .handoff {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    height: 68px;
  }

}

@media (max-width: 360px) {
  .nav-back .nav-label {
    display: none;
  }
}

.completion-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid #e1e5e3;
  border-radius: 20px;
  color: #101411;
  background: #fff;
  box-shadow: 0 24px 80px #0003;
  font-family: inherit;
}
.completion-dialog::backdrop { background: #0006; }
.completion-dialog h2 { margin: 0 0 16px; font-size: 24px; }
.completion-dialog p { line-height: 1.6; }
.completion-dialog .screen-actions { margin-top: 24px; }

.document-progress {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #d6dad8;
  border-radius: 16px;
  background: #f3f4f3;
  color: #444b47;
}
.document-progress-spinner {
  flex: 0 0 32px;
  height: 32px;
  margin-top: 4px;
  border: 3px solid #d4d8d6;
  border-top-color: #606964;
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
.calendar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #606964;
  font-size: 14px;
  line-height: 1.5;
}
.calendar-spinner {
  flex: 0 0 18px;
  height: 18px;
  border: 2px solid #d4d8d6;
  border-top-color: #606964;
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
.calendar-status--empty {
  padding: 14px 16px;
  border: 1px solid #dce0dd;
  border-radius: 10px;
  background: #f6f7f6;
}
.calendar-status--empty svg { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .calendar-spinner { animation-duration: 2s; }
}
.document-progress-content { flex: 1; min-width: 0; }
.document-progress-step { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.document-progress-title { margin: 4px 0 6px; font-size: 18px; font-weight: 700; }
.document-progress-description { margin: 0; font-size: 14px; line-height: 1.5; }
.document-progress-track { display: flex; gap: 6px; margin-top: 14px; }
.document-progress-track span { height: 5px; flex: 1; background: #dce0dd; border-radius: 4px; }
.document-progress-track .is-current { background: #737d77; }
.document-progress.is-complete { border-color: #87dcb0; background: #edfaf3; color: #163b28; }
.document-progress.is-complete .document-progress-track .is-current { background: #168348; }
.document-progress-check {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  margin-top: 4px;
  border-radius: 50%;
  background: #168348;
  color: white;
  font-size: 22px;
  font-weight: 700;
}

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

/* ---------- Experimento: Login com Facebook ---------- */

.fb-business-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fb-business-id {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.fb-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gray-10);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--gray-1);
}

.fb-badge--verified { background: var(--whatsapp-soft); color: #0b7a4b; }
.fb-badge--not_verified { background: var(--facebook-soft); color: #145dbf; }
.fb-badge--rejected { background: #fdeeee; color: #c62828; }
.fb-badge--pending { background: #fff4e8; color: #a35200; }

.fb-selected {
  padding: 16px;
  border: 1px solid var(--gray-8);
  border-radius: var(--radius-control);
}

.fb-selected .row-title { overflow-wrap: anywhere; }
.fb-blocked { border: 1px solid var(--gray-8); }
