/* Phoenix Score page (/score/): dark product page, Team red.
   Loads after site.css and (in the page header order) after /assets/brand/which-app.css. Only what the page alone needs, every class
   prefixed score-. The shared words stack (.split-words) and .tile-full come from site.css (section 20); this file centres the hero's words
   on that stack and sets the phone padding of the one .tile-full. The red comes from body[data-kind="int"] through --kind-text /
   --kind-soft / --kind-line; the one indigo is the main button ("Get notified", hero and closing, never in the same screenful).
   Spacing: docs/spacing-maps/score.md. Crops: tools/score-crops.py (img/score/*.webp).

    2  Hero                              6  Testimonials, FAQ
    3  Still typing, the bento           7  Want a full ERP?, closing
    4  Start where the data starts       8  Which app block on black
    5  What it does, and what it doesn't
*/

/* ============================================================ 2. Hero */
/* The Reach and Post hero: the words centred on the page (lockup and status row, headline, lead, price line, the one button and the
   link, the fine line), then the product under them with 64 between. Gaps are the shared words stack: 12, 16, 16, 32, 16, then 64.
   The quote is a 762-wide crop of one screen (cut at 1.2 of its size so its smallest label shows at 13px or more), so the window keeps
   that width, centred, instead of running the 1180 of Reach's and Post's whole-app screens; it fades into the page at its foot. */
.score-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--s-64); }
.score-hero-text { align-items: center; text-align: center; }
.score-hero-text > .score-kicker + h1 { margin-top: var(--s-12); }
.score-hero-text .display { max-width: 22ch; }
.score-hero-text .lead { max-width: 680px; }
.score-kicker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-12); }
.score-lockup { display: inline-flex; align-items: center; gap: var(--s-8); font: 500 21px/28px var(--font-display); color: var(--ink); letter-spacing: 0; }
.score-lockup .crest { width: 24px; height: 24px; }
.score-hero-price { color: var(--ink); }
.score-down::after { transform: rotate(90deg); }                                  /* the thin arrow points down for "See how a quote gets done" */
.score-down:hover::after { transform: rotate(90deg) translateX(var(--arrow-go)); }
.score-fine { margin-top: var(--s-16); text-align: center; }
.score-price-note { text-wrap: balance; }                                         /* even lines: the last word never stands alone (its last two words are also tied in the page) */

.score-hero-art { position: relative; margin-top: var(--s-64); }
.score-hero-art::before {                                                         /* a faint monochrome halo behind the window */
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 70%);
}
.score-window {
  max-width: 762px; margin-inline: auto; border-radius: 14px 14px 0 0; border-bottom: 0;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 120px), transparent); mask-image: linear-gradient(#000 calc(100% - 120px), transparent);
}
.score-window .score-shot { display: block; width: 100%; height: auto; border-radius: 0; background: var(--tile); }   /* the window clips, not the picture */

/* ============================================================ 3. Still typing, the bento */
/* A crop is a picture cut to the part of a screen a tile is about (tools/score-crops.py). --w is its width in css px at the scale it was cut
   for (1.1 to 1.26 of the screen), so it never shows smaller than that: when the tile is narrower the frame clips the right edge. */
.score-media img { display: block; width: max(100%, calc(var(--w) * 1px)); max-width: none; height: auto; }
.score-media.is-flush { padding-left: 0; }
.score-media.is-flush > .frame-window { border-radius: 0; border-left: 0; }
#typing .tile-media img { display: block; width: max(100%, 780px); max-width: none; height: auto; }

.score-step { display: flex; align-items: baseline; gap: var(--s-12); }
.score-n { flex: none; font-size: 17px; color: var(--kind-text); }                   /* Mono one step below the h4 it numbers */
@media (min-width: 900px) {
  .score-s7 { grid-column: span 7; }
  .score-s5 { grid-column: span 5; }
  .score-wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .score-wide > .tile-text { align-self: center; padding: var(--s-48) var(--s-32); }
  .score-wide > .tile-media { align-self: end; margin-top: 0; padding-top: var(--s-32); }
}
.section-head .lead { text-wrap: pretty; }

/* ============================================================ 4. Start where the data starts */
.score-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.score-flow { padding: var(--s-48) var(--s-32); }
.score-flow svg { display: block; width: 100%; height: auto; overflow: visible; }
.score-flow .score-flow-tall { display: none; max-width: 320px; margin-inline: auto; }
.score-flow-tall .fl-cap { font-size: 15px; }                              /* the 320-wide drawing sits in a 310 box at 390 (.97) and in less on a narrower phone: 15 draws as 14.5 here and stays 13 or more down to a 360 phone */
@media (min-width: 768px) and (max-width: 1279px) {                         /* the wide drawing only from 1280: scaled below that its words fell under 13 px (13 and 14 Oct QA, PROD-62) */
  .score-flow .score-flow-wide { display: none; }
  .score-flow .score-flow-tall { display: block; }
}
.fl-node { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.fl-ic { color: var(--ink-2); }
.fl-label { font: 600 17px var(--font-display); fill: var(--ink-2); letter-spacing: 0; }
.fl-cap { font: 500 13px var(--font-text); fill: var(--kind-text); letter-spacing: 0; }
.fl-link { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; stroke-linecap: round; stroke-linejoin: round; }
.fl-link.is-lit { stroke: var(--kind-text); }
.fl-lit .fl-node { fill: var(--kind-soft); stroke: var(--kind-text); stroke-width: 1.5; }
.fl-lit .fl-glow { fill: none; stroke: var(--kind-text); stroke-opacity: .28; stroke-width: 1; }
.fl-lit .fl-ic { color: var(--kind-text); }
.fl-lit .fl-label { fill: var(--ink); }
.score-one { max-width: 560px; margin: var(--s-32) 0 0; }                                 /* left, on the grid, at every width (like the other section heads) */
.score-one > * + * { margin-top: var(--s-12); }

/* ============================================================ 5. What it does, and what it doesn't */
.score-scope { align-items: stretch; }
.score-scope .card > * + * { margin-top: var(--s-24); }
.score-no { display: grid; gap: var(--s-12); padding: 0; list-style: none; color: var(--ink-2); }
.score-no li { display: flex; align-items: flex-start; gap: var(--s-12); }
.score-no li::before { content: ""; flex: none; width: 12px; height: 1.5px; margin: 11px 4px 0; border-radius: var(--r-pill); background: var(--ink-2); }
.score-scope + .score-soon { margin-top: var(--s-24); }
.score-soon { display: grid; gap: var(--s-24) var(--s-48); align-items: center; padding: var(--s-24) var(--s-32); border: 1.5px dashed var(--kind-line); border-radius: 20px; }
@media (min-width: 900px) { .score-soon { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.score-soon-head > * + * { margin-top: var(--s-12); }
.score-soon-head > .pill { display: inline-flex; }
.score-chip-soon { color: var(--ink-2); background: transparent; box-shadow: none; border: 1px dashed var(--kind-line); }

/* ============================================================ 6. Testimonials, FAQ */
/* The Reach testimonial block: sample cards in three columns 16 apart, the middle one 48 lower from 900; stacked 16 apart under that. One quote
   a column here (Reach has two a column and one made-up figure; Score has three quotes and no figure to show). */
.score-t-grid { display: grid; gap: var(--s-16); }
.score-t-col { display: flex; flex-direction: column; gap: var(--s-16); }
@media (min-width: 900px) {
  .score-t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .score-t-col:nth-child(2) { padding-top: var(--s-48); }
  .score-t-col:nth-child(2) > * { transition-delay: calc(120ms + var(--i, 0) * var(--stagger)); }
  .score-t-col:nth-child(3) > * { transition-delay: calc(240ms + var(--i, 0) * var(--stagger)); }
}

.score-faq { display: grid; gap: var(--s-48); }
.score-faq > .section-head { margin-bottom: 0; }
@media (min-width: 900px) { .score-faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }   /* same 4 / 8 split and gap as the Reach FAQ */

/* ============================================================ 7. Want a full ERP?, closing */
.score-erp { display: grid; gap: var(--s-32) var(--s-48); padding: var(--s-48) var(--s-32); }
@media (min-width: 900px) { .score-erp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding: var(--s-48); align-items: center; } }
.score-erp-text > * + * { margin-top: var(--s-16); }
.score-erp-text .lead { max-width: 560px; }
.score-erp-text > .score-erp-actions { margin-top: var(--s-32); }
.score-erp-price > * + * { margin-top: var(--s-8); }
.score-erp-price > .ticks { margin-top: var(--s-24); }

.score-closing {
  position: relative; display: grid; overflow: hidden; border-radius: 24px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line);
}
.score-closing-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: var(--s-48) var(--s-32); }
.score-closing-text > * + * { margin-top: var(--s-16); }
.score-closing-text > .score-closing-actions { margin-top: var(--s-32); }
.score-closing-text > p { max-width: 420px; }
.score-closing-scene { position: relative; aspect-ratio: 3 / 2; }
.score-closing-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.score-closing-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #111114 0%, rgba(17, 17, 20, .6) 10%, rgba(17, 17, 20, 0) 28%); pointer-events: none; }
@media (min-width: 900px) {
  .score-closing { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 520px; }
  .score-closing-text { padding: var(--s-48); }
  .score-closing-scene { aspect-ratio: auto; }
  .score-closing-scene::after { background: linear-gradient(90deg, #111114 0%, rgba(17, 17, 20, .82) 9%, rgba(17, 17, 20, .52) 18%, rgba(17, 17, 20, .22) 28%, rgba(17, 17, 20, 0) 40%); }
}

/* ============================================================ 8. Which app block on black */
/* The board's block is unchanged (markup and which-app.css, whose dark skin takes over on a black page). Only its own 64/72 padding goes here,
   so the shared gap is the only gap. */
.score-which .which-app { padding-block: 0; }

/* ============================================================ phone */
@media (pointer: coarse) { .score-hero .link-arrow, .score-one .link-arrow, .score-closing .link-arrow { min-height: 44px; } }   /* tablets by finger too */
@media (max-width: 899px) {
  .score-closing-scene::after { background: linear-gradient(0deg, #111114 0%, rgba(17, 17, 20, .6) 10%, rgba(17, 17, 20, 0) 28%); }
}
@media (max-width: 767px) {
  .score-lockup { font-size: 19px; line-height: 24px; }
  .score-window { max-width: 480px; }                                             /* the phone crop (358 wide) never stretches past 1.34 of its size on a big phone or a small tablet */
  .tile-full { --pad: var(--s-24); gap: var(--s-32); }                              /* the one .tile-full: the screen runs edge to edge under the words */
  .tile-full > .tile-media.is-bleed { margin-left: calc(-1 * var(--pad)); }
  .tile-full > .tile-media.is-bleed > .frame-window { border-left: 0; border-radius: 0; }
  .tile-full > .tile-media.is-bleed picture > img { border-radius: 0; }

  /* the tiles' pictures run edge to edge in the tile, and are the phone screens cut at their own size */
  .score-media { padding-left: 0; }
  .score-media > .frame-window, .score-media.is-flush > .frame-window { border-radius: 0; border-left: 0; }
  .score-media img, #typing .tile-media img { width: 100%; }
  .score-which .which-app .btns { gap: var(--s-8); }
  .score-which .which-app .btns :is(.pill, .link) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .score-flow { padding: var(--s-32) var(--s-24); }
  .score-flow .score-flow-wide { display: none; }
  .score-flow .score-flow-tall { display: block; }
}
