@charset "utf-8";

/* ============================================================================
   League Lens
   ----------------------------------------------------------------------------
   Linked on every League Lens page, after the shared sheets. League Lens has a
   brand kit, Open Aperture 1.0 (docs/league-lens-site.md), and this sheet
   carries the parts of it a palette cannot:

     1  Avenir Next, the kit's typeface, for brand headlines where the reader
        has it (every Apple device). Elsewhere they fall back to DM Sans;
     2  the app icon beside the typed name in the masthead and on the splash.
        The kit's lockups still spell the old name, so they aren't used;
     3  the splash and the gallery, which are pictures of the iPhone app: the
        phone frame, the fanned hero, the week's schedule, and the motion
        that goes with them. Motion is opt-in: the script adds .ll-motion only
        when the reader hasn't asked for reduced motion, and every reveal
        starts from the finished state without it.

   The palette is not here. It arrives inline on <html> like every product's,
   from the kit and the app's dark-mode colours (src/microsite-brand.mjs).
   ========================================================================== */

/* ── 1. Type ─────────────────────────────────────────────────────────────── */

html[data-product='league-lens'] {
  --brand: "Avenir Next", Avenir, var(--ui);
  --ll-radius: 14px;
  --ll-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

html[data-product='league-lens'] :is(h1, h2, .statement) {
  font-family: var(--brand);
  font-weight: 600;
}

/* ── 2. The icon ─────────────────────────────────────────────────────────── */

/* The kit's icon is an opaque square; on the web it's shown as a rounded
   tile, which the kit allows as a presentation treatment. */
.wordmark__icon--tile {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

/* ── 3. Product pictures ─────────────────────────────────────────────────── */

html[data-product='league-lens'] .section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

html[data-product='league-lens'] .section__head h2 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

html[data-product='league-lens'] .section__head .lead {
  margin-top: var(--s1) !important;
  font-size: 1.05rem;
}

/* A phone, cut to the screen's own corners. */
.llp {
  margin: 0;
}

.llp__screen {
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: 13% / 6%;
  background: #000;
  box-shadow: var(--ll-shadow);
}

.llp__screen .shot__pic,
.llp__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.llp figcaption {
  margin-top: var(--s2);
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.45;
}

.llp figcaption strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
  font-weight: 600;
}

/* ── Hero ── */

.ll-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(40rem 30rem at 74% 52%, color-mix(in srgb, var(--accent-deep) 30%, transparent), transparent 70%),
    radial-gradient(26rem 20rem at 92% 12%, color-mix(in srgb, #28c1bd 12%, transparent), transparent 70%),
    var(--bg);
}

.ll-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.ll-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0;
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--dim);
  font: 500 0.76rem/1.3 var(--ui);
}

.ll-status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.ll-status__sep {
  width: 1px;
  height: 0.8em;
  background: var(--line);
}

.ll-hero h1 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: var(--s3) 0 0;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.ll-hero h1 img {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  border-radius: 22%;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}

.ll-hero__promise {
  max-width: 30rem;
  margin: var(--s3) 0 0;
  font-family: var(--brand);
  font-size: clamp(1.25rem, 2.1vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.ll-hero__audience {
  max-width: 30rem;
  margin: var(--s2) 0 0;
  color: var(--dim);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ll-hero__stage {
  margin: 0;
}

/* Three phones, the middle one forward. */
.ll-fan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  max-width: 34rem;
  margin-inline: auto;
}

.ll-fan .llp figcaption {
  display: none;
}

.ll-fan .llp--0 {
  z-index: 1;
  transform: translateX(18%) rotate(-6deg) scale(0.88);
}

.ll-fan .llp--1 {
  z-index: 2;
}

.ll-fan .llp--2 {
  z-index: 1;
  transform: translateX(-18%) rotate(6deg) scale(0.88);
}

.ll-hero__stage > figcaption {
  max-width: 32rem;
  margin: var(--s4) auto 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.ll-motion .ll-fan .llp--1 {
  animation: ll-arrive 0.9s var(--ease) both;
}

.ll-motion .ll-fan .llp--0 {
  animation: ll-arrive-left 0.9s var(--ease) 0.2s both;
}

.ll-motion .ll-fan .llp--2 {
  animation: ll-arrive-right 0.9s var(--ease) 0.3s both;
}

@keyframes ll-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
}

@keyframes ll-arrive-left {
  from { opacity: 0; transform: translateX(50%) rotate(0deg) scale(0.86); }
}

@keyframes ll-arrive-right {
  from { opacity: 0; transform: translateX(-50%) rotate(0deg) scale(0.86); }
}

/* Three facts under the hero, on one rule. */
.ll-proof {
  border-block: 1px solid var(--line-soft);
  background: var(--sink);
}

.ll-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
}

.ll-proof__grid > div {
  padding: var(--s3) var(--s3) var(--s3) 0;
}

.ll-proof__grid > div + div {
  padding-left: var(--s3);
  border-left: 1px solid var(--line-soft);
}

.ll-proof dt {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ll-proof dd {
  margin: 0.3rem 0 0;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Steps ── */

.ll-steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ll-steps__list::before {
  position: absolute;
  top: 1.05rem;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  transform-origin: left;
  content: "";
}

.ll-motion .ll-steps__list::before {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease) 0.15s;
}

.ll-motion .ll-steps__list.is-in::before {
  transform: none;
}

.ll-steps__list li {
  position: relative;
}

.ll-steps__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font: 500 0.85rem var(--mono);
}

.ll-steps__list h3 {
  margin: var(--s2) 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ll-steps__list p {
  margin: 0;
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ll-motion .ll-steps__list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.25s + var(--i) * 0.22s);
}

.ll-motion .ll-steps__list.is-in li {
  opacity: 1;
  transform: none;
}

/* ── A feature beside its phones ── */

.ll-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ll-feature--flip .ll-feature__copy {
  order: 2;
}

.ll-feature__copy h2 {
  margin: var(--s1) 0 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.ll-feature__copy .lead {
  margin-top: var(--s2);
  font-size: 1.05rem;
}

.ll-feature__phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  align-items: start;
  max-width: 30rem;
  margin-inline: auto;
}

.ll-feature__phones--one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 17rem;
}

.ll-feature__phones .llp + .llp {
  margin-top: var(--s5);
}

/* The week, as a ruled schedule. */
.ll-week {
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
}

.ll-week li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--s2);
  padding-block: 0.75rem;
  border-top: 1px solid var(--line-soft);
}

.ll-week li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.ll-week b {
  color: var(--accent);
  font: 500 0.74rem/1.7 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ll-week span {
  color: var(--dim);
  font-size: 0.93rem;
  line-height: 1.55;
}

.ll-week strong {
  color: var(--text);
  font-weight: 600;
}

/* What League Lens works out itself. */
.ll-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s3);
  margin: var(--s4) 0 0;
  padding: 0;
  list-style: none;
}

.ll-numbers li {
  padding-block: 0.7rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.ll-numbers li strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.ll-numbers li span {
  color: var(--dim);
}

/* ── What it does ── */

.ll-does__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ll-does__list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.ll-does__list li::before {
  position: absolute;
  top: 1.35rem;
  left: 0.15rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  content: "";
}

/* ── Reveals ── */

.ll-motion .ll-feature__phones .llp,
.ll-motion .ll-gallery .llp {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.ll-motion .ll-feature__phones .llp.is-in,
.ll-motion .ll-gallery .llp.is-in {
  opacity: 1;
  transform: none;
}

.ll-motion .ll-feature__phones .llp + .llp {
  transition-delay: 0.15s;
}

/* ── Gallery ── */

.ll-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4) var(--s3);
  align-items: start;
}

.ll-gallery__note {
  max-width: 44rem;
  margin: var(--s5) 0 0;
  color: var(--dim);
  font-size: 0.9rem;
}

/* ── Narrower screens ── */

@media (max-width: 64rem) {
  .ll-hero__grid,
  .ll-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .ll-feature--flip .ll-feature__copy {
    order: 0;
  }

  .ll-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ll-steps__list::before {
    display: none;
  }

  .ll-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .ll-status__sep {
    display: none;
  }

  .ll-proof__grid,
  .ll-does__list,
  .ll-steps__list,
  .ll-numbers {
    grid-template-columns: minmax(0, 1fr);
  }

  .ll-proof__grid > div,
  .ll-proof__grid > div + div {
    padding: var(--s2) 0;
    border-left: 0;
  }

  .ll-proof__grid > div + div {
    border-top: 1px solid var(--line-soft);
  }

  .ll-week li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }

  .ll-feature__phones .llp + .llp {
    margin-top: var(--s3);
  }

  .ll-feature__phones figcaption {
    display: none;
  }

  .ll-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 4. Gallery assets ───────────────────────────────────────────────────── */

/* The app icon, whole, as a rounded tile sized to the plate's inner height. */
html[data-product='league-lens'] .plate__art img {
  width: auto;
  max-width: 100%;
  height: calc(13rem - 2 * var(--s3) - 2px);
  border-radius: 22%;
}

/* The kit's five named colours, each with a hairline, since navy sits on a
   ground nearly its own colour. */
html[data-product='league-lens'] .swatches--kit {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  border-radius: 0;
  overflow: visible;
}

html[data-product='league-lens'] .swatches--kit i {
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}

html[data-product='league-lens'] .typespec--kit {
  gap: 0.6rem;
  text-align: left;
}

html[data-product='league-lens'] .typespec--kit b {
  font-family: var(--brand);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

html[data-product='league-lens'] .typespec--kit em {
  color: var(--dim);
  font-family: var(--brand);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

/* ── 5. Bring your own AI ────────────────────────────────────────────────── */

/* Three ruled cards. The state is a word, not a colour, so "Planned" reads
   the same in a screenshot, a screen reader and print. */
.ll-models__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ll-models__list li {
  padding: var(--s4) var(--s3);
  border: 1px dashed var(--line);
  border-radius: var(--ll-radius);
}

.ll-models__list li.is-today {
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--raise));
}

.ll-models__state {
  margin: 0;
  color: var(--dim);
  font: 500 0.7rem/1.5 var(--mono);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.is-today .ll-models__state {
  color: var(--accent);
}

.ll-models__list h3 {
  margin: var(--s2) 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.ll-models__list li > p:last-child {
  margin: 0;
  color: var(--dim);
  font-size: 0.93rem;
  line-height: 1.6;
}

.ll-motion .ll-models__list li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.15s + var(--i) * 0.15s);
}

.ll-motion .ll-models__list.is-in li {
  opacity: 1;
  transform: none;
}

@media (max-width: 46rem) {
  .ll-models__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
