/* Supr Labs — shared stylesheet */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #17181c;
  --muted: #5c5f6a;
  --border: #e6e5e2;
  --accent: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #eeecfd;
  --radius: 16px;
  --container: 72rem;
  --shadow: 0 1px 2px rgba(23, 24, 28, 0.04);
  --shadow-hover: 0 12px 24px -12px rgba(67, 56, 202, 0.25);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131318;
    --surface: #1b1c22;
    --ink: #f3f3f5;
    --muted: #a3a3ad;
    --border: #2c2d34;
    --accent: #8b83f6;
    --accent-ink: #14141a;
    --accent-soft: #232145;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 12px 24px -12px rgba(139, 131, 246, 0.35);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

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

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark img {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}

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

.nav-cta {
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav-links.is-open {
    max-height: 20rem;
  }

  .nav-links li {
    border-top: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links {
    transition: none;
  }
}

/* No-JS fallback: nav-links are always visible; toggle button is hidden
   without JS via the [hidden] attribute set on load. */
.nav-toggle[hidden] {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

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

.hero {
  padding-block: 5.5rem 4rem;
  background-image: radial-gradient(
    circle at 15% 0%,
    color-mix(in srgb, var(--accent) 8%, transparent),
    transparent 55%
  );
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.hero .gradient-word {
  background-image: linear-gradient(
    100deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 40%, #f97316)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

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

.section {
  padding-block: 4rem;
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 0 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

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

/* ---------- Cards ---------- */

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

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

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.85rem;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Prose (about / privacy) ---------- */

.prose {
  max-width: 42rem;
}

.prose h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.prose > p:first-of-type {
  font-size: 1.1rem;
  color: var(--muted);
}

.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul {
  padding-left: 1.25rem;
}

.page-head {
  padding-block: 4.5rem 1rem;
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: #15803d;
}

.form-status[data-state="error"] {
  color: #b91c1c;
}

.contact-alt {
  color: var(--muted);
}

.contact-alt a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.email-embed {
  display: inline-block;
  width: 180px;
  height: 22px;
  vertical-align: middle;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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