/*
 * Citadoo : the landing page (/lp/).
 *
 * The same instrument as the rest of the site, on the same tokens (see site.css), played louder: the
 * question set as wide as the screen, a mark that turns through the three possible answers, and one
 * real analysis read again square by square. Nothing new is invented: white ground, one family, and
 * the signal colour still only ever means "cited".
 */

/* The question */
.lp-hero { padding-top: var(--s-4); }
main .lp-title { max-width: none; margin: 0; font-size: inherit; line-height: inherit; letter-spacing: 0; text-wrap: initial; }
.lp-t1 {
  display: block;
  font-size: clamp(1.75rem, 4.85vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lp-t2 {
  display: block;
  margin-top: 0.03em;
  margin-left: -0.04em;
  font-size: 15vw;
  line-height: 0.92;
  letter-spacing: -0.055em;
}
/* The mark after the question: cited, read without being cited, absent. The script turns it. */
.lp-turn { display: inline-block; width: 0.6em; margin-left: 0.15em; vertical-align: baseline; }
/* At this size the outline is drawn inside the square, so the mark keeps one size in its three states. */
.lp-turn.k-l { border: 0; box-shadow: inset 0 0 0 0.04em var(--ink); }
.lp-state {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  color: var(--ink-2);
  font-style: normal;
  font-size: var(--t-2);
  font-weight: var(--regular);
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

/* On a phone the question takes two lines, its last words kept with the mark. On a wide screen it
   holds on one line, as wide as the grid: each language has the size that fits its own words. */
@media (min-width: 900px) {
  .lp-t2 { white-space: nowrap; font-size: min(9.7vw, 7.75rem); }
  .lp-t2:lang(en) { font-size: min(13.7vw, 11rem); }
  .lp-t2:lang(es) { font-size: min(11.7vw, 9.45rem); }
  .lp-t2:lang(it) { font-size: min(12.7vw, 10.2rem); }
}
/* The last question of the page: a longer one in another language is set a little smaller so that
   it still holds on its line. */
.lp-end-q:lang(en) { font-size: min(11.6vw, 9.7rem); }
.lp-end-q:lang(es) { font-size: min(10.4vw, 8.7rem); }
.lp-end-q:lang(it) { font-size: min(11.4vw, 9.5rem); }

/* Above the captures of traffic: what they show, said in one bold sentence */
.lp-claim { max-width: 22em; font-size: var(--t-5); font-weight: var(--bold); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lp-claim + .text { margin-top: var(--s-3); }

/* The promise and the field */
.lp-go { margin-top: var(--s-5); row-gap: var(--s-3); }
.lp-go .lede, .lp-go .analyse { margin-top: 0; }

/* One real analysis, read again. Two halves of 15 expressions: one under the other on a phone. */
.lp-map { display: flex; flex-direction: column; gap: var(--s-2); }
.lp-map .map { flex: 1 1 0; gap: clamp(4px, 1.2vw, 12px); }
/* While the reading runs, a square not read yet is an empty place. */
.lp-live .lp-map .k:not(.on) { border: var(--hair) solid var(--line-2); background: none; }
.lp-live .lp-map .k:not(.on)::after { content: none; }
.lp-tally .tally-n { font-size: clamp(3.5rem, 8vw, 6.5rem); }
.lp-again { margin-top: var(--s-3); }

/* The proof: six dashboards where ChatGPT is the first source of visitors. Each capture comes under
   its share, read at figure size. On a phone they sit side by side and are swiped through. */
.lp-shots {
  display: flex;
  gap: var(--gap);
  margin-inline: calc(-1 * var(--margin));
  padding-inline: var(--margin);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--margin);
  overscroll-behavior-x: contain;
}
.lp-shots li { flex: 0 0 86%; min-width: 0; padding-top: 10px; border-top: var(--hair) solid var(--line); scroll-snap-align: start; }
.lp-shots figure { margin: 0; }
.lp-shots figcaption { display: flex; align-items: flex-end; gap: var(--s-2); }
.lp-shots .tally-n { flex: none; font-size: clamp(2.75rem, 6vw, 4.5rem); white-space: nowrap; }
.lp-shot-l { padding-bottom: 4px; font-size: var(--t-2); line-height: 1.35; }
.lp-shots a { display: block; margin-top: var(--s-2); }
.lp-shots img { display: block; width: 100%; height: auto; border: var(--hair) solid var(--line-2); }
.lp-proof-note { max-width: 44em; color: var(--ink-2); font-size: var(--t-2); text-wrap: pretty; }

/* What one click starts: four figures */
.lp-facts { margin-top: 0; }
.lp-facts .tally-n { font-size: clamp(2.75rem, 7vw, 5.5rem); white-space: nowrap; }
.lp-facts .tally-l { display: block; max-width: 17em; margin-top: 10px; text-wrap: pretty; }

/* Under the captures the signal colour also lifts a few values and key words, sparingly: the four
   figures, one or two words of each title, the way to the reverse reading. Asked for by the owner
   on this page only; everywhere else it still only means "cited". */
.lp-hi, .lp-facts .tally-n { color: var(--signal); }
.lp-more .act { color: var(--signal); }
.lp-more .act:hover { color: var(--signal); }

.lp-lede { margin-top: 0; }
.lp-more { margin-top: var(--s-3); }

/* The last word: the question again, and the way back to the field */
.lp-end { margin-top: var(--s-5); padding-top: var(--s-3); border-top: var(--rule) solid var(--line); }
.lp-end-q {
  margin-left: -0.04em;
  font-size: min(12.1vw, 10.1rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.lp-cited { color: var(--signal); }
.lp-end-go { margin-top: var(--s-4); }
.lp-end .btn { height: 72px; padding: 0 44px; font-size: var(--t-4); }

/* On a phone, the way back to the field follows the reader once the field is out of sight. */
.lp-stick {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 12px var(--margin) calc(12px + env(safe-area-inset-bottom));
  border-top: var(--hair) solid var(--line);
  background: var(--ground);
}
.lp-stick .btn { display: flex; width: 100%; }

@media (max-width: 899px) {
  .lp .site-footer { padding-bottom: 104px; }
  .lp-end .btn { display: flex; width: 100%; padding: 0 16px; }
}

@media (min-width: 900px) {
  .lp-hero { padding-top: var(--s-5); }
  .lp-go { margin-top: 88px; }
  .lp-go .lede { grid-column: 1 / 5; }
  .lp-go .analyse { grid-column: 5 / -1; max-width: none; }
  .lp-map { flex-direction: row; gap: clamp(3px, 0.85vw, 12px); }
  .lp-map .map { gap: clamp(3px, 0.85vw, 12px); }
  .lp-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--gap);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .lp-end { margin-top: var(--s-6); }
  .lp-stick { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-live .lp-map .k.on { animation: lp-read 0.2s ease-out; }
}
@keyframes lp-read {
  from { transform: scale(0.3); }
}

@media print {
  .lp-stick, .lp-again { display: none; }
}
