/* ---------------------------------------------------------------
   PEO Comply — marketing site
   Palette derived from the brand mark: near-black ink + cyan check.
--------------------------------------------------------------- */

:root {
  --ink: #06131f;
  --ink-2: #0e2233;
  --ink-3: #16324a;
  --paper: #f5f8fa;
  --white: #ffffff;
  --accent: #00c3fa;
  --accent-deep: #0b7fa3;
  --success: #2fae6b;
  --line: #e1e7ec;
  --line-invert: rgba(245, 248, 250, 0.14);

  --text: #0d1b26;
  --text-soft: #4b5c68;
  --text-invert: #f5f8fa;
  --text-invert-soft: #9fb4c2;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Public Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--text-invert);
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.9em;
}
.eyebrow-invert { color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--text-invert);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 195, 250, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.hero .btn-ghost {
  color: var(--text-invert);
  border-color: var(--line-invert);
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-small {
  padding: 0.6em 1.2em;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5em;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 250, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */

.hero {
  background: radial-gradient(120% 140% at 15% 0%, var(--ink-3) 0%, var(--ink) 55%, #030a10 100%);
  color: var(--text-invert);
  padding-top: clamp(64px, 10vw, 108px);
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  color: var(--white);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-invert-soft);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.ledger-wrap {
  margin-top: clamp(48px, 8vw, 84px);
  padding-block: 28px;
  border-top: 1px solid var(--line-invert);
  background: rgba(255, 255, 255, 0.02);
}

.ledger-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

.ledger-strip li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-invert-soft);
  border: 1px solid var(--line-invert);
  border-radius: 6px;
  width: 38px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ledger-strip li.is-tracked {
  color: var(--white);
  border-color: rgba(0, 195, 250, 0.45);
  background: rgba(0, 195, 250, 0.08);
}

.ledger-strip li.is-tracked::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 195, 250, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}

.ledger-strip li.is-tracked:nth-child(5)::after { animation-delay: 0.2s; }
.ledger-strip li.is-tracked:nth-child(9)::after { animation-delay: 0.6s; }
.ledger-strip li.is-tracked:nth-child(10)::after { animation-delay: 1s; }
.ledger-strip li.is-tracked:nth-child(13)::after { animation-delay: 0.4s; }
.ledger-strip li.is-tracked:nth-child(22)::after { animation-delay: 0.8s; }
.ledger-strip li.is-tracked:nth-child(32)::after { animation-delay: 1.2s; }
.ledger-strip li.is-tracked:nth-child(33)::after { animation-delay: 0.3s; }
.ledger-strip li.is-tracked:nth-child(35)::after { animation-delay: 0.9s; }
.ledger-strip li.is-tracked:nth-child(43)::after { animation-delay: 1.4s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.5); }
}

.ledger-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-invert-soft);
  margin: 18px 24px 0;
}

/* ---------- section rhythm ---------- */

.section {
  padding-block: clamp(56px, 9vw, 100px);
}

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 20ch;
}

.section-lede {
  color: var(--text-soft);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* ---------- positioning band ---------- */

.positioning {
  background: var(--ink);
  color: var(--text-invert);
  padding-block: clamp(48px, 8vw, 80px);
}

.positioning-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  max-width: 46ch;
  color: var(--white);
  margin: 0;
}

/* ---------- approach / stages ---------- */

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stage-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
}

.succeed-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, var(--ink-2) 0%, var(--ink) 55%);
  border-radius: var(--radius);
  color: var(--text-invert);
  padding: 40px 34px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 8px 40px;
}

.succeed-banner::before,
.succeed-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.succeed-banner::before {
  top: -140px;
  right: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 195, 250, 0.35), transparent 70%);
}

.succeed-banner::after {
  bottom: -160px;
  left: 10%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(0, 195, 250, 0.14), transparent 72%);
}

.succeed-banner > * { position: relative; }

.succeed-heading h3 {
  font-size: 1.9rem;
  margin-bottom: 4px;
  color: var(--accent);
}
.succeed-heading .stage-sub { color: var(--text-invert-soft); margin-bottom: 0; }

.succeed-body p { color: var(--text-invert-soft); margin: 0 0 14px; }
.succeed-body p:last-child { margin-bottom: 0; }

.stage-destination-line {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-invert);
}

.stage-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.stage-card h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.stage-sub {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.checklist li::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  margin-top: 0.2em;
  background-color: var(--accent-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.approach-close {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
}

/* ---------- why ---------- */

.why {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.why-card p {
  color: var(--text-soft);
  margin: 0;
}

/* ---------- demo / form ---------- */

.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.demo-copy h2 { margin-bottom: 14px; }
.demo-copy p { color: var(--text-soft); }
.fine-print {
  font-size: 0.85rem;
  color: var(--text-soft);
  border-left: 2px solid var(--line);
  padding-left: 14px;
  margin-top: 24px;
}

.demo-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 48px -32px rgba(6, 19, 31, 0.25);
}

.hp-field { position: absolute; left: -9999px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--text);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(0, 195, 250, 0.18);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--text-invert-soft);
  padding-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-brand .brand { color: var(--text-invert); }
.footer-brand .brand-logo { height: 28px; }
.footer-tagline {
  margin-top: 10px;
  font-size: 0.92rem;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-invert-soft);
}
.footer-nav a:hover { color: var(--text-invert); }

.footer-fine {
  border-top: 1px solid var(--line-invert);
  padding-block: 20px;
  font-size: 0.8rem;
  max-width: 70ch;
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .stage-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .succeed-banner {
    grid-template-columns: 1fr;
  }

  .demo-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn {
    margin-top: 14px;
  }

  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
  .nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }
}

@media (max-width: 480px) {
  .ledger-strip li { width: 32px; height: 27px; font-size: 0.65rem; }
}
