/* Home hero, the Scorecard (the captain's pick, 8 Nov): the title AI interviews over the line Depth of an interview, reach of a survey, under it what Elly does and the 2 buttons, and on the right half a survey, a human interviewer and Elly scored on 3 rows (the captain, 9 Nov: title "links boven", text "links beneden", the card "rechts 50% width"); phones stack them in that order. Nothing moves, no photos. */
.hero-sc { padding: 40px 0 72px; }
/* The page's top glow (base.css .glow) is positioned, so it painted its pink over the unpositioned title and card; positioning the content lifts it above, as .hero-grid did for the old hero */
.hero-sc .wrap { position: relative; }
.hero-sc .hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-bottom: 32px; }
.hero-sc h1 { font-size: clamp(56px, 6.2vw, 92px); line-height: 1; letter-spacing: -0.02em; }
.hero-sc h1 em { display: inline; font-style: normal; color: var(--magenta-hot); }
.hero-sc .hero-sub { margin-top: 14px; max-width: 18em; font-family: var(--font-heading); font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.hero-sc .hero-sub em { font-style: normal; color: var(--magenta-hot); }
.hero-sc .hero-side .lede { max-width: 30em; margin-top: 0; font-size: 19px; line-height: 1.5; }
.hero-sc .hero-side .hero-actions { margin-top: 20px; }
.hero-sc .hero-visual > [lang] { width: 100%; }

/* The scorecard as concept A, the Light-up table (the captain's pick, 9 Nov): a dark glass card on the night, white row names in Montserrat, quiet grey marks for the survey and the human interviewer, and Elly's column as one blue light with solid green ticks; no score row */
.scorecard { position: relative; display: grid; padding: 8px 16px 12px 24px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); color: #fff; box-shadow: 0 40px 80px -40px rgba(10, 7, 14, .6); }
/* Elly's column is one shape behind the cells, so its gradient, glow and shine run unbroken from the name to the last tick; 4.5 is the sum of the row's fr.
   Human interviewer gets the widest column, so Menschlicher or Entrevistador fits whole without hyphens */
.scorecard::before, .scorecard::after { content: ""; position: absolute; top: -16px; bottom: -16px; right: 16px; width: calc((100% - 40px) / 4.5); border-radius: 16px; pointer-events: none; }
.scorecard::before { background: linear-gradient(180deg, #4183BD 0%, #26547C 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 24px 60px -20px rgba(65, 131, 189, .75); }
.scorecard::after { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .32), transparent) 0 -100% / 100% 45% no-repeat; }
.sc-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
.sc-row:not(.head) .sc-what, .sc-row:not(.head) .sc-v:not(.elly) { border-top: 1px solid var(--line-on-dark); }
.sc-row:not(.head) .sc-v.elly { border-top: 1px solid rgba(255, 255, 255, .16); }
.sc-what { display: flex; align-items: center; padding: 14px 12px 14px 0; font-family: var(--font-heading); font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
/* Icons on one top line, names under them, so a 2-line name never pushes its icon out of line */
.sc-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 22px 2px 14px; text-align: center; }
/* Survey and Human interviewer heads a step brighter, so visitors read them as the comparison at a glance (the captain, 9 Nov: "lightly pop a bit more"); Elly stays the strongest */
.sc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: var(--text-on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.sc-icon .icon { width: 22px; height: 22px; }
.scorecard .icon { fill: currentColor; }
.sc-short { display: none; }
.sc-name { font-family: var(--font-heading); font-size: clamp(15px, 1.2vw, 17px); font-weight: 700; line-height: 1.2; color: var(--text-on-dark); text-wrap: balance; }
.sc-col.elly { margin-top: -24px; padding-top: 46px; }
.sc-col.elly .sc-icon { width: 48px; height: 48px; padding: 6px; background: #fff; box-shadow: none; }
.sc-col.elly .sc-icon img { width: 100%; height: 100%; }
.sc-col.elly .sc-name { font-size: 20px; font-weight: 800; color: #fff; }
.sc-col.elly .sc-name small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--sky); }
.sc-v { display: grid; place-items: center; padding: 12px 0; }
.sc-row:last-child .sc-v.elly { margin-bottom: -28px; padding-bottom: 40px; }
.sc-v .mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.sc-v .mark .icon { width: 16px; height: 16px; }
.sc-v .mark-yes { background: rgba(6, 214, 160, .16); color: var(--mint); }
.sc-v .mark-no { background: rgba(255, 255, 255, .06); color: var(--faint-on-dark); }
.sc-v.elly .mark-yes { width: 40px; height: 40px; background: var(--mint); color: var(--aubergine); box-shadow: 0 0 0 6px rgba(6, 214, 160, .18); }
.sc-v.elly .mark-yes .icon { width: 18px; height: 18px; }

/* The whole table shows from the first frame; then only Elly lights up: her column glows, her mark and her 3 ticks pop one by one, a shine runs down the column, done in 2.6 s, then keeps breathing softly (the captain, 9 Nov: "show the full content immediately", "let Elly shine or pop more"). Computers only, where the card is in the first screen; phones and reduced motion keep this end state */
@media (min-width: 1081px) and (prefers-reduced-motion: no-preference) {
  .scorecard::before { animation: sc-glow 1.3s .3s ease-in-out both, sc-breathe 2.8s 2.6s ease-in-out infinite; }
  .scorecard::after { animation: sc-shine .9s 1.6s ease-in-out both; }
  .sc-col.elly .sc-icon { animation: sc-pop .55s .45s cubic-bezier(.3, 1.6, .5, 1) both; }
  .sc-v.elly .mark-yes { animation: sc-tick .7s .8s ease-out both, sc-tick-breathe 2.8s 2.6s ease-in-out infinite; }
  .sc-row:nth-child(3) .sc-v.elly .mark-yes { animation-delay: 1s, 2.8s; }
  .sc-row:nth-child(4) .sc-v.elly .mark-yes { animation-delay: 1.2s, 3s; }
}
/* After that, Elly's column keeps a subtle pop that never stops: the glow and her 3 ticks breathe on a 2.8 s loop, the ticks a beat apart (the captain, 9 Nov: "continous popping animation subtle but continuous"); the loops fill nothing, so the intro still decides every frame before 2.6 s */
@keyframes sc-breathe {
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), 0 24px 60px -20px rgba(65, 131, 189, .75), 0 0 40px 2px rgba(65, 131, 189, .4); }
}
@keyframes sc-tick-breathe {
  50% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(6, 214, 160, .24); }
}
@keyframes sc-glow {
  45% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 24px 60px -20px rgba(65, 131, 189, .75), 0 0 56px 6px rgba(65, 131, 189, .55); }
}
@keyframes sc-shine { from { background-position: 0 -100%; } to { background-position: 0 200%; } }
@keyframes sc-pop { 40% { transform: scale(1.18); } }
@keyframes sc-tick {
  0% { transform: none; box-shadow: 0 0 0 6px rgba(6, 214, 160, .18); }
  35% { transform: scale(1.28); box-shadow: 0 0 0 0 rgba(6, 214, 160, .6); }
  75% { transform: none; box-shadow: 0 0 0 16px rgba(6, 214, 160, 0); }
  100% { transform: none; box-shadow: 0 0 0 6px rgba(6, 214, 160, .18); }
}

/* Desktop: the title top left, what Elly does and the buttons under it, the scorecard on the right half */
@media (min-width: 1081px) {
  .hero-sc { padding: 56px 0 96px; }
  .hero-sc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 72px; row-gap: 32px; align-items: center; }
  .hero-sc .hero-top { display: contents; }
  .hero-sc .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .hero-sc .hero-side { grid-column: 1; grid-row: 2; align-self: start; }
  .hero-sc .hero-visual { grid-column: 2; grid-row: 1 / 3; padding-block: 20px 24px; }
  .hero-sc h1 { font-size: clamp(56px, 5vw, 76px); }
  .hero-sc .hero-sub { font-size: clamp(28px, 2.4vw, 36px); }
}

@media (max-width: 1080px) {
  .hero-sc .hero-top { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .scorecard { padding-inline: 28px; }
  .scorecard::before, .scorecard::after { right: 28px; width: calc((100% - 56px) / 4.5); }
  .hero-sc .hero-visual { max-width: 720px; }
}
/* Phones: each row's name runs over the Survey and Human interviewer marks, and Elly's mark sits beside both in one unbroken blue column, so every label keeps its full words at a readable size */
@media (max-width: 720px) {
  /* 40 px under the card plus the next section's 40 px top keeps the phone gap at 80 px */
  .hero-sc { padding: 24px 0 40px; }
  .hero-sc h1 { font-size: 48px; }
  .hero-sc .hero-sub { margin-top: 10px; font-size: 24px; }
  .hero-sc .hero-top { gap: 18px; margin-bottom: 24px; }
  .hero-sc .hero-side .lede { display: block; font-size: 17px; line-height: 1.55; }
  .scorecard { padding: 8px 12px 12px; border-radius: 16px; }
  /* 3.2 is the sum of the phone row's fr; the column sits inside the card here */
  .scorecard::before, .scorecard::after { top: 8px; bottom: 12px; right: 12px; width: calc((100% - 24px) * 1.2 / 3.2); border-radius: 12px; }
  .sc-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, 1.2fr); }
  .sc-row.head .sc-what { display: none; }
  .sc-row:not(.head) .sc-what { grid-column: 1 / 3; grid-row: 1; padding: 14px 4px 0; font-size: 20px; }
  .sc-row:not(.head) .sc-v:not(.elly) { grid-row: 2; border-top: 0; }
  .sc-row:not(.head) .sc-v.elly { grid-column: 3; grid-row: 1 / 3; align-items: end; padding-bottom: 9px; }
  .sc-col { gap: 8px; padding: 12px 2px 14px; }
  .sc-icon { width: 40px; height: 40px; }
  .sc-icon .icon { width: 18px; height: 18px; }
  .sc-name { font-size: 15px; }
  .sc-col.elly { margin-top: 0; padding-top: 12px; }
  .sc-col.elly .sc-icon { width: 40px; height: 40px; padding: 5px; }
  .sc-col.elly .sc-name { font-size: 20px; }
  .sc-col.elly .sc-name small { font-size: 15px; }
  .sc-v { padding: 8px 0 12px; }
  .sc-row:last-child .sc-v.elly { margin-bottom: 0; padding-bottom: 9px; }
  .sc-v .mark { width: 36px; height: 36px; }
  .sc-v .mark .icon { width: 16px; height: 16px; }
  .sc-v.elly .mark-yes { width: 40px; height: 40px; }
  .sc-v.elly .mark-yes .icon { width: 19px; height: 19px; }
}
@media (max-width: 374px) {
  .hero-sc h1 { font-size: 42px; }
  .hero-sc .hero-sub { font-size: 22px; }
  .scorecard { padding-inline: 10px; }
  .scorecard::before, .scorecard::after { right: 10px; width: calc((100% - 20px) * 1.2 / 3.2); }
  .sc-name { font-size: 14px; }
}
/* The narrowest phones (320 px): the long column names ran into each other in Italian, German, Spanish and Portuguese ("Sondaggio" into "Intervistatore");
   the human column shows its short name, which is then also the name a screen reader gives the column, and the survey column takes the width it frees (the 1.2 of Elly's column is kept) */
@media (max-width: 340px) {
  .sc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .sc-long { display: none; }
  .sc-short { display: inline; }
}
