/* ==========================================================================
   Mockup primitives — hand-built stand-ins for product screenshots.

   These mirror the app's real components rather than inventing a look:
   12px card radius (ShortcutsPickerModal), Geist and Geist Mono only (the
   app has no serif), and the brand tokens, which already match the app's
   Tamagui values exactly.

   Namespace: .mk-. Loaded by feature pages that need it. Page-specific
   bits still belong in a page-local <style slot="head">.
   ========================================================================== */

/* The well the mockup sits in, matching .feature-highlight-media */
.mk-media {
  background: rgba(22, 22, 22, 0.03);
  padding: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The card shell */
.mk-frame {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.mk-frame--wide { max-width: 560px; }

/* Branded header strip, as the portal renders it */
.mk-brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--brand-blue);
  color: #fff;
}
/* The studio's own logo. Specific enough to beat
   `.feature-highlight-media img { width: 100% }`. */
.mk-brandbar__mark,
.feature-highlight-media img.mk-brandbar__mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
}
.feature-stack__card .feature-highlight-media img.mk-brandbar__mark {
  width: 22px;
  max-width: 22px;
  margin: 0;
}
.mk-brandbar__name { font-size: 13px; font-weight: 600; }
.mk-brandbar__kicker {
  margin-left: auto;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Plain header, for owner-side surfaces */
.mk-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08);
}
.mk-head__title { font-size: 14px; font-weight: 600; color: var(--type); margin: 0; }
.mk-head__sub { font-size: 12px; color: var(--type-60); margin: 2px 0 0; }

.mk-kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--type-60);
}

.mk-body { padding: 14px 16px; }
.mk-section + .mk-section { margin-top: 16px; }

/* Rows */
.mk-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.06);
}
.mk-row:last-child { border-bottom: none; }
.mk-row__main { flex: 1; min-width: 0; }
.mk-row__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--type);
  line-height: 1.3;
}
.mk-row__meta { font-size: 11.5px; color: var(--type-60); line-height: 1.4; }

/* Icon discs */
.mk-disc {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mk-disc i, .mk-disc svg { width: 15px; height: 15px; color: var(--type); }
.mk-disc--green { background: var(--brand-fun-green); }
.mk-disc--blue { background: var(--brand-blue); }
.mk-disc--green i, .mk-disc--green svg,
.mk-disc--blue i, .mk-disc--blue svg { color: #fff; }

/* Pills and chips */
.mk-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.mk-chip--wait { background: rgba(241, 78, 19, 0.1); color: #c23f10; }
.mk-chip--done { background: rgba(2, 98, 50, 0.1); color: var(--brand-fun-green); }
.mk-chip--info { background: rgba(28, 100, 245, 0.08); color: var(--brand-blue); }
.mk-chip--quiet { background: rgba(22, 22, 22, 0.05); color: var(--type-60); }

.mk-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mk-count--alert { background: #c23f10; }

/* Buttons */
.mk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(22, 22, 22, 0.14);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--type);
  white-space: nowrap;
}
.mk-btn--primary { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.mk-btn--danger { color: #c23f10; border-color: rgba(194, 63, 16, 0.35); }
.mk-btn i, .mk-btn svg { width: 13px; height: 13px; }
.mk-btnrow { display: flex; gap: 8px; flex-wrap: wrap; }

/* Project folder cards, the hub's main surface */
.mk-folders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mk-folder {
  border: 1px solid rgba(22, 22, 22, 0.1);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}
.mk-folder__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.mk-folder__title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--type);
  line-height: 1.3;
}
.mk-folder__meta { font-size: 11px; color: var(--type-60); }
.mk-folder--muted { background: rgba(22, 22, 22, 0.02); }

/* Progress */
.mk-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.09);
  overflow: hidden;
  margin-top: 8px;
}
.mk-bar__fill { height: 100%; border-radius: 999px; background: var(--brand-blue); }

/* Message thread */
.mk-thread { display: flex; flex-direction: column; gap: 9px; }
.mk-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  background: rgba(22, 22, 22, 0.05);
  color: var(--type);
}
.mk-msg--mine { align-self: flex-end; background: var(--brand-blue); color: #fff; }
.mk-msg__who {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 3px;
  opacity: 0.75;
}
/* A small pill on its own line, between the message and its timestamp.
   `width: fit-content` keeps it hugging the filename instead of running
   the width of the bubble. */
.mk-attach {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.6;
}
/* Nothing else sizes this icon, so Lucide renders it at its 24px default. */
.mk-attach i,
.mk-attach svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.mk-msg:not(.mk-msg--mine) .mk-attach { background: rgba(22, 22, 22, 0.06); }
.mk-msg__time {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  margin-top: 5px;
  opacity: 0.6;
}

/* Composer, matching ChatInputCard's 22px radius */
.mk-composer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 22px;
  font-size: 12.5px;
  color: var(--type-60);
}
.mk-composer i, .mk-composer svg { width: 15px; height: 15px; flex-shrink: 0; }
.mk-composer__send {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mk-composer__send i, .mk-composer__send svg { width: 13px; height: 13px; color: #fff; }

/* Comment / textarea */
.mk-textarea {
  border: 1px solid rgba(28, 100, 245, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--type);
  background: rgba(28, 100, 245, 0.03);
  margin-top: 10px;
}

/* Settings-style toggle rows */
.mk-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(22, 22, 22, 0.06);
}
.mk-setting:last-child { border-bottom: none; }
.mk-setting__main { flex: 1; min-width: 0; }
.mk-setting__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--type); }
.mk-setting__hint { font-size: 11px; color: var(--type-60); line-height: 1.4; }
.mk-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-blue);
  flex-shrink: 0;
}
.mk-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
}
.mk-toggle--off { background: rgba(22, 22, 22, 0.18); }
.mk-toggle--off::after { right: auto; left: 3px; }

/* Monospace value, e.g. a share link */
.mk-mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--type-60);
  background: rgba(22, 22, 22, 0.04);
  border-radius: 7px;
  padding: 8px 10px;
  word-break: break-all;
}

/* Footer line */
.mk-foot {
  text-align: center;
  padding: 11px 16px 14px;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
}
.mk-foot .mk-kicker { font-size: 9px; }

/* Phone frame */
/* iPhone 15 Pro is 393x852. Without the ratio the frame collapses to the
   height of its contents and reads as a squat tablet. */
.mk-phone {
  width: 100%;
  max-width: 244px;
  aspect-ratio: 393 / 852;
  display: flex;
  flex-direction: column;
  border: 8px solid #1c1c1c;
  border-radius: 38px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.mk-phone__notch {
  height: 20px;
  background: #1c1c1c;
  border-radius: 0 0 12px 12px;
  width: 88px;
  margin: 0 auto;
  flex-shrink: 0;
}
/* The scrollable middle takes whatever the chrome leaves */
.mk-phone__screen { flex: 1; min-height: 0; overflow: hidden; }

.mk-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 9px 6px 12px;
  border-top: 1px solid rgba(22, 22, 22, 0.09);
  flex-shrink: 0;
}
.mk-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--type-60);
  line-height: 1.2;
}
.mk-tab i, .mk-tab svg { width: 15px; height: 15px; }
.mk-tab--on { color: var(--brand-blue); }
.mk-tab__dot {
  position: absolute;
  margin: -2px 0 0 11px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #c23f10;
}

@media (max-width: 640px) {
  .mk-folders { grid-template-columns: 1fr; }
  .mk-media { padding: var(--spacing-md); }
}

/* ==========================================================================
   Composition primitives — the /features/discover treatment.

   Discover's artwork is composited UI panels, not screenshots: two real
   surfaces overlapping on a transparent ground, tilted a degree or two,
   with layered depth and a light grain. These rebuild that in markup so
   the copy stays correct when the product moves.
   ========================================================================== */

/* Transparent stage, overriding .feature-highlight-media's filled well */
.mk-stage {
  position: relative;
  background: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 3.4vw, 48px) clamp(18px, 2.4vw, 34px);
  min-height: 300px;
}

/* A whisper of grain, so the depth doesn't read as flat vector */
.mk-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-xl);
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.mk-comp { position: relative; width: 100%; max-width: 448px; }

.mk-panel2 {
  background: #fff;
  border: 1px solid rgba(22, 22, 22, 0.07);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(16, 18, 24, 0.05),
    0 8px 18px rgba(16, 18, 24, 0.07),
    0 26px 54px rgba(16, 18, 24, 0.11);
  overflow: hidden;
}
.mk-panel2__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px 0;
}
.mk-panel2__title { font-size: 14px; font-weight: 600; color: var(--type); margin: 0; }
.mk-panel2__sub { font-size: 11.5px; color: var(--type-60); margin: 2px 0 0; }
.mk-panel2__body { padding: 13px 15px 15px; }

/* The overlapping surface */
.mk-float {
  position: absolute;
  right: -10%;
  bottom: -14%;
  width: 64%;
  max-width: 268px;
}
.mk-float--left { right: auto; left: -9%; }
.mk-tilt-a { transform: rotate(-1.4deg); }
.mk-tilt-b { transform: rotate(1.3deg); }

/* Square everything up before the overlap starts colliding */
@media (max-width: 900px) {
  .mk-float {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
  }
  .mk-tilt-a, .mk-tilt-b { transform: none; }
  .mk-stage { min-height: 0; }
}

/* Illustrated portraits, standing in for real avatars. Same person keeps
   the same face across every page — see docs/2026-08-17-shot-manifest.md.

   Sized off the width attribute each img already carries. The selectors
   are deliberately specific: feature-detail.css sets
   `.feature-highlight-media img { width: 100% }`, which outranks a plain
   class and blows every face up to the full column. */
img.mk-face,
.feature-highlight-media img.mk-face {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: rgba(22, 22, 22, 0.05);
}

img.mk-face[width="22"],
.feature-highlight-media img.mk-face[width="22"] { width: 22px; height: 22px; }

img.mk-face[width="24"],
.feature-highlight-media img.mk-face[width="24"] { width: 24px; height: 24px; }

img.mk-face[width="30"],
.feature-highlight-media img.mk-face[width="30"] { width: 30px; height: 30px; }

/* An incoming message sits beside its sender's face */
.mk-msgrow { display: flex; align-items: flex-end; gap: 8px; }
.mk-msgrow .mk-msg { max-width: none; }

/* client-portal.css bleeds card 2's image to 120% with negative margins,
   which suited the full-width screenshot that used to sit there. A face
   must not inherit it. Higher specificity than that rule, and this file
   loads after it. */
.feature-stack__card .feature-highlight-media img.mk-face[width] {
  width: 28px;
  max-width: 28px;
  margin-left: 0;
  margin-right: 0;
}
.feature-stack__card .feature-highlight-media img.mk-face[width="22"] { width: 22px; max-width: 22px; }
.feature-stack__card .feature-highlight-media img.mk-face[width="24"] { width: 24px; max-width: 24px; }
.feature-stack__card .feature-highlight-media img.mk-face[width="30"] { width: 30px; max-width: 30px; }


/* Client logos. Rounded square, so a company never reads as a person the
   way a circular crop would. Same specificity guards as .mk-face. */
img.mk-logo,
.feature-highlight-media img.mk-logo,
.feature-stack__card .feature-highlight-media img.mk-logo[width] {
  width: 28px;
  height: 28px;
  max-width: 28px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  margin: 0;
  background: rgba(22, 22, 22, 0.05);
}
img.mk-logo[width="30"],
.feature-highlight-media img.mk-logo[width="30"],
.feature-stack__card .feature-highlight-media img.mk-logo[width="30"] {
  width: 30px; height: 30px; max-width: 30px; border-radius: 8px;
}

/* On the phone the brand bar sits directly under the device chrome, where a
   blue band reads as browser UI rather than the studio's branding. Drop the
   fill and set the name in dark type. */
.mk-phone .mk-brandbar {
  background: transparent;
  color: var(--type);
  border-bottom: 1px solid rgba(22, 22, 22, 0.09);
}
.mk-phone .mk-brandbar__kicker { color: var(--type-60); }
