:root {
  --bg: #050510;
  --surface: rgba(17, 22, 41, 0.75);
  --surface-strong: rgba(17, 22, 41, 0.92);
  --accent: #7cf2d0;
  --accent-strong: #33d9a6;
  --primary: #83a6ff;
  --primary-strong: #3257ff;
  --text: #f4f8ff;
  --muted: rgba(244, 248, 255, 0.72);
  --border: rgba(130, 164, 255, 0.2);
  --shadow: 0 30px 80px rgba(28, 54, 117, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  background: radial-gradient(circle at 20% 20%, rgba(60, 90, 180, 0.15), transparent),
    radial-gradient(circle at 80% 0%, rgba(124, 242, 208, 0.15), transparent),
    var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
  min-height: 100%;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(130, 166, 255, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1.5rem;
  background: var(--surface-strong);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: top 0.3s ease;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.coming-soon {
  align-items: center;
  backdrop-filter: blur(22px);
  background: rgba(5, 8, 20, 0.86);
  display: grid;
  inset: 0;
  padding: 2rem;
  place-items: center;
  position: fixed;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.coming-soon[data-modal-open="false"] {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.coming-soon__dialog {
  background: rgba(9, 14, 30, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 420px;
  padding: 2.5rem 2.5rem 2.2rem;
  position: relative;
  text-align: center;
}

.coming-soon__dialog h2 {
  margin-bottom: 0.75rem;
}

.coming-soon__dialog p:last-of-type {
  color: var(--muted);
  margin-bottom: 0;
}

.coming-soon__close {
  align-items: center;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.6rem;
  font-weight: 300;
  inset: 1.2rem 1.2rem auto auto;
  line-height: 1;
  padding: 0.25rem;
  position: absolute;
  transition: color 0.2s ease;
}

.coming-soon__close:hover,
.coming-soon__close:focus {
  color: var(--text);
}

.shell {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin: 1rem auto;
  max-width: 1100px;
  padding: 0.5rem 1.5rem;
  position: sticky;
  top: 1rem;
  z-index: 50;
  box-shadow: var(--shadow);
}
/* Badge that sits OUTSIDE the shell bubble, to the LEFT */
.auth-badge {
  position: absolute;       /* positioned relative to .shell (sticky is positioned) */
  right: 100%;              /* place the badge immediately to the left of the shell */
  margin-right: 100px;       /* gap between badge and bubble edge */
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(12, 18, 38, 0.78);
  border: 1px solid rgba(130, 164, 255, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  box-shadow: var(--shadow);
  pointer-events: none;     /* not part of the menu */
  z-index: 60;              /* above page content, below modals */
}

.auth-badge__email {
  color: var(--accent);
  font-weight: 600;
}
.auth-badge[hidden] {
  display: none !important;
}

@media (min-width: 841px) {
  .auth-badge {               /* desktop badge shows and sits left of bubble */
    display: inline-flex;
    position: absolute;
    right: 100%;
    margin-right: 100px;      /* your preferred spacing */
    top: 50%;
    transform: translateY(-50%);
    padding: 0.35rem 0.9rem;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(12, 18, 38, 0.78);
    border: 1px solid rgba(130, 164, 255, 0.45);
    border-radius: 999px;
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .auth-badge--mobile {
    display: none;            /* hide mobile version on desktop */
  }
}


.nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  position: relative;
}


.nav__brand {
  align-items: center;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 600;
  gap: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.nav__brand:hover, 
.nav__brand:focus {
  text-decoration: none;
}

.nav__brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.nav__logo {
  display: block;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 6px 18px rgba(124, 242, 208, 0.35));
}

.nav__cluster {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.nav__links {
  align-items: center;
  display: flex;
  gap: 2rem;

}

.nav__link {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
}

.nav__cta {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav__status {
  align-items: center;
  background: rgba(12, 18, 38, 0.78);
  border: 1px solid rgba(130, 164, 255, 0.45);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.8rem;
  gap: 0.45rem;
  line-height: 1.2;
  padding: 0.35rem 1rem;
  white-space: nowrap;
}

.nav__status[hidden] {
  display: none !important;
}

.nav__status-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__status-email {
  color: var(--accent);
  font-weight: 500;
}
.section-heading {
  display: flex;
  justify-content: space-evenly; /* pushes button to the right */
  align-items: center;
  margin-bottom: 1.5rem; /* space before the cards */
}

.section-heading h2 {
  margin: 0; /* keep text aligned properly */
}

.btn--tiny {
  font-size: 0.85rem;    /* keep text readable */
  font-weight: 400;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}


.btn {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 500;
  justify-content: center;
  padding: 0.55rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  box-shadow: 0 12px 30px rgba(50, 87, 255, 0.35);
  color: #ffffff;
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #052620;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav__toggle-icon {
  display: block;
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1100px;
  padding: 0 1.5rem;
}

.hero__canvas-wrapper {
  aspect-ratio: 4 / 5;
  background: rgba(9, 15, 34, 0.85);
  border: 1px solid rgba(130, 166, 255, 0.18);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.hero__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}



.hero__poster[data-visible="false"] {
  opacity: 0;
}

.hero__canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.hero__fallback {
  align-items: center;
  color: var(--muted);
  display: none;
  font-size: 0.95rem;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: absolute;
  text-align: center;
}

.hero__fallback[data-visible="true"] {
  display: flex;
}

.hero__copy {
  align-self: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero__convai {
  background: var(--surface);
  border: 1px solid rgba(131, 166, 255, 0.25);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-top: 2.25rem;
  padding: 1.5rem;
  position: relative;
}

.hero__convai::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(124, 242, 208, 0.22),
      transparent 65%
    ),
    radial-gradient(circle at 80% 0%, rgba(131, 166, 255, 0.2), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hero__convai-frame {
  aspect-ratio: 3 / 4;
  background: rgba(5, 10, 25, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(124, 242, 208, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero__convai-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 242, 208, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.hero__convai-frame > * {
  display: block;
  height: 100%;
  width: 100%;
}

.hero__convai-frame > elevenlabs-convai {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

.hero__convai-caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 0;
  position: relative;
  z-index: 1;
}

.story {
  margin: 5rem auto;
  max-width: 1000px;
  padding: 0 1.5rem;
}

.story__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.story__phase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-band {
  background: linear-gradient(120deg, rgba(124, 242, 208, 0.1), rgba(131, 166, 255, 0.12));
  border-block: 1px solid rgba(131, 166, 255, 0.25);
  margin: 4rem 0;
  padding: 3rem 1.5rem;
}

.cta-band__content {
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.testimonials {
  margin: 5rem auto;
  max-width: 900px;
  padding: 0 1.5rem 5rem;
}

.testimonials__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.footer {
  background: rgba(4, 8, 20, 0.85);
  border-top: 1px solid rgba(130, 166, 255, 0.2);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 3rem 1.5rem 4rem;
}

.footer__tagline {
  color: var(--muted);
  max-width: 280px;
}

.footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

@media (max-width: 840px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav__cluster {
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .nav__links {
    gap: 0.9rem;
    align-items: flex-start;
    background: var(--surface-strong);
    border-radius: 18px;
    border: 1px solid var(--border);
    border-width: 0;
    box-shadow: none;
    flex-direction: column;
    inset: 72px 1.5rem auto;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease,
      padding 0.25s ease, border-width 0.2s ease, box-shadow 0.25s ease;
    width: calc(100% - 3rem);
    z-index: 100;
  }

  .nav__status {
    margin: 0.75rem auto 0;
  }

  .nav__links[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    max-height: 600px;
    padding: 1.5rem;
    border-width: 1px;
    box-shadow: var(--shadow);
  }

  .nav__cta {
    margin-left: 0;
    gap: 0.9rem;
    flex-direction: column;
    width: 100%;
  }

  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav__links > a,
  .nav__links .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.9rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;               /* no underline for buttons */
    box-shadow: 0 12px 30px rgba(50, 87, 255, 0.35);
  }

  /* Make the text buttons (How it works / Stories / Log in) look like Schedule Scan */
  .nav__links > a.nav__link {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  }

  /* Optional: give each link its own color while keeping the same style */
  .nav__links > a.nav__link:nth-of-type(1) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); /* Home */
  }
  .nav__links > a.nav__link:nth-of-type(2) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); /* How it works */
  }
  .nav__links > a.nav__link:nth-of-type(3) {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);   /* Stories */
    color: #052620;
  }
  .nav__links > a.nav__link:nth-of-type(4) {
    background: linear-gradient(135deg, #a98aff 0%, #6e53ff 100%);                      /* Sign Up (purple) */
    color: #fff;
  }

  /* Keep hover/focus clean (no underline) */
  .nav__links > a:hover,
  .nav__links > a:focus {
    text-decoration: none;
    transform: translateY(-2px);
  }
}

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