/* The Many Ways course landing in the sunlit grammar (DESIGN.md "Słoneczny
   papier", the MW-Kurs / MWNoc-Kurs comps). Linked by
   app/views/many_ways/course_landings/show.html.erb alone (a manyways-only
   route). A plain stylesheet — no Tailwind pass — so only layout and the
   page's own pieces live here; controls and type come from the global .sl-*
   vocabulary and every colour from the tokens (no hex, one face). Motion:
   none beyond the compact bar sliding in once the hero's call has scrolled
   away; the page is complete and still without JS. */
.cl { font-size: 16px; line-height: 1.5; }
.cl-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cl-wrap { max-width: 1152px; margin: 0 auto; padding: 0 32px; }

/* ── hero: the title over the sun disc, the facts as tags, the calls ── */
.cl-hero { position: relative; overflow: hidden; padding-top: 52px; }
.cl-hero__disc {
  position: absolute; right: 32px; top: 36px; width: 320px; height: 320px; border-radius: 999px;
  background: var(--sun-disc); border: 1px solid var(--sun-disc-edge); pointer-events: none;
}
.cl-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-top: 32px; }
.cl-hero__text { min-width: 0; }
.cl-hero h1 { font-size: 64px; margin-top: 14px; }
.cl-hero h1 em { font-style: normal; color: var(--lav); }
.cl-hero .sl-lead { margin-top: 22px; max-width: 620px; }
.cl-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cl-hero__tags .sl-tag { gap: 8px; }
.cl-hero__tags .sl-tag svg { color: var(--lav); }
.cl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
/* the price rides the pill at full strength (no opacity): 14px/500 needs 4.5:1,
   teal on the band's white pill and white on teal both clear it only undimmed */
.cl-cta .sl-btn small { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cl-cover { position: relative; width: 240px; aspect-ratio: 1; margin: 72px 0 0 auto; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.cl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-hero--photo .cl-hero__photo { position: relative; margin-top: 40px; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.cl-hero--photo .cl-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── the stations: one section per landing section ── */
.cl-sec { margin-top: clamp(72px, 9vw, 112px); }
.cl-sec--first { margin-top: clamp(64px, 8vw, 96px); }
.cl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.cl-head__text { min-width: 0; }
.cl-head .sl-lead { margin-top: 12px; font-size: 18px; max-width: 640px; }
.cl-prose p { font-size: 18px; line-height: 1.5; letter-spacing: -0.012em; color: var(--ink2); margin: 0 0 16px; max-width: 640px; text-wrap: pretty; }
.cl-prose p:last-child { margin-bottom: 0; }
.cl-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cl-prose + .cl-grid-3, .cl-prose + .cl-grid-2 { margin-top: 28px; }

/* outcome cards and the for / not-for lists */
.cl-outcome { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.cl-num {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; flex: none;
  background: var(--lavt); color: var(--accent-hover); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cl-list-card { padding: 26px 28px; }
.cl-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cl-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink); }
.cl-list li svg { flex: none; margin-top: 2px; }
.cl-list--for li svg { color: var(--lav); }
.cl-list--not li { color: var(--ink2); }
.cl-list--not li svg { color: var(--line2); }

/* the tree: the course's real parts and lessons, titles only */
.cl-tree, .cl-tree ol { list-style: none; margin: 0; padding: 0; }
.cl-tree { overflow: hidden; }
.cl-tree > li + li { border-top: 1px solid var(--line); }
.cl-tree h3 {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 0;
  padding: 18px 24px; background: var(--paper);
  font-size: 15px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.3; color: var(--ink);
}
.cl-tree h3 small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cl-tree .desc { margin: 0; padding: 0 24px 16px; background: var(--paper); font-size: 14.5px; line-height: 1.5; color: var(--ink2); }
.cl-tree ol li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
  padding: 14px 24px 14px 48px; border-top: 1px solid var(--line);
  font-size: 16.5px; font-weight: 600; letter-spacing: -0.018em; line-height: 1.3; color: var(--ink);
}
/* title · tag · duration in fixed columns, so a row without a tag or a duration keeps the others in place */
.cl-tree ol li .cl-preview-tag { grid-column: 2; }
.cl-tree ol li .cl-dur { grid-column: 3; font-size: 14px; font-weight: 500; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cl-tree ol li a { color: var(--accent-hover); text-decoration: none; }
.cl-tree ol li a:hover { color: var(--ink); }
.cl-tree .cl-tree { margin: 0; border-top: 1px solid var(--line); }
.cl-tree .cl-tree h3 { padding-left: 48px; }
.cl-tree .cl-tree .desc { padding-left: 48px; }
.cl-tree .cl-tree ol li { padding-left: 72px; }

/* schedule: the dates as rows */
.cl-dates { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.cl-dates li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; align-items: baseline; padding: 20px 24px; border-top: 1px solid var(--line); }
.cl-dates li:first-child { border-top: 0; }
.cl-dates time { font-size: 19px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.cl-dates .when { font-size: 15px; font-weight: 500; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cl-dates .when b { color: var(--ink); font-weight: 600; }
.cl-dates .utc { grid-column: 2; font-size: 13.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.cl-seats { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--sun-soft); color: var(--on-sun-soft); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.cl-seats i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.cl-dates-card + .cl-seats, .cl-dates-card + .sl-body { margin-top: 18px; }

/* the preview: the one playable thing on the page */
.cl-player { padding: 28px 30px; }
.cl-player__row { display: flex; align-items: center; gap: 18px; }
.cl-player__row > div { min-width: 0; flex: 1; }
.cl-player .sl-meta { margin-top: 5px; }
.cl-player .cl-wave { margin-top: 22px; height: 30px; }
.cl-player audio { display: block; width: 100%; margin-top: 18px; }
.cl-player .sl-body { margin-top: 18px; }
.cl-wave span { height: var(--h, 10px); }

/* the moment: one real minute, in the module */
.cl-moment { margin-top: 4px; }
.cl-moment__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.cl-moment__line .sl-mark { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-moment h3 { margin-top: 12px; }
.cl-moment .cl-moment__text { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--ink); text-wrap: pretty; max-width: 70ch; }
.cl-moment .cl-wave { margin-top: 18px; height: 22px; max-width: 420px; }
.cl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }

/* proof: the quotes in modules */
.cl-quote { margin: 0; }
.cl-quote p { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); text-wrap: pretty; max-width: 32ch; }
.cl-quote footer { margin-top: 12px; }
.cl-quote--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cl-quote--row blockquote { margin: 0; }
.cl-quote--row p { font-size: 18px; }

/* practicalities: a hairline definition list */
.cl-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; overflow: hidden; }
.cl-facts dt { padding: 15px 0 15px 24px; font-size: 14px; font-weight: 500; color: var(--ink2); border-top: 1px solid var(--line); }
.cl-facts dd { margin: 0; padding: 15px 24px 15px 28px; font-size: 16px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--line); }
.cl-facts dt:first-of-type, .cl-facts dd:first-of-type { border-top: 0; }

/* teacher story: the portrait beside the words */
.cl-story { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: start; }
.cl-story__by { margin-top: 20px; } /* the name and the certification as .sl-facts */

/* pricing: the purchase card, or the waitlist card when the course is not open */
.cl-card { padding: 30px 32px; max-width: 620px; }
.cl-card--sun { background: var(--sun-card); color: var(--on-sun-card); border-color: transparent; }
.cl-card--sun .sl-small, .cl-card--sun .sl-body, .cl-card--sun .sl-meta, .cl-card--sun .sl-h4 { color: inherit; }
.cl-card .cl-note { margin: 0; }
.cl-card .cl-note + .sl-btn { margin-top: 16px; }
.cl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.cl-price b { font-size: 48px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.cl-price span { font-size: 14.5px; font-weight: 500; }
.cl-state { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* the currencies as chips (42px — a tap target on the phone), the chosen one .is-on */
.cl-currencies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cl-currencies a { text-decoration: none; }
.cl-includes { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.cl-includes li { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.cl-includes li svg { flex: none; margin-top: 3px; }
/* the consent row is the shared .sl-check-row (40px tap row, one checkbox
   look); only its place in the card is set here */
.cl-consent { margin: 14px 0 8px; font-size: 14px; line-height: 1.45; }
.cl-card .cl-submit { width: 100%; }
/* the consents: one 40px row per statement, the notice above them and the
   deadline and privacy lines under the button; links on the warm card take
   its ink, underlined, never teal on ochre */
.cl-notice { margin-bottom: 10px; }
.cl-notice p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.cl-close { font-weight: 600; }
.cl-card .cl-privacy { margin-top: 6px; }
.cl-card--sun a.sl-link--prose { color: inherit; text-decoration-color: currentColor; }
/* the warm purchase card: full column width, two columns on a desk with a
   hairline between them; the action column sits at the foot of the facts */
.cl-card--buy { max-width: none; }
@media (min-width: 901px) {
  .cl-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: end; }
  .cl-buy--top { align-items: start; }
  .cl-buy__act { padding-left: 48px; border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
  .cl-buy__act .cl-consent { margin-top: 0; }
  /* the fares' stub runs the card's height (the perforation with it), its
     contents set from the top, level with the first fare */
  .cl-fares__act { align-self: stretch; display: flex; flex-direction: column; }
}
.cl-card .sl-small { margin-top: 14px; }
.cl-wait { margin-top: 18px; }
.cl-wait .sl-btn { flex: none; }
/* on a warm surface the focus ring is the surface's own ink: teal on ochre
   is under 3:1 */
.cl-card--sun { --warm-ring: var(--on-sun-card); }
.cl-card--sun :focus-visible { outline-color: var(--warm-ring); }

/* the fares (a pricing section's `tiers`, the course not open yet): one
   line per option — the name, a leader in the perforation's dots, the
   price — with what it gives under the name and the note under the price;
   the email beside them, field over call */
.cl-fares { list-style: none; margin: 0; padding: 0; }
.cl-fare {
  display: grid; grid-template-columns: minmax(0, max-content) minmax(16px, 1fr) auto;
  grid-template-areas: "name leader price" "detail detail note";
  align-items: baseline; column-gap: 12px; padding: 22px 0;
}
.cl-fare:first-child { padding-top: 0; }
.cl-fare:last-child { padding-bottom: 0; }
.cl-fare + .cl-fare { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.cl-fare__name { grid-area: name; font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.018em; }
.cl-fare__leader {
  grid-area: leader; align-self: baseline; height: 2px; margin-bottom: 5px;
  background: radial-gradient(circle, currentColor 1px, transparent 1.4px) 0 0 / 8px 2px repeat-x; opacity: .45;
}
.cl-fare__price { grid-area: price; font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.cl-fare__detail { grid-area: detail; margin-top: 10px; max-width: 34ch; font-size: 15.5px; font-weight: 500; line-height: 1.45; text-wrap: pretty; }
.cl-fare__note { grid-area: note; justify-self: end; margin-top: 10px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.cl-fares__badge { align-self: flex-start; }
/* the seats set like the ticket's date: the numeral, the words beside it */
.cl-fares__seats { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; }
.cl-fares__count { font-size: 44px; font-weight: 700; line-height: .82; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cl-fares__unit { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.cl-join { display: grid; gap: 10px; margin-top: 22px; }
.cl-join .sl-btn { width: 100%; }

/* faq: questions as a list, the answer unfolds */
.cl-faq { overflow: hidden; }
.cl-faq details + details { border-top: 1px solid var(--line); }
.cl-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 19px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.25; color: var(--ink);
}
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line2);
  display: grid; place-items: center; font-size: 20px; font-weight: 500; line-height: 1; color: var(--ink2);
  transition: transform .25s ease, border-color .2s ease;
}
.cl-faq summary:hover::after { border-color: var(--lav); }
.cl-faq details[open] summary::after { transform: rotate(45deg); }
.cl-faq__a { padding: 0 24px 22px; }
.cl-faq__a p { font-size: 16px; line-height: 1.55; color: var(--ink2); margin: 0 0 12px; max-width: 70ch; }
.cl-faq__a p:last-child { margin-bottom: 0; }

/* the close: the band */
.cl-band { background: var(--band); color: var(--band-fg); border-radius: 28px; padding: 72px 48px; text-align: center; }
.cl-band .sl-h2 { color: var(--band-fg); max-width: 760px; margin: 0 auto; }
.cl-band .cl-prose p { color: var(--band-fg); opacity: .9; margin: 16px auto 0; max-width: 620px; }
.cl-band .cl-cta { justify-content: center; margin-top: 36px; }
.cl-btn-band { background: var(--band-fg); color: var(--band); }
.cl-btn-band:hover { background: var(--paper); color: var(--band); }
.cl-btn-outline { border-color: color-mix(in srgb, var(--band-fg) 50%, transparent); color: var(--band-fg); }
.cl-btn-outline:hover { border-color: var(--band-fg); color: var(--band-fg); }

/* the compact bar: title, price, the call — once the hero's call has scrolled away */
.cl-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--card); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.cl-bar.is-visible { transform: none; }
.cl-bar__in { max-width: 1152px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 18px; }
.cl-bar__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* before booking opens: the lowest fare over its note */
.cl-bar__price--fares { display: grid; justify-items: end; line-height: 1.15; }
.cl-bar__price--fares small { font-size: 12.5px; font-weight: 500; color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .cl-bar { transition: none; } }

/* ── phone and tablet ── */
@media (max-width: 900px) {
  .cl-wrap { padding: 0 20px; }
  .cl-buy__act > .cl-notice:first-child { margin-top: 20px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
  /* the email under the fares, torn off along a line of the perforation's dots */
  .cl-fares__act { margin-top: 28px; padding-top: 26px; background: radial-gradient(circle, color-mix(in srgb, currentColor 45%, transparent) 1px, transparent 1.4px) 0 0 / 8px 2px repeat-x; }
  .cl-hero { padding-top: 32px; }
  .cl-hero__disc { width: 180px; height: 180px; right: -36px; top: 8px; }
  .cl-hero__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 24px; }
  .cl-hero h1 { font-size: clamp(38px, 9vw, 54px); }
  .cl-cover { width: 140px; margin: 0; }
  .cl-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-story { grid-template-columns: 1fr; gap: 20px; }
  .cl-quote--row { grid-template-columns: 1fr; }
  .cl-bar__in { padding: 10px 20px; }
  .cl-bar__t { display: none; }
  .cl-band { padding: 48px 24px; }
}
@media (max-width: 640px) {
  .cl-grid-2, .cl-grid-3 { grid-template-columns: 1fr; }
  .cl-tree h3 { padding: 16px 18px; }
  .cl-tree .desc { padding: 0 18px 14px; }
  .cl-tree ol li { padding: 13px 18px 13px 30px; font-size: 15.5px; grid-template-columns: minmax(0, 1fr) auto; }
  /* the duration stays on the title line, right; the preview tag drops under the title */
  .cl-tree ol li .cl-dur { grid-column: 2; grid-row: 1; justify-self: end; }
  .cl-tree ol li .cl-preview-tag { grid-column: 1; grid-row: 2; justify-self: start; }
  .cl-tree .cl-tree h3, .cl-tree .cl-tree .desc { padding-left: 30px; }
  .cl-tree .cl-tree ol li { padding-left: 42px; }
  .cl-dates li { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .cl-dates .utc { grid-column: 1; }
  .cl-facts { grid-template-columns: 1fr; }
  .cl-facts dt { padding: 14px 18px 2px; }
  .cl-facts dd { padding: 0 18px 14px; border-top: 0; }
  .cl-card, .cl-player { padding: 22px 20px; }
  .cl-price b { font-size: 40px; }
  .cl-fare__name { font-size: 17px; }
  .cl-fare__price { font-size: 38px; }
  .cl-faq summary { padding: 16px 18px; font-size: 17px; }
  .cl-faq__a { padding: 0 18px 18px; }
  .cl-wait { flex-wrap: wrap; height: auto; padding: 8px; border-radius: 24px; gap: 8px; }
  .cl-wait input { flex: 1 1 100%; height: 40px; padding: 0 10px; }
  .cl-wait .sl-btn { flex: 1 1 100%; }
  .cl-moment .cl-moment__text { font-size: 16px; }
}
