/* ========== Base / Reset ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: #0b0f14;
  color: #e9eef5;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root{
  --bg: #0b0f14;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.09);
  --stroke: rgba(255,255,255,0.12);
  --muted: rgba(233,238,245,0.72);
  --text: #e9eef5;
  --shadow: 0 12px 28px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 24px;

  /* Listo brand palette (pulled from logo.png) */
  --listo-green-dark: #0E5514;
  --listo-green:      #398C19;
  --listo-green-mid:  #7FC314;
  --listo-accent:     #D0E531;
  --listo-mist:       #DEECD6;

  /* Site accents mapped to brand */
  --accent:  var(--listo-green);
  --accent2: var(--listo-green-mid);
}


.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.lead{ font-size: clamp(1.05rem, 1.2vw, 1.2rem); color: var(--muted); }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ========== Header ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(14,85,20,0.22), rgba(11,15,20,0.72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-logo{
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo{ height: 38px; }
.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(127,195,20,0.22), rgba(57,140,25,0.18));
  border: 1px solid rgba(255,255,255,0.14);
}
.brand-name{ font-size: 1.05rem; }

/* Nav */
.nav{ display: flex; align-items: center; gap: 10px; }
.nav-menu{
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link{
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(233,238,245,0.9);
  transition: background .18s ease, transform .18s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* Mobile menu button */
.nav-toggle{
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
}
.hamburger{
  width: 18px;
  height: 2px;
  background: rgba(233,238,245,0.92);
  display: inline-block;
  position: relative;
}
.hamburger::before,
.hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(233,238,245,0.92);
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }

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

/* Language switch */
.header-actions{ display: flex; align-items: center; gap: 10px; }
.lang-switch{
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.chip{
  border: 0;
  background: transparent;
  color: rgba(233,238,245,0.86);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.chip[aria-pressed="true"]{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ========== Sections ========== */
.section{ padding: 64px 0; }
.section.alt{
  background: radial-gradient(900px 500px at 10% 0%, rgba(127,195,20,0.16), transparent 55%),
              radial-gradient(700px 420px at 90% 20%, rgba(208,229,49,0.12), transparent 55%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-head{ margin-bottom: 18px; }
.section-head h2{
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

/* Hero */
.hero{
  padding: 64px 0 32px;
  background:
    radial-gradient(900px 540px at 20% 10%, rgba(127,195,20,0.18), transparent 55%),
    radial-gradient(900px 540px at 80% 20%, rgba(57,140,25,0.16), transparent 55%);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.hero-copy h1{
  margin: 0 0 10px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.cta-row{ display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 14px; }
.trust-row{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(233,238,245,0.85);
  font-size: 0.95rem;
}

/* Cards */
.card{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.card-header{ padding: 18px 18px 10px; }
.card-header h2, .card-header h3{ margin: 0 0 6px; }
.card-footer{ padding: 14px 18px 18px; }

.hero-card .card{ overflow: hidden; }
.checklist{
  list-style: none;
  padding: 0 18px 4px;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li{
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.check{
  width: 16px; height: 16px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(127,195,20,0.16);
}

/* Buttons / links */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(233,238,245,0.94);
  font-weight: 650;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.08); }
.btn.primary{
  border-color: rgba(127,195,20,0.45);
  background: linear-gradient(135deg, rgba(127,195,20,0.24), rgba(57,140,25,0.18));
}
.btn.ghost{ background: transparent; }
.btn.small{ padding: 10px 12px; border-radius: 14px; }

.mini-link{
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(233,238,245,0.9);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Grids */
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature{ padding: 18px; }
.feature h3{ margin: 0 0 8px; }

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step{ padding: 18px; }
.step-num{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Footer */
.site-footer{
  padding: 34px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a{
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(233,238,245,0.86);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== Auth Pages ===== */
.auth-wrap { padding: 40px 0 70px; }
.auth-grid{
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.auth-card{ padding-bottom: 18px; }
.auth-title{ margin: 0 0 6px; font-size: clamp(1.6rem, 2.2vw, 2rem); }
.auth-form{ padding: 0 18px 18px; display: grid; gap: 12px; }

.field{ display: grid; gap: 6px; }
.field-label{ color: rgba(233,238,245,0.85); font-weight: 650; font-size: 0.95rem; }
input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(233,238,245,0.95);
  outline: none;
}
input:focus{ border-color: rgba(127,195,20,0.45); box-shadow: 0 0 0 3px rgba(127,195,20,0.14); }

.form-error{
  margin: 0;
  color: rgba(255,180,180,0.95);
  min-height: 1.2em;
}
.tiny{ font-size: 0.95rem; }
.mini-link.inline{ display: inline-flex; margin-left: 8px; }

.auth-side{
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
@media (max-width: 940px){
  .auth-grid{ grid-template-columns: 1fr; }
}

/* ===== Prequal + COI helpers ===== */
.page-title { margin: 0 0 8px; font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pad { padding: 18px; }
.mt { margin-top: 16px; }

.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.divider { height: 1px; background: rgba(255,255,255,0.08); margin: 14px 0; }

.h2 { margin: 0 0 6px; font-size: 1.25rem; }
.h3 { margin: 0 0 8px; font-size: 1.1rem; }

.small { font-size: 0.95rem; }

.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-item {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.status-title { font-weight: 750; }
.status-text { display: grid; gap: 2px; }

.dot { width: 12px; height: 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18); }
.dot-off { background: rgba(255,255,255,0.06); }
.dot-on  { background: rgba(127,195,20,0.30); border-color: rgba(127,195,20,0.48); }

.badge {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  font-weight: 750;
}
.badge-ok {
  border-color: rgba(127,195,20,0.50);
  background: rgba(127,195,20,0.16);
}
.badge-wip {
  border-color: rgba(255,255,255,0.14);
}
.badge-warn {
  border-color: rgba(255,200,120,0.40);
  background: rgba(255,200,120,0.10);
}

.form-grid { display: grid; gap: 12px; }

.kv { display: grid; gap: 10px; }
.kv-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: baseline; }
.kv-val { font-weight: 700; color: rgba(233,238,245,0.92); }

.note {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}
.note.warn {
  border-color: rgba(255,200,120,0.35);
  background: rgba(255,200,120,0.10);
}

@media (max-width: 940px){
  .grid-2 { grid-template-columns: 1fr; }
  .kv-row { grid-template-columns: 1fr; }
}

/* ===== W-9 preview overlay ===== */
.w9-stage{
  width: 100%;
  overflow: auto;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

/* Use a fixed “design size” for easy positioning.
   8.5x11 ratio at 96dpi => 816 x 1056 */
.w9-sheet{
  position: relative;
  width: 816px;
  height: 1056px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.w9-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w9-txt, .w9-check{
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  z-index: 2;
  pointer-events: none;
}

.w9-txt{
  width: calc(var(--w, 200) * 1px);
  font-size: calc(var(--size, 14) * 1px);
  line-height: 1.1;
  color: #111;
  font-weight: 600;
  text-shadow: 0 0 0 transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w9-check{
  width: 12px;
  height: 12px;
  border: 2px solid #111;
  border-radius: 2px;
  background: transparent;
  opacity: 0; /* hidden until selected */
}
.w9-check.on{
  opacity: 1;
  background:
    linear-gradient(45deg, transparent 45%, #111 46%, #111 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #111 46%, #111 54%, transparent 55%);
}
.fieldset{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 12px;
}
.radio-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.radio{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.grid-2.tight{ gap: 10px; }

/* ===== Agreement helpers ===== */
.legal { color: rgba(233,238,245,0.93); }
.legal h4 { margin: 14px 0 6px; font-size: 1.02rem; }
.legal p { margin: 0 0 10px; line-height: 1.55; }
.legal-title { margin: 0 0 10px; font-size: 1.15rem; letter-spacing: 0.02em; }
.legal-ol { margin: 8px 0 12px 20px; }
.legal-ol li { margin: 8px 0; line-height: 1.5; }

.pdf-frame{
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.pdf-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

.checkline{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.checkline input{ margin-top: 4px; }









/* ===== Payroll Page ===== */
/* Add class="payroll-page" on <body> of payroll.html for these styles */
.payroll-page .page { padding: 24px 0; }

.payroll-page .panel{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(222,236,214,0.18);
  border-radius: 16px;
  padding: 16px;
}

.payroll-page .form{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.payroll-page .form label{ display: grid; gap: 6px; font-weight: 650; }

.payroll-page .form input,
.payroll-page input[type="date"],
.payroll-page input[type="number"],
.payroll-page input[type="text"]{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 12px;
  background: rgba(0,0,0,0.22);
  color: rgba(233,238,245,0.95);
}

.payroll-page .form-note{ margin-top: 6px; font-weight: 650; min-height: 1.2em; }

.payroll-page .divider{
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 18px 0;
  height: auto;
  background: transparent;
}

.payroll-page .table-wrap{ overflow: auto; }
.payroll-page .table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.payroll-page .table th,
.payroll-page .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.payroll-page .table thead th{
  text-align: left;
  font-size: 0.95rem;
  opacity: 0.9;
}
.payroll-page .right{ text-align: right; }

.payroll-page .totals-meta,
.payroll-page .report-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.payroll-page .report-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.payroll-page .report-controls{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.payroll-page label.inline{ display: grid; gap: 6px; font-weight: 750; }

.payroll-page .btn-secondary{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.20);
}
.payroll-page .btn-secondary:hover{ filter: brightness(1.08); }

.payroll-page .table .btn-link{
  background: transparent;
  border: none;
  color: rgba(233,238,245,0.92);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 750;
  padding: 6px 0;
}
.payroll-page .table .btn-link:hover{ opacity: 0.9; }



/* ========== Responsive ========== */
@media (max-width: 940px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu{
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    padding: 12px;
    flex-direction: column;
    background: rgba(11,15,20,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-menu.open{ display: flex; }
  
}
