/* ==========================================================================
   bands.css — the section components of the band pages: the hero, the
   offer rows, the quotes, "About", the teacher count, the facts. Copied
   from tavela.se's components.css on 2026-12-05, when tavela.se moved in
   under /skola/; the front page and /talks/ use the same pieces.
   Loads after components.css. Tokens only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — a photo of Vidar teaching behind a green scrim, like
   aiskilltrees.com's. When the video is back under it, add
   clamp(4rem, 14vw, 12rem) to the bottom padding: that is the room the
   video frame overlaps.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-band);
}

/* On a phone the photo fills the band under a dense scrim. From 900px it
   covers only the right part, so Vidar stands beside the headline rather
   than behind it, and the scrim fades from solid green into the photo. */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim-strong);
}

@media (min-width: 900px) {
  .hero__bg { left: auto; width: 55%; }
  .hero__scrim {
    background: linear-gradient(90deg,
      var(--primary) 0%, var(--primary) 45%,
      var(--scrim-mid) 62%, var(--scrim-weak) 100%);
  }
}

.hero__inner { position: relative; }

.hero h1 {
  font-size: var(--step-3xl);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: var(--space-3);
}

.hero .lede {
  font-family: var(--font-sans);
  font-size: var(--step-m);
  line-height: 1.55;
  max-width: 52ch;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Video — pulled up over the hero's bottom edge. Not on the page until the
   video exists; see the comment in index.html.
   -------------------------------------------------------------------------- */

/* Positioned so it paints above the hero it overlaps, and transparent so
   its own ground does not cover the hero beside the frame. */
.showreel { padding-block: 0; position: relative; z-index: 1; background: transparent; }

.showreel__frame {
  margin-top: calc(-1 * clamp(4rem, 14vw, 12rem));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.showreel__frame img,
.showreel__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Offer rows — photo on one side, kind / title / chips / text / button on
   the other. Every second row puts the photo on the right. On a phone the
   photo goes above the text.
   -------------------------------------------------------------------------- */

.offers {
  display: grid;
  gap: var(--space-band);
}

.offer {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
  .offer:nth-child(even) .offer__media { order: 2; }
}

.offer__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--rule);   /* a white screenshot needs the edge */
}
.offer__media img { width: 100%; height: 100%; object-fit: cover; }

/* The wave simulation in the "Interaktiva simuleringar" row
   (js/wave-sim.js): canvas on top, three sliders below, in the same 4:3
   frame as the photos. */
.wavesim {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.wavesim__canvas {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.wavesim__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  padding: 0.7rem 1rem 0.85rem;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.wavesim__controls label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.wavesim input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.wavesim input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}
.wavesim input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--primary) 22%, transparent);
}
.wavesim input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary), 0 2px 6px rgba(24, 33, 30, 0.25);
  transition: transform 0.12s ease;
}
.wavesim input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary), 0 2px 6px rgba(24, 33, 30, 0.25);
}
.wavesim input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.wavesim input[type="range"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.offer__kind {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-1);
}

.offer__title {
  font-size: var(--step-xl);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
}
.chips li {
  font-size: var(--step-xs);
  font-weight: 500;
  color: var(--ink);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.8rem;
}

.offer__body {
  font-size: var(--step-m);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 var(--space-2);
}

/* "Ni får:" ends .offer__body, and the bullets sit on the same left edge
   as its text (Vidar, 2026-10-30). */
.offer__result {
  font-size: var(--step-m);
  line-height: 1.6;
  max-width: 52ch;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.offer__result li { padding-left: 1em; text-indent: -1em; }
.offer__result li::before { content: "\2022"; display: inline-block; width: 1em; text-indent: 0; color: var(--primary); }
.offer__result li + li { margin-top: var(--space-1); }

/* --------------------------------------------------------------------------
   Quotes — two cards on the tinted band, then the teacher count.
   -------------------------------------------------------------------------- */

.quotes {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.quotes blockquote {
  margin: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-4);
  /* Sans like the rest of the page: in serif the quotes read as Times
     New Roman (Pauline, 2026-10-27). */
  font-size: var(--step-m);
  line-height: 1.55;
}
.quotes blockquote::before {
  content: "\201D";
  display: block;
  font-size: 2.5em;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: var(--space-2);
}


/* Under "Om mig", each with a bold lead (Pauline, 2026-10-29). One per
   line: the ETUCE item is a full sentence and wraps badly in a row. */
.credentials {
  display: grid;
  gap: var(--space-2);
  max-width: 68ch;
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  color: var(--ink-2);
  line-height: 1.5;
}
.credentials li { padding-left: 1.3em; text-indent: -1.3em; }
.credentials li::before { content: "\2713\00a0"; color: var(--primary); font-weight: 700; }
.credentials strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   About — portrait left, text right. Short on purpose.
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-6); }
}

.about__portrait {
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }

/* The teacher count, at the bottom of "Vad lärare säger" (Pauline,
   2026-10-29). White on the tinted band. */
.stat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  padding: var(--space-3) var(--space-4);
  max-width: 34rem;
  background: var(--surface);
  border-radius: var(--radius);
}
.stat__num {
  flex: none;
  font-size: var(--step-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--primary);
}
.stat__text { color: var(--ink-2); line-height: 1.4; }

.about .prose { font-family: var(--font-sans); color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Facts — the short key/value list at the top of each offer page.
   -------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
}
.facts div {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.facts dt {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-1);
}
.facts dd { margin: 0; font-weight: 500; }

/* --------------------------------------------------------------------------
   /talks/ — one card per audience, each a link with a button-looking
   label. Only "För svenska skolor" so far (2026-12-05); the grid leaves
   room beside it for the next.
   -------------------------------------------------------------------------- */

.talk-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.talk-cards .feature-card { text-decoration: none; }
.talk-cards .feature-card .eyebrow { color: var(--accent); margin: 0 0 var(--space-1); }
.talk-cards .feature-card p:not(.eyebrow) { margin-bottom: var(--space-3); }
.talk-cards .feature-card .btn { margin-top: auto; align-self: flex-start; }
.talk-cards .feature-card:hover .btn { background: var(--primary-strong); }

.talk-contact { margin-top: var(--space-5); color: var(--ink-2); font-size: var(--step-m); }
