:root {
  --ink: #090909;
  --muted: #6f6a5e;
  --line: #eadfca;
  --panel: #fffdf8;
  --soft: #fff8e6;
  --brand: #ffb703;
  --brand-dark: #9b6500;
  --accent: #f5a900;
  --danger: #bb3e3e;
  --ok: #2f7d4e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 750;
}

button .icon,
.button-link .icon {
  flex: 0 0 auto;
}

button.secondary {
  background: #fff4cf;
  color: var(--ink);
  border: 1px solid rgba(9,9,9,.08);
}

button.warning {
  background: var(--brand);
  color: #2b2105;
}

button.danger {
  background: var(--danger);
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

a {
  color: inherit;
}

.button-link {
  min-height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing {
  min-height: 92vh;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,248,230,.9) 48%, rgba(255,183,3,.12)),
    radial-gradient(circle at 86% 16%, rgba(255,183,3,.32), transparent 32%);
  color: var(--ink);
}

.topbar {
  min-height: 64px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23,32,38,.08);
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-brand {
  gap: 12px;
}

.landing-brand span {
  color: #4f493d;
  font-size: 14px;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.auth-logo {
  height: 68px;
  margin-bottom: 10px;
}

.sidebar-logo {
  height: 58px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: 48px;
  align-items: center;
}

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

.eyebrow {
  margin: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  max-width: 720px;
  margin: 0;
  letter-spacing: 0;
}

.hero p {
  font-size: 20px;
  line-height: 1.55;
  max-width: 660px;
  color: #5f594e;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.hero-actions button {
  background: var(--brand);
  color: #241a00;
  box-shadow: 0 16px 32px rgba(169,104,0,.18);
}

.hero-actions span {
  color: #4f493d;
  font-weight: 750;
}

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

.feature,
.landing-card,
.pricing-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(23,32,38,.08);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(9,9,9,.08);
  color: var(--ink);
}

.feature {
  padding: 18px;
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.feature span,
.landing-card p,
.faq-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.product-preview {
  background: var(--ink);
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 30px 70px rgba(9,9,9,.25);
}

.preview-head,
.preview-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-head {
  margin-bottom: 18px;
}

.preview-head span,
.preview-grid span,
.preview-list span {
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 750;
}

.preview-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.status-dot {
  border-radius: 999px;
  background: rgba(255,183,3,.18);
  color: #ffd15c !important;
  padding: 7px 10px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-grid div,
.preview-list {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}

.preview-grid div {
  padding: 14px;
}

.preview-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
}

.preview-list {
  display: grid;
  gap: 0;
  margin: 14px 0;
  overflow: hidden;
}

.preview-list div {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.preview-export {
  width: 100%;
  background: var(--brand);
  color: #241a00;
}

.landing-section {
  background: #fff;
  padding: 70px 20px;
}

.problem-section,
.business-section,
.faq-section {
  background: #fff9ea;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

.problem-grid,
.steps-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.problem-card {
  padding: 18px;
  font-weight: 850;
}

.solution-line {
  margin: 22px 0 0;
  font-size: 20px;
  font-weight: 850;
  color: var(--ink);
}

.step-card {
  padding: 18px;
}

.step-card span,
.plan-name {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.step-card h3,
.faq-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.business-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.business-pill {
  background: #fff;
  border: 1px solid rgba(23,32,38,.1);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(9,9,9,.06);
  padding: 12px 16px;
  font-weight: 850;
}

.pricing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: start;
}

.pricing-card {
  padding: 24px;
}

.pricing-card strong {
  display: block;
  margin-top: 6px;
  font-size: 40px;
  line-height: 1;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: #4f493d;
  font-weight: 700;
}

.pricing-card li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 900;
  margin-right: 9px;
}

.pricing-card button {
  width: 100%;
  background: var(--brand);
  color: #241a00;
}

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

.faq-card {
  padding: 20px;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 20px 60px rgba(23,32,38,.08);
}

.auth-panel h1,
.page-title h1 {
  margin: 0 0 8px;
  letter-spacing: 0;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  margin: 18px 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.facebook-login {
  width: 100%;
  background: #1877f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

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

.grid {
  display: grid;
  gap: 14px;
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.sidebar {
  background: #090909;
  color: white;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button {
  background: transparent;
  color: rgba(255,255,255,.8);
  text-align: left;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255,183,3,.18);
  color: white;
}

.main {
  padding: 24px;
  overflow: auto;
  background: #f7f8f3;
}

.mobile-app-header,
.bottom-nav {
  display: none;
}

.page-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card {
  padding: 16px;
  box-shadow: 0 10px 30px rgba(9,9,9,.04);
}

.card strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.panel {
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(9,9,9,.04);
}

.security-reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff3c4;
  border: 1px solid #f4d474;
  color: #533800;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
}

.security-reminder .icon {
  color: var(--brand-dark);
}

.quick-actions-panel h2,
.mobile-action-panel h2,
.settings-section h2,
.panel h2 {
  margin-top: 0;
}

.quick-actions,
.settings-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-actions button,
.quick-actions .button-link,
.settings-actions button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 144px;
}

.stat-card .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff1bf;
  color: var(--brand-dark);
  display: grid;
  place-items: center;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.stat-card strong {
  font-size: 28px;
  margin: 0;
}

.stat-card small {
  color: var(--muted);
  line-height: 1.35;
}

.payroll-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: center;
}

.payroll-summary h2 {
  margin: 6px 0 12px;
}

.payroll-summary strong {
  display: block;
  font-size: 34px;
}

.mobile-records {
  display: none;
}

.mobile-record-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(9,9,9,.04);
}

.record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.record-head strong,
.record-head span {
  display: block;
}

.record-head span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.mobile-record-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.mobile-record-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mobile-record-card dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: white;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  vertical-align: middle;
}

th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  background: #e9eef2;
}

.pill.present,
.pill.approved,
.pill.active,
.pill.paid {
  background: #dcf3e5;
  color: var(--ok);
}

.pill.late,
.pill.pending,
.pill.incomplete {
  background: #fff0c7;
  color: var(--brand-dark);
}

.pill.restricted,
.pill.inactive,
.pill.absent {
  background: #f8dddd;
  color: var(--danger);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice {
  border-left: 4px solid var(--brand);
  background: #fff7df;
  color: #4b3700;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.error {
  border-left-color: var(--danger);
  background: #fff0f0;
  color: var(--danger);
}

.clock-panel {
  display: grid;
  gap: 16px;
}

.clock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clock-actions button {
  min-height: 74px;
  font-size: 20px;
}

.print-only {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .pricing-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 54px;
  }
  .features,
  .cards,
  .problem-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
  }
  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat-grid,
  .quick-actions,
  .settings-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payroll-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    gap: 12px;
  }
  .topbar .brand span:last-child {
    display: none;
  }
  .hero {
    width: min(100% - 32px, 1120px);
    padding: 40px 0 52px;
    gap: 28px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p,
  .solution-line {
    font-size: 18px;
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions button {
    width: 100%;
  }
  .product-preview,
  .pricing-card,
  .landing-card,
  .feature {
    box-shadow: 0 14px 34px rgba(23,32,38,.07);
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .landing-section {
    padding: 52px 16px;
  }
  .features,
  .problem-grid,
  .steps-grid,
  .faq-grid,
  .two,
  .three,
  .clock-actions {
    grid-template-columns: 1fr;
  }
  .page-title {
    display: grid;
  }
  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background: #f7f8f3;
  }
  .shell {
    display: block;
    min-height: 100vh;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 14px 14px 104px;
    overflow: visible;
  }
  .mobile-app-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .mobile-shell-logo {
    height: 42px;
  }
  .mobile-app-header span,
  .mobile-app-header strong {
    display: block;
  }
  .mobile-app-header span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }
  .mobile-app-header strong {
    font-size: 17px;
  }
  .bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-height: 68px;
    padding: 8px;
    background: rgba(9,9,9,.94);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(9,9,9,.28);
  }
  .bottom-nav button {
    min-height: 52px;
    padding: 4px 2px;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,.68);
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    font-size: 10px;
    line-height: 1;
  }
  .bottom-nav .icon {
    width: 20px;
    height: 20px;
  }
  .bottom-nav button.active {
    background: rgba(255,183,3,.18);
    color: var(--brand);
  }
  .page-title {
    margin-bottom: 12px;
    gap: 10px;
  }
  .page-title h1 {
    font-size: 26px;
    margin-bottom: 4px;
  }
  .page-title > button,
  .page-title .button-link {
    width: 100%;
  }
  .panel {
    padding: 14px;
    margin-bottom: 12px;
  }
  .security-reminder {
    margin-bottom: 12px;
    padding: 9px 10px;
    font-size: 12px;
  }
  .cards,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }
  .card,
  .stat-card {
    padding: 13px;
    min-height: 118px;
  }
  .stat-card strong,
  .card strong {
    font-size: 24px;
  }
  .stat-card .stat-icon {
    width: 30px;
    height: 30px;
  }
  .quick-actions,
  .settings-actions,
  .clock-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-actions button,
  .quick-actions .button-link,
  .settings-actions button {
    min-height: 54px;
    padding: 8px;
    text-align: center;
  }
  .grid.three,
  .three {
    grid-template-columns: 1fr;
  }
  input,
  select,
  textarea,
  button {
    min-height: 46px;
  }
  .table-wrap {
    display: none;
  }
  .mobile-records {
    display: grid;
    gap: 10px;
  }
  .mobile-record-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .payroll-summary strong {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .cards,
  .stat-grid,
  .quick-actions,
  .settings-actions,
  .clock-actions,
  .mobile-record-card dl {
    grid-template-columns: 1fr;
  }
  .bottom-nav button {
    font-size: 9px;
  }
}

@media print {
  .sidebar,
  .no-print,
  button,
  form {
    display: none !important;
  }
  .shell {
    display: block;
  }
  body {
    background: white;
  }
  .main {
    padding: 0;
  }
  .print-only {
    display: block;
  }
}
