/* Zero global tokens */
:root,
[data-theme="light"] {
  --zero-blue: #8b5cf6;
  --zero-blue-hover: #7c3aed;
  --zero-accent: #ec4899;
  --zero-bg: #f8f9fc;
  --zero-bg-subtle: #f1f3f8;
  --zero-text: #1a1d2e;
  --zero-text-muted: #6b7288;
  --zero-border: #e2e5ee;
  --zero-input-bg: #f1f3f8;
}

[data-theme="dark"] {
  --zero-blue: #8b5cf6;
  --zero-blue-hover: #7c3aed;
  --zero-accent: #ec4899;
  --zero-bg: #0a0a0f;
  --zero-bg-subtle: #12121a;
  --zero-text: #e2e8f0;
  --zero-text-muted: #94a3b8;
  --zero-border: #1e1e2e;
  --zero-input-bg: #1a1a28;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--zero-bg);
  color: var(--zero-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(139, 92, 246, 0.35);
}

/* Landing hero */
.landing-hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
  min-height: calc(100vh - 170px);
}

.landing-split {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2.5rem;
  align-items: center;
  min-height: 0;
}

.landing-panel-left {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.landing-panel-right {
  display: flex;
  justify-content: center;
}

.landing-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--zero-blue);
  line-height: 1.1;
}

.landing-tagline {
  font-size: 17px;
  color: var(--zero-text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-cta .btn {
  display: inline-block;
  padding: 13px 30px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.4;
  border-width: 2px !important;
  vertical-align: middle;
}

.landing-btn-primary {
  background: linear-gradient(135deg, var(--zero-blue), var(--zero-blue-hover));
  border-color: var(--zero-blue);
}

.landing-btn-primary:hover,
.landing-btn-primary:focus {
  background: linear-gradient(135deg, var(--zero-blue-hover), #6d28d9);
  border-color: var(--zero-blue-hover);
}

.landing-btn-outline {
  background-color: #ffffff !important;
  color: var(--zero-blue) !important;
  border: 2px solid var(--zero-blue) !important;
}

.landing-btn-outline:hover,
.landing-btn-outline:focus {
  background-color: rgba(139, 92, 246, 0.08);
  color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
}

@media (max-width: 576px) {
  .landing-hero {
    padding: 3.5rem 0 3rem;
  }

  .landing-title {
    font-size: 40px;
  }

  .landing-cta {
    flex-direction: column;
    align-items: center;
  }

  .landing-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .landing-tagline {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 992px) {
  .landing-split {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    min-height: 0;
  }

  .landing-panel-left {
    max-width: 100%;
    text-align: center;
  }

  .landing-cta {
    justify-content: center;
  }

  .landing-tagline {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-panel-right {
    justify-content: center;
  }
}

/* Dark mode outline button */
[data-theme="dark"] .landing-btn-outline {
  background-color: transparent;
  color: var(--zero-blue);
  border-color: var(--zero-blue);
}

/* Theme toggle button */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.btn-theme-toggle:hover {
  color: #1a1a2e;
}

[data-theme="dark"] .btn-theme-toggle {
  color: #94a3b8;
}

[data-theme="dark"] .btn-theme-toggle:hover {
  color: #e8eaf0;
}

/* Navbar Create account button */
.btn-zero-nav {
  background-color: var(--zero-blue);
  border-color: var(--zero-blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

.btn-zero-nav:hover,
.btn-zero-nav:focus {
  background-color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
  color: #fff;
}

/* Header */
.zero-navbar {
  background-color: var(--zero-bg);
  border-bottom: 1px solid var(--zero-border);
}

.zero-navbar .navbar-brand {
  color: var(--zero-blue);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.zero-navbar .navbar-brand:hover {
  color: var(--zero-blue-hover);
}

.zero-navbar .nav-link {
  color: var(--zero-text-muted);
}

.zero-navbar .nav-link:hover,
.zero-navbar .nav-link:focus {
  color: var(--zero-text);
}

.zero-navbar .btn-primary {
  background-color: var(--zero-blue);
  border-color: var(--zero-blue);
}

.zero-navbar .btn-primary:hover,
.zero-navbar .btn-primary:focus {
  background-color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
}

/* Footer */
.zero-footer {
  margin-top: auto;
  padding: 1.25rem 0;
  background: var(--zero-bg-subtle);
  border-top: 1px solid var(--zero-border);
}

.zero-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--zero-text-muted);
}

.zero-footer-brand {
  font-weight: 600;
  color: var(--zero-blue);
}

.zero-footer-sep {
  color: #cbd5e1;
  user-select: none;
}

.zero-footer-link {
  color: var(--zero-blue);
  text-decoration: none;
}

.zero-footer-link:hover {
  color: var(--zero-blue-hover);
  text-decoration: underline;
}

.zero-footer-copy {
  margin-left: 0.25rem;
}

/* Waitlist section */
.waitlist-section {
  padding: 0 0 5rem;
}

.waitlist-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--zero-border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 1.8rem 1.75rem 1.65rem;
}

[data-theme="dark"] .waitlist-card {
  background: var(--zero-bg-subtle);
  border-color: var(--zero-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.waitlist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--zero-blue);
  margin-bottom: 0.85rem;
}

.waitlist-icon svg {
  width: 22px;
  height: 22px;
}

[data-theme="dark"] .waitlist-icon {
  background: rgba(139, 92, 246, 0.18);
}

.waitlist-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zero-blue);
}

.waitlist-heading {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
  color: var(--zero-text);
}

.waitlist-desc {
  font-size: 0.88rem;
  color: var(--zero-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.waitlist-benefits {
  margin: 0 0 0.9rem;
  list-style: none;
  text-align: left;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 12px;
  padding: 0.7rem 0.85rem 0.5rem;
}

[data-theme="dark"] .waitlist-benefits {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.waitlist-benefits li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.35rem;
  color: var(--zero-text);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}

.waitlist-benefits li:last-child {
  margin-bottom: 0;
}

.waitlist-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--zero-blue);
  font-size: 0.65rem;
  font-weight: 700;
}

.waitlist-form {
  width: 100%;
  margin-top: 0;
  text-align: left; /* override .waitlist-card center so labels sit at the start */
}

.waitlist-field {
  /* Was "flex: 1 1 10rem": inside the vertical .waitlist-fields stack that made every field ~160px tall. */
  flex: 0 0 auto;
  min-width: 0;
  text-align: left;
}

.waitlist-label {
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  display: block;
  text-align: start;
  width: 100%;
}

.waitlist-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.waitlist-input {
  background: var(--zero-input-bg);
  border: 1px solid var(--zero-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--zero-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input::placeholder {
  color: var(--zero-text-muted);
  opacity: 0.65;
}

.waitlist-input:focus {
  border-color: var(--zero-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}

[data-theme="dark"] .waitlist-input {
  background: var(--zero-input-bg);
  border-color: var(--zero-border);
  color: var(--zero-text);
}

[data-theme="dark"] .waitlist-input:focus {
  border-color: var(--zero-blue);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.waitlist-btn {
  display: inline-block;
  padding: 11px 28px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  border: none !important;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.28);
  transition: transform 0.14s ease, box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
  width: 100%;
}

.waitlist-btn:hover,
.waitlist-btn:focus,
.waitlist-btn:active {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.35);
}

.waitlist-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.waitlist-counter {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zero-text-muted);
  letter-spacing: 0.01em;
}

.waitlist-feedback {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-top: 0.65rem;
  margin-bottom: 0;
  transition: color 0.2s;
}

.waitlist-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.waitlist-success {
  color: #16a34a;
}

[data-theme="dark"] .waitlist-success {
  color: #4ade80;
}

.waitlist-error {
  color: #dc2626;
}

[data-theme="dark"] .waitlist-error {
  color: #f87171;
}

@media (max-width: 576px) {
  .waitlist-section {
    padding: 0 0 3rem;
  }

  .landing-hero {
    min-height: 0;
  }

  .waitlist-card {
    max-width: 100%;
    padding: 1.6rem 1.1rem 1.4rem;
    border-radius: 14px;
  }

  .waitlist-heading {
    font-size: 1.3rem;
  }

  .waitlist-benefits {
    padding: 0.6rem 0.7rem 0.45rem;
  }

  .waitlist-benefits li {
    font-size: 0.8rem;
  }
}

/* Simple legal copy (Terms, etc.): use theme text color, not Bootstrap .text-muted */
.zero-terms-simple {
  max-width: 640px;
}

.zero-terms-simple a {
  color: var(--zero-blue);
  font-weight: 600;
  text-decoration: none;
}

.zero-terms-simple a:hover {
  color: var(--zero-blue-hover);
  text-decoration: underline;
}
/* ===== ZERO-078: mobile zoom prevention (site / waitlist / shared) ===== */
html,
body {
  touch-action: manipulation;
}
a,
button,
input,
textarea,
select,
label,
.btn,
.form-control,
.waitlist-input {
  touch-action: manipulation;
}

@media (max-width: 1024px) {
  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='file']):not([type='hidden']):not([type='button']):not([type='submit']):not([type='reset']):not([type='image']):not([type='color']),
  textarea,
  select,
  [contenteditable='true'],
  .form-control,
  .waitlist-input {
    font-size: 16px !important;
  }
}

/* Legal documents (Terms Part 1, future Privacy/Cookie) */
.zero-legal-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.zero-legal-page__header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--zero-border);
}

.zero-legal-page__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zero-text-muted);
}

.zero-legal-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--zero-text);
}

.zero-legal-page__part {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--zero-blue);
}

.zero-legal-page__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--zero-text-muted);
}

.zero-legal-page__meta-sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.zero-legal-section {
  margin-bottom: 1.75rem;
}

.zero-legal-section__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zero-text);
}

.zero-legal-section__num {
  color: var(--zero-blue);
  margin-right: 0.15rem;
}

.zero-legal-section__subtitle {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--zero-text);
}

.zero-legal-section__p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--zero-text);
}

.zero-legal-section__list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.zero-legal-section__list li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--zero-text);
}

.zero-footer-link--disabled {
  color: var(--zero-text-muted);
  cursor: default;
  text-decoration: none;
  opacity: 0.55;
  pointer-events: none;
}

.auth-legal-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--zero-text-muted);
}

.zero-shell-legal {
  padding: 0.65rem 1rem 0.35rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-size: 0.7rem;
}

.zero-shell-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.zero-shell-legal a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.zero-shell-legal .zero-footer-sep {
  color: var(--border);
}

.zero-shell-legal .zero-footer-link--disabled {
  color: var(--text-muted);
}

@media (max-width: 390px) {
  .zero-legal-page {
    padding: 1.15rem 0 2rem;
  }

  .zero-legal-page__title {
    font-size: 1.25rem;
  }
}

/* Waitlist: success/error line only takes space when it has a message. */
.waitlist-feedback:empty {
  display: none;
}

/* "(optional)" used Bootstrap's grey .text-muted, which is almost invisible on the dark card. */
[data-theme="dark"] .waitlist-label .text-muted {
  color: var(--zero-text-muted) !important;
}
