/* ============================================================
   Worksherpa marketing site — shared design system
   Brand: navy #1F2A44 + amber #F08A24 on warm light surfaces.
   Modern, airy, generous whitespace. Used by every page.
   ============================================================ */

:root {
  /* Brand */
  --navy: #1f2a44;
  --navy-soft: #2b3852;
  --amber: #f08a24;
  --amber-deep: #b5641a;
  --amber-soft: #fce6cc;

  /* Surfaces — warm, light */
  --canvas: #faf8f4; /* page background */
  --cream: #f5f3ef; /* tinted section */
  --card: #ffffff; /* cards */
  --sand: #efece4; /* soft fills */

  /* Ink */
  --ink: #1f2a44; /* headings */
  --body: #4b5468; /* body copy */
  --mute: #828a9c; /* captions */
  --ink-70: #4b5468; /* aliases used by the ported product-demo section */
  --ink-50: #828a9c;
  --line: #e7e3da; /* hairlines */
  --line-soft: #f0ece3;

  /* Accents for product chrome */
  --green: #2e9e6b;
  --blue: #2f6df0;
  --purple: #7c5cf0;

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Shape & depth */
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.06), 0 2px 8px rgba(31, 42, 68, 0.05);
  --shadow: 0 8px 30px rgba(31, 42, 68, 0.08);
  --shadow-lg: 0 24px 70px rgba(31, 42, 68, 0.16);

  --content: 1120px;
  --nav-h: 70px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  padding: 84px 0;
}
.section--tight {
  padding: 56px 0;
}
.section--cream {
  background: var(--cream);
}
.section--navy {
  background: var(--navy);
  color: rgba(245, 243, 239, 0.82);
}
.divider {
  height: 1px;
  background: var(--line);
}

/* ── Typography ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 14px;
}
.section--navy .eyebrow {
  color: var(--amber);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
}
.section--navy h1,
.section--navy h2,
.section--navy h3 {
  color: #fff;
}
.display {
  font-size: clamp(40px, 6vw, 66px);
  letter-spacing: -0.032em;
  line-height: 1.02;
}
h2.title {
  font-size: clamp(30px, 4vw, 42px);
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
}
.accent {
  color: var(--amber);
}
.lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--body);
  margin: 18px 0 0;
}
.section--navy .lede {
  color: rgba(245, 243, 239, 0.8);
}
.muted {
  color: var(--mute);
}
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 6px 18px rgba(240, 138, 36, 0.32);
}
.btn--primary:hover {
  background: var(--amber-deep);
}
.btn--secondary {
  background: var(--navy);
  color: #fff;
}
.btn--secondary:hover {
  background: var(--navy-soft);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}
.section--navy .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.section--navy .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ── Pills & badges ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.section--navy .pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.pill .tick {
  color: var(--amber);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Cards & tiles ────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tile .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--amber-soft);
  color: var(--amber-deep);
  margin-bottom: 16px;
}
.tile h3 {
  margin-bottom: 8px;
}
.tile p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
}

/* grids */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* bullets */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.bullets .tick {
  flex: none;
  margin-top: 3px;
  color: var(--green);
}

/* ── Product mockup card (chat/quote/schedule) ────────────── */
.mock {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
.mock__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.mock__body {
  padding: 20px;
}
.bubble {
  border-radius: 13px;
  padding: 11px 14px;
  font-size: 14.5px;
  color: #2a3242;
  line-height: 1.45;
}
.bubble--in {
  background: var(--sand);
  max-width: 86%;
}
.bubble--ai {
  background: #fff7e6;
  border: 1px solid #f1d79a;
  max-width: 90%;
  margin-left: auto;
  margin-top: 12px;
}
.bubble--ai .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 5px;
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--content);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__brand img {
  height: 30px;
  width: auto;
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__wordmark .s {
  color: var(--amber);
}
.nav__links {
  display: flex;
  gap: 24px;
  margin-left: 8px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s ease;
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}
.nav__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__signin {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(245, 243, 239, 0.62);
  padding: 64px 0 40px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer__brand {
  max-width: 300px;
}
.footer__brand img {
  height: 30px;
  margin-bottom: 16px;
}
.footer__brand p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.footer__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.45);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer__col a {
  display: block;
  font-size: 14.5px;
  color: rgba(245, 243, 239, 0.75);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer__col a:hover {
  color: #fff;
}
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.5);
}

/* ── Reveal-on-scroll ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .eyebrow .dot {
    animation: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .section {
    padding: 60px 0;
  }
}
@media (max-width: 640px) {
  .nav__links,
  .nav__signin {
    display: none;
  }
  .nav__toggle {
    display: block;
  }
  .nav__cta {
    margin-left: auto;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .mobile-menu .nav__links {
    display: flex;
  }
}

/* mobile dropdown menu */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  padding: 8px 24px 18px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu .nav__links {
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.mobile-menu .nav__links a {
  padding: 10px 0;
}
