/* Driftless — shared site styles. Calm, dark, atmospheric. No build step. */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Hanken+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #121218;
  --bg-2: #0d0d12;
  --surface: #1c1c24;
  --surface-2: #24242e;
  --text: #f5f1e8;
  --text-dim: rgba(245, 241, 232, 0.64);
  --muted: rgba(245, 241, 232, 0.4);
  --border: rgba(245, 241, 232, 0.1);
  --sage: #9caf88;
  --sage-dim: #6e7f5e;
  --cyan: #3aa8d8;
  --amber: #ffb347;
  --display: "Space Grotesk", ui-sans-serif, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --maxw: 960px;
  --r: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: soft sage/cyan glow + fine grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      60% 50% at 22% 0%,
      rgba(156, 175, 136, 0.16),
      transparent 70%
    ),
    radial-gradient(
      55% 45% at 92% 8%,
      rgba(58, 168, 216, 0.12),
      transparent 70%
    ),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(18, 18, 24, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .mark {
  width: 22px;
  height: 22px;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--text-dim);
}
.nav-links a:hover {
  color: var(--text);
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 96px 0 72px;
  position: relative;
}
.dial {
  width: 132px;
  height: 132px;
  margin: 0 auto 34px;
}
.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h1 .soft {
  color: var(--text-dim);
}
.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--text-dim);
  max-width: 30ch;
  margin: 22px auto 0;
}

/* ---- Buttons ---- */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.btn {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--sage);
  color: #14141a;
}
.btn-primary:hover {
  background: #aebf9a;
  color: #14141a;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text-dim);
  background: rgba(245, 241, 232, 0.02);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--sage-dim);
}
.badge-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---- Sections ---- */
section {
  padding: 64px 0;
}
.section-label {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-intro {
  color: var(--text-dim);
  max-width: 56ch;
  margin-top: 14px;
}

/* quote / story */
.story {
  border-left: 2px solid var(--sage-dim);
  padding: 6px 0 6px 26px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 8px 0;
}
.story em {
  color: var(--sage);
  font-style: normal;
}

/* feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
}
.card .ico {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.12rem;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.96rem;
  color: var(--text-dim);
}

/* how-it-works ping legend */
.legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.legend .item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}
.dot.a {
  background: var(--sage);
}
.dot.b {
  background: var(--cyan);
}
.dot.c {
  background: var(--amber);
}
.dot.c.pulse {
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 179, 71, 0);
  }
}

/* prose (privacy / support) */
.prose {
  padding: 56px 0 80px;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 6px;
}
.prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 34px 0 10px;
}
.prose p,
.prose li {
  color: var(--text-dim);
  margin-bottom: 12px;
}
.prose ul {
  padding-left: 22px;
}
.prose code {
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--text);
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
footer .links {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
}
footer .links a {
  color: var(--text-dim);
}
footer .copy {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- entrance motion ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.d1 {
  animation-delay: 0.05s;
}
.d2 {
  animation-delay: 0.15s;
}
.d3 {
  animation-delay: 0.25s;
}
.d4 {
  animation-delay: 0.35s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .dot.c.pulse {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
