/* Pimento Payroll & HR — site styles */
:root {
  --navy: #0f2942;
  --navy-2: #163a5c;
  --navy-3: #1f4e79;
  --orange: #ea580c;
  --orange-2: #c2410c;
  --orange-soft: #fff1e8;
  --ink: #1b2430;
  --muted: #5b6776;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --card: #ffffff;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 41, 66, .06), 0 8px 24px rgba(15, 41, 66, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: .75rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Utility bar + header */
.topbar { background: var(--navy); color: #c9d6e3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1rem; letter-spacing: -.02em; }
.brand-icon { width: 40px; height: 40px; flex: none; }
.site-footer .brand small { color: #f59e6b; }
.brand small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: var(--bg-alt); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; font-family: inherit; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--orange-soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(234,88,12,.35), transparent 65%); pointer-events: none; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #d5e1ee; max-width: 560px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: .9rem; color: #c9d6e3; }
.hero-badges span::before { content: "✓"; color: var(--orange); font-weight: 900; margin-right: 6px; }
.page-hero { background: var(--navy); color: #fff; }
.page-hero .container { padding-top: 56px; padding-bottom: 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.75rem); }
.page-hero p { color: #d5e1ee; max-width: 680px; font-size: 1.1rem; margin: 0; }

/* Dashboard mock in hero */
.mock { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.3); padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-head strong { color: var(--navy); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e8f5ec; color: var(--ok); }
.pill.orange { background: var(--orange-soft); color: var(--orange-2); }
.pill.navy { background: #e6eef7; color: var(--navy-3); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg-alt); border-radius: 10px; padding: 12px; }
.kpi .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kpi .value { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.mock-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin: 6px 0 12px; }
.bars i { flex: 1; background: var(--navy-3); border-radius: 4px 4px 0 0; opacity: .85; }
.bars i:nth-child(odd) { background: var(--orange); }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: 4px; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card a.more { font-weight: 700; color: var(--orange); text-decoration: none; }
.card a.more:hover { text-decoration: underline; }
.stat-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 28px; padding-bottom: 28px; text-align: center; }
.stat-strip strong { display: block; font-size: 1.6rem; color: var(--navy); font-weight: 800; }
.stat-strip span { color: var(--muted); font-size: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 28px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.cta-band { background: var(--orange); color: #fff; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 48px; padding-bottom: 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #fff3ea; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--bg-alt); color: var(--navy); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 800; background: var(--bg-alt); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .9rem; color: var(--navy); }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #cdd5df; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.hint { font-size: .8rem; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--orange-soft); border-left: 4px solid var(--orange); font-size: .92rem; }
.notice.ok { background: #e8f5ec; border-color: var(--ok); }
.hp { position: absolute; left: -9999px; }

/* Calculator */
.tool { display: grid; grid-template-columns: 420px 1fr; gap: 28px; align-items: start; }
.result-hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.result-hero .label { color: #c9d6e3; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.result-hero .big { font-size: 2.4rem; font-weight: 800; }
.result-hero .sub { display: flex; gap: 24px; flex-wrap: wrap; color: #d5e1ee; font-size: .9rem; margin-top: 6px; }
.donut-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
details.settings { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--bg-alt); }
details.settings summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.tabs { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* Timesheet */
.ts-table input, .ts-table select { padding: 7px 8px; font-size: .9rem; }
.ts-table td { padding: 8px 10px; }
.ts-table input[type="time"] { min-width: 110px; }
.ts-table input[type="number"] { width: 80px; }
.flag-late { color: var(--orange-2); font-weight: 700; font-size: .8rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

/* Payslip */
.payslip { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 820px; margin: 0 auto; box-shadow: var(--shadow); font-size: .92rem; }
.payslip .ps-head { text-align: center; border-bottom: 3px solid var(--navy); padding-bottom: 14px; margin-bottom: 16px; }
.payslip .ps-logo { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 12px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 900; }
.payslip .ps-logo img { width: 54px; height: 54px; object-fit: contain; border-radius: 0; background: #fff; }
.payslip h3 { margin: 0; }
.ps-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; margin-bottom: 16px; }
.ps-meta div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 4px 0; }
.ps-meta span { color: var(--muted); }
.ps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.payslip table th, .payslip table td { padding: 7px 10px; }
.ps-net { margin-top: 16px; background: var(--navy); color: #fff; border-radius: 10px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 800; }
.ps-foot { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Pricing */
.price { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.card.featured { border: 2px solid var(--orange); position: relative; }
.card.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 24px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; }

/* Footer */
.site-footer { background: #0a1d30; color: #aebdcc; font-size: .92rem; }
.site-footer .container { padding-top: 56px; padding-bottom: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #aebdcc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1d3550; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* Responsive */
@media (max-width: 1020px) {
  .tool { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .hero .container, .split { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .form-grid, .grid-4, .ps-meta, .ps-cols { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar .hide-sm { display: none; }
  .payslip { padding: 18px; }
}

/* Print: only the payslip */
#print-root { display: none; }
@media print {
  @page { margin: 12mm; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root .payslip { box-shadow: none; border: 0; max-width: none; padding: 0; }
  .ps-net, .payslip .ps-logo, .payslip th, .payslip tfoot td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.split > *, .grid > *, .tool > * { min-width: 0; }
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}
