/* GraSnoW Static Site — mirrors Next.js landing design */
:root {
  --background: #030504;
  --foreground: #f4f7f6;
  --charcoal: #0c0e0d;
  --graphite: #1a1d1c;
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --cyan: #38bdf8;
  --max-w: 80rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(16, 185, 129, 0.35); color: white; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030504; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16,185,129,0.4); }

body.grain::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; opacity: 0.03; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; font-size: 0.875rem; font-weight: 500;
  transition: all 0.3s; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid rgba(16,185,129,0.5); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1rem; min-width: 11.25rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.75rem; }
.btn-primary {
  background: rgba(16,185,129,0.2); color: white;
  border-color: rgba(16,185,129,0.3); backdrop-filter: blur(24px);
}
.btn-primary:hover {
  background: rgba(16,185,129,0.3); border-color: rgba(16,185,129,0.5);
  box-shadow: 0 0 40px rgba(16,185,129,0.25);
}
.btn-secondary {
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.1); backdrop-filter: blur(24px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.7); border: none; }
.btn-ghost:hover { color: white; background: rgba(255,255,255,0.05); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.5s;
}
.navbar.scrolled {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.4); backdrop-filter: blur(24px);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 1024px) { .navbar-inner { height: 5rem; padding: 0 2rem; } }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-mark {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; color: #6ee7b7;
  background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(6,182,212,0.2));
  border: 1px solid rgba(16,185,129,0.2);
}
.logo-text { font-size: 1.125rem; font-weight: 600; color: white; }
.logo-text span { color: var(--emerald); }
.nav-links {
  display: none;
  gap: 2rem;
  align-items: center;
}
.nav-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.nav-links a:hover { color: white; }

.navbar-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Hamburger hidden by default (desktop); shown only on phone */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Section headings */
.section-heading { max-width: 56rem; margin: 0 auto; text-align: center; }
.section-heading.left { text-align: left; margin: 0; }
.eyebrow {
  margin-bottom: 1rem; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em; color: rgba(16,185,129,0.8);
}
.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.1; color: white;
}
.section-subtitle {
  margin-top: 1.5rem; font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6; color: rgba(255,255,255,0.55);
}

/* Glass card */
.glass-card {
  border-radius: 1rem; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); padding: 1.5rem;
  backdrop-filter: blur(24px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px -20px rgba(16,185,129,0.2);
}

/* Sections */
section { position: relative; }
.section-pad { padding: 8rem 0; }
@media (min-width: 768px) { .section-pad { padding: 10rem 0; } }
.bg-radial-emerald::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(16,185,129,0.04), transparent 60%);
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center; overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
}
.hero::after {
  content: "";
  pointer-events: none;
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent, transparent, #030504);
}
.hero-overlay-1 {
  pointer-events: none; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16,185,129,0.12), transparent 50%);
}
.hero-overlay-2 {
  pointer-events: none; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 40% at 80% 60%, rgba(56,189,248,0.06), transparent 50%);
}
.hero-content {
  position: relative; z-index: 10; text-align: center;
  padding: 8rem 1.5rem 6rem; max-width: var(--max-w); margin: 0 auto;
}
.hero-eyebrow {
  margin-bottom: 1.5rem; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.25em; color: rgba(16,185,129,0.8);
  animation: fadeUp 0.8s 0.2s var(--ease) both;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em; color: white; max-width: 64rem; margin: 0 auto;
  animation: fadeUp 1s 0.35s var(--ease) both;
}
.hero-title .gradient {
  background: linear-gradient(to right, white, white, rgba(255,255,255,0.5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  margin: 2rem auto 0; max-width: 42rem; font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.6; color: rgba(255,255,255,0.55);
  animation: fadeUp 0.9s 0.55s var(--ease) both;
}
.hero-actions {
  margin-top: 3rem; display: flex; flex-direction: column; align-items: center;
  gap: 1rem; animation: fadeUp 0.9s 0.7s var(--ease) both;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; } }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: fadeIn 1s 1.5s both;
}
.scroll-indicator span {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(255,255,255,0.35);
}
.scroll-line {
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Problem grid */
.grid-4 { display: grid; gap: 1.5rem; margin-top: 5rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.glass-card h3 { font-size: 1.25rem; font-weight: 600; color: white; }
.glass-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.5); }

/* How it works — horizontal scroll */
#how-it-works {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hiw-header { padding: 8rem 1.5rem 4rem; max-width: var(--max-w); margin: 0 auto; }
@media (min-width: 768px) { .hiw-header { padding: 10rem 2rem 5rem; } }
.hiw-swipe-hint {
  display: none;
}
.hiw-pin {
  position: relative;
  width: 100%;
}
.hiw-scroll {
  width: 100%;
}
.hiw-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  padding: 2rem 1.5rem 4rem;
}
@media (min-width: 1024px) {
  .hiw-pin {
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .hiw-track {
    gap: 4rem;
    padding: 0 max(2rem, calc((100vw - 80rem) / 2 + 2rem));
  }
}
.hiw-step {
  flex-shrink: 0; width: 280px; display: flex; flex-direction: column;
  align-items: center; gap: 2rem;
}
@media (min-width: 1024px) { .hiw-step { width: 320px; } }
.hiw-step-label { font-size: 0.875rem; font-weight: 500; color: rgba(16,185,129,0.8); }
.hiw-step-desc { max-width: 240px; text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* Phone mockup */
.phone-wrap { position: relative; width: 260px; margin: 0 auto; }
@media (min-width: 640px) { .phone-wrap { width: 280px; } }
.phone-wrap.float-anim { animation: phoneFloat 5s ease-in-out infinite; }
.phone-glow {
  position: absolute; inset: -2rem; border-radius: 3rem;
  background: rgba(16,185,129,0.1); filter: blur(48px);
}
.phone-frame {
  position: relative; border-radius: 2.5rem; border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(to bottom, #1a1d1c, #0d0f0e); padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.phone-notch {
  position: absolute; left: 50%; top: 0.75rem; z-index: 10;
  width: 7rem; height: 1.5rem; transform: translateX(-50%);
  border-radius: 9999px; background: rgba(0,0,0,0.8);
}
.phone-screen {
  position: relative; aspect-ratio: 9/19.5; overflow: hidden;
  border-radius: 2.2rem; background: #0a0c0b;
}
.phone-ui { display: flex; flex-direction: column; height: 100%; padding: 1.25rem; }
.phone-ui-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.phone-ui-header span:first-child { font-size: 10px; font-weight: 500; color: rgba(16,185,129,0.9); }
.phone-ui-header span:last-child { font-size: 10px; color: rgba(255,255,255,0.4); }
.phone-bar { width: 4rem; height: 0.5rem; border-radius: 9999px; background: rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.phone-label { font-size: 1.125rem; font-weight: 600; color: white; letter-spacing: -0.02em; }
.phone-desc { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1.5; color: rgba(255,255,255,0.45); }
.phone-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.phone-btn-primary {
  height: 2.5rem; border-radius: 0.75rem;
  background: rgba(16,185,129,0.2); border: 1px solid rgba(16,185,129,0.2);
}
.phone-btn { height: 2.5rem; border-radius: 0.75rem; background: rgba(255,255,255,0.05); }
.phone-caption { margin-top: 1rem; text-align: center; font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.7); }

/* App experience */
.app-grid-wrap {
  position: relative;
  margin-top: 6rem;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.app-grid-bg {
  position: absolute; inset: 0; border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02);
  backdrop-filter: blur(48px);
}
.app-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 64rem;
  padding: 2rem;
}
.app-grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 768px) {
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .app-grid-item:nth-child(2) .phone-wrap,
  .app-grid-item:nth-child(3) .phone-wrap {
    transform: scale(1.08);
  }
}

/* Features */
.features-grid {
  display: grid; gap: 1.5rem; margin-top: 5rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  border-radius: 1rem; border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  padding: 2rem; backdrop-filter: blur(24px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.feature-card:hover {
  transform: translateY(-12px);
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 30px 80px -30px rgba(16,185,129,0.25);
}
.feature-icon {
  width: 3rem; height: 3rem; display: flex; align-items: center; justify-content: center;
  border-radius: 0.75rem; border: 1px solid rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.1); color: var(--emerald); margin-bottom: 1.5rem;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 600; color: white; }
.feature-card p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.5); }

/* Provider */
.provider-grid { display: grid; gap: 4rem; align-items: center; margin-top: 0; }
@media (min-width: 1024px) { .provider-grid { grid-template-columns: 1fr 1fr; } }
.dashboard {
  position: relative; border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(12,14,13,0.9); padding: 1.5rem; backdrop-filter: blur(24px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.dashboard-glow {
  position: absolute; inset: -1rem; border-radius: 1.5rem;
  background: rgba(16,185,129,0.1); filter: blur(48px); z-index: -1;
}
.dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dashboard-header span:first-child { font-size: 0.875rem; font-weight: 500; color: white; }
.badge-live {
  padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem;
  background: rgba(16,185,129,0.2); color: var(--emerald);
}
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat-box {
  border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03); padding: 1rem;
}
.stat-box p:first-child { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.stat-box p:last-child { margin-top: 0.25rem; font-size: 1.5rem; font-weight: 600; color: white; }
.job-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.job-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02);
}
.job-item span:first-child { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.job-item span:last-child { font-size: 0.75rem; color: var(--emerald); }
.benefits-grid { display: grid; gap: 1.5rem; margin-top: 4rem; }
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit-card {
  border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02); padding: 1.25rem; backdrop-filter: blur(24px);
}
.benefit-card svg { margin-bottom: 0.75rem; color: rgba(56,189,248,0.8); }
.benefit-card h4 { font-weight: 500; color: white; }
.benefit-card p { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(255,255,255,0.45); }

/* Timeline (Recurring) — one card per item; no mobile/desktop duplication */
.timeline {
  position: relative;
  margin-top: 5rem;
}
.timeline-line {
  display: none;
  position: absolute;
  left: 50%;
  top: 1rem;
  height: calc(100% - 2rem);
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(16,185,129,0.5), rgba(6,182,212,0.3), rgba(16,185,129,0.2));
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-card {
  width: 100%;
  max-width: 20rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 1.5rem;
  backdrop-filter: blur(24px);
}
.timeline-card .season {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(16,185,129,0.8);
}
.timeline-card .service {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
}
.timeline-icon {
  display: flex;
  justify-content: center;
  order: -1;
}
.timeline-icon-inner {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(16,185,129,0.3);
  background: #0a0c0b;
  box-shadow: 0 0 0 8px #0a0c0b;
  color: var(--emerald);
}
.timeline-icon-inner--snow {
  color: #38bdf8;
}

@media (min-width: 768px) {
  .timeline-line {
    display: block;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 1fr 4rem 1fr;
    grid-template-rows: auto;
    gap: 2.5rem;
    margin-bottom: 5rem;
    align-items: center;
  }

  .timeline-icon {
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-card {
    grid-row: 1;
    margin: 0;
  }

  /* Spring–Fall & Year-round: card on the left */
  .timeline-item:nth-child(2) .timeline-card,
  .timeline-item:nth-child(4) .timeline-card {
    grid-column: 1;
    justify-self: end;
    margin-right: 0;
  }

  /* Winter: card on the right */
  .timeline-item:nth-child(3) .timeline-card {
    grid-column: 3;
    justify-self: start;
    margin-left: 0;
  }
}

/* Team */
.team-grid { display: grid; gap: 2rem; margin-top: 5rem; max-width: 56rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.founder-card {
  border-radius: 1rem; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); padding: 2rem; backdrop-filter: blur(24px);
}
.founder-photo {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5);
}
.founder-photo img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(0.92);
  object-position: center 26%; transform-origin: center 26%;
}
.founder-placeholder {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.75rem; border-radius: 0.75rem;
  border: 1px dashed rgba(255,255,255,0.15); background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.35);
}
.founder-placeholder span { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.founder-info { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.founder-info h3 { font-size: 1.25rem; font-weight: 500; color: white; }
.founder-role { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(16,185,129,0.8); }
.founder-badges { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 10px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}
.badge-pill svg { width: 14px; height: 14px; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.founder-tagline { margin-top: 1rem; font-size: 0.875rem; line-height: 1.6; color: rgba(255,255,255,0.55); text-align: center; }

/* Waitlist CTA */
.waitlist-cta { position: relative; padding: 8rem 0 12rem; text-align: center; overflow: hidden; }
@media (min-width: 768px) { .waitlist-cta { padding: 12rem 0; } }
.cta-glow-1 {
  position: absolute; left: 50%; top: 50%; width: 600px; height: 600px;
  transform: translate(-50%, -50%); border-radius: 9999px;
  background: rgba(16,185,129,0.15); filter: blur(120px);
}
.cta-glow-2 {
  position: absolute; left: 33%; top: 33%; width: 400px; height: 400px;
  border-radius: 9999px; background: rgba(6,182,212,0.1); filter: blur(100px);
}
.cta-content { position: relative; max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; }
.cta-title { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.1; color: white; }
.cta-actions {
  margin-top: 3rem; display: flex; flex-direction: column; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
@media (min-width: 640px) { .cta-actions { flex-direction: row; justify-content: center; } }

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05); background: black;
  padding: 4rem 0 max(4rem, calc(4rem + env(safe-area-inset-bottom)));
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; padding: 0 2rem; }
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .footer-brand { align-items: flex-start; } }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.4); }
.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5); transition: all 0.2s;
}
.social-link:hover { border-color: rgba(255,255,255,0.2); color: white; }
.social-link svg { width: 1rem; height: 1rem; }
.footer-contact { text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.4); }
@media (min-width: 768px) { .footer-contact { text-align: right; } }
.footer-contact a:hover { color: white; }
.footer-copy { margin-top: 0.5rem; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 101;
  width: calc(100% - 2rem); max-width: 28rem;
  transform: translate(-50%, -50%) scale(0.95);
  border-radius: 1rem; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,12,11,0.95); padding: 1.5rem;
  backdrop-filter: blur(24px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.modal.modal-lg { max-width: 42rem; }
.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close {
  position: absolute; right: 1rem; top: 1rem;
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: white; opacity: 0.7; cursor: pointer;
  border-radius: 0.25rem;
}
.modal-close:hover { opacity: 1; }
.modal h2 { font-size: 1.125rem; font-weight: 600; color: white; padding-right: 2rem; }
.modal-desc { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.form-group { margin-top: 1rem; }
.form-group label { display: block; font-size: 0.875rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.8); }
.form-input {
  width: 100%; height: 3rem; padding: 0 1rem; border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
  color: white; font-size: 0.875rem; backdrop-filter: blur(24px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus {
  outline: none; border-color: rgba(16,185,129,0.3);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.4);
}
.role-toggle { display: flex; gap: 0.5rem; }
.role-btn {
  flex: 1; padding: 0.625rem 1rem; border-radius: 0.75rem; font-size: 0.875rem;
  text-transform: capitalize; cursor: pointer; transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
}
.role-btn.active {
  border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.2); color: white;
}
.form-message { margin-top: 0.5rem; font-size: 0.875rem; }
.form-message.success { color: var(--emerald); }
.form-message.error { color: #f87171; }
.demo-video {
  margin-top: 1rem; aspect-ratio: 16/9; border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 2rem; text-align: center;
}
.demo-play {
  width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1); font-size: 1.5rem;
}
.demo-video p { font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.demo-video code {
  padding: 0.125rem 0.5rem; border-radius: 0.25rem;
  background: rgba(255,255,255,0.1); color: rgba(16,185,129,0.9); font-size: 0.8em;
}

/* Scroll reveal — visible by default (works without JS on phone) */
.reveal {
  opacity: 1;
  transform: none;
}
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner { animation: spin 1s linear infinite; width: 1rem; height: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ——— Mobile & touch optimizations ——— */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

.navbar {
  padding-top: env(safe-area-inset-top);
}

.navbar-inner {
  gap: 0.75rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Desktop navbar: links in center, no hamburger */
@media (min-width: 768px) {
  .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-right {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: auto;
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav-menu {
    position: fixed;
    top: calc(4rem + env(safe-area-inset-top));
    left: 0;
    right: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem max(1rem, env(safe-area-inset-left)) 1.5rem max(1rem, env(safe-area-inset-right));
    background: rgba(3, 5, 4, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s, visibility 0.35s;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-menu .nav-links a {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

}

/* Touch-friendly targets */
.btn,
.social-link,
.nav-toggle,
.role-btn,
.modal-close {
  min-height: 44px;
  min-width: 44px;
}

.btn-sm {
  min-height: 44px;
}

/* iOS input zoom prevention */
.form-input {
  font-size: 16px;
}

/* Hero mobile */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-content {
  padding: calc(5rem + env(safe-area-inset-top)) 1rem 5rem;
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.15em;
  }
}

.hero-actions .btn-lg {
  width: 100%;
  max-width: 20rem;
}

.scroll-indicator {
  bottom: max(1.5rem, env(safe-area-inset-bottom));
}

/* Section spacing mobile */
@media (max-width: 767px) {
  .section-pad {
    padding: 5rem 0;
  }

  .hiw-header {
    padding: 5rem 1rem 2rem;
  }

  .grid-4,
  .features-grid {
    margin-top: 3rem;
  }

  .section-heading {
    padding: 0 0.25rem;
  }

  .founder-card {
    padding: 1.25rem;
  }

  .glass-card {
    padding: 1.25rem;
  }
}

/* How It Works — phone/tablet: horizontal swipe + vertical page scroll */
@media (max-width: 1023px) {
  #how-it-works {
    overflow: visible;
  }

  .hiw-pin {
    min-height: auto;
    overflow: visible;
  }

  .hiw-swipe-hint {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 0 1rem 0.75rem;
    letter-spacing: 0.05em;
  }

  .hiw-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    /* Allow both axes until JS locks intent on first move */
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }

  .hiw-scroll.is-vertical-scroll {
    touch-action: pan-y;
    overflow-x: hidden;
  }

  .hiw-scroll.is-horizontal-scroll {
    touch-action: pan-x;
    overflow-x: auto;
  }

  .hiw-scroll::-webkit-scrollbar {
    display: none;
  }

  .hiw-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    gap: 1rem;
    padding: 0 1rem 2rem;
  }

  .hiw-step {
    width: min(78vw, 250px);
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: normal;
  }

  .hiw-step .phone-wrap {
    width: min(78vw, 250px);
  }
}

/* App experience mobile */
@media (max-width: 767px) {
  .app-grid-wrap {
    margin-top: 3rem;
    min-height: auto;
    padding: 0;
  }

  .app-grid-bg {
    border-radius: 1rem;
    inset: 0.5rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem 1rem 2rem;
  }

  .app-grid-item {
    width: 100%;
  }

  .app-grid-item .phone-wrap {
    width: min(72vw, 240px);
    margin: 0 auto;
  }

  .app-grid-item:nth-child(2) .phone-wrap,
  .app-grid-item:nth-child(3) .phone-wrap {
    transform: none;
  }

  .phone-wrap.float-anim {
    animation: none;
  }

  .phone-glow {
    inset: -1rem;
    filter: blur(24px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .app-grid-wrap {
    min-height: auto;
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .app-grid-item .phone-wrap {
    width: min(36vw, 220px);
  }
}

/* Provider dashboard mobile */
@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .stat-box p:last-child {
    font-size: 1.25rem;
  }

  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* CTA mobile */
@media (max-width: 639px) {
  .cta-actions .btn-lg {
    width: 100%;
    max-width: 20rem;
  }

  .cta-glow-1 {
    width: min(100vw, 400px);
    height: min(100vw, 400px);
  }
}

/* Modals mobile */
@media (max-width: 767px) {
  .modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%);
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .modal.open {
    transform: translateY(0);
  }

  .modal.modal-lg {
    max-width: none;
  }
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* Disable hover lift on touch devices */
@media (hover: none) {
  .glass-card:hover,
  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-wrap.float-anim {
    animation: none;
  }

  .scroll-line {
    animation: none;
  }
}

/* Lighter effects on mobile for performance */
@media (max-width: 767px) {
  .glass-card,
  .feature-card,
  .founder-card,
  .dashboard,
  .btn-primary,
  .btn-secondary,
  .app-grid-bg {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.grain::after {
    display: none;
  }
}

/* Prevent layout overflow */
main,
section,
.container {
  max-width: 100%;
}

#app .container {
  overflow: visible;
}

/* Navbar: one CTA on mobile, never duplicate */
@media (max-width: 767px) {
  .navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.5rem;
  }

  .logo {
    min-width: 0;
  }

  .nav-right {
    justify-self: end;
  }

  .navbar-cta {
    justify-self: end;
    min-width: auto;
    width: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.75rem;
  }

  .navbar-cta.btn {
    min-width: auto;
  }
}

@media (max-width: 380px) {
  .navbar-cta {
    font-size: 0;
  }

  .navbar-cta::after {
    content: "Join";
    font-size: 0.75rem;
  }
}

img {
  height: auto;
}
