/* LoopyMax site styles. Design code follows the GetCourse course pages:
   Ubuntu font, red buttons, yellow tags, alternating grey and white sections. */

:root {
  --fs-h1: 48px; --fs-h2: 32px; --fs-h3: 22px; --fs-h4: 20px; --fs-lead: 18px; --fs-small: 14px;
  --text: #212121;
  --red: #dc403b;
  --red-2: #ec543f;
  --yellow: #ffd61e;
  --course-glow-pink: 227 15 111;
  --course-glow-amber: 255 151 32;
  --grey-bg: #f0f0f0;
  --line: #e3e3e3;
  --shadow: 0 0 14px rgba(0, 0, 0, 0.26);
  --shadow-hover: 0 0 18px rgba(0, 0, 0, 0.30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Ubuntu", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { line-height: 1.2; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff; color: var(--text);
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: 72px;
}
.logo { display: grid; place-items: center; height: 52px; aspect-ratio: 409 / 141; text-decoration: none; }
.logo img { height: 48px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 16px; }
.nav a:not(.btn) { font-weight: 700; }
.nav a:hover, .nav a.active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle, .nav-toggle-label { display: none; }

/* Home hero */
.hero {
  color: #fff; padding: clamp(28px, 5vw, 76px) 0; background: #181818;
}
.hero-split { overflow: clip; }
.hero-split .container {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 72px); align-items: center;
}
.hero-split .hero-text { max-width: 32rem; }
.hero-split h1 { font-size: clamp(36px, 4.5vw, 68px); text-wrap: balance; }
.hero-split p { margin-bottom: 26px; }
.hero-photo {
  display: block; border-radius: 9px;
  box-shadow: 0 0 88px 12px rgba(255, 173, 39, 0.448),
              28px 18px 172px 28px rgba(255, 119, 0, 0.304);
}
.hero-photo img { width: 100%; border-radius: inherit; }
.hero-photo:focus-visible { outline: 2px solid #f5b754; outline-offset: 5px; }
.hero-text { max-width: 560px; }
.hero h1 { margin: 0 0 18px; font-size: 70px; font-weight: 700; line-height: 1.05; }
.hero p { margin: 0 0 40px; font-size: var(--fs-lead); font-weight: 300; }

/* Inner page title: dark bold text in a white box with a soft shadow */
.page-head { text-align: center; padding: 48px 0 20px; }
.page-back { margin-bottom: 20px; text-align: left; font-size: var(--fs-small); }
.page-back a { color: var(--text); text-underline-offset: 3px; }
.page-back a:hover { color: var(--red); }
.page-head h1 { margin: 0; font-size: var(--fs-h1); font-weight: 700; line-height: 1.5; }
.title-box {
  display: inline; background: #fff; color: var(--text);
  padding: 0.08em 0.35em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  box-shadow: var(--shadow);
}
.page-sub { margin: 26px auto 0; max-width: 620px; font-size: var(--fs-lead); font-weight: 300; }
.page-head .meta { margin-top: 18px; font-size: 14px; color: var(--text); }
.template-library {
  background:
    radial-gradient(ellipse 65% 480px at 22% 0%, rgb(var(--course-glow-pink) / 0.22), transparent 80%),
    radial-gradient(ellipse 65% 480px at 78% 0%, rgb(var(--course-glow-amber) / 0.28), transparent 80%),
    var(--grey-bg);
}
.template-library > .section.grey { background: transparent; }
.free-materials .page-head { padding: clamp(24px, 3vw, 32px) 0 24px; }
.free-materials .page-head .narrow { max-width: 1040px; }
.free-materials .page-head h1 { text-wrap: balance; }
@media (min-width: 901px) {
  .free-materials .page-head h1 { white-space: nowrap; }
}
.page-head + .section { padding-top: 36px; padding-bottom: 64px; }
.page-head + .toc { margin-top: 20px; }
.kicker {
  display: inline-block;
  background: var(--yellow); color: #000;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  margin-bottom: 18px;
}

/* Sections */
.section { padding: 100px 0; }
.section.grey { background: var(--grey-bg); }
.section.tight { padding: 60px 0; }
.section-title { margin: 0 0 8px; font-size: var(--fs-h2); font-weight: 700; text-align: center; }
.section-sub { margin: 0 auto 10px; max-width: 640px; text-align: center; font-weight: 300; }

/* Tags and buttons */
.tag {
  display: inline-block;
  background: var(--yellow); color: #000;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  margin-bottom: 16px;
}
.btn {
  --btn-border-width: 0px;
  --btn-padding-block: 18px;
  --btn-padding-inline: 56px;
  display: inline-block;
  background: var(--red); color: #fff;
  font-family: inherit; font-size: 17px; font-weight: 700;
  border: var(--btn-border-width) solid transparent; border-radius: 40px;
  /* The outline uses part of the padding so every variant keeps its outer size. */
  padding: calc(var(--btn-padding-block) - var(--btn-border-width))
           calc(var(--btn-padding-inline) - var(--btn-border-width));
  text-decoration: none;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.btn:hover { background: var(--red-2); }
.btn.small { --btn-padding-block: 12px; --btn-padding-inline: 28px; font-size: 17px; }
.btn.compact {
  --btn-padding-block: 6px;
  --btn-padding-inline: 12px;
  font-size: 14px; white-space: nowrap;
}
.btn.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 50%;
}
.btn.light, .btn.light:hover { background: #fff; color: var(--text); }
.btn.ghost {
  --btn-border-width: 2px;
  border-color: var(--text);
  background-color: #fff; background-clip: padding-box;
  color: var(--text); box-shadow: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn-row.center { justify-content: center; text-align: center; }

/* Course blocks align titles and buttons on the left; mobile shows the video first. */
.course .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.course .media { order: 1; }
.course h2 { margin: 0 0 10px; font-size: var(--fs-h2); font-weight: 700; }
.course p { color: var(--text); margin: 0 0 14px; }

/* Video facade: thumbnail first, player loads on click */
.video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video[data-load-player] { background-position: center; background-size: cover; }
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat;
}
.video-facade::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 72px; height: 50px; margin: -25px 0 0 -36px;
  border-radius: 12px; background: var(--red);
  box-shadow: var(--shadow);
}
.video-facade::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 1;
  margin: -10px 0 0 -6px;
  border-style: solid; border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover::after { background: var(--red-2); }
.video-caption { font-size: 14px; color: var(--text); margin: 8px 0 0; }

/* Card grid (templates, articles, free materials, tutorials) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: 9px; overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-media { aspect-ratio: 16 / 9; background: #ddd center / cover no-repeat; display: block; }
.card .video { border-radius: 0; box-shadow: none; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 700; }
.card p { margin: 0 0 12px; color: var(--text); }
.card .btn-row { margin-top: auto; padding-top: 6px; }

/* Article and long-form text */
.prose { font-size: 17px; }
.prose h2 { font-size: var(--fs-h2); margin: 54px 0 14px; }
.prose h3 { font-size: var(--fs-h3); margin: 40px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--red); text-underline-offset: 2px; }
.prose a:hover { color: var(--red-2); }
.prose a.btn { color: #fff; }
.prose a.btn.ghost, .btn.ghost { color: var(--text); }
.prose figure { margin: 26px 0 30px; }
.prose figure img { border-radius: 6px; box-shadow: var(--shadow); margin: 0 auto; }
.prose figcaption { font-size: 14px; color: var(--text); margin-top: 8px; text-align: center; }
.prose .video { margin: 26px 0 30px; }
.import-guide {
  margin: 32px 0; padding: clamp(16px, 3vw, 24px);
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
}
.prose .import-guide h2 { font-size: inherit; line-height: inherit; font-weight: 700; margin: 0 0 8px; }
.prose .import-guide p { color: var(--text); }
.prose .import-guide .video { margin: 0; box-shadow: none; }
.markus-step { margin-top: 32px; }
.markus-step + .markus-step { padding-top: 32px; border-top: 1px solid var(--line); }
.prose .markus-step h2 { margin: 0 0 14px; }
.markus-step .btn-row { margin-bottom: 20px; }
.markus-controller {
  margin: 12px 0; padding: 0 clamp(14px, 3vw, 22px);
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
}
.markus-controller summary { padding: 14px 0; cursor: pointer; font-weight: 700; }
.markus-controller-content { padding-bottom: 16px; }
.prose .markus-step > :last-child, .prose .markus-controller-content > :last-child { margin-bottom: 0; }
.prose .lead { font-size: var(--fs-lead); font-weight: 300; color: var(--text); }
.prose .note {
  background: var(--grey-bg); border-left: 4px solid var(--yellow);
  padding: 16px 20px; border-radius: 4px; margin: 24px 0;
}
.prose code {
  font-family: ui-monospace, Menlo, monospace; font-size: 15px;
  background: var(--grey-bg); padding: 1px 6px; border-radius: 4px;
}
.gear { padding: 22px 0; }
.gear h3 { margin-top: 0; font-size: var(--fs-h4); }
.pros-cons { list-style: none; padding-left: 0 !important; }
.pros-cons li { padding-left: 26px; position: relative; }
.pros-cons li::before { position: absolute; left: 0; font-weight: 700; }
.pros-cons li.pro::before { content: "+"; color: #2e7d32; }
.pros-cons li.con::before { content: "\2212"; color: var(--red); }

/* Lead magnet layout */
.magnet .container {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.magnet img { border-radius: 9px; box-shadow: var(--shadow); }
.magnet h1 { margin: 0 0 12px; font-size: var(--fs-h1); font-weight: 700; }
.magnet p { color: var(--text); }

/* Signup form */
.lm-form { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; max-width: 520px; }
.lm-form.stack { grid-template-columns: 1fr; max-width: 420px; }
.lm-form input[type="email"], .lm-form input[type="text"] {
  font-family: inherit; font-size: 16px; font-weight: 300;
  padding: 16px 20px;
  border: 1px solid #cfcfcf; border-radius: 40px;
  background: #fff; color: var(--text); width: 100%;
}
.lm-form input:focus { outline: 2px solid var(--yellow); border-color: transparent; }
.lm-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.lm-trap { position: absolute; left: -5000px; }
.lm-msg { grid-column: 1 / -1; min-height: 1.55em; margin: 4px 0 0; font-weight: 400; }
.lm-msg.ok { color: #2e7d32; }
.lm-msg.err { color: var(--red); }
.signup-notice {
  background: #c9e9d3; border-bottom: 1px solid #a4d3b5;
  color: var(--text); font-size: var(--fs-small);
}
.signup-notice .narrow {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center; gap: 4px; padding-block: 4px;
}
.signup-notice p { grid-column: 2; margin: 0; padding-block: 6px; text-align: center; }
.signup-notice-thanks { position: relative; display: inline-block; padding-inline: 18px; }
/* The library confetti travels with the greeting so it only appears after signup. */
.signup-notice-thanks::before, .signup-notice-thanks::after {
  content: ""; position: absolute; top: calc(50% - 8px);
  width: 14px; height: 16px; pointer-events: none;
  background:
    linear-gradient(42deg, transparent 35%, var(--red) 38% 62%, transparent 65%) 5px 0 / 8px 8px no-repeat,
    linear-gradient(-12deg, transparent 30%, rgb(var(--course-glow-pink)) 34% 66%, transparent 70%) 0 11px / 7px 4px no-repeat;
}
.signup-notice-thanks::before { inset-inline-start: 0; }
.signup-notice-thanks::after { inset-inline-end: 0; transform: scaleX(-1); }
.signup-notice button {
  grid-column: 3; display: grid; place-items: center; height: 44px;
  padding: 0; border: 0; border-radius: 9px;
  background: transparent; color: inherit; cursor: pointer;
}
/* Centre both strokes directly in the button so font metrics cannot offset the cross. */
.signup-notice button::before, .signup-notice button::after {
  content: ""; grid-area: 1 / 1; width: 16px; height: 2px;
  border-radius: 1px; background: currentColor;
}
.signup-notice button::before { transform: rotate(45deg); }
.signup-notice button::after { transform: rotate(-45deg); }
.signup-notice button:hover { background: #b4dec3; }
.fine-print { font-size: var(--fs-small); color: var(--text); margin-top: 10px; }
.signup-band { text-align: center; }
.signup-band .lm-form { max-width: 520px; margin: 30px auto 0; }
.signup-band .lm-form .btn { justify-self: stretch; }
/* same form details as the signup pages (.magnet-v2) */
.signup-band .lm-form input:focus { outline-color: var(--red); }
.signup-band .lm-msg:empty { display: none; }
.signup-band .fine-print { max-width: 520px; margin: 22px auto 0; }
/* white card on the grey band, same as the booking card on the lessons page */
.signup-card { max-width: 760px; margin: 0 auto; padding: 48px 48px 44px; background: #fff; border-radius: 9px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .signup-card { padding: 32px 22px 30px; } }

/* Promo blocks */
.promo .section-title { margin-bottom: 30px; }
.about-me-content {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  grid-template-areas: "portrait bio"; gap: 40px;
}
.about-me-copy { grid-area: bio; }
.about-portrait {
  grid-area: portrait; position: relative; border-radius: 9px;
  overflow: hidden; box-shadow: var(--shadow);
}
.about-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.about-socials { display: flex; flex-wrap: wrap; margin-top: 8px; margin-inline-start: -7px; }
.about-socials a {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: #fff;
}
.about-socials a::before, .about-socials svg { grid-area: 1 / 1; }
.about-socials a::before {
  content: ""; width: 30px; height: 30px; border-radius: 50%; background: #737373;
}
.about-socials a:is(:hover, :focus-visible)::before { background: var(--text); }
.about-socials svg { width: 15px; height: 15px; }
.about-me-content .section-title { text-align: left; }
.about-me-content p:last-of-type { margin-bottom: 0; }
/* About me links look like plain text; the underline shows only on hover or keyboard focus */
.about-me-content p a { font-weight: inherit; color: inherit; text-decoration: none; text-underline-offset: 3px; }
.about-me-content p a:is(:hover, :focus-visible) {
  text-decoration: underline;
}
.course-cta { background: #fff; padding: 80px 0; }
.course-cta .container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta-media { background: none; padding: 0; }
.cta-media img { margin: 0 auto; }
.course-cta h2 { margin: 0 0 10px; font-size: var(--fs-h2); }
.course-cta p { color: var(--text); }
.course-cta-dark { background: #181818; color: #fff; }
.course-cta-dark p { color: inherit; }
.course-cta-dark:not(.course-cta-stacked) .cta-media,
.course-cta-stacked .container {
  background: #fff; border-radius: 9px; overflow: hidden;
  box-shadow: -17px 14px 46px -5px rgb(var(--course-glow-pink) / 0.65),
               17px -12px 46px -5px rgb(var(--course-glow-amber) / 0.58);
}
.course-cta-dark:not(.course-cta-stacked) .cta-media {
  padding: clamp(6px, 1vw, 12px) clamp(20px, 3vw, 40px);
}
.course-cta-stacked .container {
  width: calc(100% - 48px); max-width: 760px;
  grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: clamp(14px, 2vw, 24px) clamp(16px, 4vw, 48px) clamp(26px, 4vw, 44px);
  text-align: center; color: var(--text);
}
.course-cta-stacked .cta-media { width: min(72%, 403.2px); margin: 0 auto; }
.course-cta-stacked p { max-width: 54ch; margin: 0 auto 20px; color: var(--text); }
.course-cta-dark .cta-media img { width: 100%; }
.course-cta-dark .btn:hover { background: #d23b37; }
.cta-arrow { display: inline-block; margin-inline-start: 0.35em; }
@media (prefers-reduced-motion: no-preference) {
  .cta-arrow { transition: transform 0.18s ease; }
  .btn:is(:hover, :focus-visible) .cta-arrow { transform: translateX(3px); }
}

/* Contact */
.contact { text-align: center; }
.contact p { margin: 0 0 4px; }
.contact a.mail { font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; }
.contact a.mail:hover { color: var(--red); }
.contact-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* Footer */
.site-footer { background: var(--text); color: #fff; font-size: 16px; font-weight: 300; padding: 16px 0; }
/* same height as the header (72px) on wide screens */
@media (min-width: 901px) { .site-footer { padding: 0; } .footer-layout { min-height: 72px; align-items: center; } }
.footer-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "copyright email socials"; gap: 16px; align-items: center;
}
.footer-copyright { grid-area: copyright; }
.footer-contact { grid-area: email; margin: 0; display: flex; align-items: center; justify-content: center; }
.footer-mail-ico { display: grid; place-items: center; margin: 0 6px; color: #fff; }
.footer-mail-ico svg { width: 19px; height: 19px; }

.footer-email { color: #fff; text-decoration: none; text-underline-offset: 3px; }
.footer-email:is(:hover, :focus-visible) { text-decoration: underline; }
.footer-profile-links { grid-area: socials; justify-self: end; display: flex; gap: 2px; }
.footer-profile-links a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
}
.footer-profile-links a:is(:hover, :focus-visible) { background: rgb(255 255 255 / 0.12); }
.footer-profile-links svg { width: 19px; height: 19px; }

/* Personal lessons */
.split .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split img { border-radius: 9px; box-shadow: var(--shadow); }
.split h2 { margin: 0 0 14px; font-size: var(--fs-h2); }
.split p { color: var(--text); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 9px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 15px; color: var(--text); margin-top: 12px; text-align: center; }

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle-label { display: block; cursor: pointer; font-size: 26px; line-height: 1; padding: 6px; }
  .site-header .container { gap: 10px; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 0;
    box-shadow: var(--shadow);
  }
  .header-actions { margin-left: auto; gap: 8px; }
  .nav > a:not(.btn) {
    padding: 12px 15px; font-size: 17px;
    text-align: center;
    border-bottom: 1px solid #eee;
    border-bottom-color: color-mix(in srgb, var(--line) 60%, white);
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .logo { height: 44px; }
  .logo img { height: 38px; }

  .hero h1 { font-size: 46px; }
  .page-head { padding: 44px 0 20px; }
  .page-head h1 { font-size: 32px; line-height: 1.55; }
  .catalog-page .page-head { padding: 24px 0 12px; }
  .catalog-page .page-sub { margin-top: 16px; }
  .catalog-page .page-head + .section { padding-top: 20px; }
  :root { --fs-h1: 32px; --fs-h2: 26px; --fs-h3: 20px; --fs-h4: 18px; --fs-lead: 17px; }
  .split .container { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: 1fr; }
  .footer-layout {
    grid-template-columns: 1fr; grid-template-areas: "email" "socials" "copyright";
    justify-items: center; gap: 8px; text-align: center;
  }
  .footer-profile-links { justify-self: center; }
  .section { padding: 60px 0; }
  .course .container, .magnet .container, .course-cta .container { grid-template-columns: 1fr; gap: 26px; }
  .course-cta-dark { padding: 48px 0; }
  .course .media { order: 0; }
  .about-me-content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "portrait" "bio"; gap: 24px; }
  .about-portrait { aspect-ratio: 4 / 3; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .lm-form { grid-template-columns: 1fr; }
  .lm-form .btn { justify-self: stretch; text-align: center; }
  .btn { --btn-padding-inline: 36px; }
  .prose { font-size: 17px; }
}

/* Plugins article */
.toc { background: var(--grey-bg); padding: 26px 0; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.toc a {
  display: inline-block; text-decoration: none;
  background: #fff; border-radius: 40px;
  padding: 7px 16px; font-size: 14px; font-weight: 400;
  box-shadow: var(--shadow);
}
.toc a:hover { background: var(--red); color: #fff; }
.legend { text-align: center; font-size: 14px; color: var(--text); margin: 34px 0 0; }
.category { padding: 46px 0 6px; }
.category h2 { margin: 0 0 6px; font-size: var(--fs-h2); font-weight: 700; }
.category .intro { margin: 0 0 8px; color: var(--text); }
.plugins { list-style: none; margin: 0; padding: 0; }
.plugin { padding: 22px 0; border-bottom: 1px solid var(--line); }
.plugin:last-child { border-bottom: 0; }
.plugin-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.plugin-name { font-size: var(--fs-h4); font-weight: 700; text-decoration: none; }
a.plugin-name:hover { color: var(--red); }
.pill { font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; line-height: 1.4; }
.pill.free { background: var(--yellow); color: #000; }
.pill.ipad { background: #212121; color: #fff; }
.pill.beta { background: #e8e8e8; color: #212121; }
.plugin p { margin: 0 0 8px; color: var(--text); }
.plugin p:last-child { margin-bottom: 0; }
.plugin p a, .category .intro a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.see { font-size: 15px; }
@media (max-width: 900px) {
  .toc ul { justify-content: flex-start; }
}

/* Product photos in gear lists stay a sensible size */
.gear figure img { max-height: 340px; width: auto; max-width: 100%; margin: 0 auto; }

/* A small lift and shadow change on button hover */
.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover:not(:active) { transform: translateY(-1px); }
}

/* Short pages keep the footer at the bottom of the viewport. */
.short-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.short-page > main { flex: 1 0 auto; display: grid; place-items: center; text-align: center; }
/* Sticky footer: on short pages (signup pages) the footer sits at the bottom of the screen, content stays at the top */
.sticky-footer { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.sticky-footer > .site-footer { margin-top: auto; }

/* 404 */
.not-found .kicker {
  background: none; color: var(--text); padding: 0;
  font-size: calc(3 * var(--fs-h2)); line-height: 1;
}
.not-found h1 { margin: 0 0 20px; font-size: var(--fs-h1); line-height: 1.5; }
.not-found p { max-width: 520px; margin: 0 auto 14px; color: var(--text); }
.not-found .btn-row { justify-content: center; margin-top: 30px; }

/* Email confirmation */
.confirm-page .narrow { width: 100%; max-width: 600px; }
.confirm-card h1 { margin: 0 0 14px; font-size: var(--fs-h2); }
.confirm-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  margin-bottom: 16px; border-radius: 50%; background: var(--grey-bg); color: var(--red);
}
.confirm-icon svg { width: 24px; height: 24px; }
.confirm-back { font-size: var(--fs-small); color: var(--text); text-underline-offset: 3px; }
.confirm-back:hover { color: var(--red); }

.btn .ico { display: inline-block; width: 1.15em; height: 1.15em; margin-right: 8px; vertical-align: -0.2em; }

/* Light hover on clickable pictures: the image zooms in a touch and the card lifts */
.card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card-media { position: relative; overflow: hidden; }
.card-media::before {
  content: ""; position: absolute; inset: 0;
  background: inherit; transition: transform 0.45s ease;
}
.card:hover .card-media::before { transform: scale(1.02); }
.video-facade { transition: filter 0.25s ease; }
.video-facade:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) {
  .card, .card-media::before, .btn { transition: none; }
}

/* Articles list, one column */
/* all article cards the same height (the tallest one), so photos and split look identical */
.alist { display: grid; grid-auto-rows: 1fr; gap: 34px; max-width: 1000px; margin: 0 auto; }
.arow {
  display: grid; grid-template-columns: 46% 1fr; align-items: center;
  background: #fff; border-radius: 9px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.arow:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.arow-media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; align-self: stretch; background: var(--grey-bg); }
.arow-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.arow:hover .arow-media img { transform: scale(1.02); }
.arow-body { padding: 28px 32px; }
.arow-body h3 { margin: 0 0 8px; font-size: var(--fs-h3); line-height: 1.25; }
.arow-body h3 a { text-decoration: none; }
.arow-body h3 a:hover { color: var(--red); }
.arow-body p { margin: 0 0 16px; color: var(--text); }
.alist-b .arow:nth-child(even) { grid-template-columns: 1fr 44%; }
.alist-b .arow:nth-child(even) .arow-media { order: 2; }
.alist-c { gap: 14px; }
.crow {
  display: grid; grid-template-columns: 200px 1fr 40px; align-items: center; gap: 24px;
  background: #fff; border-radius: 9px; padding: 14px; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.crow:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.crow-media { display: block; aspect-ratio: 16 / 9; border-radius: 6px; background: #ddd center / cover no-repeat; }
.crow-body strong { display: block; font-size: 19px; margin-bottom: 4px; }
.crow-body span { color: var(--text); font-size: 15px; }
.crow-arrow { font-size: 24px; color: var(--red); transition: transform 0.25s ease; }
.crow:hover .crow-arrow { transform: translateX(4px); }
.variant-label { max-width: 1000px; margin: 0 auto 22px; font-size: 16px; }
@media (max-width: 900px) {
  .alist { grid-auto-rows: auto; }
  .arow, .alist-b .arow:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .alist-b .arow:nth-child(even) .arow-media { order: 0; }
  /* Let the image reserve the height of the mobile grid row. */
  .arow-media { aspect-ratio: auto; }
  .arow-media img { position: static; height: auto; aspect-ratio: 16 / 9; }
  .arow-body { padding: 20px 22px 24px; }
  .crow { grid-template-columns: 110px 1fr; gap: 14px; padding: 10px; }
  .crow-arrow { display: none; }
  .crow-body strong { font-size: 16px; }
  .crow-body span { display: none; }
}

/* Articles: light grey page, white blocks */
body.article { background: var(--grey-bg); }
body.article .contact { background: #fff; }
body.article .toc { background: transparent; padding: 10px 0 20px; }

/* Plugins: contents as an even grid */
.toc ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 790px; margin: 0 auto; }
.toc a { display: block; text-align: center; padding: 10px 12px; }

/* Plugins: every category in its own white card */
body.article .category {
  background: #fff; border-radius: 9px; padding: 34px 40px 26px; margin: 0 0 26px;
  box-shadow: var(--shadow);
}
body.article .category:first-of-type { margin-top: 10px; }
body.article main.narrow { padding-bottom: 50px; }

/* Plugins: name, pills and description run on one line, no dividers */
.plugin { padding: 10px 0; border-bottom: 0; }
.plugin-head { display: inline; margin-right: 4px; }
.plugin-head .pill { margin-left: 6px; vertical-align: 2px; }
.plugin-name { font-size: inherit; }
.plugin-head + p { display: inline; }
.plugin p.see, .plugin-head + p + p { margin-top: 6px; }
@media (max-width: 900px) {
  .toc ul { grid-template-columns: repeat(2, 1fr); }
  body.article .category { padding: 24px 20px 16px; }
}

/* Light grey page background everywhere except the home page */
body.soft { background: var(--grey-bg); }
body.soft .contact { background: #fff; }

/* Extend the red fill under the border to cover the antialiased inner edge. */
.btn.ghost:is(:hover, :focus-visible),
.prose a.btn.ghost:is(:hover, :focus-visible) {
  background-color: var(--red); background-clip: border-box;
  border-color: var(--red);
  color: #fff; box-shadow: var(--shadow-hover);
}

/* Prose pages: same gap under the page head as the other pages */
.page-head + .section.tight { padding-top: 36px; }
.prose > :first-child, .split > :first-child > :first-child { margin-top: 0; }

/* Equipment article: gear in white cards, controllers in a grid */
.ctrl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 10px; }
.prose .ctrl-grid figure { margin: 0; background: #fff; border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.prose .ctrl-grid img { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; object-fit: contain; width: 100%; margin: 0; }
.prose .ctrl-grid figcaption { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; padding: 0 12px 16px; text-align: center; }
@media (max-width: 900px) {
  .ctrl-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* Header: menu-only items are hidden on desktop */
.nav .nav-login, .nav .nav-mail { display: none; }

/* Mobile header: logo on the left, burger on the right, everything else inside the menu */
@media (max-width: 900px) {
  .header-actions .btn { display: none; }
  .nav-toggle-label {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 8px; font-size: 0; cursor: pointer;
  }
  .nav-toggle-label span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
  .nav-toggle:checked ~ .header-actions .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .header-actions .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .header-actions .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Match the average gap from the visible link labels to their dividers. */
  .nav .nav-login { display: block; align-self: center; margin: 18px 15px; color: #fff; }
  .nav .nav-login:hover { color: #fff; }
  .nav .nav-mail { display: flex; align-items: center; gap: 8px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; font-weight: 400; font-size: 15px; color: var(--text); }
}

/* Personal lessons */
.personal-hero .page-sub { margin: 18px auto 0; }
.personal-hero .meta { margin: 12px 0 20px; }
.personal-hero-photo {
  display: block; max-width: 453px; margin: 20px auto 0;
  border-radius: 9px; box-shadow: var(--shadow);
}
.personal-hero-photo img { width: 100%; height: auto; border-radius: inherit; }
.panel { background: #fff; border-radius: 9px; padding: 34px 40px 28px; margin: 0 0 26px; box-shadow: var(--shadow); }
.panel:last-child { margin-bottom: 0; }
.panel h2 { margin: 0 0 16px; font-size: var(--fs-h2); }
.panel p { margin: 0 0 14px; }
.panel .panel-note { margin: 18px 0 0; font-size: 15px; color: var(--text); }
.panel a:not(.btn) { color: var(--red); text-underline-offset: 2px; }
.ticks { list-style: none; margin: 0 0 4px; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.35em; width: 14px; height: 8px;
  border-left: 2.5px solid #2f9e5a; border-bottom: 2.5px solid #2f9e5a; transform: rotate(-45deg);
}
.ticks.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.steps { margin: 18px 0 8px; padding-left: 22px; }
.steps li { margin-bottom: 10px; padding-left: 4px; }

.split.reverse .container > img { order: 2; }
.split.reverse .container { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) {
  .panel { padding: 24px 20px 20px; }
  .ticks.two-col { grid-template-columns: 1fr; }
  .split.reverse .container { grid-template-columns: 1fr; }
  .split.reverse .container > img { order: 0; }
}
.panel-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.panel-gallery figure { margin: 0; }
.panel-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: var(--shadow); }
.panel-gallery figcaption { font-size: 14px; color: var(--text); margin-top: 10px; }
@media (max-width: 900px) { .panel-gallery { grid-template-columns: 1fr; } }
.panel { scroll-margin-top: 90px; }
.panel-gallery.single { grid-template-columns: 1fr; }

@media (max-width: 760px) {
  .hero-split .container { grid-template-columns: minmax(0, 1fr); }
  /* Keep the middle 80% of the original 1383 × 1080 photo at full width. */
  .hero-split .hero-photo img { aspect-ratio: 1383 / 864; object-fit: cover; object-position: center; }
}

/* One-to-one lessons, new draft (personal-new). Everything is scoped with pl- */
.pl-hero { background: var(--grey-bg); padding: 56px 0 64px; }
.pl-hero .container {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "photo text" "photo actions";
  column-gap: clamp(28px, 5vw, 70px); align-items: center;
}
.pl-hero-text { grid-area: text; align-self: end; }
.pl-hero-photo { grid-area: photo; display: block; max-width: 460px; border-radius: 9px; overflow: hidden; box-shadow: var(--shadow); }
.pl-hero-photo img { display: block; width: 100%; }
.pl-hero h1 { margin: 0 0 22px; font-size: var(--fs-h1); line-height: 1.5; }
.pl-hero-text > p { margin: 0; font-size: var(--fs-lead); font-weight: 300; }
.pl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; }
.pl-facts li { padding: 6px 14px; background: var(--grey-bg); border-radius: 30px; font-size: 15px; }
.pl-hero .btn-row { grid-area: actions; align-self: start; gap: 14px; margin-top: 30px; }
.pl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.pl-card { background: var(--grey-bg); border-radius: 9px; padding: 24px 24px 20px; box-shadow: var(--shadow); }
.pl-card h3 { margin: 0 0 8px; font-size: var(--fs-h4); }
.pl-card p { margin: 0; font-weight: 300; }
.pl-note { margin: 30px 0 0; text-align: center; }
.pl-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 34px 0 0; padding: 0; }
.pl-steps li { text-align: center; }
.pl-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 12px; }
.pl-steps h3, .pl-points h3 { margin: 0 0 6px; font-size: var(--fs-h4); }
.pl-steps p, .pl-points p { margin: 0; font-weight: 300; }
.pl-photo { max-width: 1000px; margin: 34px auto 0; }
.pl-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: 9px; box-shadow: var(--shadow); }
.pl-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1000px; margin: 34px auto 0; }
.pl-faq-wrap { max-width: 760px; }
.pl-faq { background: #fff; border-radius: 9px; box-shadow: var(--shadow); margin: 0 0 14px; padding: 0 24px; }
.pl-faq:first-of-type { margin-top: 30px; }
.pl-faq summary { cursor: pointer; padding: 17px 0; font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; line-height: 1.4; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 5px 0; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); transition: transform .2s, border-color .2s; }
.pl-faq summary:is(:hover, :focus-visible)::after { border-color: var(--red); }
.pl-faq[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
@media (prefers-reduced-motion: reduce) { .pl-faq summary::after { transition: none; } }
.pl-faq p { margin: -4px 0 0; padding-bottom: 20px; font-weight: 300; }
.pl-book { text-align: center; scroll-margin-top: 72px; }
.pl-book-card { max-width: 760px; margin: 0 auto; padding: 48px 48px 44px; background: #fff; border-radius: 9px; box-shadow: var(--shadow); }
.pl-book-card h2 { margin: 0 0 10px; font-size: var(--fs-h2); }
.pl-book-card p { margin: 0 0 22px; font-weight: 300; }
.pl-book-card .pl-price { margin: 0; font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
.pl-includes { display: inline-block; margin: 14px 0 28px; text-align: left; }
.pl-includes li { margin-bottom: 8px; font-weight: 300; }
.pl-book-card .pl-terms { margin: 20px 0 0; }
.pl-book-card .pl-terms + .pl-terms { margin-top: 8px; }
.pl-terms a { font-weight: 700; }
.pl-white { background: #fff; }
@media (max-width: 900px) {
  .pl-hero { padding: 32px 0 44px; }
  .pl-hero .container { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "photo" "actions"; row-gap: 24px; }
  .pl-hero h1 { text-align: center; }
  .pl-hero-photo { width: 80%; max-width: none; justify-self: center; }
  .pl-hero .btn-row { justify-content: center; margin-top: 0; }
  .pl-grid, .pl-steps, .pl-points { grid-template-columns: 1fr; }
  .pl-points { gap: 20px; }
}
.pl-book-pic { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 28px; }
@media (max-width: 900px) { .pl-book-card { padding: 32px 22px 30px; } }
.pl-book-card .pl-book-pic { margin: 4px auto 26px; }
.pl-small { margin: 24px 0 0; }
.pl-book-card p, .pl-small { text-wrap: balance; }
.prose .pt-grid a { display: block; color: inherit; text-decoration: none; }
.prose .pt-grid img { aspect-ratio: 606 / 336; object-fit: cover; }
.prose .pt-grid figcaption { padding-top: 12px; }
.prose .pt-grid a:is(:hover, :focus-visible) figcaption { color: var(--red); }
@media (max-width: 600px) { .ctrl-grid.pt-grid { grid-template-columns: 1fr; } }

/* Header hides on scroll down, comes back on scroll up (class set in js/site.js) */
.site-header { transition: transform 0.25s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.prose .import-guide .import-help { margin: 16px 0 0; }
.prose .import-guide > :last-child { margin-bottom: 0; }

/* Lead magnet page, new layout (magnet-v2): visitors come from the YouTube video, so the form comes first */
.magnet-v2 .magnet-copy h1 { margin-bottom: 14px; line-height: 1.15; }
.magnet-v2 .magnet-lead { margin: 0 0 18px; font-size: var(--fs-lead); color: var(--text); }
.magnet-v2 .magnet-list { margin: 0 0 6px; }
.magnet-v2 .magnet-list li { margin-bottom: 8px; font-size: var(--fs-lead); }
.magnet-v2 .fine-print { margin-top: 22px; }
.magnet-v2 .lm-msg:empty { display: none; }
/* first block on the page, so a smaller top gap: the form fits on the first screen */
.section.magnet-v2 { padding-top: 48px; }
@media (max-width: 900px) { .section.magnet-v2 { padding-top: 32px; } }
/* clicking the picture puts the cursor in the email field */
.magnet-v2 .magnet-media label { display: block; cursor: pointer; }
@media (max-width: 900px) {
  .magnet-v2 .magnet-media { order: 2; }
}
.magnet-v2 .lm-form .btn { justify-self: stretch; }
.magnet-v2 .lm-form input:focus { outline-color: var(--red); }
/* 4:3 crop of the video thumbnail, cut equally on the left and right; the file itself stays 16:9 for cards and sharing */
.magnet-v2 .magnet-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
/* magnet-v2, one column */
.magnet-one { max-width: 600px; margin: 0 auto; padding: 0 20px; text-align: center; }
.magnet-one .magnet-thumb { display: block; width: 100%; max-width: 360px; margin: 0 auto 30px; }
.magnet-one .magnet-list { display: inline-block; text-align: left; margin: 0 0 6px; }
.magnet-one .lm-form { text-align: left; }
@media (max-width: 900px) { .magnet-one .magnet-thumb { max-width: 280px; margin-bottom: 24px; } }
.magnet-v2 .lm-form { max-width: none; }
/* Booking card: a click on the picture briefly shows the button's hover state, as a hint (set in js/site.js) */
.btn.is-hinted { background: var(--red-2); box-shadow: var(--shadow-hover); }
@media (prefers-reduced-motion: no-preference) {
  .btn.is-hinted { transform: translateY(-1px); }
}

/* Signup page variant: everything in one white card, photo fills the right half edge to edge (trial on subscribe.html) */
.magnet-split .container { display: block; }
.split-card { display: grid; grid-template-columns: 2fr 1fr; background: #fff; border-radius: 9px; box-shadow: var(--shadow); overflow: hidden; }
.split-card .magnet-copy { padding: 40px 48px 44px; align-self: center; }
.split-card .magnet-media, .split-card .magnet-media label { height: 100%; }
.magnet-v2 .split-card .magnet-media img { height: 100%; min-height: 360px; aspect-ratio: auto; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; }
@media (max-width: 900px) {
  .split-card { grid-template-columns: 1fr; }
  .split-card .magnet-copy { padding: 32px 22px 30px; }
  .magnet-v2 .split-card .magnet-media img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}

/* Header Login for students as a white button (trial on index and templates): dark text in the mobile menu */
.nav .nav-login.ghost { color: var(--text); }
.nav .nav-login.ghost:is(:hover, :focus-visible) { color: #fff; }


/* Home hero buttons and the stats strip beneath them */
.hero-btns { margin-top: 0; gap: 14px; }
.stats-band.section { padding: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { display: block; font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
.stat-label { display: block; margin-top: 4px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Home signup block: split card like subscribe.html, right side is a 2x2 grid of template covers */
.home-signup .magnet-copy h2 { margin: 0 0 12px; font-size: var(--fs-h2); }
.lib-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: #fff; }
.magnet-v2 .split-card .lib-grid img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; }
@media (max-width: 900px) { .lib-grid { aspect-ratio: 16 / 9; } }
@media (max-width: 900px) { .home-signup .magnet-media { display: none; } }
