/* Shared styles for clayvan.io. Plain CSS, no build step. */
:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #141416;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #f4f4f5;
  --nibbl-cyan: #22d3e0;
  --nibbl-pink: #ec5fa0;
  --radius: 16px;
  --max: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; padding: 64px 0 80px; }

/* Type */
h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
}
h3 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 8px; }
p, li { color: #d4d4d8; }
p + p { margin-top: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

/* App card on the home page */
.app-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.app-card:hover { border-color: rgba(34, 211, 224, 0.4); transform: translateY(-2px); }
.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  background: #000;
}
.app-card h3 { margin: 0 0 2px; font-size: 1.15rem; }
.app-card p { color: var(--muted); font-size: 0.95rem; }
.app-card .arrow { margin-left: auto; color: var(--muted); font-size: 1.3rem; }

/* Info list (contact / company details) */
.details {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.details li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.details li:first-child { border-top: 0; }
.details span:first-child { color: var(--muted); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: var(--text);
  color: #000;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.button[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Nibbl page */
.nibbl-hero {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 40px;
}
.accent-nibbl { color: var(--nibbl-cyan); }
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  list-style: none;
  margin-top: 8px;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.features strong { display: block; color: var(--text); margin-bottom: 4px; }
.features span { color: var(--muted); font-size: 0.95rem; }

/* Long-form legal / support text */
.prose ul { padding-left: 20px; margin-top: 8px; }
.prose li + li { margin-top: 6px; }
.prose a:not(.button) { color: var(--nibbl-cyan); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  main { padding: 40px 0 56px; }
  .app-card { gap: 14px; padding: 16px; }
  .app-card img { width: 56px; height: 56px; border-radius: 14px; }
  .app-card .arrow { display: none; }
}
