/* ==========================================================================
   Pebble — shared stylesheet
   Design language: warm charcoal + UB blue + Pebble sage-green accent.
   Display face: Newsreader (literary serif — companionship, not clinical).
   Body/UI face: Inter.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,300;6..72,400;6..72,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #000000;
  --bg-elevated: #17140f;
  --bg-card: #1b1712;
  --ink: #f2ece0;
  --ink-muted: #a89f8e;
  --ink-faint: #6f6858;
  --line: rgba(242, 236, 224, 0.1);
  --blue-1: #005bbb;
  --blue-2: #0d74d1;
  --blue-grad: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  --blue-tint: #86bdf0;
  --green: #7c9a82;
  --green-glow: rgba(124, 154, 130, 0.55);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* Background texture: faint warm radial glow, fixed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 500px at 50% -10%, rgba(0, 91, 187, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 30%, rgba(124, 154, 130, 0.05), transparent 60%);
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.08; font-weight: 300; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
h3 { font-size: 20px; font-weight: 500; }

p { color: var(--ink-muted); margin: 0; }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-full {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.text-link { font-size: 14px; color: var(--ink-muted); transition: color .2s; }
.nav-links a.text-link:hover { color: var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  padding: 11px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-blue {
  background: var(--blue-grad);
  color: #f8fbff;
}
.btn-blue .btn-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.btn-blue .btn-main { font-size: 15px; font-weight: 600; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px rgba(0, 91, 187, 0.55); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  padding: 10px 22px;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-border-top { border-top: 1px solid var(--line); }

.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Hero ---------- */

.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 { margin: 0 auto 26px; max-width: 820px; }
.hero .lede { margin-bottom: 40px; }

/* Signature element: the real Pebble device, breathing gently with an ambient
   green glow and radar-sweep rings behind it. */

.pebble-visual {
  position: relative;
  width: min(560px, 86vw);
  margin: 70px auto 0;
  aspect-ratio: 1684 / 934;
}

.pebble-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(124, 154, 130, 0.3);
  transform: translate(-50%, -50%) scale(0.62);
  animation: sweep 3.8s ease-out infinite;
}
.pebble-ring.delay { animation-delay: 1.9s; }

.pebble-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  filter: blur(40px);
  animation: breathe 3.8s ease-in-out infinite;
}

.pebble-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: float 6.5s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 62% 68% at 50% 55%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 68% at 50% 55%, black 55%, transparent 100%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.14); opacity: 0.86; }
}
@keyframes sweep {
  0% { transform: translate(-50%, -50%) scale(0.62); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

.visual-caption {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ---------- Stat strip ---------- */

.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
}
.stat-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.stat { flex: 1 1 220px; }
.stat .num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--blue-tint);
  display: block;
  margin-bottom: 6px;
}
.stat .label { font-size: 14px; color: var(--ink-muted); max-width: 260px; }

/* ---------- Flow (Listens / Watches / Responds) ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.flow::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.flow-step { padding: 0 26px; position: relative; }
.flow-step .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px 3px var(--green-glow);
  margin-bottom: 42px;
}
.flow-step .word {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
  display: block;
}
.flow-step p { font-size: 15px; }

/* ---------- Cards grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* ---------- Advisory board ---------- */

.advisor-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.advisor-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(100%);
  border: 1px solid var(--line);
  margin-bottom: 4px;
}
.advisor-name { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.advisor-role { font-size: 13px; color: var(--blue-tint); letter-spacing: 0.03em; }
.advisor-bio { font-size: 14.5px; }
.advisor-links {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.advisor-links a {
  display: inline-flex;
  color: var(--ink-faint);
  transition: color .2s;
}
.advisor-links a:hover { color: var(--blue-tint); }

.panel-note {
  max-width: 640px;
  margin: 46px auto 0;
  text-align: center;
  font-size: 15px;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.cta-band h2 { max-width: 560px; margin: 0 auto 18px; }
.cta-band .lede { margin-bottom: 36px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 13px; color: var(--ink-faint); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Forms ---------- */

.form-page {
  padding: 90px 0 120px;
}
.form-shell {
  max-width: 640px;
  margin: 0 auto;
}
.form-shell h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 14px; }
.form-shell > .lede { margin: 0 0 50px; max-width: none; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  margin-bottom: 8px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  color: var(--ink-muted);
}
.field label .req { color: var(--blue-tint); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 2px;
  outline: none;
  transition: border-color .2s;
}
.field select { appearance: none; background: transparent; }
.field select option { background: var(--bg-elevated); color: var(--ink); }

.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--green); }

.choice-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, color .2s, background .2s;
}
.choice-chip input { display: none; }
.choice-chip.active,
.choice-chip:has(input:checked) {
  border-color: var(--green);
  color: var(--ink);
  background: rgba(124, 154, 130, 0.1);
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 36px 0 30px;
}
.consent-row input { margin-top: 4px; accent-color: var(--green); }
.consent-row .fine { font-size: 12.5px; color: var(--ink-faint); line-height: 1.6; }
.consent-row .fine a { color: var(--ink-muted); text-decoration: underline; }

.form-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-faint);
}
.form-note a { color: var(--green); }

#form-status {
  margin-top: 20px;
  font-size: 14px;
  display: none;
}
#form-status.visible { display: block; }
#form-status.ok { color: var(--green); }
#form-status.err { color: #d98c6b; }

/* ---------- Legal pages ---------- */

.legal-page { padding: 80px 0 120px; }
.legal-shell { max-width: 720px; margin: 0 auto; }
.legal-shell h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 10px; }
.legal-updated { font-size: 13px; color: var(--ink-faint); margin-bottom: 50px; }
.legal-shell h2 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--blue-tint);
  margin: 44px 0 14px;
  letter-spacing: 0.01em;
}
.legal-shell p, .legal-shell li { font-size: 15px; color: var(--ink-muted); margin-bottom: 14px; }
.legal-shell ul { padding-left: 20px; }
.legal-disclaimer {
  margin-top: 50px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3, .flow { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .flow::before { display: none; }
  .flow-step { padding: 0; margin-bottom: 34px; }
  .field-grid { grid-template-columns: 1fr; }
  .nav-links .text-link { display: none; }
  .stat-strip .container { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .pebble-photo, .pebble-glow, .pebble-ring { animation: none !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
