/*
Projeto: App Calculo Payback
Cliente: HP Machine
Desenvolvedor: Douglas Rick
Empresa: Criartweb.net - Consultoria e Desenvolvimento Web
Data: 23/12/2025 - 17:42
*/

:root {
  --blue-700: #1a5be8;
  --blue-500: #2f74ff;
  --blue-100: #e0ecff;
  --blue-50: #f1f6ff;
  --text-900: #0b1b35;
  --text-600: #4b5b75;
  --text-500: #6f7f98;
  --border: #e2e8f3;
  --surface: #ffffff;
  --bg: #f7faff;
  --shadow: 0 20px 50px rgba(13, 28, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text-900);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.7;
}

body::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, #cfe0ff, transparent 70%);
  top: -220px;
  right: -120px;
}

body::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, #e9f1ff, transparent 70%);
  bottom: -220px;
  left: -180px;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  margin: 28px auto 18px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

 .logo {
  width: 280px;
  height: 100px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-500);
  margin-bottom: 6px;
}

.lead {
  color: var(--text-600);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  font-size: 0.82rem;
  font-weight: 600;
}

.button {
  border: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(26, 91, 232, 0.2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.stat strong {
  font-size: 1.05rem;
  color: var(--text-900);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  animation: floatIn 0.6s ease both;
}

.card h2 {
  margin-bottom: 8px;
}

.muted {
  color: var(--text-500);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-600);
}

.input {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 116, 255, 0.15);
}

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

.input-group .input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.input-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: var(--blue-50);
  color: var(--text-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.input-group:focus-within .input,
.input-group:focus-within .input-suffix {
  border-color: var(--blue-500);
}

.input-group:focus-within .input {
  box-shadow: 0 0 0 3px rgba(47, 116, 255, 0.15);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-500);
  text-align: left;
  padding-bottom: 12px;
}

td,
th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.list-row:last-child {
  border-bottom: 0;
}

details.card {
  padding: 0;
  overflow: hidden;
}

details.card summary {
  list-style: none;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Sora", sans-serif;
}

details.card summary::-webkit-details-marker {
  display: none;
}

details.card[open] summary {
  border-bottom: 1px solid var(--border);
}

.details-body {
  padding: 20px 24px 24px;
}

.charge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.charge-card {
  background: var(--blue-50);
  border-radius: 16px;
  border: 1px solid var(--blue-100);
  padding: 14px;
}

.charge-card h4 {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.payback-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: grid;
  gap: 8px;
}

.screen-lock {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 53, 0.88);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.screen-lock.is-visible {
  opacity: 1;
  pointer-events: all;
}

.screen-lock-card {
  background: #ffffff;
  color: var(--text-900);
  padding: 24px;
  border-radius: 16px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(13, 28, 51, 0.25);
}

.screen-lock-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.screen-lock-card p {
  margin: 0 0 16px;
  color: var(--text-600);
}

.payback-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2f9;
  border: 1px solid #d7dee9;
  color: var(--text-900);
}

.payback-ok {
  background: #e4f7ea;
  border-color: #b9e8c8;
  color: #1f6b3a;
}

.payback-warn {
  background: #fff4d8;
  border-color: #ffe0a3;
  color: #7a5b00;
}

.payback-bad {
  background: #ffe5e5;
  border-color: #f7bcbc;
  color: #8a1f1f;
}

.payback-na {
  background: #eef1f6;
  border-color: #d7dee9;
  color: var(--text-500);
}

.note {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

.footer {
  margin: 32px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-500);
  font-size: 0.82rem;
}

.footer-title {
  font-family: "Sora", sans-serif;
  font-size: 0.85rem;
  color: var(--text-600);
  margin-bottom: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px 16px;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
