/**
 * New-theme static pages: About, Privacy / Terms of Use (contents list), Testimonials,
 * Feed My Meeting / Meal Subsidy (marketing sections). Layout only — page text lives in the templates.
 * Not loaded by the old theme (theme1).
 */

.mm-lead-page {
  --sp-green: #378906;
  --sp-deep: #123d0b;
  --sp-wash: #edf5e6;
  --sp-paper: #f7f8f5;
  --sp-ink: #1a1a1a;
  --sp-muted: #4a5058;
  --sp-line: #e2e6dc;
  --sp-leader: #b9cfb2;
}

/* ----- Hero call-to-action (optional, front/order/_order_flow_hero ctaHref) — uses the project button .mm-lead-page__cta-btn ----- */
.mm-public-hero__cta {
  margin-top: 1rem;
}

/* ----- About ----- */
.mm-about {
  display: grid;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .mm-about {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
}

/* Founding year set as an outlined numeral — decorative, the sentence below says it */
.mm-about__year {
  display: block;
  margin: 0 0 0.75rem;
  color: transparent;
  font-size: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px var(--sp-leader);
  user-select: none;
}

.mm-lead-page .mm-about__story p {
  margin: 0 0 1rem;
  color: var(--sp-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.mm-lead-page .mm-about__story p.mm-about__lead {
  color: var(--sp-ink);
  font-size: 1.2rem;
  line-height: 1.6;
}

.mm-about__story strong {
  color: var(--sp-deep);
}

/* Hairline grid: 1px gaps over the line colour draw the dividers */
.mm-about__values {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--sp-line);
  border-radius: 16px;
  background: var(--sp-line);
  overflow: hidden;
}

@media (min-width: 576px) {
  .mm-about__values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mm-about__value {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
  background: #fff;
}

.mm-about__value img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mm-lead-page .mm-about__value p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mm-about__value strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sp-deep);
  font-size: 1rem;
}

/* ----- Long documents: Privacy, Terms of Use ----- */
.mm-doc {
  display: grid;
  gap: 1.5rem;
}

.mm-doc__toc {
  padding: 0.85rem 1rem;
  border: 1px solid var(--sp-line);
  border-radius: 14px;
  background: #fff;
}

@media (min-width: 992px) {
  .mm-doc {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .mm-doc__toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 116px);
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
  }

  .mm-doc__toc-title {
    pointer-events: none;
  }

  .mm-doc__toc-title::after {
    display: none;
  }
}

.mm-doc__toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sp-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.mm-doc__toc-title::-webkit-details-marker {
  display: none;
}

.mm-doc__toc-title::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sp-green);
  border-bottom: 2px solid var(--sp-green);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 200ms ease;
}

.mm-doc__toc[open] .mm-doc__toc-title::after {
  transform: rotate(-135deg) translateY(-3px);
}

.mm-doc__toc-list {
  margin: 0.75rem 0 0;
}

.mm-lead-page .mm-doc__toc-list a {
  display: block;
  padding: 0.38rem 0 0.38rem 0.85rem;
  border-left: 2px solid var(--sp-line);
  color: var(--sp-muted);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
}

.mm-lead-page .mm-doc__toc-list a[aria-current] {
  border-left-color: var(--sp-green);
  color: var(--sp-deep);
  font-weight: 700;
}

.mm-doc__content .mm-lead-page__body {
  padding: 1.25rem 0;
  border-top: 1px solid var(--sp-line);
}

/* The section divider already separates sections — no extra space above each heading */
.mm-lead-page .mm-doc__content .mm-lead-page__body > h2:first-child {
  margin-top: 0;
}

.mm-doc__content .mm-lead-page__body:first-child {
  padding-top: 0;
  border-top: 0;
}

.mm-doc__content h2 {
  scroll-margin-top: 100px;
}

/* Same size and colour for paragraphs and list items in the document body */
.mm-lead-page .mm-doc__content p,
.mm-lead-page .mm-doc__content li {
  color: var(--sp-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.mm-lead-page .mm-doc__content li + li {
  margin-top: 0.35rem;
}

.mm-lead-page .mm-doc__content strong {
  color: var(--sp-ink);
}

/* ----- Testimonials ----- */
.mm-testimonials .mm-lead-page__quote {
  margin: 0 0 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 0;
  border-radius: 18px;
  background: var(--sp-paper);
  box-shadow: none;
}

.mm-testimonials .mm-lead-page__quote p {
  color: var(--sp-ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.mm-testimonials .mm-lead-page__quote p.mm-lead-page__quote-author {
  margin-top: 1rem !important;
  color: var(--sp-muted) !important;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500 !important;
}

.mm-testimonials__name {
  color: var(--sp-deep);
  font-weight: 800;
}

/* ----- Feed My Meeting / Meal Subsidy: marketing sections ----- */
.mm-lead-page .mm-mkt__intro p {
  color: var(--sp-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.mm-lead-page .mm-mkt__intro p strong {
  color: var(--sp-deep);
}

.mm-mkt .mm-lead-page__feature {
  margin: 1.5rem 0 0.5rem;
  border-radius: 16px;
}

/* Heading column on the left, content on the right (stacked on phones) */
.mm-mkt__section {
  display: grid;
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--sp-line);
}

@media (min-width: 992px) {
  .mm-mkt__section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: start;
  }

  .mm-mkt__head {
    position: sticky;
    top: 96px;
  }
}

.mm-lead-page .mm-mkt__head h2 {
  margin: 0;
  color: var(--sp-deep);
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
}

.mm-lead-page .mm-mkt__head p.mm-mkt__kicker {
  margin: 0.6rem 0 0;
  color: var(--sp-green);
  font-size: 1rem;
  line-height: 1.45;
}

.mm-lead-page .mm-mkt__body > p {
  margin: 0 0 1rem;
  color: var(--sp-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.mm-lead-page .mm-mkt__body > p:last-child {
  margin-bottom: 0;
}

.mm-lead-page .mm-mkt__body > p strong {
  color: var(--sp-ink);
}

.mm-lead-page .mm-mkt__body h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--sp-ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.mm-lead-page .mm-mkt__body > p.mm-mkt__takeaway {
  margin-top: 1.5rem;
  color: var(--sp-deep);
  font-size: 1.05rem;
}

/* Heading-only section: a chapter title for the sections that follow it */
.mm-mkt__chapter {
  padding: 3rem 0 0;
  border-top: 3px solid var(--sp-green);
}

.mm-lead-page .mm-mkt__chapter h2 {
  margin: 0;
  color: var(--sp-ink);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}

.mm-mkt__chapter + .mm-mkt__section {
  border-top: 0;
  padding-top: 1.5rem;
}

/* Feature lists ("Label: description") as tinted tiles */
.mm-mkt__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .mm-mkt__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mm-lead-page .mm-mkt__grid li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--sp-paper);
  color: var(--sp-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.mm-mkt__grid li strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sp-deep);
  font-size: 1rem;
}

/* Plain lists as checkmarks */
.mm-mkt__checks {
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .mm-mkt__checks {
    columns: 2;
    column-gap: 2rem;
  }
}

.mm-lead-page .mm-mkt__checks li {
  position: relative;
  margin: 0 0 0.6rem;
  padding-left: 1.75rem;
  color: var(--sp-ink);
  font-size: 0.98rem;
  line-height: 1.5;
  break-inside: avoid;
}

.mm-mkt__checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--sp-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23378906' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") no-repeat center / 11px;
}

/* "How it works" lists as numbered steps with a connecting line */
.mm-mkt__steps {
  counter-reset: mm-step;
}

.mm-lead-page .mm-mkt__steps li {
  position: relative;
  margin: 0;
  padding: 0 0 1.35rem 3rem;
  color: var(--sp-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  counter-increment: mm-step;
}

.mm-mkt__steps li::before {
  content: counter(mm-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sp-green);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.mm-mkt__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--sp-leader);
}

.mm-mkt__steps li strong {
  display: block;
  padding-top: 0.25rem;
  color: var(--sp-ink);
  font-size: 1rem;
}

/* "A → B → C" lines as a row of steps */
.mm-mkt__flows {
  margin: 0 0 1rem;
}

.mm-lead-page .mm-mkt__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.mm-mkt__flow-step {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--sp-wash);
  color: var(--sp-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.mm-mkt__flow-arrow {
  color: var(--sp-green);
  font-weight: 700;
}

/* Request form */
.mm-mkt .mm-lead-page__card {
  margin: 1rem 0 2rem;
  padding: 2rem;
  border: 0;
  border-radius: 20px;
  background: var(--sp-wash);
  box-shadow: none;
  scroll-margin-top: 96px;
}

@media (min-width: 768px) {
  .mm-mkt .mm-lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .mm-mkt .mm-lead-form > * {
    grid-column: 1 / -1;
  }

  .mm-mkt .mm-lead-form > .form-group:has(input:not([type="hidden"])) {
    grid-column: auto;
  }
}

.mm-mkt .mm-lead-form .form-control {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .mm-doc__toc-title::after {
    transition: none;
  }
}
