/* Sloth homepage. Shares tokens with knowledge-base/kb.css: sage canvas, white cards, serif titles, Sloth yellow used sparingly. */

:root {
  color-scheme: light dark;
  --canvas: #eaf2e4;
  --card: #ffffff;
  --text: rgba(14, 22, 10, 0.88);
  --text-2: rgba(14, 22, 10, 0.56);
  --text-2-strong: rgba(14, 22, 10, 0.66);
  --hairline: rgba(24, 48, 16, 0.09);
  --hairline-strong: rgba(24, 48, 16, 0.16);
  --tint: rgba(24, 48, 16, 0.04);
  --yellow: #ffd21f;
  --yellow-soft: rgba(255, 210, 31, 0.5);
  --ink: #1a140d;
  --link: #1f4d14;
  --focus: #1a140d;
  --shadow: 0 1px 2px rgba(24, 48, 16, 0.05), 0 24px 48px -20px rgba(24, 48, 16, 0.18);

  --serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141d13;
    --card: #1c281a;
    --text: rgba(255, 255, 255, 0.92);
    --text-2: rgba(255, 255, 255, 0.62);
    --text-2-strong: rgba(255, 255, 255, 0.68);
    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-strong: rgba(255, 255, 255, 0.16);
    --tint: rgba(255, 255, 255, 0.04);
    --yellow-soft: rgba(255, 210, 31, 0.32);
    --link: #c9e6b8;
    --focus: #ffd21f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin: 0;
}

p { margin: 0 0 14px; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(26, 20, 13, 0.14);
}
.btn-primary:hover { box-shadow: inset 0 0 0 1px rgba(26, 20, 13, 0.3), 0 6px 16px -8px rgba(26, 20, 13, 0.45); transform: translateY(-1px); }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }

.text-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 10px 2px;
}
.text-link:hover { text-decoration: underline; }

/* Header */

.site-header { border-bottom: 1px solid var(--hairline); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; margin: -3px; }
.brand-name { font-family: var(--serif); font-size: 22px; line-height: 1; }
.brand-small img { width: 28px; height: 28px; }
.brand-small .brand-name { font-size: 18px; }

.header-nav { display: flex; align-items: center; gap: 20px; }
.header-link { font-size: 14px; color: var(--text-2-strong); text-decoration: none; }
.header-link:hover { color: var(--text); text-decoration: underline; }

/* Hero */

.hero { padding: 72px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-tile { width: 80px; height: 80px; margin: -7px 0 16px -7px; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2-strong);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin-bottom: 22px;
  text-wrap: balance;
}

.free {
  white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--yellow-soft) 62%, var(--yellow-soft) 92%, transparent 92%);
  padding: 0 0.06em;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2-strong);
  max-width: 34ch;
  margin-bottom: 30px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

/* Product visual: a small mock of the meetings window */

.hero-visual { margin: 0; }

.window {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  overflow: hidden;
}
@media (prefers-color-scheme: light) {
  .window { background: #f5f7f2; }
}

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--hairline-strong); }
.win-new {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 600;
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
}

.win-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 300px; }

.win-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 8px 12px;
  border-right: 1px solid var(--hairline);
}
.side-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--text-2-strong);
}
.side-item svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.side-item.is-active { background: var(--tint); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text); }

.win-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 22px 64px;
  background: var(--card);
  border-top-left-radius: 10px;
  box-shadow: inset 1px 1px 0 var(--hairline);
}
.note-back { font-size: 11.5px; color: var(--text-2-strong); margin: 8px 0 4px; }
.note-title { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin-bottom: 10px; }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.chip {
  font-size: 11px;
  color: var(--text-2-strong);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 1px 9px;
}
.note-path { font-size: 10.5px; color: var(--text-2-strong); font-family: var(--mono); margin-bottom: 12px; }
.note-h { font-weight: 600; font-size: 13px; margin: 8px 0 3px; }
.note-li, .note-todo { position: relative; padding-left: 18px; color: var(--text-2-strong); margin: 1px 0; }
.note-li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-2);
}
.note-todo i {
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 11px;
  height: 11px;
  border: 1.2px solid var(--text-2);
  border-radius: 3px;
}

.rec-pill {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  border: 1px solid rgba(26, 20, 13, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  box-shadow: 0 8px 20px -10px rgba(26, 20, 13, 0.5);
}
.bars { display: flex; align-items: center; gap: 3px; height: 14px; }
.bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: center;
  animation: level 1.3s ease-in-out infinite;
}
.bars i:nth-child(1) { transform: scaleY(0.4); animation-delay: -0.2s; }
.bars i:nth-child(2) { transform: scaleY(0.8); animation-delay: -0.6s; }
.bars i:nth-child(3) { transform: scaleY(1); animation-delay: -0.9s; }
.bars i:nth-child(4) { transform: scaleY(0.6); animation-delay: -0.4s; }
.bars i:nth-child(5) { transform: scaleY(0.35); animation-delay: -1.1s; }

@keyframes level {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* Supporting points */

.points { padding: 8px 0 64px; }

.point-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.point { padding: 22px 22px 8px; }
.point h3 { font-size: 21px; margin: 14px 0 8px; }
.point p { font-size: 15px; line-height: 1.55; color: var(--text-2-strong); }
.point code { white-space: normal; }

.point-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
}
.point-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Two jobs */

.how { padding: 0 0 64px; }
.how h2, .beta h2 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.01em; }
.how h2 { margin-bottom: 20px; }

.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.how-card { padding: 28px 30px 16px; }
.how-card h3 { font-size: 25px; margin-bottom: 10px; }
.how-card p { color: var(--text-2-strong); }
.how-card b { font-weight: 600; color: var(--text); }
.how-more { font-size: 15px; }

/* Beta */

.beta { padding: 0 0 80px; }

.beta-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 36px 20px;
}
.beta-card img { width: 80px; height: 80px; margin: -8px; flex: none; }
.beta-card h2 { margin-bottom: 10px; }
.beta-card p { color: var(--text-2-strong); max-width: 56ch; }
.beta-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }

/* Footer */

.site-footer { border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-2-strong); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 22px;
  padding-bottom: 28px;
}
.footer-row p { margin: 0; }
.footer-row a:not(.brand) { color: inherit; }
.footer-row .credit { margin-left: auto; }

/* Responsive */

@media (max-width: 1000px) {
  .point-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lead { max-width: 40ch; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header-link { display: none; }
  .hero { padding-top: 32px; }
  .hero-tile { width: 72px; height: 72px; margin: -6px 0 14px -6px; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .text-link { text-align: center; }
  .win-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .win-side { display: none; }
  .win-main { border-radius: 0; box-shadow: inset 0 1px 0 var(--hairline); padding: 4px 16px 60px; }
  .note-title { font-size: 22px; }
  .point-grid, .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-card { padding: 22px 20px 10px; }
  .beta-card { flex-direction: column; gap: 14px; padding: 24px 20px 12px; }
  .beta-card img { width: 64px; height: 64px; margin: -6px; }
  .footer-row .credit { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i { animation: none; }
  .btn { transition: none; }
  .btn-primary:hover { transform: none; }
}

@media print {
  .site-header, .rec-pill { display: none; }
}
