/* /features: every part of the product, one section each, with a small picture of it as the apps show it. */
.ft-body { --petrol: #2F6F86; --edge: #E3E7EA; --ok: #2E8B57; --no: #C8553D; }
.ft-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--petrol); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ft-cta:hover { background: #3A7F98; color: #fff; }

.ft-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.ft-hero h1 { max-width: 15em; margin-bottom: 22px; }
.ft-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.ft-toc a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.ft-toc a:hover { border-color: var(--petrol); color: var(--petrol); }

.ft-sec { padding: clamp(56px, 8vw, 104px) 0; }
.ft-sec.alt { background: var(--paper-2); }
.ft-sec h2 { margin-bottom: 18px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ft-grid.rev .ft-text { order: 2; }
.ft-list { display: grid; gap: 12px; margin-top: 24px; }
.ft-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.ft-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--petrol); }
.ft-list b { color: var(--ink); font-weight: 600; }
.ft-narrow > * { max-width: 760px; }
.ft-more { margin-top: 26px; color: var(--muted); font-size: 15px; }
.ft-more a { color: var(--ink-2); }

/* The app's window and chat */
.mk-app { background: #fff; border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(29, 38, 49, .35); overflow: hidden; font-size: 15px; line-height: 1.4; }
.mk-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--edge); background: #F7F8F9; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.mk-chat { display: grid; gap: 10px; padding: 18px 16px; }
.mk-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; }
.mk-msg.g { background: #EEF2F5; border-bottom-left-radius: 4px; }
.mk-msg.u { margin-left: auto; background: var(--petrol); color: #fff; border-bottom-right-radius: 4px; }
.mk-sys { justify-self: center; padding: 3px 10px; border-radius: 999px; background: #F1F3F4; color: var(--muted); font-size: 13px; }
.mk-plan { margin-top: 4px; padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; }
.mk-k { font: 600 11px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mk-t { margin-top: 4px; font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ink); }
.mk-s { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.mk-note { margin: 8px 0 6px; color: var(--petrol); font-size: 14px; font-weight: 500; }
.mk-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #EEF0F2; font-size: 14px; }
.mk-row span { color: var(--muted); }
.mk-row b { font-weight: 600; }
.mk-hint { color: var(--muted); }
.mk-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; }
.mk-btn { display: inline-block; padding: 7px 14px; border: 1px solid #C9D1D7; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; }
.mk-btn.primary { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.mk-pill { padding: 4px 10px; border-radius: 999px; background: #E4F0E9; color: var(--ok); font-size: 13px; font-weight: 600; }
.mk-sess { padding: 14px 16px; border-top: 1px solid var(--edge); background: #FAFBFB; }
.mk-sess p:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mk-sess p:first-child span { color: var(--muted); }
.mk-sess .mk-btns { justify-content: flex-start; }

/* Clips of the lock animations */
.mk-clip { margin: 0; }
.mk-clip video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; background: #CFE0E6; box-shadow: 0 20px 40px -24px rgba(29, 38, 49, .45); object-fit: cover; }
.mk-clip figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.mk-clip figcaption b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.mk-clip.big figcaption { text-align: center; }
.mk-judge { display: grid; gap: 8px; margin-top: 18px; }
.mk-judge p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: #fff; font-size: 14px; }
.mk-chip { flex: none; padding: 2px 8px; border-radius: 6px; background: #EEF2F5; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.mk-judge b { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; }
.mk-judge .ok { color: var(--ok); }
.mk-judge .no { color: var(--no); }

/* The phone */
.mk-phone { width: min(300px, 82%); margin: 0 auto; padding: 12px; border-radius: 40px; background: #1B232B; box-shadow: 0 30px 60px -30px rgba(29, 38, 49, .6); }
.mk-ph-screen { display: grid; align-content: start; gap: 12px; min-height: 470px; padding: 18px 14px; border-radius: 30px; background: #F3F5F6; font-size: 14px; line-height: 1.4; }
.mk-ph-top { text-align: center; font-weight: 600; color: var(--ink-2); }
.mk-ph-card, .mk-ph-rules { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--edge); }
.mk-ph-time { margin-top: 6px; font: 600 40px/1 var(--sans); letter-spacing: -.02em; color: var(--petrol); font-variant-numeric: tabular-nums; }
.mk-ph-rules { display: grid; gap: 8px; align-self: start; }
.mk-ph-rules p:not(.mk-k) { display: flex; justify-content: space-between; gap: 8px; }
.mk-ph-rules b { font-weight: 600; color: var(--ink-2); }

/* Him */
.mk-him { position: relative; display: grid; place-items: center; min-height: 380px; }
/* Him as the apps draw him, shaded and alive (guardian.js), never a flat picture. */
.guardian.mk-him-g, .guardian.mk-card-g, .guardian.ft-end-g { position: relative; left: auto; top: auto; z-index: auto; aspect-ratio: 218 / 164; }
.guardian .g-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mk-him-g { width: min(380px, 82%); }
.mk-bub { position: absolute; max-width: 250px; padding: 11px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--edge); box-shadow: 0 14px 30px -18px rgba(29, 38, 49, .4); font-size: 15px; line-height: 1.4; }
.mk-bub.b1 { left: 0; top: 4%; border-bottom-right-radius: 4px; }
.mk-bub.b2 { right: 0; bottom: 8%; border-bottom-left-radius: 4px; }

/* Rewards */
.mk-end { max-width: 360px; margin: 0 auto; padding: 26px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--edge); box-shadow: 0 24px 50px -24px rgba(29, 38, 49, .35); text-align: center; }
.mk-end-t { margin-top: 6px; font: 400 52px/1 var(--serif); letter-spacing: -.02em; }
.mk-end-c { margin-top: 10px; font-size: 22px; font-weight: 700; color: var(--petrol); }
.mk-end-c span { font-size: 15px; font-weight: 500; color: var(--muted); }
.mk-word { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--edge); }
.mk-word-n { font: 600 34px/1 var(--sans); letter-spacing: -.02em; }
.mk-word-n span { margin-left: 8px; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.mk-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.mk-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--petrol); }
.mk-dots .k { background: var(--petrol); }
.mk-dots .h { background: linear-gradient(90deg, var(--petrol) 50%, transparent 50%); }
.mk-dots .e { border-color: #C9D1D7; border-style: dashed; }

/* Lock animations */
.ft-locks h2, .ft-locks .lede { max-width: 760px; }
.lk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin-top: 40px; }
.lk-note { margin-top: 28px; color: var(--muted); }

/* Friends */
.mk-friends { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; }
.mk-card { aspect-ratio: 9 / 16; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px 18px; border-radius: 16px; position: relative; background: #141D25; color: #F3F0E9; box-shadow: 0 24px 50px -24px rgba(29, 38, 49, .6); }
.guardian.mk-card-g { position: absolute; left: 2%; top: 4%; width: 96%; }
.mk-card-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9FB0BC; }
.mk-card-t { font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.mk-card-r { font-size: 14px; color: #C9D3DA; }
.mk-card-r b { color: #fff; }
.mk-card-f { margin-top: 10px; font-size: 11px; color: #9FB0BC; }
.mk-flist { display: grid; gap: 10px; }
.mk-flist p { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--edge); font-size: 14px; line-height: 1.3; }
.mk-flist img { flex: none; }
.mk-flist span { display: grid; min-width: 0; color: var(--muted); }
.mk-flist span b { color: var(--ink); font-weight: 600; }
.mk-clap { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid #C9D1D7; background: #fff url("../assets/img/clap.svg") no-repeat center / 18px; }
.mk-clap.on { background-color: #E4EEF3; border-color: var(--petrol); }

/* The end */
.ft-end { padding: clamp(64px, 9vw, 120px) 0; text-align: center; background: var(--sky); }
.ft-end-g { width: 190px; margin: 0 auto 18px; }
.ft-end .lede { margin: 16px auto 28px; }
.ft-end .button { background: var(--petrol); }
.ft-end .button:hover { background: #3A7F98; }

@media (max-width: 899px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-grid.rev .ft-text { order: 0; }
  .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 520px) {
  .topbar .brand span { font-size: 15px; }
  .ft-cta { padding: 0 12px; font-size: 14px; }
  .mk-friends { grid-template-columns: minmax(0, 1fr); }
  .mk-card { aspect-ratio: auto; min-height: 380px; }
  .mk-him { min-height: 0; padding: 70px 0 60px; }
  .mk-bub { max-width: 220px; font-size: 14px; }
  .mk-clip figcaption { font-size: 13px; }
}
