/* Snapi landing page — scoped styles.
   All class names live under .snapi-landing to avoid colliding with Chakra
   or the authenticated app styles. */

.snapi-landing {
  --sl-bg: #ffffff;
  --sl-fg: #0f172a;
  --sl-fg-muted: #475569;
  --sl-fg-soft: #64748b;
  --sl-primary: #2563eb;
  --sl-primary-hover: #1d4ed8;
  --sl-border: #e2e8f0;
  --sl-surface: #f8fafc;
  --sl-surface-alt: #eff6ff;
  --sl-card-bg: #ffffff;
  --sl-dark: #0f172a;
  --sl-darker: #020617;
  --sl-step-num-bg: #ffffff;
  --sl-shadow-color: 15, 23, 42;

  min-height: 100vh;
  background: var(--sl-bg);
  color: var(--sl-fg);
  font-family: var(--font-face-sans, 'Geist'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

[data-theme="dark"] .snapi-landing {
  --sl-bg: #0f172a;
  --sl-fg: #f1f5f9;
  --sl-fg-muted: #94a3b8;
  --sl-fg-soft: #64748b;
  --sl-primary: #3b82f6;
  --sl-primary-hover: #60a5fa;
  --sl-border: #334155;
  --sl-surface: #1e293b;
  --sl-surface-alt: #1e3a5f;
  --sl-card-bg: #1e293b;
  --sl-dark: #020617;
  --sl-darker: #010409;
  --sl-step-num-bg: #334155;
  --sl-shadow-color: 0, 0, 0;
}

.snapi-landing * {
  box-sizing: border-box;
}

.snapi-landing h1,
.snapi-landing h2,
.snapi-landing h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.snapi-landing p {
  margin: 0;
}

.snapi-landing a {
  color: inherit;
  text-decoration: none;
}

.snapi-landing button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.snapi-landing .container {
  max-width: none;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------- Header ---------- */
.sl-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  width: 100%;
  background: var(--sl-bg);
}
.sl-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sl-header__avatar {
  border-radius: 50%;
  cursor: pointer;
}
.sl-header__brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--sl-fg);
  letter-spacing: 0.3px;
}
.sl-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.snapi-landing .sl-header__nav .sl-btn-primary {
  display: none;
}
@media (min-width: 900px) {
  .snapi-landing .sl-header__nav .sl-btn-primary {
    display: inline-flex;
  }
}
.sl-btn-ghost {
  color: var(--sl-fg-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: color 0.15s;
}
.sl-btn-ghost:hover {
  color: var(--sl-fg);
}
.snapi-landing .sl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--sl-primary);
  padding: 12px 22px;
  margin-right: 20px;
  border-radius: 999px;
  transition: background 0.15s;
}
.sl-btn-primary:hover {
  background: var(--sl-primary-hover);
}
.sl-btn-primary--lg {
  padding: 15px 30px;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.sl-hero {
  padding: 60px 24px 40px;
  max-width: none;
  margin: 0 auto;
}
.sl-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.sl-hero__title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}
.sl-hero__title .accent {
  color: var(--sl-primary);
}
.snapi-landing .sl-hero__subtitle {
  margin-top: 22px;
  margin-bottom: -10px;
  font-size: 18px;
  color: var(--sl-fg-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.sl-hero__cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.sl-hero__visual {
  position: relative;
  height: 460px;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 900px) {
  .sl-hero {
    padding: 48px 24px 112px;
  }
  .sl-hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .sl-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .sl-hero__cta {
    justify-content: flex-start;
  }
  .sl-hero__visual {
    height: 540px;
  }
}

/* ---------- Card spinner ---------- */
.sl-spinner-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  user-select: none;
}
.sl-spinner-stage {
  position: relative;
  width: 220px;
  height: 320px;
  transform-style: preserve-3d;
  animation: sl-card-spin 30s linear infinite;
}
.sl-spinner-scene:hover .sl-spinner-stage {
  animation-play-state: paused;
}
.sl-spinner-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sl-surface);
  box-shadow: 0 25px 50px -15px rgba(var(--sl-shadow-color), 0.45);
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sl-spinner-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.sl-spinner-card__label {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: 0 4px 12px rgba(var(--sl-shadow-color), 0.15);
  white-space: nowrap;
}
.sl-spinner-card:hover .sl-spinner-card__overlay,
.sl-spinner-card:hover .sl-spinner-card__label {
  opacity: 1;
}
@keyframes sl-card-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

/* ---------- Workflow steps ---------- */
.sl-workflow {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--sl-surface);
  border-radius: 20px;
}
.sl-workflow__grid {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .sl-workflow {
    padding: 112px 24px;
  }
  .sl-workflow__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}
.sl-step__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px -12px rgba(var(--sl-shadow-color), 0.25);
  background: var(--sl-border);
}
.sl-step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sl-step-num-bg);
  color: var(--sl-fg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(var(--sl-shadow-color), 0.15);
}
.snapi-landing .sl-step__title {
  margin-top: 24px;
  margin-bottom: 20px;
  font-size: 28px;
  text-transform: capitalize;
}
.sl-step__body {
  margin-top: 12px;
  color: var(--sl-fg-muted);
  font-size: 16px;
}

/* ---------- Feature grid ---------- */
.sl-features {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .sl-features {
    padding: 112px 24px;
  }
}
.snapi-landing .sl-features__title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.sl-features__grid {
  margin-top: 56px;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 680px) {
  .sl-features__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .sl-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sl-feature {
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--sl-border);
  background: var(--sl-card-bg);
  transition: box-shadow 0.2s, transform 0.2s;
}
.sl-feature:hover {
  box-shadow: 0 20px 40px -15px rgba(var(--sl-shadow-color), 0.15);
  transform: translateY(-2px);
}
.sl-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sl-surface-alt);
  overflow: hidden;
}
.sl-feature__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.snapi-landing .sl-feature__title {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
}
.sl-feature__body {
  margin-top: 10px;
  color: var(--sl-fg-muted);
  font-size: 15.5px;
}

/* ---------- Testimonial ---------- */
.sl-testimonial {
  padding: 80px 24px;
  background: var(--sl-dark);
  color: #fff;
  text-align: center;
}
@media (min-width: 900px) {
  .sl-testimonial {
    padding: 112px 24px;
  }
}
.sl-testimonial__inner {
  max-width: 760px;
  margin: 0 auto;
}
.sl-testimonial__quote {
  margin-top: 28px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  font-style: italic;
}
.sl-testimonial__icon {
  opacity: 0.55;
  filter: invert(1);
}

/* ---------- Beta signup ---------- */
.sl-beta {
  padding: 80px 24px;
  background: var(--sl-primary);
  color: #fff;
  text-align: center;
}
@media (min-width: 900px) {
  .sl-beta {
    padding: 112px 24px;
  }
}
.sl-beta__inner {
  max-width: 640px;
  margin: 0 auto;
}
.sl-beta__title {
  font-size: clamp(28px, 4vw, 40px);
}
.sl-beta__subtitle {
  margin-top: 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}
.sl-beta__form {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 680px) {
  .sl-beta__form {
    grid-template-columns: 1fr 1fr auto;
  }
}
.sl-beta__input {
  border: none;
  border-radius: 999px;
  height: 60px;
  padding: 0 22px;
  font-size: 16px;
  color: #0f172a;
  background: #fff;
  outline: none;
  font-family: inherit;
}
.sl-beta__input::placeholder {
  color: #94a3b8;
}
.sl-beta__input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}
.snapi-landing .sl-beta__submit {
  border-radius: 999px;
  height: 60px;
  padding: 0 30px;
  background: #fff;
  color: var(--sl-primary);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}
.snapi-landing .sl-beta__submit:hover:not(:disabled) {
  background: #f1f5f9;
}
.snapi-landing .sl-beta__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sl-beta__success {
  margin-top: 60px;
  font-size: 18px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 24px;
}
.sl-beta__error {
  margin-top: 20px;
  display: inline-block;
  font-size: 14px;
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.3);
  padding: 10px 16px;
  border-radius: 10px;
}

/* ---------- Footer ---------- */
.sl-footer {
  padding: 56px 24px;
  background: var(--sl-darker);
  color: #94a3b8;
}
.sl-footer__inner {
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: space-between;
}
@media (min-width: 680px) {
  .sl-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
.sl-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sl-footer__brand-name {
  color: #fff;
  font-weight: 600;
}
.sl-footer__brand-tagline {
  font-size: 14px;
}
.sl-footer__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  margin-left: 52px;
}
.sl-footer__nav a:hover {
  color: #fff;
}
.snapi-landing .sl-footer__copy {
  max-width: none;
  margin: 60px auto 0;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
