.app-public-main {
  max-width: 1180px;
  padding-top: 40px;
}

.public-nav-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.public-nav-actions .btn {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  min-height: 36px;
}

.landing-hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 238px);
  padding: 28px 0 44px;
}

.landing-hero-content {
  display: grid;
  gap: 18px;
}

.landing-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1 {
  color: var(--ink);
  font-size: clamp(40px, 5.8vw, 68px);
  font-weight: 850;
  line-height: 0.98;
  margin: 0;
  max-width: 820px;
}

.landing-hero p {
  color: #405268;
  font-size: 18px;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}

.landing-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.landing-band-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.landing-actions .btn,
.landing-band-actions .btn {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.landing-preview {
  background: var(--panel);
  border: 1px solid rgba(15, 31, 47, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
  position: relative;
}

.landing-preview-header {
  align-items: center;
  background: #102233;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-dot {
  background: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}
.header-dot:nth-child(1) { background: #ff5f56; }
.header-dot:nth-child(2) { background: #ffbd2e; }
.header-dot:nth-child(3) { background: #27c93f; }

.header-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-family: monospace;
  margin-left: 12px;
}

/* Tabs de Navegação */
.landing-preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.landing-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.landing-tab-btn:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}

.landing-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--panel);
}

/* Content Area */
.landing-preview-content {
  flex: 1;
  padding: 24px;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(228, 243, 239, 0.45) 0%, rgba(255, 255, 255, 0) 90%);
}

.landing-tab-panel {
  display: none;
  width: 100%;
  height: 100%;
}

.landing-tab-panel.active {
  display: block;
}

/* 1. MOCKUP: PLANEJAMENTO */
.planner-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.planner-header-mock,
.calendar-header-mock,
.charts-header-mock,
.timer-header-mock {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.planner-title-mock,
.calendar-title-mock,
.charts-title-mock,
.timer-title-mock {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.planner-subtitle-mock,
.charts-subtitle-mock,
.timer-subject-mock {
  font-size: 12px;
  color: var(--muted);
}

.planner-days-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.planner-day-mock {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-name-mock {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.day-slots-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.planner-slot-mock {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
}

.planner-slot-mock.slot-1 { border-left-color: var(--accent); }
.planner-slot-mock.slot-2 { border-left-color: #3b82f6; }
.planner-slot-mock.slot-3 { border-left-color: #8b5cf6; }
.planner-slot-mock.slot-4 { border-left-color: #ec4899; }
.planner-slot-mock.slot-5 { border-left-color: #f59e0b; }
.planner-slot-mock.slot-6 { border-left-color: #10b981; }

.subject-mock {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.2;
}

.time-mock {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

@keyframes slotSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. MOCKUP: CALENDÁRIO */
.calendar-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.calendar-legend-mock {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.calendar-grid-mock {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.grid-header-mock {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--muted);
  padding-bottom: 4px;
}

.grid-cell-mock {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text);
  border-radius: 6px;
  border: 1px solid transparent;
  position: relative;
}

.grid-cell-mock.empty {
  visibility: hidden;
}

.grid-cell-mock.completed {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  border-color: rgba(25, 115, 94, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
}

.cell-num {
  z-index: 1;
}

.cell-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--ink);
  color: #ffffff;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.grid-cell-mock.completed:hover .cell-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

@keyframes cellPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 3. MOCKUP: METAS & GRÁFICOS */
.charts-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.charts-layout-mock {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  flex: 1;
}

.charts-radial-mock {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}

.radial-svg-mock {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-bg-mock {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 8;
}

.radial-bar-mock {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
}

@keyframes drawProgress {
  from {
    stroke-dashoffset: 251.32;
  }
  to {
    stroke-dashoffset: 45.24; /* 82% */
  }
}

.radial-overlay-mock {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-percent-mock {
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.radial-label-mock {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.charts-bars-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chart-bar-item-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chart-bar-info-mock {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
}

.chart-bar-info-mock span {
  font-weight: 500;
}

.chart-bar-info-mock strong {
  color: var(--ink);
}

.chart-bar-track-mock {
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.chart-bar-fill-mock {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  width: 0;
}

.chart-bar-fill-mock.fill-hours { background: var(--accent); }
.chart-bar-fill-mock.fill-questions { background: #3b82f6; }
.chart-bar-fill-mock.fill-revisions { background: #10b981; }

@keyframes fillHours { to { width: 82%; } }
@keyframes fillQuestions { to { width: 82%; } }
@keyframes fillRevisions { to { width: 90%; } }

/* 4. MOCKUP: CRONÔMETRO DE FOCO */
.timer-mock {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  align-items: center;
}

.timer-header-mock {
  width: 100%;
  text-align: center;
}

.timer-body-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.timer-pulse-rings {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-circle-mock {
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.timer-display-mock {
  font-size: 32px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}

.timer-status-mock {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.pulse-ring {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: var(--accent-soft);
  z-index: 1;
  animation: pulseOut 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

.pulse-ring.ring-2 {
  animation-delay: 1s;
}

@keyframes pulseOut {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.timer-controls-mock {
  display: flex;
  gap: 12px;
}

.control-btn-mock {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
}

.control-btn-mock:hover {
  background: #e2e8f0;
  color: var(--text);
}

.control-btn-mock.success {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(25, 115, 94, 0.15);
}

.control-btn-mock.success:hover {
  background: #d1eae2;
}

.landing-section {
  display: grid;
  gap: 24px;
  padding: 18px 0 46px;
}

.landing-section-heading {
  max-width: 620px;
}

.landing-section-heading h2,
.landing-band h2 {
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.landing-section-heading p,
.landing-band p {
  margin: 0;
}

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

.landing-feature {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 20px;
}

.landing-feature i {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 8px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.landing-feature h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.landing-feature p {
  line-height: 1.55;
  margin: 0;
}

.landing-band {
  align-items: center;
  background: #102233;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 26px;
}

.landing-band h2,
.landing-band p {
  color: #ffffff;
}

.landing-band p {
  opacity: 0.78;
}

.landing-faq {
  width: 100%;
  margin: 0 auto;
}

.landing-faq .accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.landing-faq .accordion-button {
  font-weight: 600;
  color: var(--ink);
  background-color: #fff;
  box-shadow: none;
  padding: 18px 20px;
}

.landing-faq .accordion-button:not(.collapsed) {
  color: var(--accent-strong);
  background-color: var(--accent-soft);
}

.landing-faq .accordion-body {
  color: #405268;
  line-height: 1.6;
  padding: 0 20px 20px 20px;
  background-color: #fff;
}

.landing-auth-form {
  margin-top: 14px;
}

.landing-auth-link {
  margin: 14px 0 0;
  text-align: center;
}

.landing-empty-register {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 0;
  text-align: center;
}

.landing-empty-register i {
  color: var(--accent);
  font-size: 34px;
}

.landing-empty-register h3 {
  color: var(--ink);
  font-size: 20px;
  margin: 0;
}

.landing-empty-register p {
  margin: 0;
  max-width: 360px;
}

@media (max-width: 900px) {
  .app-public-main {
    padding-top: 26px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .app-navbar {
    gap: 12px;
  }

  .public-nav-actions {
    gap: 8px;
  }

  .public-nav-actions .btn {
    padding-inline: 10px;
  }

  .landing-hero h1 {
    font-size: 34px;
  }

  .landing-hero p {
    font-size: 16px;
  }

  .landing-actions .btn,
  .landing-band-actions .btn {
    justify-content: center;
    flex: 1;
  }

  .landing-preview {
    height: auto;
    min-height: 420px;
  }

  .landing-tab-btn {
    font-size: 11px;
    padding: 8px 4px;
    flex-direction: column;
    gap: 2px;
  }

  .landing-tab-btn span {
    font-size: 9px;
  }

  .landing-preview-content {
    padding: 16px;
  }

  .planner-days-mock {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
  }

  .planner-day-mock {
    padding: 8px;
  }

  .charts-layout-mock {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .charts-radial-mock {
    width: 100px;
    height: 100px;
  }

  .radial-percent-mock {
    font-size: 20px;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }
}

/* --- Estilização do Cadastro Nativo --- */
.password-field-wrapper {
  position: relative;
}

.input-group-password {
  position: relative;
  width: 100%;
}

.input-group-password input {
  padding-right: 42px; /* Espaço para o botão de olho */
}

button.btn-toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px !important;
  width: 30px !important;
  min-height: auto !important;
  min-width: auto !important;
  border-radius: 50% !important;
  transition: background-color 0.2s, color 0.2s;
  padding: 0 !important;
  outline: none;
  box-shadow: none !important;
}

button.btn-toggle-password:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--ink) !important;
}

.password-requirements-panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 8px;
}

.requirements-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}

.requirement-item {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.requirement-item i {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.requirement-item.valid {
  color: var(--accent-strong);
  font-weight: 500;
}

.requirement-item.valid i {
  color: var(--accent);
  transform: scale(1.1);
}

.feedback-message {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  font-weight: 500;
  transition: color 0.2s;
}

.feedback-message.error {
  color: var(--danger);
}

.feedback-message.success {
  color: var(--accent);
}

.modal-subtitle-text {
  margin-bottom: 18px;
  color: #405268;
  font-size: 14px;
  line-height: 1.5;
}

/* Animações Auxiliares */
.animate-fade-in {
  animation: modalFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
