/* AFMP film: extend the existing Manrope / forest-green site, without changing shared pages. */
.product-hero-film .hero-grid { gap: 48px; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); }
.product-hero-film .hero-copy h1 { font-size: clamp(44px, 4vw, 58px); }
.product-hero-film .hero-title-line { white-space: normal; }
.film-feature { min-width: 0; }
.film-card { background: var(--green-950); border: 1px solid #245441; border-radius: 16px; box-shadow: 0 30px 72px -18px rgba(0,32,16,.3), 0 0 0 7px rgba(255,255,255,.65); overflow: hidden; transition: transform 400ms var(--ease), box-shadow 400ms var(--ease); }
@media (hover: hover) { .film-card:hover { transform: translateY(-4px); box-shadow: 0 36px 84px -16px rgba(0,32,16,.35), 0 0 0 7px rgba(255,255,255,.8); } }
.film-card-top { align-items: center; color: #e0eee5; display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; letter-spacing: .07em; min-height: 48px; padding: 0 20px; text-transform: uppercase; }
.film-card-top > span:first-child { align-items: center; display: flex; gap: 10px; }
.film-card-top i { background: #8fd3b5; border-radius: 50%; box-shadow: 0 0 0 4px rgba(143,211,181,.1); height: 5px; width: 5px; }
.film-card-top b { color: #658774; font-weight: 400; }
.film-runtime { color: #9fbdac; font-variant-numeric: tabular-nums; }
.film-preview-stage { aspect-ratio: 16/9; background: #f4f7f4; position: relative; }
.film-preview { display: block; height: 100%; object-fit: contain; width: 100%; }
.film-launch { align-items: center; bottom: 16px; color: var(--green-950); display: flex; gap: 12px; left: 16px; padding: 11px 14px 11px 10px; position: absolute; right: 16px; z-index: 2; }
.film-launch::before { backdrop-filter: blur(20px); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.98); border-radius: 10px; box-shadow: 0 6px 32px rgba(0,32,16,.16); content: ""; inset: 0; position: absolute; z-index: -1; }
.film-launch:hover { text-decoration: none; }
.film-play-icon { align-items: center; background: var(--green-800); border: 1px solid #23513d; border-radius: 50%; color: #fff; display: flex; flex-shrink: 0; height: 46px; justify-content: center; transition: background 180ms, transform 240ms var(--ease); width: 46px; }
.film-launch:hover .film-play-icon { background: var(--green-600); transform: scale(1.06); }
.film-launch-copy { display: grid; gap: 2px; line-height: 1.4; }
.film-launch-copy strong { font-size: 16px; letter-spacing: -.02em; }
.film-launch-copy small { color: var(--muted); font-size: 12px; }
.film-launch-arrow { color: var(--green-700); font-size: 25px; margin-left: auto; padding-left: 6px; }
.film-card-bottom { align-items: center; color: #bacfc1; display: flex; font-size: 12px; gap: 10px; justify-content: space-between; min-height: 50px; padding: 5px 12px 5px 20px; }
.film-preview-toggle { align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #e7f5ed; cursor: pointer; display: inline-flex; flex: 0 0 auto; height: 36px; justify-content: center; width: 36px; }
.film-preview-toggle:hover { background: rgba(255,255,255,.14); }
.film-preview-toggle[hidden], .film-preview-toggle svg[hidden], .film-error[hidden] { display: none; }
.film-feature-note { color: var(--muted); font-size: 12px; font-weight: 600; margin: 20px 0 0; text-align: center; }
.problem-with-model { align-items: center; display: grid; gap: 70px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.problem-with-model .section-heading { margin-bottom: 30px; }
.problem-with-model .section-heading h2 { font-size: clamp(34px, 3.1vw, 45px); }
.problem-with-model .section-heading p:not(.eyebrow) { font-size: 16px; line-height: 1.75; }
.problem-with-model .section-heading .eyebrow { font-size: 11px; margin-bottom: 12px; }
.problem-with-model .problem-grid { background: transparent; border: 0; display: grid; gap: 0; grid-template-columns: 1fr; }
.problem-with-model .problem-item { border-top: 1px solid var(--line); display: grid; column-gap: 16px; grid-template-columns: 24px 1fr; min-height: 0; padding: 18px 0; }
.problem-with-model .problem-item > span { grid-row: span 2; padding-top: 2px; }
.problem-with-model .problem-item h3 { font-size: 17px; margin: 0 0 5px; }
.problem-with-model .problem-item p { font-size: 14px; grid-column: 2; margin: 0; }
.problem-with-model .complexity-visual { aspect-ratio: 1.06; width: 100%; }
.film-dialog { background: var(--green-950); border: 1px solid rgba(143,211,181,.3); border-radius: 16px; color: #fff; margin: auto; max-height: calc(100dvh - 40px); max-width: min(1440px, calc(100vw - 48px)); overflow: auto; padding: 0; width: calc((100dvh - 186px) * 16 / 9); }
.film-dialog:not([open]) { display: none; }
.film-dialog::backdrop { backdrop-filter: blur(12px); background: rgba(0,16,8,.86); }
.film-dialog[open] { animation: film-dialog-enter 260ms var(--ease) both; }
.film-dialog-top { align-items: center; display: flex; gap: 20px; justify-content: space-between; padding: 20px 24px; }
.film-dialog-kicker { color: #a8cfb9; display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; margin-bottom: 5px; }
.film-dialog-top h2 { color: #fff; font-size: 22px; letter-spacing: -.025em; margin: 0; }
.film-close { align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #fff; cursor: pointer; display: flex; flex: 0 0 auto; height: 44px; justify-content: center; width: 44px; }
.film-close:hover { background: rgba(255,255,255,.16); }
.film-player { aspect-ratio: 16/9; background: #000; display: block; height: auto; width: 100%; }
.film-dialog-bottom { align-items: center; color: #abc4b5; display: flex; flex-wrap: wrap; font-size: 12px; gap: 12px; justify-content: space-between; padding: 16px 24px; }
.film-dialog-bottom a { color: #e4f4eb; text-underline-offset: 4px; }
.film-error { color: #ffddb1; font-size: 14px; margin: 0; padding: 0 24px 20px; }
body.film-is-open { overflow: hidden; }
@keyframes film-dialog-enter { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 1040px) {
  .product-hero-film .hero-grid { grid-template-columns: 1fr; }
  .film-feature { width: 100%; }
  .problem-with-model { gap: 42px; grid-template-columns: 1fr; }
  .problem-with-model .complexity-visual { margin: auto; max-width: 620px; }
  .film-launch { bottom: 22px; left: 22px; right: 22px; }
}
@media (max-width: 760px) {
  .product-hero-film { padding-top: 28px; }
  .product-hero-film .product-mark { margin-bottom: 16px; }
  .product-hero-film .hero-grid { gap: 30px; }
  .product-hero-film .hero-copy > .film-feature { margin: 26px 0 28px; }
  .product-hero-film .hero-copy h1 { font-size: clamp(32px, 10.5vw, 54px); }
  .film-card { border-radius: 12px; box-shadow: 0 20px 50px -16px rgba(0,32,16,.3); }
  .film-card-top { min-height: 40px; padding: 0 14px; }
  .film-launch { bottom: 10px; gap: 9px; left: 10px; padding: 8px 10px 8px 8px; right: 10px; }
  .film-play-icon { height: 38px; width: 38px; }
  .film-launch-copy strong { font-size: 14px; }
  .film-launch-copy small { font-size: 11px; }
  .film-card-bottom { font-size: 11px; padding-left: 14px; }
  .film-feature-note { font-size: 11px; margin-top: 14px; }
  .problem-with-model .complexity-visual { aspect-ratio: .95; }
  .film-dialog { border-radius: 12px; max-height: calc(100dvh - 24px); max-width: calc(100vw - 20px); width: calc(100vw - 20px); }
  .film-dialog-top { gap: 10px; padding: 14px; }
  .film-dialog-top h2 { font-size: 18px; }
  .film-dialog-bottom { font-size: 11px; padding: 12px 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .film-dialog { max-height: calc(100dvh - 12px); width: calc((100dvh - 100px) * 16 / 9); }
  .film-dialog-top { padding: 8px 14px; }
  .film-dialog-top h2 { font-size: 16px; }
  .film-dialog-kicker { display: none; }
  .film-close { height: 34px; width: 34px; }
  .film-dialog-bottom { padding: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .film-card, .film-play-icon { transition: none; }
  .film-card:hover { transform: none; }
  .film-dialog[open] { animation: none; }
}

/* The retained model now accompanies the method, one section below the problem. */
.workflow-with-model { align-items: center; display: grid; gap: 60px; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
.workflow-with-model .section-heading { margin-bottom: 30px; }
.workflow-with-model .section-heading h2 { font-size: clamp(34px, 3.1vw, 44px); }
.workflow-with-model .section-heading p:not(.eyebrow) { font-size: 16px; }
.workflow-with-model .section-heading .eyebrow { font-size: 11px; margin-bottom: 12px; }
.workflow-with-model .workflow-grid { gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow-with-model .workflow-step { padding: 16px 0 0; }
.workflow-with-model .workflow-step > span { font-size: 11px; margin-bottom: 10px; }
.workflow-with-model .workflow-step h3 { font-size: 18px; margin-bottom: 8px; }
.workflow-with-model .workflow-step p { font-size: 14px; }
.workflow-with-model .complexity-visual { aspect-ratio: 1.06; width: 100%; }
@media (max-width: 1040px) {
  .workflow-with-model { gap: 42px; grid-template-columns: 1fr; }
  .workflow-with-model .complexity-visual { margin: auto; max-width: 620px; }
}
@media (max-width: 760px) {
  .workflow-with-model .complexity-visual { aspect-ratio: .95; }
}
@media (max-width: 480px) {
  .workflow-with-model .workflow-grid { grid-template-columns: 1fr; }
}
