/* "Which app is right for you?": the neutral home-page block, kept exactly as designed. Needs tokens.css.
   Source: board/products.css (#5 compare: .pblock .ph .pname .compare .cmp*), board/board.css (.wrap .btns .pill .link .badge),
   board/rules.css (.rp .pblock overrides, category colours, .lkt, .hm block 1). Markup: which-app.html (+ brand-sprite.html for the crest).

   The only colour in the block is each app's name, its bullet dots and the action buttons.
   Reach = green, Post = the darker green, Score = yellow ("Coming next" tag in Score's yellow). Everything is
   scoped under .which-app, so it drops into any page. The block is white by design (it sits on the home page);
   the heading and text use Wix Madefor Display as on the board (set --wa-font to --font-text to change that in one place). */

.which-app, .which-app *, .which-app *::before, .which-app *::after { box-sizing: border-box; }
.which-app {
  --wa-font: var(--font-display);
  position: relative; overflow: hidden;
  padding: 64px 0 72px;
  background: var(--paper); color: var(--ink);
  font-family: var(--wa-font); font-size: 17px; line-height: 1.47; letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
.which-app h2, .which-app p, .which-app ul { margin: 0; }
.which-app a { color: inherit; }
.which-app img { max-width: 100%; }
.which-app :focus-visible { outline: 2px solid var(--c, var(--blue)); outline-offset: 2px; }
.which-app .wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* the app's colour on white: the -light tone of its kind (Post = the darker green) */
.which-app .c-mkt  { --c: var(--mk-mkt-light); }
.which-app .c-mkt2 { --c: var(--mk-mkt-2-light); }
.which-app .c-ops  { --c: var(--mk-ops-light); }
.which-app .c-mkt, .which-app .c-mkt2, .which-app .c-ops {
  --c-soft: color-mix(in srgb, var(--c) 11%, transparent);
  --c-line: color-mix(in srgb, var(--c) 40%, transparent);
}

/* heading */
.which-app .ph { max-width: none; font-size: clamp(32px, 4.6vw, 52px); font-weight: var(--h-weight); line-height: 1.07; letter-spacing: 0; text-align: center; text-wrap: balance; }   /* 52 / 1.07 is the board's own (BOARD EXCEPTION, SYSTEM section 10); balance only stops "you?" standing alone on a phone */
@media (min-width: 1044px) { .which-app .ph { letter-spacing: -0.01em; } }

/* the crest next to each name (the supplied crest drawing, currentColor) */
.which-app .crest { display: inline-block; flex: none; width: var(--s, 40px); height: var(--s, 40px); }

/* the three cards */
.which-app .compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; text-align: center; }
.which-app .cmp { padding: 0 8px; }
.which-app .cmp-shot { height: 220px; border-radius: 20px; background: var(--grey); overflow: hidden; margin-bottom: 24px; display: grid; place-items: center; }
.which-app .cmp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; display: block; }
.which-app .cmp-shot picture { display: block; width: 100%; height: 100%; }                  /* the picture fills the frame, exactly as the bare picture did; the phone screen swaps in under 768 px (see the <picture>) */
.which-app .cmp-shot.phoneish img { width: 46%; height: 92%; border-radius: 20px; object-fit: cover; }
.which-app .cmp-shot.empty { color: #c7c7cc; }

/* "Phoenix" in black, the app word in the app's colour; weight 500, letter-spacing 0 */
.which-app .pname { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.which-app .pname.sm { gap: 7px; margin-bottom: 6px; }
.which-app .cmp .pname { justify-content: center; }
.which-app .lkt { font-weight: var(--logo-weight); white-space: nowrap; letter-spacing: 0; }
.which-app .pname .lkt { font-size: 26px; }
.which-app .pname.sm .lkt { font-size: 19px; }
.which-app .lkt .w { color: var(--c); }
.which-app .cmp .pname .lkt .p { color: #000; }

.which-app .cmp-one { color: var(--ink-2); font-size: 15px; min-height: 3.2em; margin-top: 4px; }
.which-app .cmp-price { font-size: 24px; font-weight: 600; margin-top: 14px; letter-spacing: 0; }
.which-app .cmp-price span { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.which-app .cmp ul { list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.which-app .cmp li { padding: 8px 0; }
.which-app .cmp li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin: 0 auto 8px; }
.which-app .cmp.soon { opacity: .85; }

/* "Coming next" (Score's yellow) */
.which-app .badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px; letter-spacing: 0; }
.which-app .badge.red { color: var(--c); background: var(--c-soft); }

/* actions: the one indigo */
.which-app .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; margin-bottom: -1px; min-height: 40px; align-items: center; }   /* 40 in all three columns, so the three bullet lists start on one line; the -1 keeps them where the board had them (the old row was 39) */
.which-app .btns.c { justify-content: center; }
.which-app .pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 980px; padding: 11px 22px; font-size: 17px; font-weight: 400; line-height: 1.2; border: 1px solid transparent; transition: background-color var(--d-hover) var(--ease); }
.which-app .pill.xs { justify-content: center; height: 40px; padding: 0 20px; font: 500 15px/1 var(--font-text); }   /* the system's inline button (was 13px, 28 high, 6 13 padding, Display 400) */
.which-app .pill.primary { background: var(--blue); color: #fff; }
.which-app .pill.primary:hover { background: var(--blue-hover); }
.which-app .link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 0; color: var(--link); text-decoration: none; }   /* a .link-arrow.is-accent: the shared arrow, Text 500 15, the action colour; same height and centre line as the pill beside it */

@media (max-width: 820px) {
  .which-app .compare { grid-template-columns: 1fr; }
}

/* Phone pass (13 Oct): the same block, with touch-sized buttons and a stacked layout that does not run on and on.
   Nothing changes in the cards' words, colours or pictures. */
@media (max-width: 820px) {
  .which-app .compare { gap: 0; }
  .which-app .cmp + .cmp { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }          /* a line between two apps, so each reads as its own */
  .which-app .cmp-one { min-height: 0; }                                                                       /* the equal-height reserve is for three in a row */
  .which-app .btns { gap: 8px 16px; margin-top: 16px; }
  .which-app .pill.xs { min-height: 44px; padding: 0 20px; font-size: 15px; }                                  /* 44 px targets, 8 px apart */
  .which-app .link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
  .which-app .cmp ul { padding-top: 12px; margin-top: 16px; }
  .which-app .cmp li { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; }  /* the dot sits beside the line, not above it */
  .which-app .cmp li::before { flex: none; margin: 0; }
  .which-app .c-mkt .cmp-shot { grid-template-rows: minmax(0, 1fr); }                             /* the frame stays 220 px tall; the phone screen is cropped to its top, not stretched */
  .which-app .c-mkt .cmp-shot img { display: block; width: min(100%, 340px); margin-inline: auto; }   /* in a wide frame (a big phone, a folded one) the screen stays phone-sized and centred */
}

/* On a black page (html[data-theme="dark"], .on-dark, .is-black) the block takes the board's dark skin: the dark tones, a white "Phoenix", the tile for the picture frame.
   Page CSS (reach, post, score) carried its own copy of these lines; they now say the same thing twice. */
:is([data-theme="dark"], .on-dark, .is-black) .which-app .c-mkt  { --c: var(--mk-mkt-dark); }
:is([data-theme="dark"], .on-dark, .is-black) .which-app .c-mkt2 { --c: var(--mk-mkt-2-dark); }
:is([data-theme="dark"], .on-dark, .is-black) .which-app .c-ops  { --c: var(--mk-ops-dark); }
:is([data-theme="dark"], .on-dark, .is-black) .which-app :is(.c-mkt, .c-mkt2, .c-ops) { --c-soft: color-mix(in srgb, var(--c) 15%, transparent); --c-line: color-mix(in srgb, var(--c) 46%, transparent); }
:is([data-theme="dark"], .on-dark, .is-black) .which-app .cmp .pname .lkt .p { color: var(--ink); }
:is([data-theme="dark"], .on-dark, .is-black) .which-app .cmp-shot.empty { color: #3a3a3d; }
:is([data-theme="dark"], .on-dark, .is-black) .which-app .cmp.soon { opacity: 1; }                                  /* board .dk-skin .cmp.soon: the soon card is full strength on black */
:is([data-theme="dark"], .on-dark, .is-black) .which-app .link.link-arrow { color: var(--c); }              /* board .dk-skin .link: the text link takes the app's colour on black (the Learn more pill stays the one indigo) */
