/* ==========================================================================
   Harbour — Job Conversation Challenge page (/challenge).
   A night poster. Builds on landing.css (tokens, nav, buttons, footer,
   sticky join button).
   ========================================================================== */

.cup-page h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.cup-page h2 {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 24ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* shared bits ----------------------------------------------------------- */
.cup-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--ink-navy);
  color: var(--paper);
  font-weight: 700;
  font-size: var(--fs-body-sm);
  flex-shrink: 0;
}
.cup-days {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cup-wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }

.cup-pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.cup-prize { display: flex; align-items: center; gap: 1.25rem; }
.cup-prize p { font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; max-width: 20ch; }
.cup-medal {
  display: grid;
  place-items: center;
  width: clamp(5rem, 12vw, 7rem);
  aspect-ratio: 1;
  border-radius: 999px;
  flex-shrink: 0;
}
.cup-medal svg {
  width: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================== A · poster */
.cup-a { background: var(--near-black); }
.cup-a .site-nav:not(.scrolled) { background: transparent; }

.cup-hero {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 85% 20%, color-mix(in srgb, var(--steel) 28%, transparent), transparent 60%),
    linear-gradient(180deg, var(--indigo-dusk) 0%, var(--near-black) 100%);
  padding-top: clamp(5.5rem, 12vh, 6.5rem);
  overflow: hidden;
}
.cup-hero .cup-wave { fill: var(--paper); margin-top: clamp(2rem, 5vw, 3.5rem); }
.cup-hero-inner {
  /* the dark hero fills the first screen, so the wave (the brightest edge on
     the page) starts below the fold and the join button stays the most
     salient thing in view (L01) */
  min-height: calc(100svh - clamp(5.5rem, 12vh, 6.5rem) - clamp(2rem, 5vw, 3.5rem));
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cup-kicker {
  color: var(--pale-yellow);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.cup-question {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--paper);
  margin-top: 0.75rem;
}
.cup-lede { color: var(--sea-mist); max-width: 46ch; margin-top: 0.75rem; }

.cup-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}
.cup-facts li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sea-mist) 14%, transparent);
  font-size: var(--fs-body-sm);
  line-height: 1.4;
}
.cup-facts svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  fill: none;
  stroke: var(--pale-yellow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 0.1rem;
}
.cup-facts strong { display: block; color: var(--paper); font-weight: 600; }
.cup-facts span span { color: var(--sea-mist); }

.cup-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}
.cup-countdown { color: var(--sea-mist); font-size: var(--fs-body-sm); max-width: 30ch; line-height: 1.4; }
.cup-countdown .cup-days { color: var(--pale-yellow); font-size: var(--fs-h3); margin-right: 0.35rem; vertical-align: -0.12em; }

/* the talking collage: the contest panel on a torn-paper card */
.cup-collage {
  position: relative;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sea-mist) 18%, transparent), 0 24px 60px color-mix(in srgb, var(--near-black) 45%, transparent);
  transform: rotate(1.5deg);
}
.cup-collage > svg { display: block; width: 100%; height: auto; }
/* the mouth that opens is the night sea; the cut edge is dawn-cream paper */
.cup-collage .cup-cavity { fill: var(--near-black); }
.cup-collage .cup-cut { fill: none; stroke: var(--dawn-cream); stroke-width: 2.5; stroke-linecap: round; }
.cup-collage .cup-lift-shadow { flood-color: var(--near-black); }
/* nothing to pause when the reader asked for no motion */
@media (prefers-reduced-motion: reduce) { .cup-collage .media-toggle { display: none; } }

/* scenarios on paper */
.cup-scenarios {
  position: relative;
  margin-top: -2px; /* covers the hero's sub-pixel edge under the wave */
  background: var(--paper);
  color: var(--ink-navy);
  padding-block: clamp(2rem, 6vw, 4rem) clamp(3rem, 8vw, 6rem);
  --focus-ring: var(--ink-navy);
}
.cup-sc-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.cup-sc { position: relative; }
.cup-sc img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
}
.cup-sc .cup-num { position: absolute; top: 0.25rem; left: 0.25rem; box-shadow: 0 0 0 4px var(--paper); }
.cup-sc p { margin-top: 1rem; font-weight: 500; max-width: 26ch; }
.cup-sc-mystery { display: flex; flex-direction: column; }
.cup-mystery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px dashed color-mix(in srgb, var(--ink-navy) 35%, transparent);
  color: var(--ink-navy);
  font-size: var(--fs-display);
  font-weight: 700;
  padding-inline: 18%;
}
.cup-mystery span:last-child { color: var(--ink-navy-soft); transform: translateY(18%) rotate(12deg); }

/* prizes at night */
.cup-prizes { background: var(--near-black); padding-block: clamp(3rem, 8vw, 6rem); }
.cup-prizes h2 { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.cup-a .cup-medal { background: var(--navy-raised); color: var(--pale-yellow); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pale-yellow) 25%, transparent), 0 0 40px color-mix(in srgb, var(--beacon) 12%, transparent); }
.cup-a .cup-prize p { color: var(--paper); }
.cup-a .cup-pr-grid { margin-bottom: 0; }

/* take part at dawn */
.cup-join {
  background: linear-gradient(180deg, var(--dawn-cream) 0%, color-mix(in srgb, var(--dawn-cream) 30%, var(--paper)) 100%);
  color: var(--ink-navy);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.cup-join-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cup-join h2 { margin-inline: auto; }
.cup-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
  max-width: 60rem;
  margin-bottom: 2rem;
}
.cup-steps li { display: flex; align-items: flex-start; gap: 0.75rem; text-align: left; font-weight: 500; }
.cup-join .cup-study { max-width: 56ch; margin: 0 auto 1rem; color: var(--ink-navy); }
.cup-join .cup-study strong { color: var(--ink-navy); }
.cup-privacy { max-width: 56ch; margin: 0 auto 2rem; color: var(--ink-navy-soft); font-size: var(--fs-body-sm); }

/* ------------------------------------------------- study note + sticky */
.cup-study {
  margin-top: 1rem;
  color: var(--sea-mist);
  font-size: var(--fs-body-sm);
  max-width: 52ch;
}
.cup-study strong { color: var(--paper); font-weight: 600; }
/* After the qualifying deadline (challenge.js adds .cup-closed): no sign-up. */
.cup-closed-note { display: none; margin-top: 1rem; color: var(--pale-yellow); font-weight: 600; }
.cup-closed .cup-closed-note { display: block; }
.cup-closed [data-cup-signup],
.cup-closed .sticky-cta,
.cup-closed .cup-study { display: none !important; }
/* The page's nav has no join button, so the floating one shows at every width. */
@media (min-width: 1152px) { .cup-page .sticky-cta { display: flex; } }

/* ------------------------------------------------------------------ nav */
/* No Menu button on this page: the three links stay in the bar at every
   width (landing.css folds .nav-links into a menu below 1152px). */
.cup-page .cup-nav-links {
  display: flex;
  position: static;
  flex-direction: row;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  padding: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.cup-page .cup-nav-links a:not(.btn):not(.lang-toggle) { padding-block: 0.6rem; }
/* every target in the bar is at least 44px tall (L14) */
.cup-page .cup-nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.cup-page .nav-brand { min-height: 44px; }
.cup-page .cup-nav-links .lang-toggle { min-width: 44px; justify-content: center; }
.cup-page .cup-nav-links .lang-toggle { margin-block: 0; }
.cup-back { display: inline-flex; align-items: center; gap: 0.3rem; }
.cup-back svg { flex-shrink: 0; }
/* narrow phones: sign-in moves to the footer, the way back stays */
@media (max-width: 480px) {
  .cup-nav-signin { display: none; }
  .cup-page .nav-brand img { height: 28px; }
}

/* ========================================================== small screens */
@media (max-width: 900px) {
  .cup-hero-inner { grid-template-columns: 1fr; }
  .cup-hero-inner { min-height: 0; }
  /* phones: title and join button first, the collage after them */
  .cup-collage { max-width: 22rem; }
  .cup-facts { grid-template-columns: 1fr; }
  .cup-sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cup-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
}
