/* Pages de vente des apps de la suite (Mavelo, Dayful, Lirevo).
   S'appuie sur home.css (h-hero, h-section, h-cards…). Chaque page pose
   --app (teinte principale) et --app-2 (secondaire) sur <body> : décor
   seulement (filets, icônes, maquette), jamais une couleur de texte courant. */

.ap-hero { padding-top: 132px; }
.ap-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.ap-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ap-id img { border-radius: 16px; }
.ap-id strong { display: block; font-size: 18px; }
.ap-hero .h-title { max-width: 15ch; }

.btn-app-tint { background: var(--app); color: #0b0b0f; }
.btn-app-tint:hover { filter: brightness(1.06); }

.h-cards .h-icon { stroke: var(--app); }
.ap-tint { color: var(--app); }

/* La maquette de l'app, dessinée en HTML : une carte de verre */
.ap-mock {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  padding: 22px;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--app) 55%, transparent);
  backdrop-filter: blur(10px);
}
.ap-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--app) 70%, transparent), transparent 40%, transparent 65%, color-mix(in srgb, var(--app-2) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.ap-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}
.ap-mock-head strong { font-size: 17px; color: var(--text); }
.ap-mock-label {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 8px;
}
.ap-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2, color-mix(in srgb, var(--text) 4%, transparent));
  border: 1px solid var(--border);
  font-size: 14.5px;
}
.ap-row + .ap-row { margin-top: 8px; }
.ap-row small { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ap-row.is-lead { border-color: color-mix(in srgb, var(--app) 55%, var(--border)); }
.ap-row.is-wait { opacity: .5; }
.ap-check {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 1.6px solid color-mix(in srgb, var(--text) 35%, transparent);
}
.ap-check.is-done { background: var(--app); border-color: var(--app); }
.ap-pill {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--app) 50%, var(--border));
  color: var(--text);
  white-space: nowrap;
}
.ap-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; margin-top: 14px; }
.ap-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--app), var(--app-2)); }

/* Le comparatif « d'habitude / ici » */
.ap-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.ap-versus > div { padding: 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.ap-versus h3 { margin: 0 0 10px; font-size: 15px; }
.ap-versus ul { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.ap-versus .is-ours { border-color: color-mix(in srgb, var(--app) 45%, var(--border)); }
.ap-versus .is-ours ul { color: var(--text); }

.ap-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ap-steps li { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.ap-steps b { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.ap-steps h3 { margin: 0 0 6px; font-size: 17px; }
.ap-steps p { margin: 0; color: var(--muted); }

.ap-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ap-platforms span { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); color: var(--muted); }

.ap-footer a { color: inherit; }

@media (max-width: 900px) {
  .ap-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ap-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ap-hero { padding-top: 104px; }
  .ap-versus { grid-template-columns: 1fr; }
}

.ap-id .app-tag { color: var(--muted); font-weight: 500; }
