/* Palette mirrors AppTheme.accent / accentSoft in the iOS app so the page and
   the app icon read as the same product. */
.sl-page {
  --sl-accent: #3dab70;
  --sl-accent-soft: #6bcc8c;
  --sl-ink: #14201a;
  --sl-muted: #5d6f65;
  align-items: center;
  background: linear-gradient(170deg, var(--sl-accent-soft) 0%, #2e935f 55%, #226f48 100%);
  color: var(--sl-ink);
  display: flex;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 4vmin, 44px);
  position: relative;
}

.sl-layout {
  display: flex;
  justify-content: center;
  max-width: 520px;
  width: 100%;
}

.sl-card {
  align-items: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(16, 54, 35, 0.28);
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 6vw, 44px) clamp(22px, 5vw, 38px);
  text-align: center;
  width: 100%;
}

.sl-icon {
  align-items: center;
  background: rgba(61, 171, 112, 0.12);
  border-radius: 20px;
  color: var(--sl-accent);
  display: flex;
  height: 64px;
  justify-content: center;
  margin-bottom: 18px;
  width: 64px;
}

.sl-icon.muted {
  background: rgba(93, 111, 101, 0.12);
  color: var(--sl-muted);
}

.sl-eyebrow {
  color: var(--sl-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sl-card h1 {
  font-size: clamp(1.5rem, 5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.sl-intro {
  color: var(--sl-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Code panel */
.sl-code-panel {
  align-items: center;
  background: #f4f7f5;
  border: 1px solid rgba(61, 171, 112, 0.18);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  padding: 18px 16px;
  width: 100%;
}

.sl-code-panel > span {
  color: var(--sl-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.sl-code {
  /* The code is Latin even in an RTL page, so pin its direction. */
  direction: ltr;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: clamp(1.35rem, 6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  unicode-bidi: isolate;
}

.sl-copy {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(61, 171, 112, 0.35);
  border-radius: 999px;
  color: var(--sl-accent);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 7px;
  padding: 8px 16px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.sl-copy:hover {
  background: rgba(61, 171, 112, 0.09);
  border-color: var(--sl-accent);
}

/* Actions */
.sl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sl-primary,
.sl-secondary {
  align-items: center;
  border-radius: 15px;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  padding: 15px 20px;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sl-primary {
  background: var(--sl-accent);
  box-shadow: 0 10px 24px rgba(61, 171, 112, 0.32);
  color: #fff;
}

.sl-primary:hover {
  box-shadow: 0 14px 30px rgba(61, 171, 112, 0.4);
  transform: translateY(-1px);
}

.sl-secondary {
  background: #f4f7f5;
  border: 1px solid rgba(20, 32, 26, 0.1);
  color: var(--sl-ink);
}

.sl-secondary:hover {
  background: #eaefec;
}

.sl-arrow {
  margin-inline-start: auto;
  opacity: 0.5;
}

/* Helper text */
.sl-help {
  color: var(--sl-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 20px 0 0;
}

.sl-help--warn {
  background: rgba(245, 176, 65, 0.14);
  border-radius: 12px;
  color: #7a5312;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.sl-invalid {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.sl-invalid p {
  color: var(--sl-muted);
  line-height: 1.6;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sl-primary,
  .sl-secondary,
  .sl-copy {
    transition: none;
  }

  .sl-primary:hover {
    transform: none;
  }
}
