/* =====================================================================
   FlyForms — feature illustrations, in the app dashboard's style
   One off-white card with a thin border: a small white mini-screen of
   skeleton lines and outlined inputs floating on it, one coloured accent,
   and the title, text and link stacked below. No icon tile.
   ===================================================================== */

:root {
  --mk-line: #e7e6ef;          /* the app's light border */
  --mk-skel: #e6e4ee;
  --mk-skel-dim: #f0eef5;
  --mk-ink: #1d1830;
  --mk-grey: #6b6680;
}

/* The app's five tones: violet, sky, amber, emerald, rose */
.mk-tone-violet, .mk-card-violet   { --tone: #7147eb; --tone-fill: #7147eb; --tone-ink: #5732d4; --tone-soft: #eee9fd; --tone-panel: #f5f2fe; --tone-ring: rgb(113 71 235 / .16); }
.mk-tone-sky, .mk-card-sky         { --tone: #0ea5e9; --tone-fill: #0ea5e9; --tone-ink: #0369a1; --tone-soft: #e0f2fe; --tone-panel: #f0f9ff; --tone-ring: rgb(14 165 233 / .16); }
.mk-tone-amber, .mk-card-amber     { --tone: #f59e0b; --tone-fill: #f59e0b; --tone-ink: #b45309; --tone-soft: #fef3c7; --tone-panel: #fffaeb; --tone-ring: rgb(245 158 11 / .18); }
.mk-tone-emerald, .mk-card-emerald { --tone: #10b981; --tone-fill: #10b981; --tone-ink: #047857; --tone-soft: #d1fae5; --tone-panel: #effcf6; --tone-ring: rgb(16 185 129 / .16); }
.mk-tone-rose, .mk-card-rose       { --tone: #f43f5e; --tone-fill: #f43f5e; --tone-ink: #be123c; --tone-soft: #ffe4e6; --tone-panel: #fff4f5; --tone-ring: rgb(244 63 94 / .15); }

/* ---------- Card: one off-white surface, preview on top, copy below ---------- */

.theme-whistler .ill-article {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 0; border-radius: 20px; background: #f2f2f3;   /* borderless, and nothing changes on hover */
  --ill-pad: 40px;   /* the card's left edge for both the mini-screen and the text */
}
.theme-whistler .ill-article:has(.ill-sm) { --ill-pad: 32px; }
.ill-text { padding: 12px var(--ill-pad) var(--ill-pad); }   /* the same gap below the text as beside it */
.ill-copy { min-width: 0; }
.theme-whistler .ill-text h3 {
  margin: 0; font-family: var(--font-sans); font-size: 18px; line-height: 24px; font-weight: 600;
  letter-spacing: -.01em; color: var(--mk-ink);
}
.theme-whistler .ill-text p { margin-top: 6px; font-size: 14.5px; line-height: 22px; color: var(--mk-grey); }
.theme-whistler .ill-text a { display: inline-flex; margin-top: 12px; }
.theme-whistler .ill-article:has(.ill-sm) .ill-text { padding: 10px var(--ill-pad) var(--ill-pad); }
.theme-whistler .ill-article:has(.ill-sm) .ill-text h3 { font-size: 16.5px; line-height: 22px; }
.theme-whistler .ill-article:has(.ill-sm) .ill-text p { font-size: 14px; line-height: 21px; }

/* Screenshot rows: the preview is a bordered card of its own */
.ill-panel .ill { border: 1px solid var(--mk-line); border-radius: 20px; }

/* ---------- Preview: tinted panel with a white mini-screen rising from the bottom ---------- */

.ill {
  position: relative; overflow: hidden; flex: none; height: 214px;
  background: #f2f2f3; border-bottom: 1px solid var(--mk-line);   /* neutral thumbnail; the tone stays in the accents */
  font-family: var(--font-sans); color: var(--mk-ink);
}
.ill-sm { height: 176px; }
.ill-lg { height: 236px; }
.ill-xl { height: clamp(340px, 31vw, 420px); }

.mk-screen {
  position: absolute; left: 9%; right: 9%; top: 24px; bottom: -1px;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--mk-line); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 12px 32px -20px rgb(29 24 48 / .28);
}
.ill-sm .mk-screen { left: 8%; right: 8%; top: 20px; padding: 14px 16px; gap: 9px; }
.ill-xl .mk-screen { left: 7%; right: 7%; top: 32px; padding: 26px 28px; gap: 14px; }

/* ---------- Skeleton parts ---------- */

.mk-line { display: block; flex: none; width: var(--w); height: 8px; border-radius: 99px; background: var(--mk-skel); }
.mk-line.dim { background: var(--mk-skel-dim); }
.mk-line.warn { background: #ffe4e6; }
.ill-xl .mk-line { height: 10px; }

.mk-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk-between { justify-content: space-between; }
.mk-gap-sm { gap: 8px; }
.mk-grow > .mk-input { flex: 1; min-width: 0; }
.mk-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mk-head { padding-bottom: 8px; border-bottom: 1px solid var(--mk-line); }
.mk-hl { margin-inline: -8px; padding: 6px 8px; border-radius: 8px; background: var(--tone-panel); }

.mk-input {
  display: flex; align-items: center; gap: 8px; flex: none; height: 32px; padding: 0 12px;
  border: 1.5px solid #e4e2ec; border-radius: 10px; color: #9c97ae; font-size: 12.5px; overflow: hidden; white-space: nowrap;
}
.mk-row > .mk-input { flex: 1; }
.ill-xl .mk-input { height: 40px; }
.mk-input.on { border-color: var(--tone); box-shadow: 0 0 0 3px var(--tone-ring); }
.mk-input.err { border-color: #f43f5e; box-shadow: 0 0 0 3px rgb(244 63 94 / .14); }
.mk-input em { font-style: normal; color: #3b3550; }
.mk-input .mk-svg { width: 14px; height: 14px; flex: none; }
.mk-caret { display: inline-block; width: 1.5px; height: 15px; background: var(--tone); animation: mk-blink 1.1s steps(1) infinite; }
@keyframes mk-blink { 50% { opacity: 0; } }

.mk-svg { width: 15px; height: 15px; flex: none; }

.mk-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none; align-self: flex-start;
  height: 26px; padding: 0 12px; border-radius: 8px; background: var(--tone-fill); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.mk-row > .mk-btn { align-self: center; }
.mk-btn .mk-svg { width: 12px; height: 12px; }
.ill-xl .mk-btn { height: 34px; padding: 0 16px; font-size: 12px; }

.mk-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--tone-soft); color: var(--tone-ink); font-size: 11px; font-weight: 700;
}
.mk-badge .mk-svg { width: 12px; height: 12px; }
.mk-choice { background: #fff; border: 1.5px solid #e4e2ec; color: var(--mk-grey); height: 26px; padding: 0 14px; }
.mk-choice.on { border-color: var(--tone); background: var(--tone-soft); color: var(--tone-ink); }

.mk-dot { flex: none; width: 22px; height: 22px; border-radius: 999px; }
.mk-dot-a { background: #dcd2fd; } .mk-dot-b { background: #ffdccb; } .mk-dot-c { background: #cdeedd; } .mk-dot-d { background: #d3e5fb; }

.mk-tile { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #f3f2f7; color: #8a8599; }
.mk-tile .mk-svg { width: 15px; height: 15px; }
.mk-tile.on { background: var(--tone-soft); color: var(--tone-ink); box-shadow: 0 0 0 1.5px var(--tone); }
.mk-tile.off { background: #ffe4e6; color: #e11d48; }
.mk-tile.ok { background: #d1fae5; color: #059669; }
.mk-tile.dim { opacity: .55; }
.mk-check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-left: auto; border-radius: 6px; background: var(--tone-fill); color: #fff; }
.mk-check .mk-svg { width: 12px; height: 12px; }
.mk-row > .mk-tile.off:last-child { margin-left: auto; }

.mk-sw { flex: none; width: 24px; height: 24px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.mk-sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tone); }
.mk-swgrid { display: grid; grid-template-columns: repeat(7, 24px); gap: 12px 14px; padding-top: 4px; }

.mk-bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; }
.mk-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 2px 2px; background: var(--tone-fill); opacity: .85; }
.mk-bars-tall { height: clamp(90px, 9vw, 130px); }
.mk-stats { gap: 12px; }
.mk-stat { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--mk-line); border-radius: 12px; }
.mk-stat b { font-size: clamp(20px, 2vw, 28px); line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--mk-ink); font-variant-numeric: tabular-nums; }

.mk-add {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1.5px dashed var(--tone); border-radius: 10px; background: var(--tone-panel); color: var(--tone-ink);
}
.mk-add .mk-badge { margin-left: auto; }
.mk-branch { height: 16px; margin-left: 6px; color: var(--tone); }
.mk-branch .mk-svg { width: 16px; height: 16px; }
.mk-stars { display: flex; gap: 6px; color: #f59e0b; }
.mk-stars .mk-svg { width: 18px; height: 18px; fill: currentColor; }

.mk-qr-box { display: grid; place-items: center; flex: none; width: 58px; height: 58px; padding: 5px; border: 1px solid var(--mk-line); border-radius: 10px; }
.mk-qr-lg { width: 84px; height: 84px; }
.mk-qr { width: 100%; height: 100%; }
.mk-qr rect { fill: var(--mk-ink); }

.mk-pages { gap: 0; }
.mk-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 28%; height: 70px; padding: 8px; flex: none;
  border: 1px solid var(--mk-line); border-radius: 10px; color: #8a8599;
}
.mk-page.on { border-color: var(--tone); background: var(--tone-soft); color: var(--tone-ink); }
.mk-link { flex: 1; height: 0; margin: 0 4px; border-top: 1.5px dashed #d6d3e0; }

.mk-code {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f7f6fa;
  font: 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--mk-grey); white-space: nowrap; overflow: hidden;
}
.mk-code b { color: var(--tone-ink); font-weight: 600; }
.mk-warn { display: grid; place-items: center; color: #e11d48; }
.mk-bell { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tone-soft); color: var(--tone-ink); }
.mk-bell .mk-svg { width: 18px; height: 18px; }
.mk-bell b {
  position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 18px; height: 18px;
  border: 2px solid #fff; border-radius: 999px; background: #f43f5e; color: #fff; font-size: 10px; font-weight: 700;
}
.mk-rtl .mk-screen { direction: rtl; }

@media (max-width: 640px) {
  .ill-xl { height: 320px; }
  .ill-xl .mk-screen { left: 6%; right: 6%; top: 24px; padding: 18px; gap: 11px; }
  .ill-text { padding: 10px var(--ill-pad) var(--ill-pad); }
}
@media (prefers-reduced-motion: reduce) { .mk-caret { animation: none; } }

/* =====================================================================
   Click demos — after the named cursors in Pluma's feature cards.
   The site script glides a cursor to each [data-step] and clicks it; the
   illustration then gets class s1, s2… and these rules show the result.
   ===================================================================== */

/* The cursor: a tone-coloured pointer with a name tag */
.mk-cursor {
  position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; opacity: 0;
  transform: translate(var(--x, 105%), var(--y, 110%));
  transition: transform var(--glide, .85s) cubic-bezier(.45, .05, .25, 1), opacity .3s ease;   /* --glide: each card's own pace */
}
.mk-cursor.show { opacity: 1; }
.mk-cursor svg {
  display: block; width: 20px; height: 20px; fill: var(--tone-fill); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgb(29 24 48 / .25)); transition: transform .12s ease; transform-origin: 3px 3px;
}
.mk-cursor.press svg { transform: scale(.8); }
.mk-cursor b {
  position: absolute; left: 15px; top: 19px; padding: 3px 9px; border-radius: 7px; background: var(--tone-fill); color: #fff;
  font: 600 12px/16px var(--font-sans); white-space: nowrap; box-shadow: 0 6px 14px -6px rgb(29 24 48 / .4);
}
.mk-cursor i {   /* click ring at the pointer's tip */
  position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--tone-fill); opacity: 0;
}
.mk-cursor.press i { animation: mk-ring .5s ease-out; }
@keyframes mk-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

[data-step] { transition: transform .12s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease; }
[data-step].pressing { transform: scale(.94); }

/* What a click changes */
.ill:not(.s1) [data-show="1"], .ill:not(.s2) [data-show="2"], .ill:not(.s3) [data-show="3"] { display: none; }
.ill.s1 [data-hide="1"], .ill.s2 [data-hide="2"], .ill.s3 [data-hide="3"] { display: none; }
.mk-swap { display: inline-flex; align-items: center; }
.mk-swap > span { display: inline-flex; align-items: center; gap: 4px; }

.mk-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s ease, opacity .35s ease; }
.mk-reveal-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: inherit; }
.mk-screen > .mk-reveal { gap: 10px; margin-top: -10px; }    /* takes no space until it opens */
.ill.s1 .mk-reveal[data-reveal="1"], .ill.s2 .mk-reveal[data-reveal="2"] { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.mk-reveal-in > :first-child { margin-top: 2px; }

[data-fade] { transition: opacity .4s ease, filter .4s ease; }
.ill.s1 [data-fade="1"], .ill.s2 [data-fade="2"] { opacity: .22; filter: grayscale(1); }

.mk-paint { background: var(--paint, var(--tone-fill)); transition: background-color .3s ease, background .3s ease; }
.mk-input[data-fix] { transition: border-color .3s ease, box-shadow .3s ease; }
.ill.s1 .mk-input[data-fix="1"] { border-color: #e4e2ec; box-shadow: none; }
.mk-okay { display: grid; place-items: center; color: #059669; }
.mk-okay .mk-svg { width: 15px; height: 15px; }
.mk-flip .mk-screen { transition: none; }
.ill.s1.mk-flip .mk-screen { direction: rtl; }
.mk-star { display: inline-grid; color: #dcd9e4; }
.mk-star.on { color: #f59e0b; }
.mk-stars .mk-star .mk-svg { width: 18px; height: 18px; fill: currentColor; }
.mk-slot { display: inline-flex; align-items: center; min-width: 58px; height: 22px; }   /* a role slot the cursor can aim at */
.mk-slot > .mk-line { width: 44px; }
.mk-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--tone-ink); }
.mk-row.mk-hl, [data-cls="mk-hl"] { transition: background-color .3s ease; }
[data-cls="mk-hl"].mk-hl { margin-inline: -8px; padding: 6px 8px; border-radius: 8px; background: var(--tone-panel); }
.mk-bars { position: relative; }
.mk-bars i[data-step].on, .ill.s1 .mk-bars i[data-step] { opacity: 1; filter: saturate(1.2) brightness(.92); }
.mk-tip {
  position: absolute; right: 0; top: -42px; display: flex; flex-direction: column; padding: 6px 10px; border-radius: 9px;
  background: var(--mk-ink); color: #fff; font-size: 11.5px; line-height: 15px; white-space: nowrap;
  box-shadow: 0 10px 20px -10px rgb(29 24 48 / .5);
}
.mk-tip b { font-weight: 600; }
.mk-sw[data-step] { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .mk-cursor { display: none; }
  .mk-reveal, [data-fade], .mk-paint { transition: none; }
}

/* ---------- Smaller mini-screens inside the same boxes ----------
   The boxes keep their size; the white screen inside sits further in from the sides and the top,
   and its contents are drawn a touch smaller (zoom keeps the cursor demo's measurements true).
   On the wide home card the screen is capped and centred instead of stretching across. */
.mk-screen { left: 17%; right: 17%; top: 38px; zoom: .92; }
.ill-sm .mk-screen { left: 16%; right: 16%; top: 30px; padding: 12px 14px; gap: 8px; }
.ill-xl .mk-screen { left: 16%; right: 16%; top: 54px; }
.ill-lg .mk-screen { left: max(24%, calc(50% - 250px)); right: max(24%, calc(50% - 250px)); top: 40px; }
@media (max-width: 640px) {
  .mk-screen, .ill-lg .mk-screen { left: 12%; right: 12%; }
  .ill-xl .mk-screen { left: 11%; right: 11%; top: 36px; }
}

/* Card descriptions are normal paragraphs: 18px. */
.theme-whistler .ill-text p,
.theme-whistler .ill-article:has(.ill-sm) .ill-text p { font-size: 18px; line-height: 28px; }
/* With 18px descriptions, card titles step up so they still read as titles. */
.theme-whistler .ill-text h3 { font-size: 22px; line-height: 28px; }
.theme-whistler .ill-article:has(.ill-sm) .ill-text h3 { font-size: 20px; line-height: 26px; }

/* Home feature cards: taller illustration panels (was 214px / 236px), the same for every card so
   each row lines up. The Features page's small and wide panels keep their own heights. */
.ill-md, .ill:not(.ill-sm):not(.ill-lg):not(.ill-xl), .ill-lg { height: 320px; }
@media (max-width: 640px) { .ill:not(.ill-sm):not(.ill-lg):not(.ill-xl), .ill-lg { height: 280px; } }

/* Home "Everything you need" cards, like the inspiration: two equal cards on top, three equal below.
   A six-column grid: the top two take three columns each, the bottom three take two each. */
@media (min-width: 1024px) {
  #what-you-get .lg\:grid-cols-3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #what-you-get .lg\:grid-cols-3 > :nth-child(-n+2) { grid-column: span 3; }
  #what-you-get .lg\:grid-cols-3 > :nth-child(n+3) { grid-column: span 2; }
}
/* With both top cards the same width, the builder's mini-screen matches the palette's. */
@media (min-width: 1024px) {
  #what-you-get .ill-lg .mk-screen { left: 17%; right: 17%; top: 38px; }
}

/* ---------- One-colour cards ----------
   Each card is a single borderless off-white surface (set on .ill-article above) with no hover
   effect, no band or divider under the preview, and no icon tile. The mini-screen is a small white
   card, rounded all round, aligned to the same left edge as the title and text (--ill-pad).
   It is drawn small (zoom --ill-z) and only as tall as what is on it. The card has one gap (--ill-pad)
   on every side: the screen sits that far from the top-left corner, the picture area stretches, and
   the heading and text sit that far from the bottom-left corner. The screen's own offsets are divided
   by the zoom so they land on the card's edges. */
.ill-article { --ill-z: .74; }
.ill-article .ill { background: transparent; border-bottom: 0; flex: 1 0 auto; }   /* stretches, so the text sits at the bottom */
.ill-article .ill-sm { height: 210px; }
.ill-article .mk-screen,
.ill-article .ill-sm .mk-screen,
#what-you-get .ill-article .mk-screen {
  left: calc(var(--ill-pad) / var(--ill-z)); right: auto; width: var(--ill-w, 42%);
  top: calc(var(--ill-pad) / var(--ill-z)); bottom: auto; max-height: 84%;
  zoom: var(--ill-z); overflow: hidden;
  border-bottom: 1px solid var(--mk-line); border-radius: 14px;
}
.ill-article .ill-sm { --ill-w: 56%; }
.ill-article .mk-swgrid { grid-template-columns: repeat(7, 20px); gap: 10px 9px; }   /* fits the narrower screen */
.ill-article .mk-swgrid .mk-sw { width: 20px; height: 20px; }
@media (min-width: 1024px) {
  #what-you-get .lg\:grid-cols-3 > :nth-child(n+3) { --ill-w: 58%; }   /* the three narrow cards */
}
@media (max-width: 640px) {
  .theme-whistler .ill-article, .theme-whistler .ill-article:has(.ill-sm) { --ill-pad: 24px; }
  .ill-article .ill, .ill-article .ill-sm { --ill-w: 64%; }
}
