:root {
  --bg: #ffffff;
  --fg: #0b0d11;
  --muted: #5b6270;
  --border: #e5e7eb;
  --btn: #90cfff;
  --btn-fg: #ffffff;
  --accent: #3a0ee9;
  --accent2: #9874f3;
  --accent-tint: rgba(14, 165, 233, .12);
}

html.dark {
  --bg: #0b0d11;
  --fg: #f3f4f6;
  --muted: #9aa1ad;
  --border: #1f2937;
  --btn: #f3f4f6;
  --btn-fg: #0b0d11;
  --accent: #818cf8;
  --accent2: #c084fc;
  --accent-tint: rgba(129, 140, 248, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 60px;
  height: 28px;
  border-radius: 14px;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.theme-toggle::after {
  content: '🌞';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s;
}

html.dark .theme-toggle {
  background: var(--accent);
}

html.dark .theme-toggle::after {
  content: '🌙';
  transform: translateX(32px);
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 3rem 0 1rem;
}

.subhead {
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.2rem;
}

.cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--btn), var(--accent), var(--accent2)) left / 200% 100%;
  color: var(--btn-fg);
  text-decoration: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  transition: background-position 0.5s, transform 0.3s, box-shadow 0.3s;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 0 6px #c4d1ff;
}

.cta:hover {
  background-position: right;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero image styles */
.hero-image {
  display: block;
  margin: 0 auto 2rem;
  width: 40%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

/* Larger on phones */
@media (max-width: 768px) {
  .hero-image {
    width: 60%;
    max-width: 400px;
  }
}

html.dark .cta {
  box-shadow:
    0 0 0 4px #0b0d11,
    0 0 0 6px #818ad8;
}

html.dark .cta:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}

.email-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  margin-top: 1rem;
  color: var(--muted);
}

.cta:hover + .email-reveal,
.cta:focus + .email-reveal {
  opacity: 1;
  transform: translateY(0);
}

button:focus,
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}



footer {
  text-align: center;
  padding: 2rem 1rem;
  font-family: "Plus Jakarta Sans", "Nunito", "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  padding: 0 1rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .theme-toggle {
    top: 1rem;
    right: auto;
    left: 1rem;
  }

  body {
    padding-bottom: 60px;
  }

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1rem;
    z-index: 100;
  }
}

/* === Sticky pill footer nav (restored) === */
:root {
  /* light/dark friendly chip tones */
  --surface: rgba(255, 255, 255, 0.75);
  --chip-bg: #f3f4f6;
}

html.dark {
  --surface: rgba(11, 13, 17, 0.65);
  --chip-bg: rgba(255, 255, 255, 0.06);
}

/* keep the semantic footer clean */
footer.site-footer {
  background: transparent;
  border: 0;
  padding: 0;
}

/* the pill container */
.footer-pill {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 10px 24px rgba(0,0,0,.16),
    0 2px 6px rgba(0,0,0,.08);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  backdrop-filter: saturate(120%) blur(8px);
  z-index: 1000;
}

/* chip buttons */
.footer-pill .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* centers text even as flex items */
  white-space: nowrap;
  gap: .5rem;
  padding: .65rem 1.1rem;
  border-radius: 9999px;
  background: var(--chip-bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;           /* slightly smaller than your CTA (1.1rem) */
  text-decoration: none;
  line-height: 1;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease;
}

.footer-pill .chip:hover {
  background: #5F56DD;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

.footer-pill .chip.active {
  background: #0b0d11;  /* light mode: almost black */
  color: #ffffff;       /* white text for max readability */
  cursor: default;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
  font-weight: 700;
}

html.dark .footer-pill .chip.active {
  background: #f3f4f6;  /* dark mode: almost white */
  color: #0b0d11;       /* dark text for contrast */
}

.footer-pill .chip:active { transform: translateY(0); box-shadow: none; }
.footer-pill .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* mobile: comfy size but not full width */
@media (max-width: 640px) {
  .footer-pill {
    width: min(560px, calc(100% - 40px));   /* inset, not edge-to-edge */
    justify-content: space-between;
    gap: 6px;
  }
  .footer-pill .chip {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
  }
}

/* override the old mobile footer styles so they don't fight this pill */
@media (max-width: 768px) {
  footer { 
    position: static !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
}

/* keep the active look steady on hover/focus */
.footer-pill .chip.active:hover,
.footer-pill .chip.active:focus {
  background: inherit;
  color: inherit;
  transform: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

/* Mobile: use short label for "Terms of Service" */
.footer-pill .label-short { display: none; }

@media (max-width: 640px) {
  .footer-pill .label-full  { display: none; }
  .footer-pill .label-short { display: inline; }
}
