/* Site vitrine Levelpals : couleurs et typo du Design System (mobile/src/theme/tokens.ts). */

/* Urbanist servie par le site : pas d'appel à Google Fonts, donc pas d'IP de visiteur transmise. */
@font-face {
  font-family: 'Urbanist';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Urbanist_500Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Urbanist';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Urbanist_700Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Urbanist';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/Urbanist_800ExtraBold.ttf') format('truetype');
}

:root {
  --ink: #1c1830;
  --ink-muted: #4f5b66;
  --ground-base: #f5f2ec;
  --ground-sky: #eaf1f2;
  --glow-peach: #fce3cf;
  --glow-sky: #cfeaf6;
  --cta-start: #0f766e;
  --cta-end: #2563eb;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Urbanist', system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--ground-base);
  background-image:
    radial-gradient(60rem 40rem at 0% 0%, var(--glow-peach), transparent 70%),
    radial-gradient(50rem 40rem at 100% 30%, var(--glow-sky), transparent 70%),
    linear-gradient(var(--ground-base), var(--ground-sky));
  background-repeat: no-repeat;
  min-height: 100vh;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 22px;
}

.lang {
  color: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

main {
  text-align: center;
  padding: 40px 0 24px;
}

h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 strong {
  font-weight: 800;
}

.lead {
  font-size: 20px;
  color: var(--ink-muted);
  margin: 0 auto 28px;
  max-width: 32ch;
}

/* Formulaire */

form {
  max-width: 520px;
  margin: 0 auto;
}

.row {
  display: flex;
  gap: 10px;
}

input[type='email'] {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(28, 24, 48, 0.15);
  background: #fff;
  color: var(--ink);
}

input[type='email']:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  border-color: var(--cta-end);
}

button {
  font: inherit;
  font-weight: 700;
  color: #fff;
  border: 0;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cta-start), var(--cta-end));
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 14px;
  text-align: left;
  color: var(--ink-muted);
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--cta-start);
  flex: none;
}

/* Champ piège pour les robots : hors écran, pas display:none (certains robots l'ignorent). */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-weight: 700;
  font-size: 16px;
}

.status.error {
  color: var(--error);
}

.joined .fields {
  display: none;
}

.joined .status {
  font-size: 20px;
  color: var(--cta-start);
}

/* Écrans de l'app */

.screens {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 6px solid #fff;
  box-shadow: 0 24px 48px rgba(28, 24, 48, 0.14);
}

.screens li {
  flex: 0 1 240px;
}

.screens li:nth-child(even) {
  margin-top: 40px;
}

footer {
  padding: 40px 0;
  font-size: 14px;
  text-align: center;
  color: var(--ink-muted);
}

@media (max-width: 760px) {
  main {
    padding-top: 16px;
  }

  .row {
    flex-direction: column;
  }

  /* Sur téléphone : les écrans défilent à l'horizontale. */
  .screens {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 40px -20px 0;
    padding: 0 20px 24px;
  }

  .screens li {
    flex: 0 0 62%;
    scroll-snap-align: center;
  }

  .screens li:nth-child(even) {
    margin-top: 0;
  }
}
