/* Foodease — single stylesheet, no framework.
   Values are taken from the original Elementor build and checked against it at widths from 320px to 2560px.
   Breakpoints match the original: tablet 768–1024px, phone up to 767px. */

/* Self-hosted copies of the exact font files the WordPress site served (Poppins: OFL, Roboto: Apache 2.0). */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/roboto-latin.woff2") format("woff2"); }

:root {
  --red: #d22229;
  --yellow: #fec526;
  --ink: #272b36;
  --text: #606060;
  --muted: #828282;
  --gray: #f7f7f7;
  --white: #fff;
  --header-h: 125px;
  --head: "Poppins", sans-serif;
  --body: "Roboto", sans-serif;
  --ui: "Poppins", sans-serif;
}
/* Header height (for anchor offsets) follows the logo, which scales with the viewport below 1025px. */
@media (max-width: 1024px) { :root { --header-h: calc(max(74px, (.3 * (100vw - 70px) - 16px) * .3229) + 32px); } }
@media (max-width: 767px) { :root { --header-h: calc((.588 * (100vw - 30px) - 9.8px) * .3229 + 27px); } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 16px/1.8 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font: 600 40px/48px var(--head); letter-spacing: -1px; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 30px); margin-inline: auto; }
@media (min-width: 768px) and (max-width: 1024px) { .container { width: calc(100% - 80px); } }
.center { text-align: center; }

.eyebrow { font: 600 14px/21px var(--head); letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.eyebrow--yellow { color: var(--yellow); }

.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; }
.skip-link:focus { left: 8px; }
.icon { flex: none; }

@media (max-width: 1024px) { h1, h2, h3 { font-size: 28px; line-height: 1.2; } }
@media (max-width: 767px) { h1, h2, h3 { font-size: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 27px; border: 0; border-radius: 0; cursor: pointer; text-align: center;
  font: 600 12px/18px var(--head); letter-spacing: 1px; text-transform: uppercase;
  transition: filter .3s;
}
.btn:hover { filter: brightness(.92); }
.btn--red { background: var(--red); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
@media (max-width: 767px) { .btn { display: block; width: 100%; } }

/* ---------- Header (fixed, overlays the top of each page like the original) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--white); }
/* Column proportions are the original's, so the logo scales and the nav wraps at the same widths. */
.header-inner {
  display: grid; grid-template-columns: 23.494% 66.461% 9.711%; align-items: center;
  width: min(1170px, 100%); margin-inline: auto; padding: 20px 0;
}
.brand { margin-left: 12px; }
.brand img { width: 100%; }
.nav-desktop { margin: 20px 10px; }
.nav-desktop ul { display: flex; flex-wrap: wrap; justify-content: center; }
.nav-desktop li { padding: 0 10px; }
.nav-desktop li:first-child { padding-left: 0; }
.nav-desktop li:last-child { padding-right: 0; }
.nav-desktop a { display: block; padding: 0 10px; font: 500 16px/29px var(--ui); color: var(--ink); transition: color .3s; }
.nav-desktop a:hover, .nav-desktop a[aria-current], .nav-desktop a.is-active { color: var(--red); }

.social { display: flex; gap: 12px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10%; color: var(--red); transition: transform .3s; }
.social a:hover { transform: scale(1.1); }
.social--header { justify-content: flex-end; margin-right: 4px; }

.menu-toggle {
  display: none; margin: 0 15px 0 auto; padding: 10px; border: 0; border-radius: 3px; line-height: 0;
  background: var(--red); color: var(--white); cursor: pointer; box-shadow: 0 0 10px rgba(0, 0, 0, .28);
}
.menu-toggle .icon { width: 21px; height: 24px; }

/* Side panel menu (mobile/tablet) */
.nav-mobile {
  position: fixed; inset: 0 0 0 auto; width: 70%; height: 100%; max-height: none; margin: 0; padding: 110px 20px 30px 50px;
  border: 0; background: var(--white); box-shadow: 1px 1px 5px rgba(0, 0, 0, .5); overflow-y: auto;
  opacity: 0; transition: opacity .4s cubic-bezier(.6, .17, .45, .88), overlay .4s allow-discrete, display .4s allow-discrete;
}
.nav-mobile:popover-open { opacity: 1; }
.nav-mobile::backdrop { background: rgba(0, 0, 0, .3); }
@starting-style { .nav-mobile:popover-open { opacity: 0; } }
.nav-close {
  position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 0; background: none; color: var(--red); cursor: pointer;
}
.nav-close .icon { width: 15px; height: 22px; }
.nav-mobile a { display: block; padding: 10px 0 10px 20px; font: 400 15px/22.5px var(--body); color: var(--ink); transition: color .3s; }
.nav-mobile a:hover, .nav-mobile a[aria-current] { color: var(--red); }
.nav-mobile-social { display: flex; gap: 5px; margin: 20px 0 0 14px; }
.nav-mobile-social a { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; }

@media (max-width: 1024px) {
  .nav-desktop, .social--header { display: none; }
  .menu-toggle { display: block; }
  .header-inner { display: flex; width: auto; padding: 15px 35px 17px; }
  .brand { flex: none; width: calc(30% - 16px); margin-left: 15px; }
  .menu-toggle { margin: 15px 15px 15px auto; }
  .nav-mobile { width: 60%; }
  .nav-mobile-social { margin-top: 40px; }
}
@media (max-width: 767px) {
  .header-inner { padding: 15px; }
  .brand { width: calc(58.8% - 9.8px); margin: -3px 0 0 12px; }
  .menu-toggle { margin: 0 15px 0 auto; }
  .nav-mobile { width: 70%; }
  .nav-mobile-social { margin-top: 20px; }
}

/* ---------- Hero ---------- */
.hero { padding: 9% 5% 3%; }
.hero-grid { display: grid; grid-template-columns: 437fr 64fr 637fr; grid-template-rows: minmax(70vh, auto); }
.hero-card {
  grid-area: 1 / 1 / 2 / 3; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 70px 50px 70px 70px; background: var(--red); border-radius: 70px 30px;
}
.hero-card h1 { color: var(--white); margin-bottom: 30px; }
.hero-card p { margin: 0 50px 40px 0; font: 400 18px/30px var(--body); letter-spacing: .5px; color: var(--gray); }
.btn--hero { align-self: flex-start; padding: 16px 50px; border: 1px solid var(--yellow); }
.hero-img { grid-area: 1 / 2 / 2 / 4; width: 100%; height: 100%; aspect-ratio: auto; contain: size; object-fit: cover; border-radius: 0 30px 30px 0; }

@media (min-width: 768px) and (max-width: 1024px) {
  .hero { padding: 110px 40px 0; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-card { grid-area: auto; padding: 80px 60px; }
  .hero-card h1 { margin-bottom: 20px; }
  .hero-card p { margin: 0 0 30px; }
  .hero-img { grid-area: auto; height: 450px; margin-top: -80px; border-radius: 0 0 50px 50px; contain: none; }
}
@media (max-width: 767px) {
  .hero { padding: 24% 15px 0; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-card { grid-area: auto; padding: 50px 25px; border-radius: 30px 30px 0 0; }
  .btn--hero { align-self: stretch; }
  .hero-card h1 { margin-bottom: 15px; }
  .hero-card p { margin: 0 0 30px; font-size: 16px; line-height: 24px; }
  .hero-img { grid-area: auto; height: 40vh; margin-top: -70px; border-radius: 30px; contain: none; }
}

/* ---------- School logo carousel (keyframes are generated in index.njk) ---------- */
/* Slides per view and gap follow the old Swiper breakpoints (4/50px, 3/10px from 767px, 1/10px below). */
.schools { padding: 65px 0; border-bottom: 1px solid #e4e4e4; }
.schools h2 { margin-bottom: 40px; }
.schools-viewport { --per: 4; --gap: 50px; width: min(1170px, 100%); margin-inline: auto; overflow: hidden; container-type: inline-size; }
.schools-track { --slide: calc((100cqw - (var(--per) - 1) * var(--gap)) / var(--per)); --step: calc(var(--slide) + var(--gap)); display: flex; gap: var(--gap); }
.schools-track li { flex: none; width: var(--slide); height: 100px; padding: 0 20px; }
.schools-track img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1024px) {
  .schools { padding: 50px 0; }
  .schools h2 { width: calc((100% - 50px) * .76); margin: 0 auto 35px; }
  .schools-viewport { width: calc(100% - 50px); }
}
@media (max-width: 1023.98px) {
  .schools-viewport { --per: 3; --gap: 10px; width: calc(100% - 90px); }
}
@media (max-width: 767px) {
  .schools h2 { width: auto; margin: 0 15px 30px; }
  .schools-viewport { width: calc(100% - 30px); }
}
@media (max-width: 766.98px) {
  .schools-viewport { --per: 1; }
}
@media (prefers-reduced-motion: reduce) { .schools-track { animation: none !important; } }

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 48.68% 12.9% 1fr; }
.about-body { grid-column: 3; }
/* The yellow card stretches to the row height (at least the video width minus 32px); the square video is
   centred in it, then shifted 20px right and 32px above that (width - 32px) box. */
.about-media { display: grid; align-items: center; background: var(--yellow); border-radius: 15px; }
.about-video { position: relative; left: 20px; margin-top: -32px; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 15px; }
.about-video a, .about-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.about-video img { width: 100%; height: 100%; object-fit: cover; }
.about-video .play {
  position: absolute; left: 50%; top: 50%; width: 100px; height: 100px; transform: translate(-50%, -50%);
  color: var(--white); opacity: .8; filter: drop-shadow(1px 0 6px rgba(0, 0, 0, .3)); transition: opacity .3s;
}
.about-video a:hover .play { opacity: 1; }
/* Scroll motion from the original (desktop only): the card lags the scroll. Its offset is (p - 50)px, where p is
   how far the row has travelled through the viewport (0-100%), held at -4px until p reaches 46%. */
@media (min-width: 1025px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .about-grid { view-timeline: --about-row block; view-timeline-inset: 0; } /* inset 0: ignore the header scroll-padding */
    .about-media { animation: about-drift linear both; animation-timeline: --about-row; animation-range: cover 0% cover 100%; }
    @keyframes about-drift { 0%, 46% { translate: 0 -4px; } 100% { translate: 0 50px; } }
  }
}
.about-body { padding: 40px 0 20px; }
.about-body h2 { margin-bottom: 30px; }
.about-body p { margin-bottom: 40px; font: 400 16px/28.8px var(--body); color: var(--muted); }
@media (max-width: 1024px) {
  .about { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { width: calc(100% - 20px); margin-top: 32px; }
  .about-body { grid-column: 1; padding: 30px 0 0; }
  .about-body h2 { padding-right: 10%; margin-bottom: 20px; }
  .about-body p { margin-bottom: 30px; line-height: 24px; }
}
@media (max-width: 767px) {
  .about { padding: 50px 0; }
  .about-body h2 { max-width: 80%; padding-right: 0; margin-bottom: 10px; }
}

/* ---------- Our system ---------- */
.system { padding: 90px 0 70px; background: var(--gray); text-align: center; }
.system .eyebrow { margin-bottom: 15px; }
.system h2 { max-width: 818px; margin: 0 auto 30px; }
.system p:not(.eyebrow) { max-width: 879px; margin-inline: auto; font: 400 16px/28.8px var(--body); color: var(--muted); }
.system .lead { margin-bottom: 10px; font: 500 16px/24px var(--body) !important; letter-spacing: .5px; color: var(--ink) !important; }
@media (min-width: 768px) and (max-width: 1024px) {
  .system { padding: 80px 0; }
  .system .container { width: calc(100% - 50px); }
  .system .eyebrow { margin-bottom: 10px; }
  .system h2 { max-width: none; }
  .system p:not(.eyebrow) { max-width: none; padding-inline: 8%; line-height: 24px; }
}
@media (max-width: 767px) {
  .system { padding: 50px 0; text-align: left; }
  .system .eyebrow { margin-bottom: 10px; }
  .system h2 { max-width: 80%; margin: 0 0 20px; }
  .system p:not(.eyebrow) { line-height: 24px; }
}

/* ---------- Feature sections (image bleeds off the page edge) ---------- */
.feature { padding: 65px 0; background: var(--gray); overflow: hidden; }
#audity { padding-bottom: 70px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.feature-body { grid-area: 1 / 1; padding-right: 130px; }
.feature-media { grid-area: 1 / 2; }
.feature-media img { width: 160.7%; max-width: none; height: 643px; object-fit: cover; margin-left: 30px; border-radius: 15px; }
.feature--reverse .feature-body { grid-area: 1 / 2; padding: 0 0 0 130px; }
.feature--reverse .feature-media { grid-area: 1 / 1; }
.feature--reverse .feature-media img { margin-left: calc(-60.7% - 30px); }
.feature-body .eyebrow { margin-bottom: 15px; }
.feature-body h2 { margin-bottom: 30px; }
.checklist { display: grid; gap: 10px; margin-bottom: 40px; }
.checklist li { display: flex; align-items: flex-start; padding-bottom: 10px; font: 500 15px/24px var(--ui); color: var(--ink); }
.checklist li span { padding-left: 5px; }
.checklist li:last-child { padding-bottom: 0; }
.checklist .icon { width: 16px; height: 16px; margin: 4px 14px 0 2px; color: var(--yellow); }
#customizable .checklist li { line-height: 22.5px; letter-spacing: .5px; }
@media (max-width: 1024px) {
  .feature, #audity { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-body, .feature--reverse .feature-body { grid-area: 2 / 1; padding: 30px 0 0; }
  .feature-media, .feature--reverse .feature-media { grid-area: 1 / 1; }
  .feature-media img, .feature--reverse .feature-media img { width: 100%; height: 430px; margin: 0; }
  .feature-body .eyebrow { padding-top: 3px; margin-bottom: 10px; }
  .feature-body h2 { padding-right: 10%; margin-bottom: 20px; }
  .checklist { margin-bottom: 30px; }
}
@media (max-width: 767px) {
  .feature, #audity { padding: 50px 0; }
  .feature-body, .feature--reverse .feature-body { padding: 0; }
  .feature-body h2 { padding-right: 0; }
  .feature-media img, .feature--reverse .feature-media img { height: 280px; margin: 0 0 33px; }
  .feature-body .eyebrow { padding-top: 0; margin-bottom: 6px; }
  .feature-body h2 { margin-bottom: 20px; }
  .checklist { margin-bottom: 30px; }
  .checklist { gap: 7px; }
  .checklist li { padding-bottom: 7.5px; }
}

/* ---------- Login band ---------- */
.login-band {
  padding: 154px 0; text-align: center;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("/assets/img/login-bg.webp") 50% 0 / cover;
}
.login-band .eyebrow { margin-bottom: 75px; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; }
.login-grid > div + div { border-left: 1px solid var(--white); }
.login-grid h2 { margin-bottom: 40px; color: var(--white); }
.btn--login { padding: 16px 35px; line-height: 20px; border: 1px solid; }
.btn--login.btn--red { border-color: var(--red); }
.btn--login.btn--yellow { border-color: var(--yellow); color: var(--white); }
@media (max-width: 1024px) {
  .login-band { padding: 50px 0; }
  .login-band .container { display: flex; flex-direction: column; justify-content: center; min-height: 250px; }
  .login-band .eyebrow { margin-bottom: 60px; }
  .login-grid h2 { margin-bottom: 29px; }
}
@media (max-width: 767px) {
  .login-band .container { min-height: 300px; }
  .login-band .eyebrow { margin-bottom: 40px; }
  .login-grid h2 { margin-bottom: 20px; }
  .btn--login { display: inline-block; width: auto; }
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 65px 0 105px; background: var(--gray); text-align: center; }
.testimonials .eyebrow, .contact .eyebrow { padding-top: 3px; margin-bottom: 15px; }
.testimonials h2 { max-width: 648px; margin: 0 auto 100px; }
.testimonial { max-width: 926px; margin: 0 auto; padding: 55px 50px; background: var(--white); border: 2px solid var(--yellow); border-radius: 15px; }
.testimonial img { width: 72px; margin: 0 auto 30px; }
.testimonial blockquote { margin: 0 0 25px; font: 400 24px/32px var(--body); color: var(--ink); }
.testimonial strong { display: block; font: 500 18px/27px var(--body); letter-spacing: .5px; color: var(--ink); }
.testimonial figcaption span { display: block; font: 400 15px/27px var(--body); color: var(--muted); }
@media (max-width: 1024px) {
  .testimonials { padding: 80px 0 120px; }
  .testimonials .eyebrow, .contact .eyebrow { margin-bottom: 10px; }
  .testimonials h2 { max-width: none; padding-inline: 12%; margin-bottom: 60px; }
  .testimonial { max-width: none; padding: 45px 40px; }
  .testimonial blockquote { font-size: 22px; line-height: 30px; }
  .testimonial figcaption span { line-height: 22.5px; }
}
@media (max-width: 767px) {
  .testimonials { padding: 50px 0 89px; }
  .testimonials .eyebrow, .contact .eyebrow { margin-bottom: 5px; }
  .testimonials h2 { padding-inline: 0; margin-bottom: 40px; }
  .testimonial { padding: 55px 50px; }
  .testimonial img { width: 65px; }
  .testimonial blockquote { font-size: 20px; line-height: 28px; }
}
@media (max-width: 480px) { .testimonial { padding: 35px 30px; } }

/* ---------- Contact ---------- */
.contact { padding: 130px 0 100px; background: var(--red); }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 61.23% 27.37%; column-gap: 8.77%; }
.contact-form { display: grid; gap: 20px; width: calc(113.23% - 92.9px); margin-top: 55px; } /* original column maths; equals the column at 1170px+ */
.contact-form input, .contact-form textarea {
  display: block; width: 100%; padding: 6px 16px; border: 1px solid var(--white); border-radius: 0;
  font: 400 15px/27px var(--body); color: var(--muted); background: var(--white);
}
.contact-form input { height: 47px; }
.contact-form textarea { height: 122px; resize: vertical; }
.contact-form > [id^="wf_tr_div"] { display: none; } /* Zoho analytics fields; hidden inputs still submit */
.contact-form ::placeholder { color: var(--muted); opacity: 1; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.btn--submit { width: 50%; padding: 16px 32px; font-size: 14px; line-height: 21px; }
.contact-info { padding-top: 135px; color: var(--white); }
.contact-info h3 { margin-bottom: 20px; font: 500 18px/27px var(--body); letter-spacing: .5px; color: var(--white); }
.contact-info p { margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--white); font: 400 16px/28.8px var(--body); }
.info-list { display: grid; gap: 5px; }
.info-list li { padding-bottom: 5px; font: 400 16px/21px var(--body); }
.info-list li:last-child { padding-bottom: 0; }
.info-list a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .contact { padding: 80px 0 30px; }
  .contact .container { width: calc(100% - 70px); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { width: auto; margin-top: 30px; }
  .contact-form textarea { height: 104px; }
  .btn--submit { width: 60%; }
  .contact-info { padding-top: 75px; }
  .contact-info p { line-height: 24px; }
  .info-list li { line-height: 24px; }
}
@media (max-width: 767px) {
  .contact { padding: 50px 0 55px; }
  .contact .container { width: calc(100% - 30px); }
  .btn--submit { width: 100%; }
  .contact-info { padding-top: 65px; }
  .info-list { gap: 7px; }
  .info-list li { padding-bottom: 7.5px; }
}

/* ---------- Other products ---------- */
.products {
  padding: 90px 0; text-align: center;
  background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)), url("/assets/img/products-bg.webp") center / auto;
}
.products h2 { margin-bottom: 100px; color: var(--white); }
/* original: two 50% columns of min(1170px, 100%), the first with 15px side padding */
.product-grid { display: grid; grid-template-columns: calc(50% - 22.5px) calc(50% + 7.5px); gap: 15px; margin-right: -15px; }
.product-card { display: flex; flex-direction: column; align-items: center; padding: 50px 40px; background: var(--white); border-radius: 6px; }
.product-card:last-child { grid-column: 1 / -1; justify-self: start; width: 47.4%; margin-left: 25.3%; }
.product-card:nth-child(2) { padding-left: 35px; }
.product-card img { width: 68%; }
.product-card:nth-child(2) img { width: 60%; }
.product-card:nth-child(3) img { width: min(100%, 294px); } /* Journease logo never exceeds its natural 294px */
.product-card p { align-self: stretch; margin-top: 30px; font: 400 16px/28.8px var(--body); color: var(--muted); }
.product-card:nth-child(2) p { margin-inline: 8px -7px; }
@media (max-width: 1024px) {
  .products { padding: 80px 0; }
  .products h2 { padding-inline: 12%; margin-bottom: 60px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 15px 30px; margin-right: 0; }
  .product-card, .product-card:nth-child(2) { padding: 40px 30px; }
  .product-card:last-child { justify-self: center; width: calc(50% - 15px); margin-left: 0; }
  .product-card img, .product-card:nth-child(2) img { width: 85%; }
  .product-card:nth-child(3) img { width: calc(min(100%, 294px) * .85); }
  .product-card p { margin-top: 20px; line-height: 24px; }
}
@media (max-width: 767px) {
  .products { padding: 50px 0 81px; }
  .products h2 { padding-inline: 0; margin-bottom: 40px; }
  .product-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-card, .product-card:nth-child(2) { padding: 30px 20px; }
  .product-card:last-child { width: auto; justify-self: stretch; }
  /* the image wrappers overhang the card padding by 15px on the right, so logos sit 7.5px right of centre */
  .product-card img, .product-card:nth-child(2) img { width: calc((100% + 15px) * .75); margin-left: 15px; }
  .product-card:nth-child(3) img { width: calc(min(100% + 15px, 294px) * .75); margin-left: 15px; }
  .product-card p { margin-top: 10px; }
}

/* ---------- Partners page ---------- */
.page-hero {
  display: grid; place-items: center; min-height: 590px; padding: 190px 15px 100px; text-align: center;
  background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)), var(--bg) 50% 0 / cover, #232323;
}
.page-hero h1 { font: 700 80px/96px var(--head); letter-spacing: -2px; text-transform: uppercase; color: var(--white); }
.partners { padding: 130px 0; background: var(--gray); }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.partner-grid li {
  display: grid; place-items: center; padding: 65px 30px; background: var(--white);
  border-radius: 5px; box-shadow: 0 7px 10px -2px rgba(0, 0, 0, .11);
}
/* Each row is as tall as its tallest logo plus that logo's own vertical padding, as on the original. */
.partner-grid img { width: min(100%, var(--max, 100%)); margin-block: var(--pad, 0px); }
@media (max-width: 1024px) {
  .page-hero { min-height: 480px; padding: 140px 15px 40px; }
  .page-hero h1 { font-size: 48px; line-height: 1.2; }
  .partners { padding: 80px 0; }
  .partner-grid li { min-height: 0; padding: 15px; }
  .partner-grid img { width: 100%; height: 105px; margin-block: 0; object-fit: contain; }
}
@media (max-width: 767px) {
  .page-hero { min-height: 450px; padding: 110px 15px 40px; }
  .page-hero h1 { font-size: 28px; }
  .partners { padding: 50px 0; }
  .partner-grid { grid-template-columns: 1fr; }
  .partner-grid li { min-height: 0; padding: 30px 15px; }
  .partner-grid img { width: var(--mw, 200px); max-width: 100%; height: 105px; object-fit: contain; }
}

/* ---------- Simple pages (404) ---------- */
.page-plain { padding: calc(var(--header-h) + 80px) 0 100px; text-align: center; }
.page-plain h1 { margin: 10px 0 20px; }
.page-plain p:not(.eyebrow) { margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { padding: 35px 0; border-top: 1px solid #353942; }
.footer-inner {
  display: grid; grid-template-columns: 22.221% 54.223% 22.221%; align-items: center;
  width: min(1170px, 100%); margin-inline: auto;
}
.footer-inner > * { padding-inline: 15px; }
.footer-logo { padding-left: 12px; }
.footer-logo img { width: 100%; }
.footer-center { text-align: center; }
.footer-center .social { justify-content: center; gap: 10px; }
.footer-center .social a { background: var(--white); }
.copyright { margin-top: 20px; font: 400 15px/27px var(--body); color: var(--ink); }
.brochure { display: flex; flex-direction: column; align-items: center; }
/* half-width box, image (never wider than its 200px) at that box's left edge */
.brochure img { width: min(50%, 200px); margin-right: max(0px, 50% - 200px); }
.brochure span { margin-top: 21px; font: 400 15px/18px var(--body); text-transform: capitalize; color: var(--ink); }
@media (max-width: 1024px) {
  .site-footer { padding: 50px 0; }
  .footer-inner { grid-template-columns: repeat(3, 33.33%); width: calc(100% - 50px); }
  .footer-logo img { max-width: 313px; margin-inline: auto; }
  .copyright { line-height: 22.5px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 30px 0; }
  .footer-inner { grid-template-columns: 1fr; width: 100%; }
  .brochure { order: -1; margin-bottom: 50px; }
  .footer-logo { padding-left: 15px; }
  .footer-logo img { max-width: 209px; }
  .footer-center .social { margin-block: 10px; }
  .copyright { margin-top: 0; }
}

/* ---------- Back to top (fades in once the page is scrolled, where supported) ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 2px; background: var(--red); color: var(--white);
}
.to-top .icon { width: 20px; height: 20px; }
@media (max-width: 480px) { .to-top { right: 10px; bottom: 10px; width: 26px; height: 26px; } .to-top .icon { width: 16px; height: 16px; } }
@supports (animation-timeline: scroll()) {
  .to-top { animation: to-top-show linear both; animation-timeline: scroll(); animation-range: 0 300px; }
  @keyframes to-top-show { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
}
