/* ── Module pages (dfirst.ai / v3 landing) ──────────────────────────────────
   One page per module, in the order of the app's sidebar (owner + Greg
   2026-10-14: "modules exactly like the names on the left — what it reads,
   an example, a film; as simple as it gets"). The landing's own tokens:
   Inter, ink #1d1d1f, muted #68686e, hairline #e3e3e8, paper #f5f5f7, lime.
   Generated pages: scripts/landing/build-module-pages.mjs. */
:root {
  --ink: #1d1d1f;
  --muted: #68686e;
  --line: #e3e3e8;
  --paper: #f5f5f7;
  --lime: #e2ff52;
  --wrap: 1180px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
a:focus-visible {
  outline: 3px solid #5289f6;
  outline-offset: 4px;
}
.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* Header: logo, the module list, the two calls to action. */
.mp-header {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}
.mp-header .logo img {
  width: 112px;
}
.mp-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
}
.mp-nav a {
  color: var(--muted);
}
.mp-nav a:hover,
.mp-nav a[aria-current="page"] {
  color: var(--ink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 7px;
  background: var(--lime);
  color: #141510;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #d6f342;
  transform: translateY(-2px);
}
.button.small {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 12px;
}
.text-link {
  font-size: 14px;
  font-weight: 500;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Hero: the name, the promise, two sentences, the calls to action. */
.mp-hero {
  padding: 56px 0 40px;
}
.mp-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}
.mp-back:hover {
  color: var(--ink);
}
.mp-hero h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mp-hero .mp-promise {
  max-width: 900px;
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.mp-hero .mp-lede {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.mp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

/* The picture or film of the module at work. */
.mp-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}
.mp-media img,
.mp-media video {
  width: 100%;
  height: auto;
}
.mp-media.is-film {
  background: #0b0b0c;
}
.mp-media.is-film video {
  width: min(720px, 100%);
  margin: 0 auto;
}
.mp-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* What it does: three short columns. */
.mp-section {
  padding: 72px 0 0;
}
.mp-section > h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.mp-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}
.mp-three article {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.mp-three h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mp-three p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* The example: what you give, what DFIRST does, what you get. */
.mp-example {
  margin-top: 32px;
  padding: 32px;
  border-radius: 22px;
  background: var(--paper);
}
.mp-example ol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.mp-example li {
  counter-increment: step;
}
.mp-example li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.mp-example strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.mp-example span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Works with: the other modules, as cards. */
.mp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}
.mp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.mp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}
.mp-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}
.mp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.mp-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 20px;
}
.mp-card-copy b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mp-card-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* The closing call to action and the footer. */
.mp-cta {
  margin: 88px 0 0;
  padding: 56px 0;
  background: #151515;
  color: #fff;
}
.mp-cta h2 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.mp-cta p {
  max-width: 560px;
  margin-top: 16px;
  color: #b9b9be;
  font-size: 16px;
  line-height: 1.6;
}
.mp-cta .mp-actions .text-link {
  color: #fff;
}
.mp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 13px;
}
.mp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.mp-footer a:hover {
  color: var(--ink);
}
.mp-footer .mp-copy {
  margin-left: auto;
}

@media (min-width: 760px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 112px));
  }
  .mp-hero {
    padding: 72px 0 48px;
  }
  .mp-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
  .mp-example {
    padding: 40px;
  }
  .mp-example ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
  .mp-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Two pictures side by side share one height: the first sets it, the
     second fills it from its top-left corner. */
  .mp-gallery.is-two {
    grid-template-columns: 1.4fr 1fr;
  }
  .mp-gallery.is-two .mp-media + .mp-media {
    position: relative;
  }
  .mp-gallery.is-two .mp-media + .mp-media img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: top left;
  }
}
@media (min-width: 1100px) {
  .mp-cards.is-index {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 759px) {
  .mp-nav {
    display: none;
  }
  .mp-header .button {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .mp-card {
    transition: none;
  }
  .button:hover,
  .mp-card:hover {
    transform: none;
  }
}
