/* Veltrio Labs — shared stylesheet */

:root {
  --ink: #1a1d23;
  --ink-soft: #4b5160;
  --ink-faint: #6e7686;
  --paper: #ffffff;
  --paper-soft: #f7f8fa;
  --line: #e5e8ee;
  --accent: #3d49c4;
  --accent-deep: #2f3a9e;
  --accent-tint: #eef0fc;
  --ok: #176d4e;
  --ok-tint: #e7f5ee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(26, 29, 35, 0.05), 0 8px 24px rgba(26, 29, 35, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 650;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 46rem;
}

/* ---------- Header ---------- */

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

.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.brand .logo {
  width: 1.75rem;
  height: 1.75rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.35rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Sections ---------- */

main {
  display: block;
}

.section {
  padding: 4rem 0;
}

.section--soft {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 5rem 0 4.5rem;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  max-width: 22ch;
  margin-bottom: 0.5em;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

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

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

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--ok-tint);
  color: var(--ok);
}

.badge--accent {
  background: var(--accent-tint);
  color: var(--accent-deep);
}

/* ---------- Cards & grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card .badge {
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--ink-soft);
}

.card-footer {
  margin-top: 1.25rem;
}

.app-mark {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan h3 {
  margin-bottom: 0.25rem;
}

.plan .price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0;
}

.plan .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.plan ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan ul li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}

.plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-note {
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* ---------- Prose (legal pages) ---------- */

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.3rem;
}

.prose ul {
  padding-left: 1.4rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4rem;
}

.page-meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--paper-soft);
  white-space: nowrap;
}

.compare-table th,
.compare-table td {
  background: var(--paper);
  min-width: 11rem;
}

.compare-table thead th {
  background: var(--paper-soft);
}

.compare-table th[scope="row"] {
  white-space: normal;
  min-width: 13rem;
}

.compare-table td {
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

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

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

.footer-about p {
  color: var(--ink-soft);
  max-width: 24rem;
  margin: 0.75rem 0 0;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--ink-faint);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Misc ---------- */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.center {
  text-align: center;
}

.error-page {
  padding: 6rem 0;
  text-align: center;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 0.2em;
}

.error-page p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */

@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 56rem) {
  h1 {
    font-size: 2.5rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
