/* Enjinia site: inner pages (courses, training, privacy, agents) and Cuncè's chat.
   Builds on home.css (tokens, nav, footer, buttons). */

.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(18,19,24,.2); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(18,19,24,.15); min-height: 48px; font-size: 16px; }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- inner pages: the dark band on top ---------- */
.page-inner main { background: var(--paper); }
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 150px 0 70px; }
.page-hero .kick { color: var(--muted-d); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: -.03em; max-width: 16em; }
.page-hero .lead { color: #c3c7d2; margin-top: 18px; max-width: 40em; }
.page-hero-gears { position: absolute; right: -40px; bottom: -70px; width: 300px; opacity: .22; pointer-events: none; }
.page-hero-gears svg { width: 100%; height: auto; overflow: visible; }
.ph-gears .gear, .ph-gears .scrollrot { transform-box: fill-box; transform-origin: center; }
.ph-gears .g-blue { animation: hm-spin 26s linear infinite; }
.ph-gears .g-red { animation: hm-spin-rev 20s linear infinite; }
.ph-gears .g-green { animation: hm-spin-rev 23s linear infinite; }

/* long text */
.prose { font-size: 18px; line-height: 1.7; color: #2a2d37; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; margin: 1.6em 0 .5em; letter-spacing: -.02em; color: var(--ink); }
.prose h2:first-child, .prose .intro-text:first-child h2 { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 1.3em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose a { color: #c8141b; font-weight: 600; }
.prose img { border-radius: 16px; margin: 1em 0; }
.prose .text { margin: 0 0 1em; }
.prose .intro-text h2 { margin-bottom: .4em; }

/* ---------- courses ---------- */
.course { padding: 70px 0 110px; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 60px; align-items: start; }
.course-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.course-side { position: sticky; top: 100px; }
.side-card { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 20px 50px rgba(18,19,24,.08); }
.side-card h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.side-card p { color: var(--muted); font-size: 16px; }
.side-media img { border-radius: 14px; margin-bottom: 18px; }
.paypal-wrap { min-height: 60px; margin: 14px 0 6px; }
.side-ask { width: 100%; justify-content: center; margin-top: 10px; }
.side-all { display: block; text-align: center; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--ink); }

/* training index */
.courses-list { padding: 70px 0 110px; }
.course-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 24px; padding: 28px;
               text-decoration: none; color: var(--text); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(18,19,24,.06);
               transition: transform .2s, box-shadow .2s; }
a.course-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(18,19,24,.12); }
.cc-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
          background: color-mix(in srgb, var(--c, var(--blue)) 14%, #fff); color: var(--c, var(--blue)); }
.course-card small { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.course-card h2 { font-size: 25px; font-weight: 800; margin: 6px 0 10px; letter-spacing: -.02em; }
.course-card p { color: var(--muted); font-size: 16px; flex: 1; }
.cc-go { font-weight: 700; color: var(--c, var(--ink)); }
.cc-team { background: var(--ink); color: #fff; --c: var(--yellow); }
.cc-team p { color: #c3c7d2; }
.cc-team .btn { align-self: flex-start; }

/* privacy */
.legal { padding: 70px 0 110px; }
.legal .prose { max-width: 760px; }

/* ---------- agent page ---------- */
.agent-hero { background: var(--ink); color: #fff; padding: 130px 0 70px; overflow: hidden; }
.agent-hero-grid { display: grid; grid-template-columns: 440px 1fr; gap: 60px; align-items: center; }
.agent-pic { position: relative; aspect-ratio: 1; border-radius: 32px; background: var(--bg); overflow: hidden; }
.agent-pic .ag-gear { position: absolute; right: -16%; top: -18%; width: 74%; opacity: .16; }
.agent-pic .ag-gear svg { width: 100%; fill: #fff; animation: hm-spin 40s linear infinite; }
.ag-mezacapa .agent-pic .ag-gear svg { fill: var(--ink); }
.agent-pic .ag-char { position: absolute; left: 50%; bottom: 0; width: 86%; transform: translateX(-50%); }
.agent-intro .kick { color: var(--muted-d); }
.agent-intro h1 { font-size: clamp(54px, 7vw, 96px); font-weight: 800; letter-spacing: -.04em; }
.agent-intro blockquote { margin: 10px 0 22px; font: italic 700 clamp(22px, 2.4vw, 30px)/1.25 var(--display); color: #fff;
                          border-left: 5px solid var(--bg); padding-left: 18px; }
.ag-mezacapa .agent-intro blockquote { border-color: var(--yellow); }
.agent-intro .lead { color: #c3c7d2; }
.agent-power { margin: 20px 0 26px; color: #fff; }
.agent-power b { display: block; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.agent-soon { color: #c3c7d2; }
.agent-soon .linkbtn { color: #fff; font-weight: 700; }
.agent-more { padding: 80px 0 110px; }
.agent-more h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 26px; }
.agent-mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.agent-mini a { text-decoration: none; color: var(--text); text-align: center; }
.mini-pic { display: block; aspect-ratio: 1; border-radius: 20px; background: var(--bg); overflow: hidden; position: relative; margin-bottom: 8px;
            transition: transform .2s; }
.agent-mini a:hover .mini-pic { transform: translateY(-4px) rotate(-1deg); }
.mini-pic .ag-char { position: absolute; left: 50%; bottom: 0; width: 92%; transform: translateX(-50%); }
.agent-mini b { display: block; font-family: var(--display); font-size: 18px; }
.agent-mini small { color: var(--muted); font-size: 13px; }
.crew-honest { margin-top: 34px; color: var(--muted); max-width: 46em; }
.crew-honest strong { color: var(--ink); }

/* crew cards on the home: links and the talk button */
.agent .ag-pic { display: block; }
.agent h3 a { color: inherit; text-decoration: none; }
.agent h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.ag-talk { align-self: flex-start; margin-top: 18px; min-height: 44px; padding: 0 18px; font-size: 15px; }

/* ---------- Cuncè's chat ---------- */
.chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px;
                 padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer;
                 font: 500 15px var(--body); box-shadow: 0 14px 34px rgba(18,19,24,.35); transition: transform .2s; }
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher[hidden] { display: none; }
.cl-pic, .chat-pic { position: relative; display: block; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); overflow: hidden; flex: none; }
.cl-pic .ag-char, .chat-pic .ag-char { position: absolute; left: 50%; bottom: -2px; width: 118%; transform: translateX(-50%); }
.cl-text b { color: var(--yellow); }

.chat { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 410px; height: min(640px, calc(100vh - 44px));
        display: flex; flex-direction: column; background: #fff; border-radius: 26px; overflow: hidden;
        box-shadow: 0 30px 80px rgba(18,19,24,.35); animation: chat-in .25s cubic-bezier(.2,.8,.2,1); }
.chat[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: #fff; }
.chat-who { flex: 1; }
.chat-who h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.chat-who small { color: #c3c7d2; font-size: 13px; }
.chat-who .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 4px; }
.chat-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }
.chat-x:hover { background: rgba(255,255,255,.2); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--paper); overscroll-behavior: contain; }
.chat-thread { display: flex; flex-direction: column; gap: 8px; }
.chat-thread[hidden] { display: none; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.bubble p { margin: 0 0 .4em; } .bubble p:last-child { margin: 0; }
.bubble.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble.failed { opacity: .5; }
.bubble.typing { display: flex; gap: 5px; padding: 14px 16px; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-d); animation: chat-dot 1.2s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .2s; } .bubble.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-draftbar { padding: 10px 14px 0; background: #fff; border-top: 1px solid #ece8df; }
.chat-draftbar[hidden] { display: none; }
.chat-draftbar .btn { width: 100%; justify-content: center; min-height: 46px; font-size: 16px; }
.pulse { animation: chat-pulse 2s ease-in-out 3; }
@keyframes chat-pulse { 50% { box-shadow: 0 0 0 8px rgba(237,28,36,.18), 0 12px 28px rgba(237,28,36,.35); } }

.chat-form { padding: 10px 14px 14px; background: #fff; }
.chat-form[hidden] { display: none; }
.chat-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted);
                margin-bottom: 10px; background: var(--paper); padding: 10px 12px; border-radius: 14px; cursor: pointer; }
.chat-consent[hidden] { display: none; }
.chat-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.chat-consent a { color: inherit; }
.shake { animation: chat-shake .4s; }
@keyframes chat-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; border: 2px solid #ece8df; border-radius: 18px; padding: 11px 14px; font: 16px/1.4 var(--body);
                       max-height: 140px; background: #fff; color: var(--text); }
.chat-input textarea:focus { outline: none; border-color: var(--blue); }
.chat-send { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 18px; cursor: pointer; }
.chat-err { margin: 8px 0 0; color: #b4141a; font-size: 14px; }
.chat-err[hidden] { display: none; }

.chat-brief { background: #fff; border-radius: 18px; padding: 18px; }
.chat-brief[hidden] { display: none; }
.chat-brief h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.chat-brief h3.mt { margin-top: 18px; }
.chat-brief .hint { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.chat-brief label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.chat-brief label small { font-weight: 400; color: var(--muted); }
.chat-brief input, .chat-brief textarea { display: block; width: 100%; margin-top: 4px; border: 2px solid #ece8df; border-radius: 12px;
                                          padding: 9px 11px; font: 15px/1.4 var(--body); background: var(--paper); color: var(--text); }
.chat-brief input:focus, .chat-brief textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.chat-brief .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brief-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.brief-btns .btn { min-height: 46px; font-size: 16px; }
.brief-err { color: #b4141a; font-size: 14px; margin: 10px 0 0; }

.chat-done { text-align: center; padding: 30px 10px; }
.chat-done[hidden] { display: none; }
.done-gears { width: 120px; margin: 0 auto 18px; }
.done-g { width: 100%; overflow: visible; }
.done-g .gear { transform-box: fill-box; transform-origin: center; }
.done-g .g-blue { animation: hm-spin 6s linear infinite; } .done-g .g-red { animation: hm-spin-rev 4.6s linear infinite; }
.done-g .g-green { animation: hm-spin-rev 5.3s linear infinite; }
.chat-done h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.chat-done p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .course-grid { grid-template-columns: 1fr; gap: 40px; }
  .course-side { position: static; }
  .course-cards { grid-template-columns: 1fr 1fr; }
  .agent-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .agent-pic { max-width: 420px; }
  .agent-mini { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .page-hero { padding: 120px 0 50px; }
  .page-hero-gears { width: 180px; right: -50px; bottom: -50px; }
  .course-cards { grid-template-columns: 1fr; }
  .agent-hero { padding: 110px 0 50px; }
  .agent-mini { grid-template-columns: repeat(3, 1fr); }
  .chat-launcher { right: 14px; bottom: 14px; padding: 5px; }
  .cl-pic { width: 52px; height: 52px; }
  .cl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(92vh, 100%); border-radius: 24px 24px 0 0; }
  html.chat-open, html.chat-open body { overflow: hidden; }
  .chat-brief .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .chat, .pulse, .shake, .bubble.typing span { animation: none !important; }
}

/* ---------- Il Bar dell'Officina (the agents' blog) ---------- */
.bar-list { padding: 50px 0 110px; }
.bar-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.bar-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff;
                text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; box-shadow: inset 0 0 0 1px var(--paper-2); }
.bar-filter a:first-child { padding-left: 14px; }
.bar-filter a.on { background: var(--ink); color: #fff; box-shadow: none; }
.bf-av { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); overflow: hidden; flex: none; }
.bf-av .ag-char, .bc-av .ag-char, .ba-av .ag-char, .ba-side-av .ag-char { position: absolute; left: 50%; bottom: -2px; width: 118%; transform: translateX(-50%); }
.bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bar-card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text);
            box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(18,19,24,.06); transition: transform .2s, box-shadow .2s; }
.bar-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(18,19,24,.12); }
.bc-pic { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bg); }
.bc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-express, .ba-express { display: inline-block; background: var(--red); color: #fff; font: 700 12px var(--mono); letter-spacing: .1em;
                           text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.bc-express { position: absolute; top: 14px; left: 14px; }
.bc-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 24px; flex: 1; }
.bc-who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.bc-who small { color: var(--muted); }
.bc-av { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); overflow: hidden; flex: none; }
.bc-kick { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.bar-card h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.bar-card p { color: var(--muted); font-size: 16px; margin: 4px 0 0; flex: 1; }
.bc-meta { color: var(--muted); font-size: 13px; margin-top: 10px; }
.bar-empty { text-align: center; background: #fff; border-radius: 28px; padding: 60px 24px; }
.bar-empty-gears { width: 120px; margin: 0 auto 20px; }
.bar-empty h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.bar-empty p { color: var(--muted); margin: 0; }
.bar-rss { margin: 34px 0 0; text-align: center; }
.bar-rss a { color: var(--muted); font-size: 15px; }

.ba-head { background: var(--ink); color: #fff; padding: 140px 0 60px; }
.ba-head .kick { color: var(--muted-d); }
.ba-back { display: flex; width: fit-content; gap: 8px; align-items: center; color: var(--muted-d); text-decoration: none; font-size: 15px; margin-bottom: 26px; }
.ba-back:hover { color: #fff; }
.ba-head h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.03em; max-width: 18em; }
.ba-by { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: #c3c7d2; font-size: 16px; }
.ba-by a { color: #fff; text-decoration: none; }
.ba-av { position: relative; display: block; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); overflow: hidden; flex: none; }
.ba-cover { margin: -30px 0 0; }
.ba-cover img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 60% 45%; display: block; border-radius: 28px; box-shadow: 0 30px 60px rgba(18,19,24,.18); }
.ba-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; padding-top: 50px; padding-bottom: 90px; }
.ba-text { max-width: 720px; }
.ba-box { border-radius: 22px; padding: 26px 28px; margin: 34px 0; }
.ba-box h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 0 0 10px; }
.ba-box h2 svg { width: 22px; height: 22px; }
.ba-box p:last-child { margin-bottom: 0; }
.ba-serious { background: #fff; box-shadow: inset 4px 0 0 var(--blue); }
.ba-src { font-size: 15px; color: var(--muted); }
.ba-take { background: var(--ink); color: #e9ebf0; }
.ba-take h2 { color: #fff; }
.ba-take h2 svg { fill: var(--red); }
.ba-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ba-tags span { font: 500 13px var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.ba-share { display: flex; align-items: center; gap: 10px; margin: 26px 0; }
.ba-share span { font-weight: 700; margin-right: 6px; }
.ba-share a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink);
              text-decoration: none; box-shadow: inset 0 0 0 1px var(--paper-2); font-weight: 400; }
.ba-share a:hover { background: var(--ink); color: #fff; }
.ba-ai { font-size: 14px; color: var(--muted); border-top: 1px solid var(--paper-2); padding-top: 18px; }
.ba-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.ba-author { text-align: center; }
.ba-side-av { position: relative; display: block; width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%; background: var(--bg); overflow: hidden; }
.ba-role { margin: 0 0 10px; }
.ba-author blockquote { margin: 0 0 6px; font-family: "Fraunces", serif; font-style: italic; font-weight: 700; font-size: 18px; color: var(--ink); }
.bar-more { padding: 0 0 110px; }
.bar-more h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 26px; }
.home-bar { padding: 0 0 120px; }
.home-bar .bar-grid { margin-top: 10px; }
.home-bar .bar-all { margin-top: 30px; }

@media (max-width: 1000px) {
  .bar-grid { grid-template-columns: 1fr 1fr; }
  .ba-grid { grid-template-columns: 1fr; gap: 30px; }
  .ba-side { position: static; }
}
@media (max-width: 640px) {
  .bar-grid { grid-template-columns: 1fr; }
  .ba-head { padding: 110px 0 50px; }
  .ba-cover { margin-top: -20px; }
  .ba-cover img { border-radius: 18px; aspect-ratio: 3 / 2; }
  .ba-box { padding: 22px; }
}
.agent-bar { padding-top: 70px; }

/* ---------- Il nostro manifesto ---------- */
.manifesto { padding: 70px 0 110px; }
.mf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mf-item { position: relative; display: grid; grid-template-columns: 120px minmax(0, .9fr) minmax(0, 1.2fr); gap: 34px; align-items: start;
           background: #fff; border-radius: 28px; padding: 40px 44px; overflow: hidden;
           box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px rgba(18,19,24,.06); }
.mf-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); }
.mf-num { font-family: var(--display); font-weight: 800; font-size: 110px; line-height: .8; letter-spacing: -.05em; color: var(--c); }
.mf-item[style*="#ffd23f"] .mf-num { color: #d9a800; }
.mf-ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
          background: color-mix(in srgb, var(--c) 15%, #fff); color: var(--c); }
.mf-item[style*="#ffd23f"] .mf-ico { color: #b88700; }
.mf-head h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mf-text p { font-size: 18px; line-height: 1.7; color: #2a2d37; margin: 0 0 14px; }
.mf-text p:first-child { font-size: 20px; color: var(--ink); font-weight: 500; }
.mf-text p:last-of-type { margin-bottom: 0; }
.mf-play { margin-top: 22px; }
.mf-end { display: flex; align-items: center; gap: 40px; margin-top: 60px; background: var(--ink); color: #e9ebf0; border-radius: 28px; padding: 44px; }
.mf-end h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 10px; }
.mf-end p { color: #c3c7d2; margin: 0 0 22px; }
.mf-end a { color: #fff; font-weight: 700; }
.mf-end .btn-ink { background: #fff; color: var(--ink); }
.mf-end-gears { width: 140px; flex: none; }
@media (max-width: 1000px) {
  .mf-item { grid-template-columns: 90px 1fr; }
  .mf-num { font-size: 84px; }
  .mf-text { grid-column: 2; }
}
@media (max-width: 640px) {
  .mf-item { grid-template-columns: 1fr; gap: 14px; padding: 30px 24px 30px 30px; }
  .mf-num { font-size: 64px; }
  .mf-text { grid-column: auto; }
  .mf-end { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; }
  .mf-end-gears { width: 100px; }
}
.chat-send:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
@media (max-width: 640px) {
  /* the blog's agent filter: one row that scrolls sideways */
  .bar-filter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 28px; padding: 2px 18px 8px; scrollbar-width: none;
                scroll-snap-type: x proximity; }
  .bar-filter::-webkit-scrollbar { display: none; }
  .bar-filter a { flex: none; scroll-snap-align: start; }
}

