/* =============================================================
   landing.css — public marketing pages
   index.html, join.html, beta.html, select_account.html
   ============================================================= */


/* ---- Landing wrapper -------------------------------------- */
.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}


/* ---- Landing nav ----------------------------------------- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.landing-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.landing-nav__icon {
  width: 32px;
  height: 32px;
}

.landing-nav__wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.landing-nav__wordmark span {
  color: var(--brand);
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.landing-nav__links a:hover {
  color: var(--accent);
}

/* Nav beta badge */
.landing-nav__beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.landing-nav__beta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  animation: breathe 2.5s ease-in-out infinite;
}

/* Override badge colour in dark mode */
[data-theme="dark"] .landing-nav__beta-badge.badge--danger {
  background: rgba(249, 115, 22, 0.15) !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
  color: #f97316 !important;
}

[data-theme="dark"] .landing-nav__beta-dot {
  background: #f97316 !important;
}


/* ---- Mode toggle — Day Mode / Night Flight ---------------- */
.mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition),
              background var(--transition),
              color var(--transition);
  white-space: nowrap;
}

.mode-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* Day Mode label — shown in light mode, hidden in dark */
.mode-toggle__day {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Night Flight label — hidden in light mode, shown in dark */
.mode-toggle__night {
  display: none;
  align-items: center;
  gap: 5px;
}

[data-theme="dark"] .mode-toggle__day   { display: none; }
[data-theme="dark"] .mode-toggle__night { display: inline-flex; }


/* ---- Hero ------------------------------------------------- */
.landing-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
  background: radial-gradient(
    ellipse at 50% 0%,
    var(--accent-light) 0%,
    transparent 70%
  );
}

.landing-hero__content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing-hero__title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text);
  line-height: 1;
}

.landing-hero__title span {
  color: var(--brand);
}

.landing-hero__tagline {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.landing-hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}


/* ---- Founder card ---------------------------------------- */
.landing-founder {
  padding: 0 40px 64px;
}

.founder-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.founder-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--accent-hover);
}

.founder-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.founder-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
}

.founder-card__tag {
  font-size: 12px;
  color: var(--accent);
}

.founder-card__tag a {
  color: var(--accent);
  text-decoration: none;
}

.founder-card__tag a:hover {
  text-decoration: underline;
}

.founder-card__quote {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.founder-card__quote strong {
  color: var(--text);
  font-weight: 500;
}


/* ---- Sections -------------------------------------------- */
.landing-features,
.landing-beta {
  padding: 80px 40px;
}

.landing-features {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-section {
  max-width: 1000px;
  margin: 0 auto;
}

.landing-section--narrow {
  max-width: 720px;
}

.landing-section__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.landing-section__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}


/* ---- Features grid --------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feature-card__icon {
  margin-bottom: 12px;
}

.feature-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ---- Beta section ---------------------------------------- */
.beta-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.beta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.beta-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.beta-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.waitlist__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.waitlist__consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.waitlist--success {
  text-align: center;
  padding: 48px 32px;
}

.waitlist__success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
  margin: 0 auto 16px;
}


/* ---- Beta closed banner ---------------------------------- */
.beta-closed-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.beta-closed-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.beta-closed-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-light) 0%, transparent 65%);
  pointer-events: none;
}

.beta-closed-banner__icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.beta-closed-banner__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.beta-closed-banner__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 12px;
}

.beta-closed-banner .btn {
  margin-top: 8px;
  position: relative;
  z-index: 1;
}


/* ---- Waitlist -------------------------------------------- */
.waitlist {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.waitlist__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.waitlist__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.waitlist__warning {
  background: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.waitlist__warning strong {
  color: var(--accent);
  font-weight: 500;
}

.waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.waitlist__note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}


/* ---- Footer ---------------------------------------------- */
.landing-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 40px;
}

.landing-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-footer__brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.landing-footer__brand span {
  color: var(--brand);
}

.landing-footer__copy,
.landing-footer__domain {
  font-size: 13px;
  color: var(--muted);
}

.landing-footer__copy a {
  color: var(--accent);
  text-decoration: none;
}

.landing-footer__copy a:hover {
  text-decoration: underline;
}


/* ---- Auth pages — join, beta, select account ------------- */
.page-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.auth-card--wide {
  max-width: 600px;
}

.auth-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-card__logo img {
  width: 40px;
  height: 40px;
}

.auth-card__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
}

.auth-card__wordmark span {
  color: var(--brand);
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-card__footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.auth-card__footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}


/* ---- Account picker -------------------------------------- */
.account-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition),
              background var(--transition),
              box-shadow var(--transition);
  width: 100%;
}

.account-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.account-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}

.account-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-card__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.account-card__role {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.account-card svg {
  color: var(--muted);
  flex-shrink: 0;
}


/* ---- Dark mode logo swap --------------------------------- */
.logo-light { display: block; }
.logo-dark  { display: none; }

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }


/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .landing-nav { padding: 14px 20px; }
  .landing-nav__links { gap: 12px; }
  .landing-hero { padding: 60px 20px; }
  .landing-hero__title { font-size: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .beta-options { grid-template-columns: 1fr; }
  .landing-features,
  .landing-beta { padding: 48px 20px; }
  .landing-founder { padding: 0 20px 48px; }
  .founder-card { flex-direction: column; gap: 14px; }
  .waitlist { padding: 20px; }
  .beta-closed-banner { padding: 28px 20px; }
  .auth-card { padding: 28px 20px; }
}