:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #14171c;
  --muted: #5d6470;
  --border: #e3e4e0;
  --accent: #0e7a64;
  --accent-soft: #e2f3ed;
  --amber: #a5630b;
  --amber-soft: #fbefd9;
  --add: #116b3c;
  --add-soft: #e3f4e8;
  --del: #b42318;
  --del-soft: #fde8e6;
  --code-bg: #f1f1ee;
  --shadow: 0 1px 2px rgb(20 23 28 / 0.04), 0 8px 24px rgb(20 23 28 / 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --text: #e9ecef;
    --muted: #9aa1ab;
    --border: #262a32;
    --accent: #5ce0b4;
    --accent-soft: #11302a;
    --amber: #f0b45a;
    --amber-soft: #33270f;
    --add: #7ee2a1;
    --add-soft: #10301d;
    --del: #ff9b8f;
    --del-soft: #3a1714;
    --code-bg: #1d2128;
    --shadow: none;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}

.nav nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.nav nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav nav a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 64px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 700;
}

.lead {
  max-width: 540px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Sections */

.section {
  padding-top: 40px;
  padding-bottom: 40px;
  scroll-margin-top: 60px;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon-drift {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
}

.card h3 {
  font-size: 20px;
}

.card p {
  flex: 1;
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.card-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.card-link.muted {
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status.live {
  background: var(--accent-soft);
  color: var(--accent);
}

.status.building {
  background: var(--amber-soft);
  color: var(--amber);
}

/* How we work */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.principles > div {
  padding-top: 20px;
}

.principles h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Contact */

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.contact h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 40px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.nav nav a.nav-cta {
  color: var(--accent);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-note {
  color: var(--muted);
  font-size: 14px;
}

/* Example Slack alert */

.alert {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.alert-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-head img {
  flex: none;
  border-radius: 8px;
}

.app-tag {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--code-bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.time {
  color: var(--muted);
  font-size: 12px;
}

.alert-title {
  margin: 2px 0 0;
}

.diff {
  margin: 14px 0 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: 400 12.5px/1.7 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.diff-file,
.diff-line {
  white-space: pre;
}

.diff-file {
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--code-bg);
  color: var(--muted);
}

.diff-line {
  padding: 0 12px;
}

.diff-line.del {
  background: var(--del-soft);
  color: var(--del);
}

.diff-line.add {
  background: var(--add-soft);
  color: var(--add);
}

.alert-meta {
  margin: 0 0 14px;
  color: var(--muted);
}

.alert-meta strong {
  color: var(--text);
  font-weight: 600;
}

.alert-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alert-buttons span {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* Problem */

.problem {
  max-width: 760px;
  padding: 28px 32px;
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: var(--amber-soft);
}

.problem h2 {
  margin-bottom: 12px;
  font-size: 21px;
}

.problem p {
  margin: 0;
}

/* Steps */

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

.steps li {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.steps h3 {
  font-size: 18px;
}

.steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.snippet {
  margin: 16px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  font-size: 12.5px;
  line-height: 1.6;
}

.snippet code {
  font-size: inherit;
}

.snippet .k {
  color: var(--accent);
}

.snippet .s {
  color: var(--amber);
}

/* Works with */

.integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.integrations li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
}

.integrations-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Pricing */

.price-card {
  max-width: 460px;
  padding: 28px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.per {
  color: var(--muted);
}

.features {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  padding: 5px 0 5px 26px;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.price-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */

.faq {
  max-width: 760px;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Beta form */

.beta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.beta h2 {
  margin-bottom: 10px;
}

.beta-copy p {
  margin: 0;
  color: var(--muted);
}

.beta-form {
  display: block;
  min-height: 320px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  /* Tally draws dark text, so the form keeps a light background in dark mode too. */
  background: #ffffff;
}

.beta-fallback {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer a:not(.footer-links a) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

  .steps {
    grid-template-columns: 1fr;
  }

  .beta-fallback {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav nav {
    gap: 14px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .nav nav a:not(.nav-cta):not(.nav-signin) {
    display: none;
  }

  .problem,
  .beta {
    padding: 22px 20px;
  }

  .contact,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .button,
  .card {
    transition: none;
  }
}
