/* ==========================================================================
   Catalis — homepage replica
   Hand-written CSS. Type scale, spacing, radii and palette measured off the
   original build, re-implemented as a flat, predictable class system.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* palette */
  --white: #fff;
  --black: #1d1d1d;
  --ink: #131313;
  --grey: #4c4c4c;
  --smoke: #f5f5f5;             /* card fill on light sections */
  --line: rgba(0, 0, 0, .08);
  --blue: #0054f9;

  /* type */
  --serif: 'Libre Caslon Condensed', 'Times New Roman', serif;
  --sans: 'Roboto', system-ui, -apple-system, sans-serif;

  /* display sizes — fixed rem like the source, stepped down at the same
     breakpoints the template uses (see the responsive section below) */
  --h1: 4.5rem;   --h1-lh: 1.1;  --h1-ls: -.18rem;
  --h2: 4rem;     --h2-lh: 1.2;  --h2-ls: -.16rem;
  --h3: 3.5rem;   --h3-lh: 1;    --h3-ls: 0;
  --h4: 3rem;     --h4-lh: 1.2;  --h4-ls: -.06rem;

  --t5xl: 2.25rem; --t4xl: 2rem;    --t3xl: 1.75rem; --t2xl: 1.5rem;
  --t-xl: 1.25rem; --t-lg: 1.125rem; --t-base: 1rem; --t-sm: .875rem; --t-xs: .75rem;

  /* spacing */
  --s-2xs: .25rem; --s-xs: .5rem;  --s-s: .75rem;  --s-m: 1rem;
  --s-l: 1.25rem;  --s-xl: 1.5rem; --s-2xl: 2rem;  --s-3xl: 2.25rem;
  --s-4xl: 2.5rem; --s-5xl: 3.25rem; --s-6xl: 4rem;
  --sec-lg: 6rem; --sec-md: 5rem; --sec-sm: 3.25rem;

  /* radii */
  --r-card: 2rem; --r-card-sm: 1.5rem; --r-media: 1.5rem; --r-pill: 2rem;

  --gutter: var(--s-5xl);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; }
em { font-style: italic; }
:focus-visible { outline: .125rem solid #4d65ff; outline-offset: .125rem; }

/* ---------- primitives ---------- */
/* The original nests `.container` inside a `.padding-global` wrapper, so the
   max-width is the *content* box. Here the two live on one element, so widen
   the border-box by the gutter to keep the content box exactly on spec. */
.container    { width: 100%; max-width: calc(80rem + var(--gutter) * 2); margin-inline: auto; }
.container-md { max-width: calc(61rem + var(--gutter) * 2); }
.container-xl { max-width: calc(87rem + var(--gutter) * 2); }
.gutter       { padding-inline: var(--gutter); }
.center  { text-align: center; }
.muted   { color: var(--grey); }
.on-dark { color: var(--white); }

.spacer      { width: 100%; }
.spacer--xs  { padding-top: var(--s-xs); }
.spacer--s   { padding-top: var(--s-s); }
.spacer--m   { padding-top: var(--s-m); }
.spacer--l   { padding-top: var(--s-l); }
.spacer--xl  { padding-top: var(--s-xl); }
.spacer--2xl { padding-top: var(--s-xl); }
.spacer--3xl { padding-top: var(--s-3xl); }
.spacer--4xl { padding-top: var(--s-4xl); }
.spacer--resp { padding-top: var(--s-6xl); }   /* section head -> grid/image */

/* ---------- type styles ---------- */
.display {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: var(--h1-ls);
}
/* Section headings are bare <h2> in the source, so they take the h2 token
   (4rem). Only the About statement carries .heading-large, which is the h3
   token (3.5rem). */
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: var(--h2-ls);
  text-align: center;
}
.title--lead { font-size: var(--h3); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
/* source wraps each heading/description in a max-description utility */
.title--w33 { max-width: 33rem; }
.title--w38 { max-width: 38.5rem; }
.title--w45 { max-width: 45.25rem; }
.title--w49 { max-width: 49.75rem; }
.card-title      { font-family: var(--serif); font-weight: 400; font-size: var(--t4xl); line-height: 1.38; letter-spacing: -.02rem; }
.card-title--sm  { font-size: var(--t2xl); line-height: 1.33; letter-spacing: -.06rem; }
.card-title--xs  { font-size: var(--t-xl); line-height: 1.4;  letter-spacing: -.05rem; }
.body-sm { font-size: var(--t-sm); line-height: 1.5; }
.lead    { font-size: var(--t-base); line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; gap: var(--s-m);
  padding: .75rem 1.25rem;
  border: 0; border-radius: var(--r-pill);
  background: var(--black); color: var(--white);
  font-size: var(--t-base); line-height: 1.42; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: #000; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--smoke); }
.btn--smoke { background: var(--smoke); color: var(--ink); }
.btn--block { width: 100%; align-self: stretch; }

.btn-row { display: flex; align-items: center; justify-content: center; gap: var(--s-s); flex-wrap: wrap; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: var(--s-xs);
  padding: var(--s-2xs) var(--s-xs);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .2); color: var(--white);
  font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .075rem; text-transform: uppercase; white-space: nowrap;
  overflow: hidden;
}
.badge--smoke { background: var(--smoke); color: var(--ink); }
.badge--white { background: var(--white); color: var(--ink); }
.badge__icon     { width: 1.5rem; height: 1.5rem; flex: none; }
.badge__icon--sm { width: 1rem;   height: 1rem;   flex: none; }

/* ---------- card chrome ---------- */
.card {
  display: flex; flex-direction: column; height: 100%;
  gap: var(--s-4xl); padding: var(--s-2xl);
  border-radius: var(--r-card); background: var(--white);
}
.card--smoke { background: var(--smoke); border-radius: var(--r-card-sm); gap: var(--s-m); }
.card--core  { background: var(--smoke); gap: var(--s-3xl); padding: var(--s-xl); align-items: flex-start; }
.card--price { background: var(--white); gap: var(--s-xl); padding: var(--s-xl); }
.card--blog  { background: var(--smoke); gap: var(--s-m); padding: var(--s-s); justify-content: space-between; cursor: pointer; }
.card__icon { width: 3.5rem; height: 3.5rem; flex: none; }

/* aspect-ratio wrappers: padding-top sets the box, img fills it */
.media { position: relative; overflow: clip; width: 100%; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar { position: fixed; inset: 0 0 auto; z-index: 1000; background: transparent; }
.navbar__space { height: var(--s-s); background: var(--white); }
.navbar__inner {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: calc(80rem + var(--gutter) * 2); margin-inline: auto; padding-top: 0;
}
.navbar__bar {
  position: relative;
  display: flex; align-items: stretch; justify-content: flex-start;
  gap: var(--s-2xl); padding: var(--s-xs);
  background: var(--white);
  border-bottom-left-radius: var(--s-xl);
  border-bottom-right-radius: var(--s-xl);
}
/* concave fillets that flare the pill out into the top edge */
.navbar__fillet { position: absolute; top: 0; width: 24px; height: 24px; }
.navbar__fillet--left  { left: -24px; }
.navbar__fillet--right { right: -24px; }

.navbar__brand { display: flex; align-items: center; justify-content: center; padding-left: 0; }
.navbar__logo  { width: auto; height: 2.25rem; max-width: none; }

.nav { display: flex; align-items: center; justify-content: center; }
.nav__list { display: flex; align-items: center; justify-content: center; gap: var(--s-6xl); }
.nav__link {
  display: inline-block; padding: var(--s-m) var(--s-xs);
  font-size: var(--t-sm); line-height: 1.5; color: var(--grey); white-space: nowrap;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav__actions { display: flex; align-items: center; justify-content: flex-start; gap: var(--s-l); }

.burger {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: .25rem; width: 2.25rem; height: 2.25rem;
  padding: 0; border: 0; border-radius: .38rem; background: var(--smoke); cursor: pointer;
}
.burger span { display: block; width: 1rem; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.dropdown { position: relative; display: flex; align-items: center; }
.dropdown__toggle {
  display: inline-flex; align-items: center; gap: var(--s-xs);
  padding: var(--s-m) var(--s-xs);
  font-size: var(--t-sm); color: var(--grey); background: none; border: 0; cursor: pointer;
}
.dropdown__toggle:hover { color: var(--ink); }
.dropdown__chev { width: .875rem; height: .875rem; transition: transform .2s ease; }
.dropdown__menu {
  position: absolute; top: calc(100% + var(--s-xs)); left: 50%;
  transform: translate(-50%, .375rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2xs) var(--s-m);
  min-width: 17rem; padding: var(--s-m);
  background: var(--white); border: 1px solid var(--smoke); border-radius: .75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown:hover .dropdown__menu,
.dropdown__menu.is-open,
.dropdown:focus-within .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown:hover .dropdown__chev,
.dropdown:focus-within .dropdown__chev { transform: rotate(180deg); }
.dropdown__item { padding: var(--s-xs) var(--s-s); font-size: var(--t-sm); color: var(--grey); border-radius: .5rem; }
.dropdown__item:hover { background: var(--smoke); color: var(--ink); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 50rem; padding: var(--s-s); overflow: hidden; }
.hero__panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  gap: var(--s-4xl); height: 100%;
  padding: 7.625rem var(--s-m) 0;
  background: url(../img/hero-bg.avif) center / cover no-repeat;
  border-radius: var(--r-card);
}
.hero__body {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-m);
  text-align: center; color: var(--white);
}
.hero__title { max-width: 42rem; }
.hero__text  { max-width: 32rem; opacity: .92; }
.hero__cards {
  position: relative; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: var(--s-m);
  margin-bottom: -1.7%;
}
.hero__card {
  position: relative; overflow: clip;
  border-radius: var(--r-media);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.hero__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__card--a { width: 23.35%; padding-top: 23%;   position: absolute; top: 9%;  left: 21%;  transform: rotate(-9.2deg); }
.hero__card--b { width: 26%;   padding-top: 23.6%;  z-index: 1; }
.hero__card--c { width: 25.1%; padding-top: 18%;   position: absolute; top: 26%; right: 23%; transform: rotate(12.14deg); }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.section { position: relative; }
.section-pad--lg  { padding-top: var(--sec-lg); }
.section-pad--md  { padding-top: var(--sec-md); }
.section-pad--sm  { padding-top: var(--sec-sm); }
.section-pad--end-lg { padding-bottom: var(--sec-lg); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head__text        { max-width: 38.5rem; }
.section-head__text--wide  { max-width: 49.75rem; }
.section-head__text--mid   { max-width: 45.25rem; }
.section-head__text--narrow { max-width: 33rem; }

/* framed photo panels: benefits / pricing / join */
.frame { padding: var(--s-s); }
.frame__panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  background-size: cover; background-position: center bottom;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__lead { max-width: 61rem; margin-inline: auto; }
.about__image {
  position: relative; width: 39%; min-width: 20rem; margin-inline: auto;
  padding-top: 52%; border-radius: var(--r-card); overflow: clip;
}
.about__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__float {
  position: absolute; overflow: clip;
  border: .5px solid rgba(255, 255, 255, .4); border-radius: .5rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.about__float > img { width: 100%; height: 100%; }
.about__float--tr { width: 33%; padding-top: 24%; top: 3.4%;    right: 4.6%; }
.about__float--bl { width: 36%; padding-top: 27%; bottom: 3.4%; left: 4.6%; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-m);
  justify-content: space-around; place-items: center;
}
.stat { display: flex; align-items: center; gap: 1.125rem; max-width: 16.4375rem; }
.stat__num { font-family: var(--serif); font-weight: 400; font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); }
.stat__label { font-size: var(--t-sm); line-height: 1.5; }

/* ==========================================================================
   BENEFITS
   ========================================================================== */
.benefits .frame__panel { background-image: url(../img/benefits-bg.avif); padding-inline: var(--s-4xl); }
.benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-l); }
.benefit__body { display: flex; flex-direction: column; gap: var(--s-m); }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-l); align-items: stretch; }
.feature__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-m); }
.feature__media { position: relative; width: 100%; padding-top: 62%; overflow: clip; border-radius: var(--r-media); }
.feature__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-badge {
  align-self: flex-start;
  padding: var(--s-2xs) .75rem;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); color: var(--blue);
  font-size: var(--t-xs); line-height: 1.33; font-weight: 500;
  letter-spacing: .075rem; text-transform: uppercase;
}

/* ==========================================================================
   CORE FEATURES
   ========================================================================== */
.core__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-l); }
.core__body { display: flex; flex-direction: column; gap: var(--s-m); }
.core .btn { margin-top: auto; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing .frame__panel { padding-inline: var(--s-4xl); padding-bottom: var(--sec-lg); background-image: url(../img/pricing-bg.avif); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-l); align-items: stretch; }
.plan__head { display: flex; align-items: center; gap: var(--s-xl); }
.plan__badge {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; flex: none;
  border-radius: 50%; background: var(--smoke);
}
.plan__badge img { width: 1.25rem; height: 1.25rem; }
.plan__price { display: flex; align-items: center; gap: var(--s-xs); }
.plan__amount { font-family: var(--serif); font-size: var(--h4); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); }
.plan__per { font-size: var(--t-base); }
.plan__features { display: flex; flex-direction: column; gap: var(--s-m); }
.plan__features-title { font-size: var(--t-base); }
.plan__feature-list { display: flex; flex-direction: column; gap: var(--s-m); }
.plan__feature { display: flex; align-items: flex-start; gap: var(--s-m); font-size: var(--t-sm); line-height: 1.5; }
.plan__feature img { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1875rem; }
.plan .btn { margin-top: auto; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.marquee { position: relative; display: flex; overflow: clip; }
.marquee__track { display: flex; flex: none; animation: slide 45s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: var(--s-l); padding-right: var(--s-l); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tcard {
  position: relative; flex: none; width: 19.5rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-xl);
  padding: 4rem var(--s-xl) var(--s-xl);
  border-radius: var(--r-card); background: var(--smoke);
}
.tcard__avatar {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  width: 4.5rem; height: 4.5rem;
  border: 4px solid var(--white); border-radius: 90rem; object-fit: cover;
}
.tcard__quote { width: 2.5rem; height: 2.5rem; }
.tcard__text { font-size: var(--t-sm); line-height: 1.5; color: var(--grey); }
.tcard__meta { display: flex; flex-direction: column; gap: var(--s-2xs); align-self: stretch; margin-top: auto; }
.tcard__name { font-size: var(--t-sm); font-weight: 500; color: var(--ink); }
.tcard__role { font-size: var(--t-sm); color: var(--grey); }
.tcard__sign { align-self: flex-end; font-family: var(--serif); font-style: italic; font-size: var(--s-xl); }
.marquee__fade { position: absolute; top: 50%; transform: translateY(-50%); width: 10rem; height: 120%; pointer-events: none; z-index: 2; }
.marquee__fade--l { left: 0;  background: linear-gradient(90deg,  var(--white), rgba(255, 255, 255, 0)); }
.marquee__fade--r { right: 0; background: linear-gradient(-90deg, var(--white), rgba(255, 255, 255, 0)); }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-l); align-items: stretch; }
.post__media { border-radius: var(--r-media); padding-top: 86%; }
.post__body { display: flex; flex-direction: column; gap: var(--s-m); padding: 0 var(--s-s); }
.post__text { display: flex; flex-direction: column; }
.post__title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.post__excerpt { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }
.post .btn { margin-top: auto; }

/* ==========================================================================
   JOIN
   ========================================================================== */
.join .frame__panel { padding: 14.3% var(--s-4xl); background-image: url(../img/join-bg.avif); }
.join__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--white); }
.join__float {
  position: absolute; overflow: clip;
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.join__float > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join__float--l { width: 18%;   padding-top: 13%; bottom: 8.5%; left: 6%;   border-radius: .875rem; }
.join__float--r { width: 17.1%; padding-top: 10%; top: 8%;      right: 3.7%; border-radius: 1rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { overflow: hidden; }
.footer__layout { display: flex; gap: var(--s-6xl); align-items: flex-start; }
.footer__brandcol {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  gap: var(--s-6xl); min-width: 28.5rem;
}
.footer__logo img { width: 5.25rem; height: 2rem; }
.footer__news { display: flex; flex-direction: column; gap: var(--s-m); width: 100%; }
.footer__cols { display: flex; gap: var(--s-m); width: 100%; }
.footer__col  { display: flex; flex-direction: column; gap: var(--s-m); width: 100%; }
.footer__col-title { font-size: var(--t-base); font-weight: 500; }
.footer__links { display: flex; flex-direction: column; gap: var(--s-m); }
.footer__link { font-size: var(--t-sm); color: var(--grey); transition: color .2s ease; }
.footer__link:hover { color: var(--ink); }
.newsletter {
  display: flex; align-items: center; gap: var(--s-xs);
  min-width: 22.0625rem; padding: var(--s-xs) var(--s-xs) var(--s-xs) 1.25rem;
  background: var(--smoke); border-radius: var(--r-card-sm);
}
.newsletter__field { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: var(--t-sm); outline: none; }
.newsletter__field::placeholder { color: var(--grey); }
.newsletter__status { font-size: var(--t-sm); color: var(--grey); min-height: 1.25rem; margin: 0; }
.newsletter__status[data-state="ok"]  { color: #147d43; }
.newsletter__status[data-state="err"] { color: #b3261e; }
.footer__visual { width: 100%; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-reveal .reveal { opacity: 1; transform: none; transition: none; }

/* ==========================================================================
   RESPONSIVE — 991 / 767 / 479
   ========================================================================== */
@media (max-width: 991px) {
  :root { --gutter: var(--s-2xl); --h1: 3.75rem; --h2: 3rem; --h3: 3.5rem; }
  .navbar__inner { align-items: stretch; max-width: 30rem; }
  .navbar__bar { justify-content: space-between; align-items: center; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: calc(100% + var(--s-xs)); right: var(--s-xs); z-index: 20;
    flex-direction: column; align-items: stretch; gap: var(--s-xs); width: 18rem; padding: var(--s-m);
    background: var(--white); border: 1px solid var(--smoke); border-radius: .75rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  }
  .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: var(--s-2xs); }
  .nav.is-open .nav__link { padding: var(--s-s); }
  .nav.is-open .dropdown__menu { position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 0 var(--s-m); min-width: 0; display: none; }
  .nav.is-open .dropdown__menu.is-open { display: grid; }
  .burger { display: inline-flex; }
  .spacer--resp { padding-top: 3rem; }

  .benefit { min-width: 17.4375rem; }
  .core { gap: var(--s-2xl); padding-inline: var(--s-m); min-width: 19.5rem; }
  .about__image { width: 62%; min-width: 0; }
  .stat__num { font-size: var(--s-3xl); }
  .tcard { padding-top: 2rem; gap: var(--s-m); }

  /* horizontal card rails instead of a grid */
  .benefits__grid, .core__grid, .blog__grid, .pricing__grid {
    display: flex; gap: var(--s-m); overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .benefits__grid::-webkit-scrollbar, .core__grid::-webkit-scrollbar,
  .blog__grid::-webkit-scrollbar, .pricing__grid::-webkit-scrollbar { display: none; }
  .benefits__grid, .core__grid, .blog__grid { margin-inline: calc(var(--s-2xl) * -1); padding-inline: var(--s-2xl); }
  .benefits__grid > *, .core__grid > *, .blog__grid > * { flex: none; width: 17.4375rem; scroll-snap-align: start; }
  .pricing__grid > * { flex: none; width: 70%; min-width: 17.5rem; }
}

@media (max-width: 767px) {
  :root { --gutter: var(--s-m); --sec-lg: 4rem; --sec-md: 3.5rem;
          --h1: 2.75rem; --h2: 2.25rem; --h3: 2rem; }
  .hero { min-height: 45rem; }
  .hero__panel { border-radius: var(--r-card-sm); padding-top: 9.5rem; }
  .navbar__inner { width: 75%; }
  .navbar__fillet { display: none; }
  .features__grid { grid-template-columns: 1fr; gap: var(--s-m); }
  .benefit { border-radius: var(--r-card-sm); padding: var(--s-m); gap: var(--s-2xl); width: 15.5rem; }
  .card__icon { width: 2.5rem; height: 2.5rem; }
  .feature { border-radius: var(--s-s); padding: var(--s-m); align-items: flex-start; }
  .core { gap: var(--s-m); min-width: 19.5rem; }
  .plan { gap: var(--s-m); }
  .tcard { padding: 2.5rem 1.125rem 1.125rem; width: 17rem; }
  .post { border-radius: var(--r-card-sm); gap: var(--s-m); width: 15.5rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s-2xl) var(--s-m); }
  .about__image { width: 78%; }
  .footer__layout { flex-direction: column; gap: var(--s-4xl); }
  .footer__brandcol { min-width: 0; width: 100%; gap: var(--s-4xl); }
  .footer__cols { flex-wrap: wrap; gap: var(--s-4xl) var(--s-m); }
  .footer__col { width: calc(50% - var(--s-m)); }
  .benefits .frame__panel, .pricing .frame__panel { padding-inline: var(--s-m); }
  .benefits__grid, .core__grid, .blog__grid { margin-inline: calc(var(--s-m) * -1); padding-inline: var(--s-m); }
  .join .frame__panel { padding: 18% var(--s-m); }
  .join__float--l { width: 34%; padding-top: 25%; }
  .join__float--r { width: 32%; padding-top: 19%; }
  .spacer--resp { padding-top: 2rem; }
}

@media (max-width: 479px) {
  :root { --h1: 2.5rem; --h2: 2rem; }
  .hero__card--a, .hero__card--c { display: none; }
  .hero__card--b { width: 78%; padding-top: 70%; }
  .stats { grid-template-columns: 1fr; }
  .stat { max-width: none; }
  .footer__col { width: 100%; }
  .newsletter { min-width: 0; width: 100%; }
  .btn-row > .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
