:root{
  --green-700: #1B8A59;
  --green-500: #2FA06B;
  --bg: #FFFFFF;
  --muted: #F4F6F7;
  --text: #263238;
  --sub: #6B7280;
  --radius: 12px;
  --max-width: 420px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #FBFDFB 0%, #FFFFFF 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  display:flex;
  align-items:stretch;
  justify-content:center;
  padding:20px;
  min-height:100vh;
}

/* Layout constrained for mobile-like single-screen experience */
main.hero{
  width:100%;
  max-width:var(--max-width);
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.site-header{
  position:fixed;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:var(--max-width);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:8px 12px;
  background:transparent;
  z-index:10;
}

.brand{display:flex;align-items:center;gap:10px}
.logo{width:38px;height:38px;flex:0 0 38px;border-radius:8px}
.company{font-weight:600;color:var(--green-700);font-size:1.1rem}

/* Card */
.card{
  width:100%;
  background:var(--bg);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:0 6px 24px rgba(32,40,45,0.08);
  border:1px solid #EEF2F3;
  margin-top:38px;
}

.title{
  margin:6px 0 6px 0;
  font-size:1.25rem;
  line-height:1.2;
  color:var(--text);
}

.subtitle{
  margin:0 0 18px 0;
  color:var(--sub);
  font-size:0.95rem;
}

/* Form */
.form{display:flex;flex-direction:column;gap:8px}
.input-row{
  display:flex;
  gap:10px;
  align-items:center;
}

input#cpf{
  flex:1;
  height:52px;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #E6EDF0;
  background:var(--muted);
  font-size:1rem;
  color:var(--text);
  outline:none;
}

input#cpf:focus{
  box-shadow:0 0 0 4px rgba(47,160,107,0.08);
  border-color:var(--green-500);
  background:#fff;
}

button.btn-primary{
  min-width:110px;
  height:52px;
  background:linear-gradient(180deg,var(--green-500),var(--green-700));
  color:white;
  border:none;
  border-radius:10px;
  font-weight:600;
  font-size:1rem;
  padding:0 16px;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(43,122,76,0.18);
}

button.btn-secondary{
  margin-top:12px;
  width:100%;
  height:44px;
  background:#fff;
  color:var(--green-700);
  border:1px solid #E6EDF0;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
}

/* Note */
.note{
  margin:6px 0 0 0;
  font-size:0.8rem;
  color:#8A8F94;
}

/* Overlay / Modal */
.overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(11,14,16,0.36);
  z-index:40;
  padding:20px;
}

.modal{
  width:100%;
  max-width:360px;
  background:var(--bg);
  border-radius:14px;
  padding:20px;
  text-align:center;
  box-shadow:0 10px 40px rgba(20,30,36,0.18);
  border:1px solid #EEF2F3;
}

.icon-wrap{display:flex;justify-content:center;margin-bottom:8px}
#confirmTitle{margin:6px 0 6px 0;color:var(--text)}
.confirm-text{margin:0;color:var(--sub)}

/* Accessibility helpers */
.sr-only{
  position:absolute!important;
  height:1px;width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

/* Small adjustments for very small screens */
@media (max-width:360px){
  .card{padding:16px}
  .company{font-size:1rem}
  input#cpf{height:48px}
  button.btn-primary{min-width:96px;height:48px}
}