:root {
  --brand: #005476;
  --brand-dark: #003c55;
  --brand-soft: #e6f1f6;
  --green: #00a651;
  --green-dark: #007a3c;
  --green-soft: #e3f6ec;
  --ink: #12202b;
  --muted: #4b5a67;
  --line: #dde5ea;
  --canvas: #ffffff;
  --alt: #f4f8fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(18 32 43 / 6%), 0 8px 24px rgb(18 32 43 / 8%);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--canvas); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; cursor: pointer; }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-ghost { color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 45%); }
.btn-outline-light:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 94%); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) { padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; }
.site-nav > a:not(.btn):hover { color: var(--brand); background: var(--alt); }
.site-nav > a:not(.btn).active, .site-nav > a:not(.btn)[aria-current="true"] { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Typography helpers */
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--green-dark); margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 62ch; }
.accent { color: var(--green-dark); }

/* Hero */
.hero { background: radial-gradient(900px 420px at 85% -10%, var(--green-soft), transparent 70%), radial-gradient(800px 400px at 0% 0%, var(--brand-soft), transparent 70%), var(--canvas); padding: 72px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 15px; }
.hero-points li::before, .ticks li::before { content: "\2713"; color: var(--green-dark); font-weight: 700; margin-right: 8px; }

.hero-visual { position: relative; min-height: 340px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.mock-timesheet { max-width: 440px; margin-left: auto; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px; display: inline-flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
.mock-title { font-weight: 600; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; margin-top: 10px; color: var(--muted); }
.bar-row em { font-style: normal; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--alt); overflow: hidden; display: block; }
.bar b { display: block; height: 100%; width: var(--fill); background: linear-gradient(90deg, var(--brand), var(--green)); border-radius: 99px; }
.mock-invoice { display: flex; align-items: center; gap: 12px; max-width: 360px; margin: -14px 0 0 0; position: relative; padding: 14px 16px; }
.mock-invoice > div { display: flex; flex-direction: column; font-size: 14px; flex: 1; }
.mock-invoice span:not(.chip):not(.mock-icon) { color: var(--muted); font-size: 13px; }
.mock-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 18px; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-green { background: var(--green-soft); color: #00602f; }
.chip-blue { background: var(--brand-soft); color: var(--brand-dark); }
.chip-amber { background: #fff3dc; color: #7a4a00; }
.chip-red { background: #fde8e8; color: #9b1c1c; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: #c5d3dc; transform: translateY(-2px); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 22px; margin-bottom: 16px; }
.card:nth-child(3n+2) .icon { background: var(--green-soft); color: var(--green-dark); }
.card-role .ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps h3 { font-size: 18px; margin: 14px 0 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }
.step-no { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Company terms section */
.section-tight { padding: 72px 0; background: linear-gradient(135deg, var(--brand-soft), var(--green-soft)); }
.terms-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.terms-grid h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.terms-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: var(--ink); }
.badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px; background: var(--green-dark); color: #fff; font-size: 11px; letter-spacing: .06em; vertical-align: middle; }
.terms-visual { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; }
.terms-visual p { color: var(--muted); font-size: 14px; text-align: center; }
.swap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.swap i { font-style: normal; font-size: 22px; color: var(--muted); }
.swap span { padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.swap .from { background: var(--alt); color: var(--muted); text-decoration: line-through; text-decoration-color: #9aa8b3; }
.swap .to { background: var(--brand); color: #fff; }
.swap .to-alt { background: var(--green-dark); }

/* Flow diagram */
.flow { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.flow h3 { font-size: 22px; }
.flow-sub { color: var(--muted); margin: 6px 0 28px; }
.flow-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px; }
.node { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; border: 2px solid var(--c); background: var(--cs); font-size: 14px; color: var(--muted); }
.node strong { color: var(--ink); font-size: 16px; line-height: 1.25; }
.node .who { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--c); padding: 2px 8px; border-radius: 99px; }
.node:not(:last-child)::after { content: "\2192"; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 700; color: var(--muted); width: 24px; text-align: center; }
.node-member { --c: #005476; --cs: #e6f1f6; }
.node-approver { --c: #8a5a00; --cs: #fff3dc; }
.node-admin { --c: #5b3fa0; --cs: #efeafa; }
.node-done { --c: #007a3c; --cs: #e3f6ec; }
.flow-loop { margin-top: 24px; padding: 12px 16px; border: 2px dashed #c5d3dc; border-radius: 12px; color: var(--muted); font-size: 15px; }
.flow-loop span { font-size: 20px; color: #9b1c1c; margin-right: 6px; }
.flow-loop b { color: var(--ink); }
.flow-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-member { background: #005476; }
.dot-approver { background: #8a5a00; }
.dot-admin { background: #5b3fa0; }

/* Preview */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel-wide { grid-column: 1 / -1; }
.panel figcaption { margin-bottom: 16px; }
.panel h3 { font-size: 18px; }
.panel figcaption p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
.mini-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.mini-table th, .mini-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.mini-table th:first-child, .mini-table td:first-child { text-align: left; }
.mini-table thead th { background: var(--alt); font-weight: 600; color: var(--muted); }
.mini-table tfoot td { font-weight: 600; background: var(--brand-soft); border-bottom: 0; }
.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.queue li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.invoice { margin: 0; display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.invoice div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.invoice dt { color: var(--muted); }
.invoice dd { margin: 0; font-weight: 600; }
.invoice .total { border-bottom: 0; font-size: 17px; }
.invoice .total dt { color: var(--ink); font-weight: 700; }
.invoice .total dd { color: var(--brand); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* CTA band & footer */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #d6e6ee; font-size: 18px; }
.site-footer { background: #0d1f29; color: #b9cbd5; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner img { height: 34px; width: auto; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover, .footer-inner p a { text-decoration: underline; }
.footer-inner p { font-size: 14px; }

/* Motion */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock-timesheet { margin-left: 0; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .flow-chain { grid-template-columns: 1fr; gap: 34px; max-width: 460px; }
  .terms-grid { grid-template-columns: 1fr; }
  .node:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -32px; transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 4px; display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .nav-cta { margin: 6px 0 0; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding-top: 48px; }
  .card-grid, .card-grid.cols-2, .steps, .preview-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .flow { padding: 22px 18px; }
  .bar-row { grid-template-columns: 84px 1fr 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
