/* ============================================================
   Siilin Padel — 2026 refresh layer
   Loaded after style.css. Opt in per page with <body class="m">.
   Palette, radii and spacing stay on the canonical brand tokens;
   this layer changes type, surfaces, layout and motion.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

body.m {
  --font-headline: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --m-line: rgba(255, 255, 255, 0.1);
  --m-glass: rgba(17, 17, 16, 0.8);
  --m-text-dim: rgba(255, 255, 255, 0.72);
  --m-pad: clamp(20px, 4vw, 56px);
  --m-max: 1320px;
  --m-wide: calc(var(--m-max) + 2 * var(--m-pad));
  --m-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--siili-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Type: sentence case, tight, slightly condensed ---------- */
body.m :is(h1, h2, h3, h4),
body.m :is(.sp-board-name, .sp-benefit-title, .sp-kl-meta b, .sp-kl-step-num, .sp-kl-price-row .price,
  .sp-valmennus-contact-row .val, .sp-tier-name, .s3d-title) {
  text-transform: none;
}
body.m :is(.sp-hero-title, .sp-section-head h2, .sp-kampanja-text h2, .sp-start h2, .sp-valmennus-text h2,
  .sp-kl-hero h1, .sp-guide-hero h1, .s3d-title) {
  font-family: var(--font-headline);
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -0.018em;
  line-height: 0.96;
  text-wrap: balance;
}
body.m :is(.sp-section-head h2, .sp-kampanja-text h2, .sp-start h2, .sp-valmennus-text h2) {
  font-size: clamp(40px, 5.4vw, 80px);
}
body.m :is(.sp-benefit-title, .sp-board-name, .sp-start-cost h3, .sp-start-card h3, .sp-start-booking h3,
  .sp-footer-col h2, .sp-feature h2, .sp-valmennus-success h3, .sp-kl-content h2, .sp-kl-sidebar h3) {
  font-family: var(--font-headline);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Eyebrows: quiet sentence-case labels with a brand dot */
body.m :is(.sp-eyebrow, .sp-start-eyebrow, .sp-kl-eyebrow) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.86);
  opacity: 1;
}
body.m :is(.sp-eyebrow, .sp-start-eyebrow)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--siili-green);
  flex: none;
}
body.m :is(.sp-benefits, .sp-start, .sp-valmennus) :is(.sp-eyebrow, .sp-start-eyebrow) { color: var(--siili-ink); }
body.m .sp-valmennus .sp-eyebrow::before { background: var(--siili-ink); }
body.m .sp-start-cost .sp-start-eyebrow { color: var(--siili-green); }
body.m .sp-start-cost .sp-start-eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
body.m .sp-btn {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 17px 28px;
  min-height: 56px;
  transition: transform 260ms var(--m-ease), background-color 200ms ease, box-shadow 260ms ease, color 200ms ease, border-color 200ms ease;
}
body.m .sp-btn-sm { font-size: 14px; padding: 11px 20px; min-height: 44px; }
body.m .sp-btn-primary { box-shadow: 0 0 0 0 rgba(164, 198, 57, 0); }
body.m .sp-btn-primary:hover { background: #b4d548; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(164, 198, 57, 0.6); }
body.m .sp-btn-primary:active { transform: translateY(0) scale(0.98); }
body.m .sp-btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 16px 27px;
}
body.m .sp-btn-outline-light:hover { background: #fff; color: var(--siili-ink); border-color: #fff; transform: translateY(-2px); }

/* ---------- Header: floating glass bar ---------- */
body.m .sp-header {
  position: fixed;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: min(calc(100% - 28px), var(--m-max));
  border: 1px solid var(--m-line);
  border-radius: 30px;
  background: var(--m-glass);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7);
}
body.m .sp-header-inner { padding: 8px 10px 8px 22px; gap: 24px; max-width: none; }
body.m .sp-logo img { height: 54px; }
body.m .sp-nav { gap: 4px; }
body.m .sp-nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.8);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: background-color 200ms ease, color 200ms ease;
}
body.m .sp-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
body.m .sp-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }
body.m .sp-nav a.is-active::after { display: none; }
body.m .sp-menu-btn { border: 0; background: rgba(255, 255, 255, 0.1); width: 46px; height: 46px; }
body.m .sp-mobile-nav { background: transparent; border-top: 1px solid var(--m-line); padding: 8px 22px 18px; }
body.m .sp-mobile-nav a {
  font-family: var(--font-headline);
  font-size: 24px;
  font-weight: 700;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  text-transform: none;
  padding: 14px 0;
}
body.m .sp-mobile-nav a.is-active { color: var(--siili-green); }
body.m :is(main, section[id], article[id]) { scroll-margin-top: 96px; }

/* ---------- Hero: full-bleed, bottom-anchored ---------- */
body.m .sp-hero {
  min-height: max(100svh, 720px);
  padding: 0;
  display: flex;
  align-items: flex-end;
  background: var(--siili-ink);
  isolation: isolate;
}
body.m .sp-hero-bg { display: none; }
body.m .sp-hero-photo {
  inset: -4% 0 0;
  z-index: 0;
  padding: 0;
  opacity: 1;
  filter: none;
  background:
    image-set(url("/assets/hero-padel-court.webp") type("image/webp"), url("/assets/hero-padel-court.jpg") type("image/jpeg")) no-repeat 94% center / cover,
    var(--siili-ink);
  transform-origin: 70% 60%;
}
body.m .sp-hero-photo::after {
  background:
    linear-gradient(180deg, rgba(17, 17, 16, 0.72) 0%, rgba(17, 17, 16, 0) 22%, rgba(17, 17, 16, 0) 52%, rgba(17, 17, 16, 0.88) 86%, var(--siili-ink) 100%),
    linear-gradient(90deg, rgba(17, 17, 16, 0.94) 0%, rgba(17, 17, 16, 0.72) 32%, rgba(17, 17, 16, 0.1) 62%, rgba(17, 17, 16, 0) 100%);
}
/* film grain keeps the big dark areas from looking flat */
body.m .sp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.m .sp-hero-inner {
  z-index: 2;
  width: 100%;
  max-width: var(--m-wide);
  padding: 150px var(--m-pad) clamp(150px, 19vh, 210px);
}
body.m .m-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--m-line);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease;
}
body.m .m-kicker b {
  background: var(--siili-green);
  color: var(--siili-ink);
  font-weight: 800;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
}
body.m .m-kicker:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
body.m .m-kicker svg { transition: transform 200ms var(--m-ease); }
body.m .m-kicker:hover svg { transform: translateX(3px); }
body.m .sp-hero-title {
  font-size: clamp(54px, 10vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.012em;
  font-stretch: 84%;
  max-width: none;
  margin: 0 0 32px;
  text-wrap: nowrap;
}
body.m .sp-hero-lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 56ch;
  margin: 0 0 32px !important;
  font-weight: 500;
}
body.m .sp-hero-cta { gap: 12px; align-items: center; }

/* ---------- Fact cards overlapping the hero edge ---------- */
body.m .sp-features {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: clamp(-150px, -13vh, -110px);
  position: relative;
  z-index: 3;
  overflow: visible;
}
body.m .sp-features::before { display: none; }
body.m .sp-features-inner {
  max-width: var(--m-wide);
  padding: 0 var(--m-pad);
  gap: 12px;
}
body.m .sp-feature {
  padding: 22px 24px 24px !important;
  border: 1px solid var(--m-line) !important;
  border-radius: var(--r-lg);
  background: rgba(34, 34, 33, 0.62);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: transform 320ms var(--m-ease), border-color 200ms ease, background-color 200ms ease;
}
body.m .sp-feature:hover { transform: translateY(-4px); border-color: rgba(164, 198, 57, 0.55); background: rgba(34, 34, 33, 0.8); }
body.m .sp-feature-icon { display: none; }
body.m .sp-feature h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--siili-green);
  margin: 0 0 10px;
}
body.m .sp-feature p { font-size: 15px; line-height: 1.5; color: var(--m-text-dim); }

/* ---------- Slogan marquee ---------- */
body.m .m-marquee {
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 80px);
  background: var(--siili-ink);
}
body.m .m-marquee-track {
  display: flex;
  width: max-content;
  animation: m-marquee 38s linear infinite;
}
body.m .m-marquee p {
  margin: 0;
  padding-right: 0.5em;
  white-space: nowrap;
  font-family: var(--font-headline);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(64px, 11vw, 176px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--siili-ink);
  -webkit-text-stroke: 3px var(--siili-green);
  paint-order: stroke fill;
}
body.m .m-marquee p span { color: var(--siili-green); }
@keyframes m-marquee { to { transform: translateX(-50%); } }

/* ---------- Dark surfaces go one step deeper ---------- */
body.m :is(.sp-kampanja, .sp-ukk, .sp-board, .sp-footer) { background: var(--siili-ink); border-color: transparent; }

/* ---------- Kampanja: inset card with image ---------- */
body.m .sp-kampanja { padding: clamp(24px, 4vw, 56px) var(--m-pad) clamp(56px, 8vw, 112px); border: 0; }
body.m .sp-kampanja-inner {
  max-width: var(--m-max);
  background: var(--siili-black);
  border: 1px solid var(--m-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
body.m #alkeiskurssi .sp-kampanja-text { padding: clamp(28px, 4.4vw, 72px); max-width: none; margin: 0; }
body.m #alkeiskurssi .sp-kampanja-text h2 { font-size: clamp(40px, 5vw, 76px); line-height: 0.94; margin-bottom: 20px; }
body.m .sp-kampanja-badge {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 14px;
  margin-bottom: 24px;
}
body.m .sp-join-offer { border-color: var(--m-line); padding: 26px 0; }
body.m .sp-join-price strong {
  font-family: var(--font-headline);
  font-weight: 800;
  font-stretch: 80%;
  font-size: clamp(72px, 7vw, 112px);
  letter-spacing: -0.02em;
}
body.m .sp-join-steps { gap: 0; margin-bottom: 32px; }
body.m .sp-join-steps li { grid-template-columns: 56px 1fr; padding: 16px 0; border-bottom: 1px solid var(--m-line); align-items: center; }
body.m .sp-join-steps li:first-child { padding-top: 0; }
body.m .sp-join-steps li > span {
  font-family: var(--font-headline);
  font-size: 34px;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.02em;
  line-height: 1;
}
body.m .sp-join-steps h3 { font-family: var(--font-body); font-weight: 800; font-stretch: 100%; letter-spacing: -0.01em; font-size: 18px; }
body.m .sp-kampanja-image { margin: 12px; border-radius: 22px; }
body.m .sp-kampanja-image::after { background: linear-gradient(180deg, rgba(17, 17, 16, 0) 60%, rgba(17, 17, 16, 0.45) 100%); }
body.m .sp-kampanja-image img { transition: transform 1200ms var(--m-ease); }
body.m .sp-kampanja-inner:hover .sp-kampanja-image img { transform: scale(1.03); }

/* ---------- Oma tapa aloittaa (light) ---------- */
body.m .sp-start { padding: clamp(72px, 9vw, 136px) var(--m-pad); border-radius: var(--r-xl) var(--r-xl) 0 0; }
body.m .sp-start-inner { max-width: var(--m-max); }
body.m .sp-start-heading { margin-bottom: clamp(40px, 5vw, 72px); }
body.m .sp-start-cost { border-radius: var(--r-xl); padding: clamp(28px, 3.4vw, 48px); background: var(--siili-ink); }
body.m .sp-start-cost h3, body.m .sp-start-card h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.02; letter-spacing: -0.015em; font-weight: 800; font-stretch: 86%; }
body.m .sp-start-price strong { font-weight: 800; font-stretch: 80%; font-size: clamp(88px, 9vw, 144px); letter-spacing: -0.02em; }
body.m .sp-start-card > span { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 700; }
body.m .sp-start-booking h3 { font-size: 24px; }

/* ---------- Jäsenedut: bento ---------- */
body.m .sp-benefits { padding: 0 var(--m-pad) clamp(72px, 9vw, 136px); }
body.m .sp-benefits::before { display: none; }
body.m .sp-benefits .sp-container { max-width: var(--m-max); padding: 0; }
body.m .sp-section-head { margin-bottom: clamp(32px, 4vw, 56px); align-items: flex-end; }
body.m .sp-benefits-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
body.m .sp-benefits-grid > .sp-benefit { grid-column: span 3; }
body.m .sp-benefit {
  border: 0;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(17, 17, 16, 0.04), 0 24px 48px -32px rgba(17, 17, 16, 0.22);
  transition: transform 320ms var(--m-ease), box-shadow 320ms ease;
}
body.m .sp-benefit:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(17, 17, 16, 0.04), 0 32px 56px -28px rgba(17, 17, 16, 0.32); }
body.m .sp-benefits-grid > .sp-benefit:nth-child(1) { grid-column: span 6; grid-row: span 2; background: var(--siili-ink); padding: clamp(32px, 3.4vw, 48px); }
body.m .sp-benefits-grid > .sp-benefit:nth-child(2) { grid-column: span 6; background: var(--siili-green); }
body.m .sp-benefits-grid > .sp-benefit:nth-child(2) .sp-benefit-tag { background: var(--siili-ink); color: #fff; }
body.m .sp-benefits-grid > .sp-benefit:nth-child(2) .sp-benefit-list li { color: var(--siili-ink); }
body.m .sp-benefits-grid > .sp-benefit:nth-child(2) .sp-benefit-list .dot { background: var(--siili-ink); }
body.m .sp-benefit-tag { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 700; padding: 6px 12px; margin-bottom: 24px; }
body.m .sp-benefits-grid > .sp-benefit:nth-child(n+3) .sp-benefit-tag { background: var(--siili-grey-100); }
body.m .sp-benefit-title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.02; letter-spacing: -0.015em; font-weight: 800; font-stretch: 86%; margin-bottom: 20px; hyphens: manual; overflow-wrap: normal; }
body.m .sp-benefits-grid > .sp-benefit:nth-child(1) .sp-benefit-title { font-size: clamp(44px, 5vw, 80px); line-height: 0.92; letter-spacing: -0.015em; font-stretch: 84%; color: var(--siili-green); margin-bottom: 28px; }
body.m .sp-benefits-grid > .sp-benefit:nth-child(1) .sp-benefit-list { flex: 0 0 auto; margin-top: auto; margin-bottom: 28px; gap: 14px; }
body.m .sp-benefit-list li { font-size: 16px; line-height: 1.5; }
body.m .sp-benefits-grid > .sp-benefit:nth-child(1) .sp-benefit-list li { font-size: 18px; }
body.m .sp-benefit-list .dot { margin-top: 9px; }
body.m .sp-benefit-link { font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 800; border-bottom-width: 2px; color: var(--siili-ink); }
body.m .sp-benefit-accent .sp-benefit-link { color: var(--siili-green); }
body.m .sp-benefits-footnote { border: 0; background: transparent; padding: 0; margin-top: 32px; font-size: 16px; text-align: left; max-width: none; }
body.m .sp-benefits-footnote a { color: var(--siili-ink); }

/* ---------- UKK: split layout, hairline rows ---------- */
body.m .sp-ukk { padding: clamp(72px, 9vw, 136px) var(--m-pad); border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: calc(-1 * var(--r-xl)); }
body.m .sp-ukk::before { display: none; }
body.m .sp-ukk .sp-container { max-width: var(--m-max); padding: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
body.m .sp-ukk .sp-section-head { position: sticky; top: 120px; margin: 0; }
body.m .sp-faq { max-width: none; gap: 0; border-top: 1px solid var(--m-line); }
body.m .sp-faq-row { background: transparent; border: 0; border-bottom: 1px solid var(--m-line); border-radius: 0; }
body.m .sp-faq-q {
  font-family: var(--font-headline);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  font-stretch: 92%;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 26px 0;
  transition: color 200ms ease;
}
body.m .sp-faq-toggle { flex-basis: 44px; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.08); transition: transform 320ms var(--m-ease), background-color 200ms ease, color 200ms ease; }
body.m .sp-faq-a p { padding: 0 60px 28px 0; font-size: 17px; line-height: 1.65; color: var(--m-text-dim); max-width: 62ch; }

/* ---------- Hallitus ---------- */
body.m .sp-board { padding: 0 var(--m-pad) clamp(72px, 9vw, 136px); }
body.m .sp-board .sp-container { max-width: var(--m-max); padding: 0; }
body.m .sp-board-grid { gap: 16px; }
body.m .sp-board-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
body.m .sp-board-card:hover { transform: none; }
body.m .sp-board-photo { border-radius: 24px; aspect-ratio: 1 / 1.1; }
body.m .sp-board-photo img { transition: transform 900ms var(--m-ease); }
body.m .sp-board-card:hover .sp-board-photo img { transform: scale(1.04); }
body.m .sp-board-spine { display: none; }
body.m .sp-board-body { padding: 18px 4px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
body.m .sp-board-name { font-size: 26px; font-weight: 800; font-stretch: 88%; letter-spacing: -0.015em; line-height: 1.05; }
body.m .sp-board-role { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--m-text-dim); margin: 0; }

/* ---------- Valmennus ---------- */
body.m .sp-valmennus { padding: clamp(72px, 9vw, 136px) var(--m-pad); border-radius: var(--r-xl) var(--r-xl) 0 0; }
body.m .sp-valmennus .sp-container { max-width: var(--m-max); padding: 0; }
body.m .sp-valmennus-pattern { opacity: 0.3; }
body.m .sp-valmennus-text h2 .accent { font-family: inherit; letter-spacing: inherit; color: var(--siili-ink); text-transform: none; }
body.m .sp-valmennus-text p { font-size: 19px; }
body.m .sp-valmennus-contact-row { border-radius: var(--r-md); padding: 18px 22px; }
body.m .sp-valmennus-contact-row .lbl { font-size: 14px; letter-spacing: 0; text-transform: none; opacity: 0.8; }
body.m .sp-valmennus-contact-row .val { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
body.m .sp-valmennus-form { border-radius: 28px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -40px rgba(17, 17, 16, 0.5); }
body.m .sp-field label { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--siili-ink); }
body.m .sp-field :is(input, select), body.m .sp-valmennus-form textarea {
  border-radius: var(--r-md);
  border: 1.5px solid var(--siili-grey-300);
  background: var(--siili-grey-50);
  font-size: 16px;
  padding: 15px 16px;
  transition: border-color 200ms ease, background-color 200ms ease;
}
body.m .sp-field :is(input, select):hover, body.m .sp-valmennus-form textarea:hover { border-color: var(--siili-grey-500); }
body.m .sp-field :is(input, select):focus, body.m .sp-valmennus-form textarea:focus { border-color: var(--siili-ink); background: #fff; }

/* ---------- Footer ---------- */
body.m .sp-footer { padding: clamp(64px, 7vw, 104px) 0 32px; }
body.m .sp-footer-pattern { display: none; }
body.m .sp-footer-inner, body.m .sp-footer-base { max-width: var(--m-wide); padding-left: var(--m-pad); padding-right: var(--m-pad); }
body.m .sp-footer-col h2 { font-size: 18px; color: #fff; }
body.m .sp-footer-col a { font-size: 16px; }
body.m .sp-footer-tag { font-size: 16px; }
body.m .sp-footer-base { font-size: 14px; }

/* ---------- Mobile join bar ---------- */
body.m .m-joinbar { display: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.m .sp-hero-photo { animation: m-hero-drift 26s ease-in-out infinite alternate; }
  body.m .sp-hero-inner > * { animation: m-rise 900ms var(--m-ease) both; }
  body.m .sp-hero-inner > :nth-child(2) { animation-delay: 80ms; }
  body.m .sp-hero-inner > :nth-child(3) { animation-delay: 160ms; }
  body.m .sp-hero-inner > :nth-child(4) { animation-delay: 240ms; }
  body.m .sp-feature { animation: m-slide 900ms var(--m-ease) both; animation-delay: calc(320ms + var(--i, 0) * 70ms); }
  body.m .sp-feature:nth-child(2) { --i: 1; }
  body.m .sp-feature:nth-child(3) { --i: 2; }
  body.m .sp-feature:nth-child(4) { --i: 3; }

  @supports (animation-timeline: view()) {
    body.m :is(.sp-section-head, .sp-start-heading, .sp-kampanja-inner, .sp-benefit, .sp-board-card, .sp-start-cost, .sp-start-card, .sp-faq-row, .sp-valmennus-form) {
      animation: m-slide linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
    body.m .m-marquee-track { animation: m-marquee-scroll linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes m-hero-drift { from { transform: scale(1.02); } to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); } }
@keyframes m-rise { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
/* Scroll-in moves only; content never waits at opacity 0. */
@keyframes m-slide { from { transform: translate3d(0, 40px, 0); } to { transform: none; } }
@keyframes m-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-32%); } }
@media (prefers-reduced-motion: reduce) {
  body.m .m-marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  body.m .sp-header-inner { padding: 8px 8px 8px 18px; }
  body.m .sp-features-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  body.m .sp-benefits-grid > .sp-benefit:nth-child(n) { grid-column: span 6; grid-row: auto; }
  body.m .sp-benefits-grid > .sp-benefit:nth-child(1) { grid-column: span 12; }
  body.m .sp-ukk .sp-container { grid-template-columns: minmax(0, 1fr); }
  body.m .sp-ukk .sp-section-head { position: static; }
}
@media (max-width: 980px) {
  body.m .sp-kampanja-inner { grid-template-columns: minmax(0, 1fr); }
  body.m #alkeiskurssi .sp-kampanja-image { min-height: 0; margin: 8px 8px 0; }
  body.m #alkeiskurssi .sp-kampanja-image img { height: clamp(240px, 56vw, 420px); }
}
@media (max-width: 720px) {
  body.m .sp-header { top: 10px; width: calc(100% - 20px); border-radius: 26px; }
  body.m .sp-logo img { height: 42px; }
  body.m .sp-hero { min-height: 100svh; }
  body.m .sp-hero-photo { background-position: 82% 30%; background-size: auto 62%; opacity: 1; filter: none; }
  body.m .sp-hero-photo::after {
    background: linear-gradient(180deg, rgba(17, 17, 16, 0.6) 0%, rgba(17, 17, 16, 0) 18%, rgba(17, 17, 16, 0.2) 36%, rgba(17, 17, 16, 0.94) 58%, var(--siili-ink) 66%);
  }
  body.m .sp-hero-inner { padding: 120px 20px 40px; }
  body.m .m-kicker { font-size: 14px; margin-bottom: 20px; }
  body.m .sp-hero-title { font-size: clamp(50px, 17.2vw, 104px); margin-bottom: 20px; }
  body.m .sp-hero-lede { font-size: 17px; margin-bottom: 24px !important; }
  body.m .sp-hero-cta { flex-direction: column; align-items: stretch; }
  body.m .sp-features { margin-top: 0; padding-bottom: 8px; }
  body.m .sp-features-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 20px; }
  body.m .sp-feature { padding: 18px 20px !important; }
  body.m .sp-feature h2 { font-size: 24px; margin: 0 0 6px; }
  body.m .sp-benefits-grid > .sp-benefit:nth-child(n) { grid-column: span 12; }
  body.m .sp-benefit { padding: 28px 24px; }
  body.m .sp-faq-a p { padding-right: 0; }
  body.m .sp-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  body.m .sp-board-name { font-size: 20px; }
  body.m .sp-board-role { font-size: 14px; }

  body.m .m-joinbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--m-line);
    background: rgba(17, 17, 16, 0.78);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
  }
  body.m .m-joinbar b { color: var(--siili-green); font-weight: 800; }
  body.m .m-joinbar .sp-btn { min-height: 48px; padding: 12px 20px; font-size: 15px; }
  body.m .sp-footer { padding-bottom: 104px; }
  @supports (animation-timeline: scroll()) {
    body.m .m-joinbar { animation: m-joinbar linear both; animation-timeline: scroll(); animation-range: 60svh 90svh; }
  }
}
@keyframes m-joinbar { from { opacity: 0; transform: translate3d(0, 120%, 0); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }


/* ============================================================
   Sub-pages
   ============================================================ */

/* ---------- Jäsenyydet ---------- */
body.m .sp-kl-hero { padding: clamp(150px, 17vw, 220px) 0 clamp(48px, 6vw, 88px); }
body.m .sp-kl-hero::before { display: none; }
body.m .sp-kl-hero-inner { max-width: var(--m-wide); padding: 0 var(--m-pad); }
body.m .sp-kl-eyebrow { background: none; padding: 0; color: var(--siili-ink); margin-bottom: 20px; }
body.m .sp-kl-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--siili-ink); flex: none; }
body.m .sp-kl-hero h1 { font-size: clamp(60px, 12vw, 200px); line-height: 0.86; letter-spacing: -0.02em; font-stretch: 82%; max-width: none; margin-bottom: 28px; }
body.m .sp-kl-hero .lede { font-size: clamp(18px, 1.5vw, 22px); max-width: 60ch; font-weight: 500; }
body.m .sp-kl-hero .sp-btn-light { background: var(--siili-ink); color: #fff; }
body.m .sp-kl-hero .sp-btn-light:hover { background: #000; transform: translateY(-2px); }
body.m .sp-kl-hero .sp-btn-outline-dark { border: 1.5px solid rgba(17, 17, 16, 0.5); padding: 16px 27px; }
body.m .sp-kl-hero .sp-btn-outline-dark:hover { background: var(--siili-ink); color: #fff; border-color: var(--siili-ink); transform: translateY(-2px); }
body.m .sp-kl-meta { margin-top: clamp(40px, 5vw, 72px); gap: 12px; }
body.m .sp-kl-meta > div { background: rgba(17, 17, 16, 0.08); border: 0; border-radius: var(--r-lg); padding: 22px 24px; }
body.m .sp-kl-meta b { font-family: var(--font-headline); font-weight: 800; font-stretch: 84%; font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1; }
body.m .sp-kl-meta span { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 0.86; margin-top: 8px; }

body.m .sp-kampanja-ribbon { background: var(--siili-ink); border: 0; }
body.m .sp-kampanja-ribbon-inner { max-width: var(--m-wide); padding: 20px var(--m-pad); }
body.m .sp-kampanja-ribbon .tag { font-size: 14px; letter-spacing: 0; text-transform: none; }
body.m .sp-kampanja-ribbon p { font-size: 16px; }

body.m .sp-kl-body { background: var(--siili-ink); padding: clamp(56px, 7vw, 112px) 0; }
body.m .sp-kl-grid { max-width: var(--m-wide); padding: 0 var(--m-pad); gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
body.m .sp-kl-content h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; font-stretch: 86%; line-height: 1; letter-spacing: -0.018em; }
body.m .sp-kl-content h2:not(:first-child) { margin-top: clamp(48px, 6vw, 80px); }
body.m .sp-kl-content h3 { font-family: var(--font-headline); font-size: 22px; font-weight: 700; font-stretch: 92%; letter-spacing: -0.015em; }
body.m .sp-kl-content :is(p, li) { font-size: 17px; line-height: 1.65; }
body.m .sp-kl-sidebar { background: var(--siili-black); border: 1px solid var(--m-line); border-radius: 28px; padding: 32px; top: 112px; }
body.m .sp-kl-sidebar h3 { font-size: 24px; color: #fff; }
body.m .sp-kl-price-row { border-color: var(--m-line); }
body.m .sp-kl-price-row .label { font-size: 16px; }
body.m .sp-kl-price-row .price { font-family: var(--font-headline); font-weight: 800; font-stretch: 86%; font-size: 24px; letter-spacing: -0.015em; }

body.m .sp-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; }
body.m .sp-tier-card { background: var(--siili-black); border: 1px solid var(--m-line); box-shadow: none; color: #fff; padding: 28px; }
body.m .sp-tier-card:hover { box-shadow: none; border-color: rgba(164, 198, 57, 0.6); }
body.m .sp-tier-card .sp-benefit-tag { background: rgba(255, 255, 255, 0.1); color: #fff; margin-bottom: 20px; }
body.m .sp-tier-card .sp-benefit-title { color: #fff; font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 8px; }
body.m .sp-tier-card .sp-tier-price { font-family: var(--font-headline); font-weight: 800; font-stretch: 84%; font-size: clamp(44px, 4.4vw, 64px); letter-spacing: -0.02em; color: var(--siili-green); margin: 0 0 20px; }
body.m .sp-tier-card .sp-tier-unit { font-size: 16px; color: var(--m-text-dim); margin-left: 8px; }
body.m .sp-tier-card .sp-benefit-list li { color: var(--m-text-dim); }
body.m .sp-tier-card.sp-benefit-accent { grid-column: 1 / -1; background: var(--siili-green); border-color: var(--siili-green); color: var(--siili-ink); padding: clamp(28px, 3vw, 44px); }
body.m .sp-tier-card.sp-benefit-accent::before { display: none; }
body.m .sp-tier-card.sp-benefit-accent .sp-benefit-tag { background: var(--siili-ink); color: #fff; }
body.m .sp-tier-card.sp-benefit-accent :is(.sp-benefit-title, .sp-tier-price) { color: var(--siili-ink); }
body.m .sp-tier-card.sp-benefit-accent .sp-benefit-title { font-size: clamp(34px, 3.6vw, 52px); }
body.m .sp-tier-card.sp-benefit-accent .sp-tier-price { font-size: clamp(64px, 7vw, 104px); }
body.m .sp-tier-card.sp-benefit-accent .sp-tier-unit { color: rgba(17, 17, 16, 0.8); }
body.m .sp-tier-card.sp-benefit-accent .sp-benefit-list li { color: var(--siili-ink); font-size: 17px; }
body.m .sp-tier-card.sp-benefit-accent .sp-benefit-list .dot { background: var(--siili-ink); }
body.m .sp-tier-card.sp-benefit-accent .sp-btn { background: var(--siili-ink); color: #fff; width: auto; align-self: flex-start; }
body.m .sp-tier-card.sp-benefit-accent .sp-btn:hover { background: #000; box-shadow: none; }
body.m .sp-tier-card .sp-btn { margin-top: 24px; }
body.m .sp-kl-body + .sp-benefits { padding-top: clamp(72px, 9vw, 136px); border-radius: var(--r-xl) var(--r-xl) 0 0; }

/* ---------- Guides ---------- */
body.m.sp-guide-page { background: var(--siili-grey-50); }
body.m .sp-guide-hero { background-color: var(--siili-ink); padding: clamp(150px, 16vw, 220px) var(--m-pad) clamp(56px, 7vw, 104px); }
body.m .sp-guide-hero__inner { max-width: var(--m-max); }
body.m .sp-guide-content { max-width: var(--m-wide); }
body.m .sp-guide-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; margin-bottom: 24px; }
body.m .sp-guide-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--siili-green); flex: none; }
body.m .sp-guide-hero h1 { font-size: clamp(46px, 7.4vw, 120px); line-height: 0.92; letter-spacing: -0.018em; font-stretch: 84%; max-width: 16ch; margin-bottom: 28px; }
body.m .sp-guide-lede { font-size: clamp(18px, 1.5vw, 22px); color: rgba(255, 255, 255, 0.86); max-width: 58ch; font-weight: 500; }
body.m .sp-guide-content { padding: clamp(56px, 7vw, 112px) var(--m-pad); }
body.m .sp-guide-layout { grid-template-columns: minmax(0, 760px) minmax(240px, 320px); justify-content: space-between; gap: clamp(32px, 6vw, 96px); }
body.m .sp-guide-article > h2 { font-family: var(--font-headline); font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; font-stretch: 86%; line-height: 1; letter-spacing: -0.018em; margin: clamp(48px, 6vw, 80px) 0 20px; text-wrap: balance; }
body.m .sp-guide-article > h2:first-child { margin-top: 0; }
body.m .sp-guide-article > h3 { font-family: var(--font-headline); font-size: 24px; font-weight: 700; font-stretch: 92%; letter-spacing: -0.015em; margin: 36px 0 12px; }
body.m .sp-guide-article > :is(p, ul:not([class]), ol:not([class])), body.m .sp-guide-article > :is(ul:not([class]), ol:not([class])) li { font-size: 18px; line-height: 1.7; color: var(--siili-grey-900); }
body.m .sp-guide-article > :is(p, ul, ol) a { font-weight: 700; }
body.m .sp-guide-note { border-radius: var(--r-lg); padding: 28px; }
body.m .sp-guide-fact { border: 0; border-radius: var(--r-lg); padding: 24px; box-shadow: 0 24px 48px -32px rgba(17, 17, 16, 0.22); }
body.m .sp-guide-fact strong { font-weight: 800; font-stretch: 86%; font-size: 28px; letter-spacing: -0.02em; }
body.m .sp-guide-fact span { font-size: 15px; }
body.m .sp-guide-table-wrap { border-radius: var(--r-lg); box-shadow: 0 24px 48px -32px rgba(17, 17, 16, 0.22); }
body.m .sp-guide-table { border: 0; font-size: 16px; }
body.m .sp-guide-table :is(th, td) { padding: 18px 20px; }
body.m .sp-guide-table th { background: var(--siili-ink); font-weight: 700; }
body.m .sp-guide-table tr:last-child td { border-bottom: 0; }
body.m .sp-guide-aside { border: 0; border-radius: 28px; padding: 28px; top: 112px; box-shadow: 0 24px 48px -32px rgba(17, 17, 16, 0.22); }
body.m .sp-guide-aside h2 { font-size: 22px; }
body.m .sp-guide-aside a { font-size: 16px; }
body.m .sp-guide-cta { border-radius: 28px; padding: clamp(28px, 3.4vw, 48px); margin-top: clamp(48px, 6vw, 80px); }
body.m .sp-guide-cta h2 { font-size: clamp(30px, 3.4vw, 48px); margin: 0 0 12px; }
body.m .sp-guide-cta .sp-btn-light, body.m .sp-guide-cta .sp-btn-primary { background: var(--siili-ink); color: #fff; }
body.m .sp-guide-cta .sp-btn:hover { background: #000; color: #fff; box-shadow: none; transform: translateY(-2px); }

/* ---------- 3D map section ---------- */
body.m .s3d-title { font-size: clamp(36px, 4.2vw, 64px); }
body.m .s3d-eyebrow { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
body.m :is(.s3d-place, .s3d-info-title, .s3d-lower-where strong, .s3d-guide-name, .s3d-label-city) { font-weight: 700; letter-spacing: 0; text-transform: none; }
body.m .s3d-place { font-size: 16px; font-stretch: 92%; }
body.m .s3d-slab { font-weight: 800; font-stretch: 84%; letter-spacing: -0.02em; text-transform: none; }
body.m.s3d-page main { padding-top: 104px; }

@media (max-width: 900px) {
  body.m .sp-kl-grid { grid-template-columns: minmax(0, 1fr); }
  body.m .sp-guide-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body.m .sp-kl-hero, body.m .sp-guide-hero { padding-top: 128px; }
  body.m .sp-tier-grid { grid-template-columns: minmax(0, 1fr); }
  body.m .sp-kl-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.m .sp-guide-article > :is(p, ul:not([class]), ol:not([class])), body.m .sp-guide-article > :is(ul:not([class]), ol:not([class])) li { font-size: 17px; }
  body.m.sp-guide-page .sp-footer { padding-bottom: 104px; }
}

/* ---------- Sub-page fixes ---------- */
body.m .sp-kl-meta > div { display: flex; flex-direction: column; min-width: 0; }
body.m .sp-kampanja-ribbon a:not(.sp-btn) { color: var(--siili-green); }
@media (max-width: 720px) {
  body.m .sp-header-actions .sp-btn { display: none; }
  body.m .sp-kl-hero h1 { font-size: clamp(56px, 17vw, 104px); }
  body.m .sp-kl-meta b { font-size: 28px; overflow-wrap: anywhere; }
  body.m .sp-kl-meta > div { padding: 18px; }
}
body.m .sp-kl-meta > div { align-items: flex-start; text-align: left; }

/* ============================================================
   BLOCK LIBRARY  (b-*)
   Self-contained blocks for any page. Copy the markup from
   docs/BLOCKS.md; every block there has a matching "@block" here.
   Blocks set their own surface, or read these three variables so
   they work on light and dark backgrounds. Put class "b-dark" on a
   dark wrapper (it is already set for .sp-kl-body).
   ============================================================ */
body.m {
  --b-fg: var(--siili-ink);
  --b-dim: var(--siili-grey-700);
  --b-line: var(--siili-grey-300);
  --b-accent: var(--siili-ink);
  --b-card: #fff;
  --b-shadow: 0 1px 0 rgba(17, 17, 16, 0.04), 0 24px 48px -32px rgba(17, 17, 16, 0.24);
  --b-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  --b-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}
body.m :is(.b-dark, .sp-kl-body) {
  --b-fg: #fff;
  --b-dim: rgba(255, 255, 255, 0.72);
  --b-line: rgba(255, 255, 255, 0.12);
  --b-accent: var(--siili-green);
  --b-card: var(--siili-black);
  --b-shadow: none;
}

/* Shared parts ------------------------------------------------ */
body.m .b-label {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin: 0; font-size: 14px; font-weight: 700; line-height: 1.2; color: inherit;
}
body.m .b-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
body.m .b-chip {
  display: inline-flex; align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--siili-green); color: var(--siili-ink); font-size: 14px; font-weight: 700; line-height: 1.2;
}
body.m .b-title {
  margin: 0; font-family: var(--font-headline); font-weight: 800; font-stretch: 86%;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.018em; text-wrap: balance; color: inherit;
}
body.m .b-btn-dark { background: var(--siili-ink); color: #fff; }
body.m .b-btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
body.m .b-more {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px;
  font-size: 16px; font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
body.m .b-more::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--b-arrow) center / contain no-repeat; mask: var(--b-arrow) center / contain no-repeat; transition: transform 200ms var(--m-ease); }
body.m .b-more:hover { color: inherit; text-decoration-thickness: 3px; }
body.m .b-more:hover::after { transform: translateX(3px); }

/* @block b-check : checklist ---------------------------------- */
body.m .b-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
body.m .b-check li { position: relative; margin: 0; padding-left: 30px; font-size: 16px; line-height: 1.45; color: inherit; }
body.m .b-check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--b-accent);
}
body.m .b-check li::after {
  content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; background: var(--b-card);
  -webkit-mask: var(--b-check) center / contain no-repeat; mask: var(--b-check) center / contain no-repeat;
}

/* @block b-join : membership banner (lime) -------------------- */
body.m .b-join {
  --b-accent: var(--siili-ink); --b-card: var(--siili-green);
  display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px;
  border-radius: 28px; background: var(--siili-green); color: var(--siili-ink);
}
body.m .b-join__price {
  margin: 0; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-headline); font-weight: 800; font-stretch: 84%; font-size: clamp(56px, 5vw, 76px); line-height: 0.9; letter-spacing: -0.02em; color: inherit;
}
body.m .b-join__price span { font-family: var(--font-body); font-stretch: 100%; font-size: 16px; font-weight: 700; letter-spacing: 0; }
body.m .b-join .sp-btn { align-self: stretch; margin-top: 4px; }
body.m .b-join .b-more { align-self: center; }
body.m .b-join--wide {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "head list" "actions list"; align-items: center;
  gap: 20px clamp(24px, 4vw, 64px); padding: clamp(28px, 3.4vw, 48px);
}
body.m .b-join--wide .b-join__head { grid-area: head; display: grid; gap: 12px; align-self: end; }
body.m .b-join--wide .b-check { grid-area: list; }
body.m .b-join--wide .b-join__actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; align-self: start; }
body.m .b-join--wide .b-join__actions .sp-btn { align-self: auto; margin: 0; }
body.m .b-join--wide .b-join__actions .b-more { align-self: auto; }

/* @block b-campaign : campaign banner (dark) ------------------ */
body.m .b-campaign {
  --b-fg: #fff; --b-dim: rgba(255, 255, 255, 0.78);
  display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 28px;
  border-radius: 28px; background: var(--siili-ink); color: #fff;
}
body.m .b-campaign .b-title span { color: var(--siili-green); }
body.m .b-campaign p:not(.b-chip) { margin: 0; font-size: 16px; line-height: 1.55; color: var(--b-dim); }
body.m .b-campaign .b-more { color: var(--siili-green); }
body.m .b-campaign--photo { background: linear-gradient(180deg, rgba(17, 17, 16, 0.2) 0%, rgba(17, 17, 16, 0.92) 62%), var(--b-photo, none) center top / cover no-repeat, var(--siili-ink); padding-top: clamp(120px, 14vw, 200px); }

/* @block b-venue : home hall card ----------------------------- */
body.m .b-venue {
  display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 28px;
  border-radius: 28px; background: var(--b-card); color: var(--b-fg); box-shadow: var(--b-shadow);
}
body.m .b-venue .b-title { font-size: 24px; font-stretch: 92%; font-weight: 700; }
body.m .b-venue p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--b-dim); }
body.m .b-venue address { font-style: normal; font-size: 16px; line-height: 1.5; color: var(--b-dim); }

/* @block b-links : related links ------------------------------ */
body.m .b-links {
  margin: 0; padding: 24px 28px 12px; border-radius: 28px; background: var(--b-card); color: var(--b-fg); box-shadow: var(--b-shadow);
}
body.m .b-links h2 { margin: 0 0 8px; font-family: var(--font-headline); font-size: 22px; font-weight: 700; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.1; color: inherit; }
body.m .b-links ul { list-style: none; margin: 0; padding: 0; display: block; }
body.m .b-links li { margin: 0; border-top: 1px solid var(--b-line); }
body.m .b-links li:first-child { border-top: 0; }
body.m .b-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 0;
  font-size: 16px; font-weight: 700; line-height: 1.3; color: inherit; text-decoration: none;
}
body.m .b-links a::after { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--b-arrow) center / contain no-repeat; mask: var(--b-arrow) center / contain no-repeat; opacity: 0.5; transition: transform 200ms var(--m-ease), opacity 200ms ease; }
body.m .b-links a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
body.m .b-links a:hover::after { transform: translateX(3px); opacity: 1; }

/* @block b-rail : article sidebar ----------------------------- */
body.m .b-rail { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 901px) and (min-height: 760px) { body.m .b-rail { position: sticky; top: 104px; } }

/* @block b-steps : numbered steps ----------------------------- */
body.m .b-steps { list-style: none; counter-reset: b-step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
body.m .b-steps > li {
  counter-increment: b-step; margin: 0; padding: 24px 28px 28px; border-radius: var(--r-lg);
  background: var(--b-card); color: var(--b-fg); box-shadow: var(--b-shadow); border: 1px solid transparent;
}
body.m :is(.b-dark, .sp-kl-body) .b-steps > li { border-color: var(--b-line); }
body.m .b-steps > li::before {
  content: counter(b-step, decimal-leading-zero); display: block; margin-bottom: 20px;
  font-family: var(--font-headline); font-weight: 800; font-stretch: 84%; font-size: 44px; line-height: 1; letter-spacing: -0.02em; color: var(--b-accent);
}
body.m .b-steps h3 { margin: 0 0 8px; font-family: var(--font-headline); font-size: 22px; font-weight: 700; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.15; color: inherit; }
body.m .b-steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--b-dim); }
body.m .b-steps a { color: inherit; }

/* @block b-stats : key figures -------------------------------- */
body.m .b-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--b-line); border-bottom: 1px solid var(--b-line); }
body.m .b-stats > li { margin: 0; padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 8px; }
body.m .b-stats > li + li { padding-left: 24px; border-left: 1px solid var(--b-line); }
body.m .b-stats strong { font-family: var(--font-headline); font-weight: 800; font-stretch: 84%; font-size: clamp(36px, 3.6vw, 56px); line-height: 0.95; letter-spacing: -0.02em; color: var(--b-fg); }
body.m .b-stats span { font-size: 15px; line-height: 1.4; color: var(--b-dim); }

/* @block b-callout : highlighted note ------------------------- */
body.m .b-callout { margin: 0; padding: 24px 28px; border-radius: var(--r-lg); background: var(--siili-green-tint); color: var(--siili-ink); display: grid; gap: 8px; }
body.m .b-callout > * { margin: 0; color: inherit; }
body.m .b-callout strong:first-child { font-family: var(--font-headline); font-size: 20px; font-weight: 700; font-stretch: 92%; letter-spacing: -0.015em; }
body.m .b-callout--dark { background: var(--siili-ink); color: #fff; }
body.m .b-callout--dark a { color: var(--siili-green); }

/* @block b-cards : link cards --------------------------------- */
body.m .b-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
body.m .b-cards > li { margin: 0; display: flex; }
body.m .b-card {
  flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px;
  background: var(--b-card); color: var(--b-fg); box-shadow: var(--b-shadow); border: 1px solid transparent; text-decoration: none;
  transition: transform 320ms var(--m-ease), border-color 200ms ease;
}
body.m :is(.b-dark, .sp-kl-body) .b-card { border-color: var(--b-line); }
body.m .b-card:hover { transform: translateY(-4px); color: var(--b-fg); border-color: var(--siili-green); }
body.m .b-card h3 { margin: 0; font-family: var(--font-headline); font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; font-stretch: 86%; letter-spacing: -0.018em; line-height: 1.02; color: inherit; text-wrap: balance; }
body.m .b-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--b-dim); }
body.m .b-card .b-more { margin-top: auto; text-decoration: none; }

/* @block b-faq : questions without JavaScript ----------------- */
body.m .b-faq { margin: 0; border-top: 1px solid var(--b-line); color: var(--b-fg); }
body.m .b-faq details { border-bottom: 1px solid var(--b-line); }
body.m .b-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-headline); font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; font-stretch: 92%; letter-spacing: -0.015em; line-height: 1.2;
}
body.m .b-faq summary::-webkit-details-marker { display: none; }
body.m .b-faq summary::after {
  content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-body); font-size: 22px; font-weight: 500; line-height: 1; border: 1px solid var(--b-line);
  transition: transform 320ms var(--m-ease), background-color 200ms ease, color 200ms ease;
}
body.m .b-faq details[open] summary::after { transform: rotate(45deg); background: var(--siili-green); border-color: var(--siili-green); color: var(--siili-ink); }
body.m .b-faq summary:hover::after { border-color: currentColor; }
body.m .b-faq details > :not(summary) { margin: 0 0 22px; padding-right: 56px; max-width: 64ch; font-size: 17px; line-height: 1.65; color: var(--b-dim); }

/* @block b-cta : closing call to action ----------------------- */
body.m .b-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px clamp(24px, 3vw, 48px);
  margin: 0; padding: clamp(28px, 3.6vw, 56px); border-radius: var(--r-xl); background: var(--siili-ink); color: #fff;
}
body.m .b-cta > :first-child { flex: 1 1 300px; min-width: 0; }
body.m .b-cta .b-title { font-size: clamp(32px, 3.8vw, 56px); }
body.m .b-cta .b-title span { color: var(--siili-green); }
body.m .b-cta p { margin: 12px 0 0; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
body.m .b-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.m .b-cta--lime { background: var(--siili-green); color: var(--siili-ink); }
body.m .b-cta--lime p { color: var(--siili-ink); }
body.m .b-cta--lime .b-title span { color: inherit; }

/* @block b-figure : image with caption ------------------------ */
body.m .b-figure { margin: 0; display: grid; gap: 12px; }
body.m .b-figure img { display: block; width: 100%; height: auto; border-radius: 28px; background: var(--siili-grey-200); }
body.m .b-figure figcaption { font-size: 15px; line-height: 1.5; color: var(--b-dim); }

/* @block b-split : text beside media -------------------------- */
body.m .b-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(24px, 4vw, 64px); margin: 0; color: var(--b-fg); }
body.m .b-split__text { display: grid; gap: 16px; justify-items: start; }
body.m .b-split__text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--b-dim); }
body.m .b-split--flip > :first-child { order: 2; }

/* Blocks inside article text: consistent vertical rhythm */
body.m .sp-guide-article > :is(.b-join, .b-campaign, .b-venue, .b-steps, .b-stats, .b-callout, .b-cards, .b-faq, .b-cta, .b-figure, .b-split) { margin: clamp(28px, 3.4vw, 44px) 0; }
body.m .sp-guide-article :is(.b-check, .b-steps, .b-stats, .b-cards, .b-links ul) { padding-left: 0; }
body.m .sp-guide-article :is(.b-join, .b-campaign, .b-cta, .b-card, .b-links) a { font-weight: 700; }
body.m .sp-guide-article .b-check li { font-size: 17px; }

@media (max-width: 900px) {
  body.m .b-split { grid-template-columns: minmax(0, 1fr); }
  body.m .b-split--flip > :first-child { order: 0; }
  body.m .b-rail { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 560px) {
  body.m :is(.b-join, .b-campaign, .b-venue, .b-card) { padding: 24px; }
  body.m .b-join--wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "list" "actions"; }
  body.m .b-join--wide .b-join__actions .sp-btn { flex: 1 1 100%; }
  body.m .b-join--wide .b-join__actions .b-more { margin: 0 auto; }
  body.m .b-links { padding: 20px 24px 8px; }
  body.m .b-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.m .b-stats > li, body.m .b-stats > li + li { padding: 20px 16px 20px 0; border-left: 0; }
  body.m .b-stats > li:nth-child(n+3) { border-top: 1px solid var(--b-line); }
  body.m .b-faq details > :not(summary) { padding-right: 0; }
  body.m .b-cta__actions .sp-btn { flex: 1 1 100%; }
}

/* ---------- Rail fit + header on light pages ---------- */
body.m { --m-glass: rgba(17, 17, 16, 0.9); }
body.m .b-rail .b-join { gap: 12px; padding: 24px; }
body.m .b-rail .b-join__price { font-size: 60px; }
body.m .b-rail .b-links { padding: 20px 24px 8px; }
@media (min-width: 901px) and (max-height: 789px) { body.m .b-rail { position: static; } }

/* ---------- Jäsenyydet layout ---------- */
body.m .sp-kl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body.m .kl-wrap { max-width: var(--m-wide); margin: 0 auto; padding: 0 var(--m-pad); display: grid; gap: clamp(64px, 8vw, 120px); }
body.m .kl-wrap > * { min-width: 0; }
body.m .kl-wrap h2 { margin: 0; font-family: var(--font-headline); font-weight: 800; font-stretch: 86%; font-size: clamp(36px, 4.4vw, 68px); line-height: 0.98; letter-spacing: -0.018em; color: #fff; text-wrap: balance; }
body.m .kl-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: calc(-1 * clamp(24px, 4vw, 72px)); }
body.m .kl-head p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--m-text-dim); max-width: 60ch; }
body.m .kl-wrap .sp-kl-grid { max-width: none; padding: 0; }

body.m .kl-wrap .sp-tier-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 0; }
body.m .kl-wrap .sp-tier-card { border-radius: 28px; padding: 32px; }
body.m .kl-wrap .sp-tier-card.sp-benefit-accent { grid-column: 1; grid-row: 1 / span 2; padding: clamp(32px, 3.4vw, 48px); }
body.m .kl-wrap .sp-tier-card .sp-benefit-list { flex: 1 1 auto; }
body.m .kl-wrap .sp-tier-card.sp-benefit-accent .sp-benefit-list { flex: 0 0 auto; margin-top: auto; }
body.m .kl-wrap .sp-tier-card.sp-benefit-accent .sp-benefit-title { font-size: clamp(40px, 4.4vw, 68px); line-height: 0.95; }
body.m .kl-wrap .sp-tier-card.sp-benefit-accent .sp-tier-price { font-size: clamp(88px, 10vw, 152px); line-height: 0.9; margin-bottom: 28px; }
body.m .kl-wrap .sp-tier-card.sp-benefit-accent .sp-btn { min-height: 56px; padding: 17px 28px; font-size: 16px; }
body.m .kl-wrap #ikuinen { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; align-items: center; column-gap: clamp(24px, 4vw, 64px); }
body.m .kl-wrap #ikuinen > .sp-benefit-tag { grid-column: 1; grid-row: 1; }
body.m .kl-wrap #ikuinen > .sp-benefit-title { grid-column: 1; grid-row: 2; }
body.m .kl-wrap #ikuinen > .sp-tier-price { grid-column: 1; grid-row: 3; margin-bottom: 0; }
body.m .kl-wrap #ikuinen > .sp-benefit-list { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
body.m .kl-wrap #ikuinen > .sp-btn { grid-column: 3; grid-row: 1 / span 3; width: auto; margin: 0; }

body.m .kl-join { display: grid; gap: clamp(24px, 3vw, 40px); }
body.m .kl-join .b-steps > li > p { font-size: 18px; line-height: 1.55; color: #fff; }
body.m .kl-join-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
body.m .kl-join-more p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--m-text-dim); max-width: 64ch; }
body.m .kl-join-more a:not(.sp-btn) { color: var(--siili-green); text-underline-offset: 4px; }
body.m .kl-wrap .sp-kl-content h2 { font-size: clamp(30px, 3.2vw, 46px); }
body.m .kl-wrap .sp-kl-content h3 { margin: 28px 0 8px; color: #fff; }
body.m .kl-wrap .sp-kl-content h2 + h3 { margin-top: 24px; }
body.m .kl-wrap .sp-kl-content h2 + :is(p, ul) { margin-top: 20px; }
body.m .sp-kl-sidebar .sp-btn { width: 100%; margin-top: 12px; }
body.m .sp-kl-sidebar .sp-btn-primary { margin-top: 24px; }
body.m .sp-kl-sidebar-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--m-line); font-size: 15px; line-height: 1.6; color: var(--m-text-dim); }
body.m .sp-kl-meta span { align-self: flex-start; text-align: left; }

@media (max-width: 1100px) {
  body.m .kl-wrap .sp-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.m .kl-wrap .sp-tier-card.sp-benefit-accent { grid-column: 1 / -1; grid-row: auto; }
  body.m .kl-wrap #ikuinen { grid-column: auto; display: flex; }
  body.m .kl-wrap #ikuinen > .sp-benefit-list { margin: 0 0 18px; }
  body.m .kl-wrap #ikuinen > .sp-tier-price { margin-bottom: 20px; }
  body.m .kl-wrap #ikuinen > .sp-btn { width: 100%; margin-top: 24px; }
}
@media (max-width: 720px) {
  body.m .kl-head { grid-template-columns: minmax(0, 1fr); }
  body.m .kl-wrap .sp-tier-grid { grid-template-columns: minmax(0, 1fr); }
  body.m .kl-wrap .sp-tier-card { padding: 24px; }
  body.m .kl-wrap .sp-tier-card.sp-benefit-accent .sp-btn { width: 100%; }
  body.m .sp-kl-body ~ .sp-footer, body.m .sp-footer { padding-bottom: 104px; }
}
body.m .kl-wrap #ikuinen > .sp-benefit-tag { justify-self: start; }
/* Buttons keep their own text color inside article text */
body.m .sp-guide-article .sp-btn-outline-light { color: #fff; }
body.m .sp-guide-article .sp-btn-outline-light:hover { color: var(--siili-ink); }
body.m .sp-guide-article .sp-btn-primary { color: var(--siili-ink); }
@media (max-width: 1100px) { body.m .kl-wrap #ikuinen { align-items: stretch; flex-direction: column; } }
