/* Applications page: two phones and a notification in the green band.
   Every size inside .ap-stage is in em, so one font-size scales the whole scene. Classes all start with .ap-. */

/* Intro paragraphs (added next to .sub, never replacing it): balanced lines, so no word is left alone on the last line. */
.ap-sub { text-wrap: balance; }
/* Line breaking of cards, lists and answers, and the 56ch FAQ measure, are shared rules in site.css. */

.ap-stage { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 6em; width: 66em; max-width: 100%; margin: 72px auto 0; font-size: 10px; line-height: 1.4; text-align: start; color: var(--ink); }
.ap-stage b { font-weight: 400; }

/* Device */
.ap-phone { position: relative; flex: none; width: 30em; height: 62em; padding: 1em; border-radius: 3.6em; background: var(--ink); box-shadow: 0 4em 8em -3em rgba(0, 0, 0, .5), 0 0 0 1px rgba(244, 239, 228, .14); }
.ap-p2 { margin-top: 6.4em; }
.ap-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.6em; background: #FFFFFF; }
.ap-screen::after { content: ""; position: absolute; bottom: .8em; inset-inline: 0; width: 10.5em; height: .45em; margin-inline: auto; border-radius: 1em; background: var(--ink); }
.ap-island { position: absolute; top: 1.1em; inset-inline: 0; width: 8.6em; height: 2.5em; margin-inline: auto; border-radius: 1.25em; background: var(--ink); }
.ap-bar { display: flex; align-items: center; justify-content: space-between; height: 4.7em; padding-inline: 3em 2.6em; }
.ap-bar b { font: 500 1.35em/1 "Inter", sans-serif; letter-spacing: .02em; }
.ap-batt { position: relative; direction: ltr; width: 2.5em; height: 1.2em; padding: .2em; border: 1px solid rgba(22, 22, 22, .4); border-radius: .4em; }
.ap-batt::before { content: ""; display: block; width: 72%; height: 100%; border-radius: .18em; background: var(--ink); }
.ap-batt::after { content: ""; position: absolute; top: 50%; inset-inline-start: 100%; width: .2em; height: .5em; margin-block-start: -.25em; margin-inline-start: .15em; border-radius: 0 .1em .1em 0; background: rgba(22, 22, 22, .4); }

/* App screens */
.ap-app { padding: .6em 2.2em 0; }
.ap-head { padding-bottom: 1.8em; border-bottom: 1px solid #ECE8E0; }
.ap-head b { display: block; font: 400 2.4em/1.15 var(--f-serif); letter-spacing: -.01em; }
.ap-lab { display: block; font: 400 1em/1.4 "Inter", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.ap-head .ap-lab { margin-top: .8em; }

.ap-card { margin-top: 2.2em; padding: 2em 2em 2.2em; background: var(--stone); }
.ap-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.ap-count { font: 400 1.2em/1 var(--f-sans); color: var(--muted); white-space: nowrap; }
.ap-stamps { display: grid; grid-template-columns: repeat(5, 2.6em); justify-content: space-between; row-gap: 1.2em; margin-top: 2em; }
.ap-stamps i { width: 2.6em; height: 2.6em; border: 1px solid #CBC5B9; border-radius: 50%; }
.ap-stamps .ap-on { background: var(--green); border-color: var(--green); }
.ap-stamps .ap-gift { border-color: var(--gold-text); }
.ap-left { margin: 1.4em 0 0; font: 400 1.35em/1.45 var(--f-sans); color: var(--ink); text-wrap: balance; }
.ap-rows { margin: 1.2em 0 0; }
.ap-rows div { display: flex; justify-content: space-between; gap: 1em; padding: 1.3em 0; border-bottom: 1px solid #ECE8E0; }
.ap-rows dt, .ap-rows dd { margin: 0; font: 400 1.25em/1.3 var(--f-sans); }
.ap-rows dt { color: var(--muted); }

.ap-seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2em; border: 1px solid var(--ink); }
.ap-seg span { padding: 1.1em .4em; text-align: center; font: 500 1em/1.2 "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.ap-seg .ap-on { background: var(--ink); color: #FFFFFF; }
.ap-items { list-style: none; margin: .8em 0 0; padding: 0; }
.ap-items li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; align-items: baseline; gap: 0 .6em; padding: 1.35em 0; border-bottom: 1px solid #ECE8E0; }
.ap-items span { font: 400 1.3em/1.3 var(--f-sans); }
.ap-items .ap-q { font-size: 1.15em; color: var(--muted); }
.ap-items span:last-child { white-space: nowrap; }
.ap-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; padding-top: 1.8em; }
.ap-total span { font: 400 1em/1 "Inter", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ap-total b { font: 400 2.4em/1 var(--f-serif); white-space: nowrap; }
.ap-btn { position: absolute; inset-inline: 2.2em; bottom: 3em; display: grid; place-items: center; height: 4.8em; background: var(--green); }
.ap-btn span { font: 500 1.15em/1 "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }

/* Notification, floating in front of both phones. Opaque on purpose: any transparency shows the bezels and the green band through it as stripes. */
.ap-note { position: absolute; z-index: 2; top: 47em; inset-inline: 0; display: grid; grid-template-columns: 3.8em minmax(0, 1fr); gap: 1.3em; align-items: start; width: 32em; margin-inline: auto; padding: 1.5em 1.7em 1.6em; border-radius: 2em; background: #FFFFFF; box-shadow: 0 2em 4.4em -1.2em rgba(0, 0, 0, .38), 0 0 0 1px rgba(22, 22, 22, .07); }
.ap-mono { display: grid; place-items: center; width: 3.8em; height: 3.8em; border-radius: .9em; background: var(--green); }
.ap-mono b { font: italic 400 2.2em/1 var(--f-serif); color: var(--gold-hi); }
.ap-note-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.ap-note-app { font: 500 1em/1.3 "Inter", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ap-note-now { font: 400 1.1em/1.3 var(--f-sans); color: var(--muted); }
.ap-note-t { display: block; margin-top: .3em; font: 500 1.45em/1.3 var(--f-sans); }
.ap-note-d { display: block; font: 400 1.3em/1.4 var(--f-sans); color: var(--muted); }

/* Arabic: no tracking or capitals, slightly larger text, taller lines for Amiri */
[dir="rtl"] .ap-lab, [dir="rtl"] .ap-seg span, [dir="rtl"] .ap-total span, [dir="rtl"] .ap-btn span, [dir="rtl"] .ap-note-app { font-family: "Inter", "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; text-transform: none; }
[dir="rtl"] .ap-lab { font-size: 1.2em; }
[dir="rtl"] .ap-seg span, [dir="rtl"] .ap-total span, [dir="rtl"] .ap-note-app, [dir="rtl"] .ap-note-now { font-size: 1.25em; }
[dir="rtl"] .ap-seg span { padding-block: .8em; }
[dir="rtl"] .ap-count { font-size: 1.3em; }
[dir="rtl"] .ap-btn span { font-size: 1.45em; }
[dir="rtl"] .ap-head b { line-height: 1.45; }
[dir="rtl"] .ap-mono b { font-style: normal; }

/* Phones: one device, with the notification floating out past its end edge */
@media (max-width: 760px) {
  .ap-stage { justify-content: flex-start; width: 34em; margin-top: 56px; font-size: min(10px, calc((100vw - 48px) / 35)); }
  .ap-p2 { display: none; }
  .ap-note { inset-inline: auto 0; width: 30em; margin-inline: 0; }
}

/* Small phones: the hero button keeps "Parlons de votre application" on one line, as on the WhatsApp page (Arabic never takes letter-spacing),
   and section titles are a touch smaller (about 33px at 375px) so the French ones keep to two lines instead of three or four. */
@media (max-width: 380px) {
  h2 { font-size: 8.9vw; }
  .page-hero .btn { padding-inline: 20px; text-align: center; text-wrap: balance; }
  [dir="ltr"] .page-hero .btn { letter-spacing: .12em; }
}
@media (max-width: 340px) {
  [dir="ltr"] .page-hero .btn { padding-inline: 16px; letter-spacing: .1em; }
}
