/* ==========================================================================
   MyRaceLab — shared stylesheet
   Mobile first: base rules are the phone layout.
     Tablet  : @media (min-width: 768px)
     Desktop : @media (min-width: 1025px)
     Header  : desktop nav from 1024px (the live menu switches at 1024)
   Page-specific rules go in their own file, site/assets/css/<page>.css.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --c-green: #08f7b2;
  --c-purple: #211261;
  --c-text: #000;
  --c-accent: #e5e5e5;
  --c-light: #f2f5f7;
  --c-white: #fff;
  --c-footer-link: #dadada;
  --c-drawer-text: #5a5a5a;

  --font-head: "termina", sans-serif;
  --font-body: "ibm-plex-sans", sans-serif;

  --container: 1140px;
  --gutter: 5px;   /* outer gap between the container and the viewport edge */
  --pad: 5px;      /* inner padding of content blocks (Elementor's container padding) */
  --radius: 10px;
  --header-h: 70px;
}

@media (min-width: 768px) {
  :root { --gutter: 10px; --pad: 10px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 85px; }
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* `clip` also stops sideways scroll without creating a scroll container */
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

img,
video,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

a { color: #c36; text-decoration: none; }
a:hover { color: #336; }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

.accent { color: var(--c-green); }

.text-center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -100px;
  z-index: 10050;
  padding: 10px 16px;
  background: var(--c-white);
  color: var(--c-purple);
  font-weight: 600;
  border-radius: 5px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  margin-inline: auto;
}

.section { position: relative; }

/* Section heading used by most content sections (IBM Plex Sans 500) */
.section-title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-text);
}
.section-title--tight { line-height: 1; }

@media (min-width: 768px) {
  /* 30px at 768 → 45px at 1024, like the live tablet range */
  .section-title { font-size: clamp(30px, 5.859vw - 15px, 45px); }
}

@media (min-width: 1025px) {
  .section-title { font-size: 45px; line-height: 49px; }
  .section-title--tight { line-height: 40px; }
}

/* ---------- 4. Slanted section divider ----------
   <svg class="tilt" viewBox="0 0 1000 100" preserveAspectRatio="none" aria-hidden="true">
     <path d="M0,6V0h1000v100L0,6z"/></svg>
   Put it first inside a `.section`. The fill is the colour of the section ABOVE;
   set it with a modifier (.tilt--purple / .tilt--white) or `color`. */
.tilt {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 85px;
  max-width: none;
  transform: scaleX(-1);
  fill: currentColor;
  color: var(--c-white);
  pointer-events: none;
}
.tilt--purple { color: var(--c-purple); }
.tilt--white { color: var(--c-white); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn--green { border: 0; background: var(--c-green); color: var(--c-purple); }
.btn--green:hover { background: #f9f9f9; color: var(--c-purple); }
.btn--outline { background: transparent; border-color: var(--c-white); color: var(--c-white); }
.btn--outline:hover { background: #f9f9f9; color: var(--c-purple); }
.btn--black {
  background: var(--c-text);
  color: var(--c-white);
  font-weight: 500;
}
.btn--black:hover { background: #222; color: var(--c-white); }

/* App Store / Google Play badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.store-badges img { width: auto; height: 55px; }
.store-badges--stack { flex-direction: column; align-items: center; }
.store-badges--start { justify-content: flex-start; }
/* stacked on phones, side by side from tablet */
.store-badges--stack-mobile { flex-direction: column; align-items: center; }

@media (min-width: 768px) {
  .store-badges--stack-mobile { flex-direction: row; }
}

/* ---------- 6. Site header ---------- */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--c-purple);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 15px;
}

.site-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.site-header__logo img { width: auto; height: 44px; }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-white);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile: the nav is an off-canvas drawer */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1010;
  width: 300px;
  max-width: 85vw;
  padding: 0 15px 30px;
  overflow-y: auto;
  background: var(--c-white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.nav-open .site-nav {
  transform: none;
  visibility: visible;
  transition: transform .3s ease;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1005;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.nav-open .nav-overlay { opacity: 1; visibility: visible; transition: opacity .3s; }

.site-nav__close {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: none;
  color: #686868;
  cursor: pointer;
}
.site-nav__close svg { width: 24px; height: 24px; }

.site-nav__list { list-style: none; }

.site-nav__link,
.site-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px dotted var(--c-drawer-text);
  background: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-transform: uppercase;
  text-align: left;
  color: var(--c-drawer-text);
  cursor: pointer;
}
.site-nav__link:hover,
.site-nav__toggle:hover { color: var(--c-drawer-text); }

.site-nav__toggle .chevron {
  width: 14px;
  height: 14px;
  transition: transform .2s;
}
.site-nav__toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.site-nav__dropdown {
  display: none;
  list-style: none;
  padding-left: 15px;
}
.site-nav__toggle[aria-expanded="true"] + .site-nav__dropdown { display: block; }

.site-nav__dropdown a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px dotted var(--c-drawer-text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-drawer-text);
}

.site-nav__btn { padding-top: 10px; }
li:not(.site-nav__btn) + .site-nav__btn { padding-top: 46px; }
.site-nav__btn .btn { width: 100%; }
.site-nav .btn--outline { border-color: var(--c-purple); color: var(--c-purple); }

@media (min-width: 1024px) {
  .site-header__inner { padding: 0 90px 0 80px; }

  .site-header__logo { position: static; flex: none; transform: none; }
  .site-header__logo img { height: 65px; }

  .menu-toggle,
  .site-nav__close,
  .nav-overlay { display: none; }

  .site-nav {
    position: static;
    width: auto;
    max-width: none;
    margin-left: auto;
    padding: 0 0 0 10px;   /* at 1024 the menu starts 10px after the logo, like live */
    overflow: visible;
    background: none;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .site-nav__list { display: flex; align-items: center; }
  .site-nav__list > li { position: relative; }
  .site-nav__list > li + li { margin-left: 20px; }
  .site-nav__list > li.site-nav__btn { padding: 0; }
  .site-nav__list > li:not(.site-nav__btn) + .site-nav__btn { margin-left: 30px; }
  .site-nav__list > .site-nav__btn + .site-nav__btn { margin-left: 10px; }
  .site-nav__btn .btn { width: auto; white-space: nowrap; }
  /* Live squeezes the sign-up button to 200px at 1024 (its label wraps); keep the
     label on one line by trimming the side padding until there is room for 30px. */
  .site-nav__btn .btn--green { padding-inline: clamp(17px, 50vw - 495px, 30px); }
  .site-nav .btn--outline { border-color: var(--c-white); color: var(--c-white); }
  .site-nav .btn--outline:hover { color: var(--c-purple); }

  .site-nav__link,
  .site-nav__toggle {
    position: relative;
    width: auto;
    padding: 1px 0;
    border: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 25px;
    text-transform: none;
    color: var(--c-white);
  }
  .site-nav__link:hover,
  .site-nav__toggle:hover { color: var(--c-white); }
  .site-nav__link::after,
  .site-nav__toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--c-green);
    transform: scaleX(0);
    transition: transform .2s;
  }
  .site-nav__link:hover::after,
  .site-nav__toggle:hover::after,
  .has-dropdown:hover > .site-nav__toggle::after,
  .site-nav__toggle[aria-expanded="true"]::after,
  /* current page: aria-current on its menu link (and on Resources for its two pages) */
  .site-nav__link[aria-current]::after,
  .site-nav__toggle[aria-current]::after { transform: scaleX(1); }

  .site-nav__toggle .chevron { width: 12px; height: 12px; margin-left: 10px; margin-right: 3px; }
  .site-nav__toggle[aria-expanded="true"] .chevron { transform: none; }

  /* Dropdown panel: hover on mouse devices, click/tap/keyboard via aria-expanded */
  .site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: -10px;
    display: block;
    min-width: 230px;
    margin-top: 28px;
    padding: 0 15px;
    border-top: 3px solid var(--c-green);
    border-radius: 0 0 10px 10px;
    background: var(--c-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  /* invisible bridge so the pointer can travel from the link to the panel */
  .site-nav__dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 31px;
  }
  .site-nav__toggle[aria-expanded="true"] + .site-nav__dropdown,
  .has-dropdown:hover > .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .site-nav__dropdown li + li a { border-top: 1px solid #e8e8e8; }
  .site-nav__dropdown a {
    padding: 12px 0;
    border: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 22.4px;
    text-transform: none;
    color: var(--c-text);
  }
  .site-nav__dropdown a:hover,
  .site-nav__dropdown a[aria-current] { color: var(--c-purple); }
}

/* ---------- 7. Hero (purple, pattern background) ---------- */
.hero {
  position: relative;
  padding: 31px 0 0;
  background: var(--c-purple) url("/assets/img/MRLIdentifierBW.webp") no-repeat 0 -99px / 48% auto;
  color: var(--c-white);
  text-align: center;
}

.hero__title {
  font-family: var(--font-head);
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-white);
}

.hero__text {
  padding: 20px 10px 0;
}
.hero__text p { font-size: 18px; line-height: 27px; }

.hero .store-badges { margin-top: 35px; }

.hero__image {
  position: relative;
  z-index: 9;
  width: 92%;
  max-width: 800px;
  margin: 25px auto 0;
}

@media (min-width: 768px) {
  /* tablet values scale between the live 768px and 1024px layouts */
  .hero { padding-top: clamp(31px, 25.78vw - 167px, 97px); background-position: -66px 478px; }
  .hero__title { font-size: clamp(50px, 3.906vw + 20px, 60px); line-height: 1.1; }
  .hero .store-badges { margin-top: clamp(35px, 3.906vw + 5px, 45px); }
  .hero__image { margin-top: clamp(25px, 13.67vw - 80px, 60px); }
}

@media (min-width: 1025px) {
  .hero { padding-top: 97px; background-position: -74px 271px; }
  .hero__title { font-size: 75px; line-height: 81px; }
  .hero__text { padding: 20px 0 0; }
  .hero .store-badges { margin-top: 45px; }
  .hero__image { width: 100%; margin-top: 60px; }
}

/* ---------- 8. Numbered feature list ----------
   <ol class="numbered-list">
     <li class="numbered-item">
       <img class="numbered-item__icon" src="/assets/img/circle-number-1-1.png" alt="" width="37" height="37">
       <div class="numbered-item__body">
         <h3 class="numbered-item__title">Title</h3>
         <p>Text</p>
       </div>
     </li>
   </ol> */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.numbered-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0 5px;
}

.numbered-item__icon {
  flex: none;
  width: 37px;
  height: 37px;
}

.numbered-item__body { width: 80%; }

.numbered-item__title {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: var(--c-text);
}
.numbered-item__title::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  margin-top: 17px;
  background: var(--c-text);
}

.numbered-item__body p {
  margin: 3px 0 14px;
  font-size: 18px;
  line-height: 27px;
}

@media (min-width: 768px) {
  .numbered-item { padding: 10px; }
  .numbered-item__icon { width: 34px; height: 34px; }
  .numbered-item__body { flex: 1; width: auto; }
  .numbered-item__title { font-size: 24px; }
}

/* ---------- 9. Two-column split (text + phone image) ---------- */
.split {
  display: flex;
  flex-direction: column;
}

.split__media img { margin-inline: auto; }

@media (min-width: 768px) {
  .split { flex-direction: row; align-items: center; }
  .split--40-60 > :first-child { width: 40%; }
  .split--40-60 > :last-child { width: 60%; }
  .split--60-40 > :first-child { width: 60%; }
  .split--60-40 > :last-child { width: 40%; }
}

/* ---------- 10. Image link cards (4-up) ---------- */
.image-cards {
  display: grid;
  gap: 10px;
  padding: 0 var(--pad);
}

.image-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 225px;
  padding: 0 0 30px 20px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  color: var(--c-white);
}
.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, #000 100%);
}
.image-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 4px solid var(--c-green);
  border-radius: inherit;
  opacity: 0;
}
.image-card:hover::after,
.image-card:focus-visible::after { opacity: 1; }
.image-card:hover { color: var(--c-white); }

.image-card__title {
  position: relative;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: var(--c-white);
}

.img-pos-right { object-position: right center; }

@media (min-width: 768px) {
  .image-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .image-card { min-height: clamp(265px, 42.97vw - 65px, 375px); }
}

/* ---------- 11. CTA banner with background video ---------- */
.cta-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 386px;
  padding: 33px var(--pad);
  overflow: hidden;
  border-radius: var(--radius);
  background: #000 var(--poster, none) center / cover no-repeat;
  text-align: center;
}

.cta-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}

.cta-banner__content { position: relative; z-index: 1; }

.cta-banner__title {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
  color: var(--c-green);
}

.cta-banner .store-badges { margin-top: 40px; }

@media (min-width: 768px) {
  /* 386px on phones, 630px from the live tablet layout up */
  .cta-banner { min-height: clamp(386px, 95.3125vw - 346px, 630px); }
  .cta-banner .store-badges { margin-top: clamp(40px, 3.906vw + 10px, 50px); padding-bottom: 10px; }
}

/* ---------- 12. FAQ accordion (<details>/<summary>) ----------
   <div class="faq">
     <details class="faq__item">
       <summary class="faq__q">Question<svg class="faq__icon" …/></summary>
       <div class="faq__a"><p>Answer</p></div>
     </details>
   </div> */
.faq__item { border-bottom: 1px solid var(--c-accent); }

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  color: var(--c-text);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__icon {
  flex: none;
  width: 16px;
  height: 18px;
  fill: var(--c-text);
  transition: transform .2s;
}
.faq__item[open] .faq__icon { transform: rotate(180deg); }

.faq__a {
  padding: 0 0 25px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}
.faq__a ul { margin: 0 0 14px; padding-left: 40px; }

@media (min-width: 768px) {
  /* 768 → 1024: interpolate to the live tablet/desktop rows (22px text, 25px padding) */
  .faq__q {
    padding: clamp(15px, 3.906vw - 15px, 25px) 0;
    font-size: clamp(17px, 1.953vw + 2px, 22px);
    line-height: clamp(20px, .781vw + 14px, 22px);
  }
}

@media (min-width: 1025px) {
  .faq__icon { width: 18px; height: 22px; }
}

/* ---------- 13. News grid ---------- */
.news-grid {
  display: grid;
  gap: 40px;
  padding: 0 var(--pad);
}

.news-card { display: block; color: var(--c-text); }
.news-card:hover { color: var(--c-text); }

.news-card__image {
  width: 100%;
  height: 150px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: left top;
}

.news-card__title {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 23px;
  color: var(--c-text);
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ---------- 14. Title band (purple → green) ----------
   <section class="section page-band">
     <div class="container"><h1 class="page-band__title">Title</h1></div>
   </section>
   --full : content runs edge to edge up to the 1140px container (no side gutter)
   --inset: the title is inset 15px from that edge */
.page-band {
  margin-top: -3px;   /* the live band starts 3px under the header */
  padding: 75px 0;
  background: linear-gradient(176deg, var(--c-purple) 54%, var(--c-green) 100%);
}
.page-band--full .container { width: 100%; }

.page-band__title {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  line-height: 30px;
  color: var(--c-white);
}
.page-band--inset .page-band__title { padding: 0 15px; }

/* ---------- 15. Contact panel (grey card with a mailto button) ----------
   Stands in for the live contact / track-request forms. Set its top margin per page.
   <section class="section contact-panel">
     <div class="container">
       <div class="contact-panel__card">
         <h2 class="contact-panel__title">Get in touch</h2>
         <p class="contact-panel__text">Text</p>
         <a class="btn btn--black contact-panel__btn" href="mailto:support@myracelab.com?subject=…">Send</a>
       </div>
     </div>
   </section> */
.contact-panel__card {
  padding: 50px 30px;
  border-radius: var(--radius);
  background: var(--c-light);
}

.contact-panel__title {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 500;
  line-height: 45px;
  color: var(--c-text);
}

.contact-panel__text { margin-top: 8px; }

.contact-panel__btn {
  width: 100%;
  min-height: 45px;
  margin-top: 34px;
  font-size: 15px;
  line-height: 15px;
}

@media (min-width: 768px) {
  .contact-panel { padding: 10px 0; }
}

/* ---------- 16. Dot list (bullet = dot in a ring) ----------
   <ul class="dot-list"><li>Item</li></ul> */
.dot-list { list-style: none; }

.dot-list li {
  position: relative;
  padding-left: 23px;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
}
.dot-list li + li { margin-top: 20px; }

.dot-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, transparent 30%, var(--c-text) 34%);
}

/* ---------- 17. Mailing-list card (shared footer) ---------- */
.mailing {
  position: relative;
  z-index: 100;
  margin-top: 75px;
}

.mailing-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px 30px;
  border-radius: var(--radius);
  background: var(--c-green) url("/assets/img/MRL-Speed-bg.webp") no-repeat -800px 0 / cover;
}

.mailing-card__title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-text);
}

.mailing-card__title { margin-bottom: 21px; }

.mailing-card__action { padding: 0 var(--pad); }

.mailing-card__action .btn {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}

.mailing-card__note {
  margin-top: 10px;
  font-size: 18px;
  line-height: 27px;
}

@media (min-width: 768px) {
  .mailing { padding: 10px 0; }
  .mailing-card {
    flex-direction: row;
    align-items: flex-start;   /* live: title and form start at the top of the card */
    min-height: 279px;
    background-position: 0 0;
  }
  /* live: 35% of the row (less its share of the gap); 310px minimum keeps the
     768px layout */
  .mailing-card__title {
    flex: 0 0 max(310px, 35% - 7px);
    margin-bottom: 0;
    font-size: 30px;
    line-height: 1.3;
  }
  .mailing-card__action { flex: 1; padding: var(--pad); }
}

@media (min-width: 1025px) {
  .mailing-card { background-position: 58px -157px; }
  .mailing-card__title { font-size: 40px; line-height: 45px; }
}

/* ---------- 18. Pre-footer band "Take your racing to the next level" ---------- */
.prefooter {
  position: relative;
  padding: 161px 0 50px;
  background: var(--c-purple) url("/assets/img/MRLIdentifierBW.webp") no-repeat 55px 2px / contain;
  color: var(--c-white);
}

.prefooter__inner {
  position: relative;
  display: grid;
  padding: 0 var(--pad);
}

.prefooter__image { display: none; }

.prefooter__title {
  font-family: var(--font-head);
  font-size: 45px;
  font-weight: 600;
  line-height: 45px;
  color: var(--c-white);
}

.prefooter__text { margin-top: 20px; }
.prefooter__text p { font-size: 18px; line-height: 27px; }

.prefooter .store-badges {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 20px;
  padding-left: 5px;
}

@media (min-width: 768px) {
  .prefooter {
    margin-top: -50px;
    padding: 200px 0 30px;
    background-position: -317px -340px;
    background-size: auto;
  }
  .prefooter__inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    padding-bottom: 0;
  }
  /* Tablet, as live: the image is 52% of the band, starts 10px down, and hangs
     over the footer below without making the band taller; the text column sits
     353px above the image's bottom edge (image height = .3068 × (100vw - 20px)). */
  .prefooter__image {
    position: relative;
    z-index: 1;
    display: block;
    grid-row: 1;
    grid-column: 1 / -1;
    align-self: start;
    width: calc(52% + 10.4px);
    margin: 10px 0 -1000px calc(-1 * var(--pad));
  }
  .prefooter__body {
    grid-row: 1;
    grid-column: 2;
    margin-top: calc(.3068 * (100vw - 20px) - 343px);
    padding: 0 10px;
  }
  .prefooter .store-badges { flex-direction: row; margin-top: 34.4px; padding-left: 10px; }
}

@media (min-width: 1025px) {
  .prefooter {
    margin-top: -60px;
    padding: 147px 0 87px;
    background-position: 800px -133px;
  }
  .prefooter__inner { padding: 0 var(--pad); }
  .prefooter__image { width: 60%; margin: 13px 0 0; }
  .prefooter__body { margin-top: 0; }
  .prefooter .store-badges { margin-top: 35px; }
}

/* ---------- 19. Site footer ---------- */
.site-footer {
  display: grid;
  gap: 40px;
  padding: 0 5% 25%;
  background: var(--c-purple);
  color: var(--c-white);
}

.site-footer__logo img { width: 242px; height: auto; }

.site-footer__heading {
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: .87px;
  color: var(--c-white);
}

.site-footer__links { list-style: none; }
.site-footer__links li { font-size: 12px; line-height: 22px; }
.site-footer__links li + li { margin-top: 2px; }
.site-footer__links a {
  font-size: 12px;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: .76px;
  color: var(--c-footer-link);
}
.site-footer__links a:hover { color: var(--c-white); }

.site-footer__email {
  display: block;
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  color: var(--c-white);
}
.site-footer__email:hover { color: var(--c-green); }

.site-footer__social { display: none; }

@media (min-width: 768px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
    column-gap: 10%;
    row-gap: 40px;
    padding: 0 100px 54px;
  }
  .site-footer__brand,
  .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__links li,
  .site-footer__links a { font-size: 16px; }
}

@media (min-width: 1025px) {
  .site-footer {
    grid-template-columns: 324fr 243fr 203fr 284fr;
    column-gap: 62px;
    max-width: 1440px;
    padding-bottom: 40px;
    margin-inline: auto;
  }
  .site-footer__brand,
  .site-footer__contact { grid-column: auto; }
  .site-footer__heading { font-size: 20px; }
  .site-footer__social {
    display: flex;
    gap: 34px;
    margin-top: 21px;
    padding-left: 29px;
    list-style: none;
  }
  .site-footer__social img { width: 28px; height: 28px; }
}

/* Footer band background must reach the viewport edges on wide screens */
.footer-band { background: var(--c-purple); }

/* ---------- 20. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  /* show the poster frame (set as --poster on the parent) instead of a moving video */
  .bg-video { display: none; }
}
