/* Inter is self-hosted so visitors' browsers never contact a font service. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f9ff;
  --ink: #0f172a;
  --muted: #526079;
  --line: #e2e8f0;
  --navy: #0b2a50;
  --brand: #3b82f6;
  --brand-2: #38bdf8;
  --brand-soft: rgba(59, 130, 246, 0.1);
  --glow: rgba(56, 189, 248, 0.22);
  --shadow: 0 1px 2px rgba(11, 42, 80, 0.05), 0 12px 32px -12px rgba(11, 42, 80, 0.2);
  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #162238;
    --ink: #e6edf7;
    --muted: #9fb0c8;
    --line: #22304a;
    --navy: #3b6ea8;
    --brand: #60a5fa;
    --brand-2: #38bdf8;
    --brand-soft: rgba(96, 165, 250, 0.14);
    --glow: rgba(56, 189, 248, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--brand);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto;
  height: 620px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18.5px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Board mockup */

.mock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.mock-bar span {
  margin-left: 8px;
}

.mock-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--surface-2);
}

.mock-col h4 {
  margin: 2px 4px 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.k {
  --c: 12, 102, 228;
  position: relative;
  margin-bottom: 8px;
  padding: 10px 10px 9px 13px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1px 1px rgba(15, 18, 34, 0.12);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
}

.k::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgb(var(--c));
}

.filled .k {
  background-image: linear-gradient(rgba(var(--c), 0.3), rgba(var(--c), 0.3));
}

.k b {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
}

.k small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.k small::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--line);
}

.k.blue {
  --c: 12, 102, 228;
}

.k.green {
  --c: 34, 160, 107;
}

.k.red {
  --c: 225, 72, 60;
}

.k.amber {
  --c: 230, 150, 20;
}

.k.violet {
  --c: 130, 90, 230;
}

/* Sections */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.product {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product h3 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.product p {
  margin: 0 0 22px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tags li {
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

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

.feature {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature .icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

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

/* Before / after */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare figure {
  margin: 0;
}

.compare figcaption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.compare figcaption strong {
  color: var(--ink);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

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

.step .who {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* FAQ */

.faq {
  max-width: var(--prose);
}

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

.faq summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 400;
}

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

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

/* CTA */

.cta {
  padding: 48px;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  margin: 0 0 24px;
  opacity: 0.9;
}

.cta .btn {
  background: var(--brand-2);
  color: #0b2a50;
}

/* Legal pages */

.doc {
  max-width: var(--prose);
  padding: 72px 0 96px;
}

.doc h1 {
  font-size: clamp(32px, 4.6vw, 44px);
}

.updated {
  display: inline-block;
  margin: 0 0 36px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.doc h2 {
  margin: 44px 0 10px;
  font-size: 21px;
  letter-spacing: -0.015em;
}

.doc p,
.doc li {
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.summary {
  margin: 0 0 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  background: var(--surface);
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 0.9em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 36px;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

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

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

/* Responsive */

@media (max-width: 860px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero .wrap,
  .product,
  .compare {
    grid-template-columns: 1fr;
  }

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

  .product {
    padding: 24px;
  }

  .cta {
    padding: 36px 22px;
  }

  section {
    padding: 56px 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .nav a.hide-sm {
    display: none;
  }

  .mock-board {
    gap: 7px;
    padding: 10px;
  }

  .k {
    padding: 8px 7px 7px 10px;
    font-size: 11px;
  }
}
