/* ============================================================
   ClearSlip — design tokens
   Concept: the payslip itself. Paper, ink, and a highlighter
   pen dragged across a line item to reveal money left unclaimed.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #F7F7F5;
  --paper-deep: #EAF2FA;
  --line: #D6D6D2;
  --ink: #17181B;
  --ink-soft: #4A4C52;
  --white: #FFFFFF;
  --highlighter: #E3F26E;
  --highlighter-deep: #B9CE2E;
  --teal: #005EB8;
  --blue-deep: #003087;
  --alert: #C6472A;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.mono { font-family: var(--mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.6em;
  display: inline-block;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { width: 9px; height: 9px; background: var(--blue-deep); border-radius: 50%; display: inline-block; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--highlighter-deep); }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--blue-deep);
  color: var(--white);
  padding: 9px 16px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--teal); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Hero: the payslip stub ---------- */
.hero {
  padding: 72px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); margin-top: 18px; }

.stub {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(22, 33, 58, 0.25);
  position: relative;
  overflow: hidden;
}
.stub::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background-image: radial-gradient(circle, var(--paper) 2.5px, transparent 2.6px);
  background-size: 14px 6px;
  background-position: center;
}
.stub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 24px 14px;
  font-family: var(--mono);
  border-bottom: 1px dashed var(--line);
}
.stub-head .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.stub-head .value { font-size: 0.85rem; font-weight: 600; }
.stub-rows { padding: 6px 24px; }
.stub-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dotted var(--line);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.stub-row:last-child { border-bottom: none; }
.stub-row .code { color: var(--ink-soft); }
.stub-row .amt { font-weight: 600; }
.stub-row.highlight {
  position: relative;
  border-radius: 2px;
}
.stub-row.highlight::before {
  content: "";
  position: absolute;
  inset: -2px -10px;
  background: var(--highlighter);
  z-index: 0;
  border-radius: 2px;
  transform-origin: left center;
  animation: swipe 1.1s cubic-bezier(.65,0,.35,1) 0.4s both;
}
.stub-row.highlight .code, .stub-row.highlight .amt { position: relative; z-index: 1; }
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.stub-foot {
  background: var(--paper-deep);
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.stub-foot strong { color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.divider { border: none; border-top: 1px dashed var(--line); margin: 0; }

/* Audience callouts */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
.audience-card {
  background: var(--white);
  padding: 26px 22px;
}
.audience-card .role {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.audience-card p { margin: 0; font-size: 0.95rem; }

/* Roadmap / coming soon */
.soon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 860px) { .soon-grid { grid-template-columns: 1fr; } }
.soon-card {
  background: var(--white);
  padding: 26px 22px;
}
.soon-card .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  border: 1px dashed var(--teal);
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.soon-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.soon-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Feature ledger */
.ledger {
  border-top: 1px solid var(--ink);
}
.ledger-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px dashed var(--line);
}
@media (max-width: 700px) { .ledger-item { grid-template-columns: 1fr; gap: 8px; } }
.ledger-item .code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ledger-item h3 { margin-bottom: 8px; }
.ledger-item ul { margin: 10px 0 0; padding-left: 20px; }
.ledger-item li { color: var(--ink-soft); margin-bottom: 4px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
}
.price-card.pro { border-color: var(--teal); border-width: 1.5px; position: relative; }
.price-card.pro::after {
  content: "ANNUAL";
  position: absolute;
  top: -1px; right: -1px;
  background: var(--highlighter);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 0 3px 0 4px;
}
.price-amt {
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 700;
  margin: 6px 0 4px;
}
.price-amt small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { padding-left: 20px; margin: 18px 0 0; }
.price-card li { color: var(--ink-soft); margin-bottom: 6px; }

/* Comparison table */
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
}
table.compare thead th {
  font-family: var(--mono);
  background: var(--paper-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
table.compare td:not(:first-child), table.compare th:not(:first-child) { text-align: center; }
table.compare .yes { color: var(--teal); font-weight: 700; }
table.compare .no { color: var(--ink-soft); opacity: 0.5; }

/* FAQ */
.faq details {
  border-bottom: 1px dashed var(--line);
  padding: 18px 0;
}
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary {
  font-family: var(--mono);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--teal);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq .a { padding-top: 12px; max-width: 68ch; }

/* CTA band */
.band {
  background: var(--blue-deep);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.band h2 { color: var(--white); }
.band p { color: #C9D9EF; max-width: 50ch; margin: 0 auto 28px; }
.band .btn-primary { background: var(--highlighter); color: var(--ink); border-color: var(--highlighter); }
.band .btn-primary:hover { background: var(--highlighter-deep); border-color: var(--highlighter-deep); }

/* Legal pages */
.legal h2 { margin-top: 2em; font-size: 1.2rem; }
.legal ul { padding-left: 22px; }
.legal li { color: var(--ink-soft); margin-bottom: 6px; }
.legal .updated { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); }
.callout {
  background: var(--white);
  border-left: 3px solid var(--highlighter-deep);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
  font-size: 0.95rem;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { color: var(--ink-soft); margin-top: 24px; font-size: 0.8rem; max-width: 70ch; }
