/* StaffSumo marketing site
 *
 * One stylesheet for every public page. Deliberately hand-written rather than a
 * utility CDN: the old site pulled Tailwind from a script tag, which blocks the
 * first paint on a marketing page whose whole job is to render fast, and left
 * the type and spacing decisions scattered across thousands of class names.
 *
 * Palette is StaffSumo's own — Robin Green #0FBF7F, from DesignTokens.swift —
 * so the site and the product finally agree. The old site used #10B981, a
 * different green nothing else in the codebase uses.
 */

:root {
  /* Ink */
  --ink: #111827;
  --body: #384252;
  --muted: #6b7280;
  --faint: #9ca3af;

  /* Brand */
  --green: #0fbf7f;
  --green-deep: #087d63;
  --green-wash: #edfbf5;
  --green-line: #bfeeda;

  /* The flag colour. Used only for proof-and-review moments — the one thing
   * this product does that a checkbox cannot. Spending it anywhere else makes
   * it stop meaning anything. */
  --flag: #e8590c;
  --flag-wash: #fff3ec;

  /* Ground */
  --canvas: #ffffff;
  --canvas-alt: #f7faf9;
  --line: #e5e7eb;
  --line-soft: #eef1f0;

  --container: 1180px;
  --radius: 4px;
  --radius-lg: 8px;

  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 2px;
  border-radius: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: normal;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-left: 4px;
  align-self: stretch;
}

/* Full header height, so the panel below opens flush with the header's bottom
 * edge rather than floating 8px under the link with dead space in between. */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav-link:hover {
  background: var(--canvas-alt);
  text-decoration: none;
}

.nav-link svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}

/* Mega panel. Hover on pointer devices, and :focus-within so it is reachable
 * from the keyboard without any script. */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 0 rgba(17, 24, 39, 0.06);
  padding: 18px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

.nav-item:hover .mega,
.nav-item:focus-within .mega {
  display: grid;
}

.mega-wide {
  min-width: 620px;
  grid-template-columns: 1fr 1fr 1fr;
}

.mega a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.mega a:hover {
  background: var(--green-wash);
  text-decoration: none;
}

.mega a span {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 1px;
}

.mega-all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  margin-top: 6px;
  padding-top: 6px;
}

.mega-all a {
  color: var(--green-deep);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #06301f;
  border-color: var(--green);
}

.btn-primary:hover {
  background: #0cab71;
  border-color: #0cab71;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--faint);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 17px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- sections -- */

.section {
  padding: 64px 0;
}

/* Sparse and declarative — the stat band, the closing argument. */
.section-air {
  padding: 96px 0;
}

/* Dense — an index, a list, a table. */
.section-tight {
  padding: 44px 0;
}

.section-alt {
  background: var(--canvas-alt);
  border-block: 1px solid var(--line-soft);
}

.section-dark {
  background: var(--ink);
  color: #cbd5e1;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.section-dark .eyebrow {
  color: var(--green);
}

h1 {
  font-size: clamp(38px, 4.6vw, 52px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}

/* Barely above body size. A heading inside a card is a label for the paragraph
 * under it, not an announcement, and sizing it at 21px made every card shout. */
h3 {
  font-size: 18px;
  line-height: 1.35;
}

.lede {
  font-size: 19px;
  line-height: 1.62;
  color: var(--body);
  max-width: 60ch;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

.section-head h2 + p {
  margin-top: 16px;
}

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

.hero {
  padding: 76px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 + .lede {
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--muted);
}

.hero-reassure li::before {
  content: "✓";
  color: var(--green-deep);
  font-weight: 700;
  margin-right: 7px;
}

/* The slot their hero gives a signup form. A form here would have to post
 * somewhere, and the honest destination is the app's own sign-up — so this
 * carries the same weight without pretending to collect anything. */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 0 rgba(17, 24, 39, 0.06);
  padding: 26px;
}

.hero-card h2 {
  font-size: 22px;
}

.hero-card ul {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 15.5px;
}

.hero-card li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
}

.hero-card li::before {
  content: "✓";
  color: var(--green-deep);
  font-weight: 700;
}

.hero-card .btn {
  width: 100%;
}

.hero-card small {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--faint);
  font-size: 13.5px;
}

/* ---------------------------------------------------------------- media rows -- */

.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.media + .media {
  margin-top: 88px;
}

.media-flip .media-text {
  order: 2;
}

.media-text h2 + p,
.media-text h3 + p {
  margin-top: 14px;
}

.media-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-weight: 700;
  color: var(--green-deep);
}

.media-link::after {
  content: "→";
}

/* ---------------------------------------------------------------- figures -- */

/* Product figures are drawn in CSS rather than shipped as screenshots: a
 * screenshot of a scheduler goes stale the day the scheduler changes, and this
 * one is legible at any width. */
.figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 0 rgba(17, 24, 39, 0.06);
  padding: 16px;
  overflow: hidden;
}

.figure-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 13px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.figure-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.grid-week {
  display: grid;
  grid-template-columns: 78px repeat(5, 1fr);
  gap: 6px;
  font-size: 12px;
}

.grid-week div {
  padding: 8px 6px;
  border-radius: 6px;
  background: var(--canvas-alt);
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.grid-week .gw-name {
  text-align: left;
  background: none;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-week .gw-shift {
  background: var(--green-wash);
  color: var(--green-deep);
  border: 1px solid var(--green-line);
}

.grid-week .gw-open {
  background: #fff;
  border: 1px dashed var(--line);
  color: var(--faint);
}

.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 600;
}

.task-done {
  border-color: var(--green-line) !important;
  background: var(--green-wash);
}

.task-flagged {
  border-color: #f6cdb4 !important;
  background: var(--flag-wash);
}

.task-badge {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green);
  color: #06301f;
}

.task-flagged .task-badge {
  background: var(--flag);
  color: #fff;
}

.task-thumb {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d6e6df, #b9d8c9);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.card h3 + p {
  margin-top: 10px;
}

.card .media-link {
  margin-top: 16px;
  font-size: 15.5px;
}

/* No shadow. A card is a boundary, not an object hovering over the page. */

/* Three columns divided by rules rather than boxed into cards. Numbered
 * because the shift really does run in this order — if it did not, the
 * numerals would be decoration and would have no business here. */
.sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}

.seq {
  padding: 30px 32px 0 0;
}

.seq + .seq {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.seq-stage {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.seq-stage b {
  color: var(--green-deep);
  font-weight: 600;
  margin-right: 10px;
}

.seq h3 + p {
  margin-top: 12px;
}

/* Link lists — the industries and solutions indexes */
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.link-grid {
  gap: 0 34px;
}

.link-grid a {
  display: block;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
}

.link-grid a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green);
  text-decoration: none;
}

/* ---------------------------------------------------------------- misc -- */

.checklist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.checklist li::before {
  content: "✓";
  color: var(--green-deep);
  font-weight: 700;
}

.quote {
  border-left: 3px solid var(--green);
  padding-left: 22px;
  margin-top: 32px;
}

.quote p {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.42;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.quote cite {
  display: block;
  margin-top: 11px;
  font-style: normal;
  font-size: 14.5px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}

.stat-n {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-dark .stat-n {
  color: #fff;
}

.stat-l {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Comparison + pricing tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 560px;
}

th,
td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

thead th {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--canvas-alt);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--ink);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

.price {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/* Reserved on every card, empty or not, so the three prices land on one line
 * instead of the featured one sitting a badge-height lower. */
.price-flag {
  height: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.price-featured {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-wash);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin: 14px 0 2px;
}

.price-tag span {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.price .btn {
  width: 100%;
  margin-top: 22px;
}

.badge {
  display: inline-block;
  line-height: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-wash);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 4px 11px;
}

/* FAQ — <details> so it works with no JavaScript at all */
.faq {
  max-width: 820px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18.5px;
  color: var(--ink);
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 17px;
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding-bottom: 22px;
  max-width: 68ch;
}

/* Closing signup band */
.cta-band {
  background: var(--ink);
  color: #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 36px;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  margin-top: 12px;
  max-width: 52ch;
}

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

.site-footer {
  background: var(--canvas-alt);
  border-top: 1px solid var(--line);
  padding: 60px 0 34px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px;
}

.footer-grid h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-grid a {
  color: var(--body);
}

.footer-grid a:hover {
  color: var(--green-deep);
}

.footer-base {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  color: var(--faint);
  font-size: 14px;
}

.footer-base nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-base a {
  color: var(--muted);
}

/* Breadcrumbs on inner pages */
.crumbs {
  font-size: 14px;
  color: var(--faint);
  padding-top: 26px;
}

.crumbs a {
  color: var(--muted);
}

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

@media (max-width: 940px) {
  .hero-grid,
  .media,
  .cta-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .media-flip .media-text {
    order: 0;
  }

  .cards,
  .cards-4,
  .price-grid,
  .stats,
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav,
  .header-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 60px 0;
  }

  .cta-band {
    padding: 36px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .cards,
  .cards-2,
  .cards-4,
  .price-grid,
  .stats,
  .link-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 48px 0;
  }
}

/* Mobile nav, opened by the one small script in the header */
@media (max-width: 940px) {
  body.nav-open .nav {
    display: grid;
    position: fixed;
    inset: 68px 0 auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    gap: 2px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  body.nav-open .nav-item {
    position: static;
  }

  body.nav-open .mega {
    display: grid;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 10px 12px;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  body.nav-open .nav-link svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 940px) {
  .sequence {
    grid-template-columns: 1fr;
  }

  .seq {
    padding: 26px 0 0;
  }

  .seq + .seq {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
}
