/* Shared chrome for the light module pages (Recipes, Requests, Inventory): nav with the Modules breadcrumb,
   hero kicker/badge/headline, section heads, buttons. Pages add their own sections on top.
   Pages opt in with <body class="m ...">. Vehicles keeps its own dark garage version (vehicles.css). */
.m-btn-bold { font-weight: 700; padding: 17px 26px; }
.m-btn-bold.btn-sm { padding: 11px 18px; font-size: 14px; }
.m-btn-line { padding: 17px 22px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.m-btn-line:hover { background: rgba(18, 17, 0, .04); }
.m-h60 { font: 800 60px/1 var(--font-display); letter-spacing: -2px; color: var(--ink); }
.m-head-l { display: flex; flex-direction: column; gap: 18px; width: 780px; max-width: 100%; }
.m-lede-420 { width: 420px; }
.m .kicker { font-weight: 600; letter-spacing: 1px; }
.m-stack { display: flex; flex-direction: column; gap: 56px; }
.m-num { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink); color: var(--sun); }
.m-num .lucide { width: 18px; height: 18px; }
.m-nav { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: inset 0 -1px 0 var(--line); }  /* inside stroke, like the design */
.m-nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }  /* the shared megamenu panel anchors here */
.m-nav-left { display: flex; align-items: center; gap: 20px; }
/* The breadcrumb doubles as the modules megamenu trigger (megamenu.js). */
.m-crumb {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); font: 400 13px/1.2 var(--font-body); color: var(--muted);
  transition: box-shadow .15s ease, background-color .15s ease;
}
.m-crumb > .lucide { width: 13px; height: 13px; transition: rotate .2s ease; }
.m-crumb:hover, .m-crumb[aria-expanded="true"] { box-shadow: inset 0 0 0 1px #C9C4B2; }
.m-crumb[aria-expanded="true"] { background: var(--card); }
.m-crumb[aria-expanded="true"] .m-crumb-sep { rotate: 90deg; }
.m-crumb-cur { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.m-crumb-cur .lucide { width: 14px; height: 14px; }
.m-crumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.m-links { display: flex; align-items: center; gap: 32px; }  /* center: the language pill is taller than the links */
.m-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.m-links a:hover { color: var(--ink); }
.m-kicker { display: flex; align-items: center; gap: 10px; font: 400 13px/1.2 var(--font-mono); color: var(--muted); }
.m-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--sun); color: var(--ink); font-weight: 600; font-size: 12px; }
.m-badge .lucide { width: 14px; height: 14px; }
.m h1 { font: 800 88px/.943 var(--font-display); letter-spacing: -3.5px; color: var(--ink); }
.m-sub { width: 540px; max-width: 100%; font-size: 19px; line-height: 1.53; color: var(--ink-2); }
.m-ctas { padding-top: 6px; }
.m-micro { font: 400 12px/1.2 var(--font-mono); color: var(--muted); }
.m .split-head { align-items: flex-end; }

@media (max-width: 1320px) {
  .m-links { gap: 24px; }
  .m h1 { font-size: clamp(60px, 6.1vw, 88px); letter-spacing: -2.5px; }
}

@media (max-width: 1080px) {
  .m-nav-in { gap: 8px; }
  .m-nav-left { margin-right: auto; }  /* CTA + menu button sit together on the right */
  .m-links { display: none; }
  .m .split-head { flex-direction: column; align-items: flex-start; }
  .m-lede-420 { width: 100%; max-width: 620px; }
}

@media (max-width: 640px) {
  .m-nav-in { padding-block: 14px; gap: 12px; }
  .m-crumb-mod { display: none; }
  .m-crumb-sep { order: 2; }  /* on phones: "Recipes ›" / "Requests ›", the chevron hinting at the menu */
  .m-nav .logo img { width: 128px; height: 26px; }
  .m-nav-in > .btn { display: none; }  /* logo + module menu need the room; the hero CTA is right below */
  .m-nav .logo { flex-shrink: 0; }
  .m-nav-left { gap: 10px; min-width: 0; }
  .m-kicker { flex-wrap: wrap; }
  .m h1 { font-size: 48px; letter-spacing: -1.6px; }
  .m-sub { font-size: 17px; }
  .m-ctas { flex-direction: column; align-items: stretch; }
  .m-h60 { font-size: 38px; letter-spacing: -1.2px; line-height: 1.04; }
  .m-h60 br { display: none; }
  .m-stack { gap: 36px; }
}

/* ---------- Final CTA: sun card with a photo fading in from the right (Recipes, Inventory) ---------- */
.m-btn-18 { padding: 18px 26px; }
.m-final-wrap { padding-block: 96px; }
.m-final { position: relative; height: 540px; border-radius: 36px; overflow: hidden; background: var(--sun); }
.m-final-photo { position: absolute; top: 0; right: 0; width: 752px; height: 100%; max-width: none; object-fit: cover; }
/* 300px fade from solid yellow into the photo, starting 20px before it (x540 on the 1312 card). */
.m-final::after { content: ""; position: absolute; top: 0; bottom: 0; right: 472px; width: 300px; background: linear-gradient(90deg, var(--sun), #FFDF0000); pointer-events: none; }
.m-final-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; width: 620px; max-width: 100%; padding: 72px 0 0 64px; box-sizing: content-box; }
.m-final h2 { font: 800 68px/.956 var(--font-display); letter-spacing: -2.4px; color: var(--ink); }
.m-final-content > p:not(.m-final-price) { width: 480px; max-width: 100%; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.m-final .ctas { padding-top: 6px; }
.m-btn-demo { padding: 18px 22px; }
.m-final-price { font: 400 12px/1.2 var(--font-mono); color: var(--ink-2); }

@media (max-width: 1320px) {
  .m-final-content { width: 520px; }
  .m-final h2 { font-size: 58px; }
}

@media (max-width: 1080px) {
  .m-final { height: auto; padding-bottom: 340px; }  /* clear of the photo's fade (bottom 220 + 100) */
  .m-final-photo { top: auto; bottom: 0; width: 100%; height: 320px; object-position: 50% 40%; }
  .m-final::after { top: auto; bottom: 220px; right: 0; left: 0; width: auto; height: 100px; background: linear-gradient(180deg, var(--sun), #FFDF0000); }
  .m-final-content { width: auto; padding: 56px 40px 0; }
}

@media (max-width: 640px) {
  .m-final-wrap { padding-block: 56px; }
  .m-final { border-radius: 28px; padding-bottom: 290px; }
  .m-final-photo { height: 260px; }
  .m-final::after { bottom: 180px; }
  .m-final-content { padding: 40px 22px 0; gap: 22px; }
  .m-final h2 { font-size: 42px; letter-spacing: -1.4px; }
  .m-final h2 br { display: none; }
  .m-final .btn { white-space: normal; text-align: center; }
  .m-final .ctas { flex-direction: column; align-items: stretch; }
}
