/* ============================================================
   DrillPass — Shared Design System
   Used across marketing pages and dashboards.
   ============================================================ */

:root {
  /* Brand palette */
  --ink: #0c1a2b;
  --ink-soft: #16293c;
  --brand: #0ea371;
  --brand-600: #0b8a60;
  --brand-700: #086b4a;
  --brand-tint: #e7f7f0;
  --lime: #c8f94a;
  --lime-dark: #a6e22e;

  /* Neutrals */
  --paper: #ffffff;
  --cloud: #f3f6f8;
  --cloud-2: #eef2f5;
  --line: #e2e8ed;
  --line-soft: #edf1f4;
  --text: #14222e;
  --muted: #5c6b79;
  --muted-2: #8595a2;

  /* Status */
  --green: #16a34a;
  --green-tint: #e7f6ec;
  --amber: #d97706;
  --amber-tint: #fdf3e3;
  --red: #dc2626;
  --red-tint: #fbeaea;
  --blue: #2563eb;
  --blue-tint: #e8effc;

  /* Shape & depth */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 43, 0.06), 0 1px 3px rgba(12, 26, 43, 0.05);
  --shadow: 0 6px 20px rgba(12, 26, 43, 0.08);
  --shadow-lg: 0 18px 50px rgba(12, 26, 43, 0.14);

  --maxw: 1160px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-tint);
  border-radius: 999px;
  padding: 6px 14px;
}

.muted { color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #06101c; box-shadow: var(--shadow); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-dark); box-shadow: 0 8px 24px rgba(166, 226, 46, 0.4); }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-600); box-shadow: 0 8px 24px rgba(14, 163, 113, 0.32); }

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

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cloud-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill-green { background: var(--green-tint); color: #137a3a; }
.pill-amber { background: var(--amber-tint); color: #a45a07; }
.pill-red { background: var(--red-tint); color: #b91c1c; }
.pill-blue { background: var(--blue-tint); color: #1d4ed8; }
.pill-ink { background: var(--ink); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card-flat { box-shadow: none; }
.card-pad-sm { padding: 18px; }

/* ---------- Marketing site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--brand-600); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------- Brand wordmark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; }
.brand b { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-cloud { background: var(--cloud); }
.section-ink { background: var(--ink); color: #cdd8e2; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9fb0bf;
  padding: 64px 0 32px;
}
.site-footer a { color: #cdd8e2; }
.site-footer a:hover { color: var(--lime); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}
.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--muted-2);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 34ch; font-size: 0.95rem; margin-top: 14px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.textarea { min-height: 110px; resize: vertical; }
.field-row { display: flex; gap: 16px; }
.field-row > * { flex: 1; }

/* ---------- Utility ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.text-sm { font-size: 0.9rem; }
.text-xs { font-size: 0.8rem; }
.fw-600 { font-weight: 600; }
.nowrap { white-space: nowrap; }

/* ---------- Responsive ---------- */
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--line-soft);
    background: #fff;
    padding: 16px 24px 24px;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 12px 0; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line-soft); }
  .section { padding: 60px 0; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { flex-direction: column; gap: 0; }
  .container { padding: 0 18px; }
}
