/* Make your own: pick how you build, then four plain steps. The footer: white crumbles into a pixel dusk,
   with the links on the dark ground. Loaded after library.css. */

/* ======================================================================
   Make your own
   ====================================================================== */
.mk__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 56px 56px;
  border-radius: 36px;
  background: radial-gradient(90% 60% at 90% 0%, rgba(163, 176, 32, .14), transparent 60%), var(--olive-night);
  color: #f1f3e8;
}
.mk__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.mk__head h2 { margin-top: 14px; color: #fbfcf6; }
.mk__lede { margin: 0; max-width: 32em; font-size: 17px; line-height: 1.55; color: #c9cfb4; }
.mk__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* How you build it: three choices in a row. */
.mk-paths { margin: 56px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-paths legend { margin-bottom: 14px; padding: 0; font: 600 13px/1 var(--sans); color: #9da48a; }
.mk-path {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  background: rgba(241, 243, 232, .04);
  box-shadow: inset 0 0 0 1px rgba(241, 243, 232, .1);
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.mk-path:hover { background: rgba(241, 243, 232, .07); }
.mk-path input { position: absolute; opacity: 0; pointer-events: none; }
.mk-path:has(input:checked) { background: rgba(163, 176, 32, .12); box-shadow: inset 0 0 0 1.5px var(--olive); }
.mk-path:has(input:focus-visible) { outline: 2px solid #fbfcf6; outline-offset: 2px; }
.mk-path__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(241, 243, 232, .08); }
.mk-path__icon svg { width: 20px; height: 20px; fill: none; stroke: #e7ead9; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-path__icon--phoenix { background: linear-gradient(160deg, #2c321a, #14170a); box-shadow: inset 0 0 0 1px rgba(163, 176, 32, .35); }
.mk-path__icon--phoenix svg { fill: var(--olive); stroke: none; }
.mk-path:has(input:checked) .mk-path__icon:not(.mk-path__icon--phoenix) { background: var(--olive); }
.mk-path:has(input:checked) .mk-path__icon:not(.mk-path__icon--phoenix) svg { stroke: var(--olive-night); }
.mk-path__text { display: grid; gap: 4px; min-width: 0; }
.mk-path__text b { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font: 600 15px/1.3 var(--sans); color: #fbfcf6; }
.mk-path__text b em { padding: 3px 7px; border-radius: 999px; background: var(--olive); color: var(--olive-night); font: 700 10.5px/1 var(--sans); font-style: normal; letter-spacing: .02em; }
.mk-path__text > span { font-size: 13.5px; line-height: 1.45; color: #a9af96; }

/* The four steps, in one light card. */
.mk-steps { list-style: none; margin: 16px 0 0; padding: 8px 40px; border-radius: 24px; background: #fbfbf7; color: var(--ink); }
.mk-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 24px; padding: 36px 0; }
.mk-step + .mk-step { border-top: 1px solid var(--line); }
.mk-step__no { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--olive-night); color: #f1f3e8; font: 700 14px/1 var(--sans); }
.mk-step h3 { margin: 6px 0 14px; font: 600 20px/1.3 var(--display); letter-spacing: -0.01em; }
.mk-pane { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.mk-pane[hidden], .mk-step [data-for][hidden] { display: none; }
.mk-text p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: #3d4135; }
.mk-text p:last-child { margin-bottom: 0; }
.mk-text b { color: var(--ink); font-weight: 600; }
.mk-text a { color: var(--ink); text-underline-offset: 3px; }
.mk-note { font-size: 14px !important; color: var(--mute) !important; }

/* Code and prompts */
.mk-code { margin: 0; border-radius: 14px; background: #1d2014; overflow: hidden; }
.mk-code__head { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 6px 0 16px; border-bottom: 1px solid rgba(241, 243, 232, .07); font: 500 12.5px/1 var(--sans); color: #a9af96; }
.mk-code .copy { height: 28px; padding: 0 12px; font-size: 12.5px; }
.mk-code .copy:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; }
.mk-code pre { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 13px/1.7 var(--mono); color: #eef1e2; }
.mk-code code { display: block; padding: 0; background: none; border-radius: 0; font: inherit; color: inherit; white-space: pre; }
.mk-code i { font-style: italic; color: #8f9680; }
.mk-code s { text-decoration: none; color: #d4df7a; }
.mk-code.mk-code--prompt pre { max-height: 300px; overflow: auto; }
.mk-code.mk-code--prompt code { white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.6 var(--sans); }
.mk-code.mk-code--prompt s { color: #e7f08f; }

/* Where to click in Phoenix Code */
.mk-route { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(27, 29, 22, .35); counter-reset: r; }
.mk-route li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-radius: 9px; font-size: 14px; counter-increment: r; }
.mk-route li + li { box-shadow: 0 -1px 0 var(--line); }
.mk-route li::before { content: counter(r); display: grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 50%; background: var(--olive-tint); color: #3d4415; font: 700 11.5px/1 var(--sans); }
.mk-route span { padding: 4px 9px; border-radius: 7px; background: #f3f4ec; font-weight: 500; color: var(--ink); }
.mk-route span:last-child { background: var(--olive-night); color: #f1f3e8; }
.mk-route i { font-style: normal; color: #9a9e92; }

/* Try your pictures */
.mk-try { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(27, 29, 22, .35); overflow: hidden; }
.mk-try__drop { position: relative; display: grid; place-items: center; height: 250px; background: radial-gradient(70% 70% at 50% 40%, #f1f3e4, #e6e9d3); }
.mk-try__obj { position: relative; width: 210px; aspect-ratio: 400 / 343; padding: 0; border: 0; background: none; cursor: pointer; }
.mk-try__obj:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 8px; }
.mk-try__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; pointer-events: none; filter: drop-shadow(0 12px 10px rgba(40, 34, 10, .2)); transition: opacity .18s; }
.mk-try__art--open { opacity: 0; }
.mk-try__obj.is-open .mk-try__art--open { opacity: 1; }
.mk-try__obj.is-open .mk-try__art--closed { opacity: 0; }
.mk-try__obj.is-landing { animation: mkLand .7s var(--ease-enter); }
@keyframes mkLand { 0% { transform: translateY(-22px) scale(.94); opacity: 0; } 55% { transform: translateY(2px); opacity: 1; } }
.mk-try__veil { position: absolute; inset: 10px; display: grid; place-items: center; margin: 0; border-radius: 12px; border: 2px dashed rgba(31, 35, 18, .45); background: rgba(228, 233, 198, .7); opacity: 0; pointer-events: none; transition: opacity .15s; }
.mk-try__veil span { padding: 8px 14px; border-radius: 999px; background: var(--olive-night); color: #fbfcf6; font: 600 13px/1 var(--sans); }
.mk-try__drop.is-dragging .mk-try__veil { opacity: 1; }
.mk-try__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.mk-try__name { display: grid; gap: 2px; margin: 0; font-size: 13.5px; min-width: 0; }
.mk-try__name span { font-size: 12.5px; color: var(--mute); }
.mk-try__pick { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--olive); color: var(--ink); box-shadow: inset 0 -2px 0 var(--olive-deep); font: 600 13.5px/1 var(--sans); cursor: pointer; }
.mk-try__pick:hover { background: #b0bd2a; }
.mk-try:has(#drop-input:focus-visible) .mk-try__pick { outline: 2px solid var(--ink); outline-offset: 2px; }
.mk-try__files { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0 14px 12px; list-style: none; font-size: 12.5px; }
.mk-try__files:empty { display: none; }
.mk-try__files .drop__file { display: flex; align-items: center; gap: 8px; padding: 0; background: none; box-shadow: none; animation: none; }
.mk-try__files img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #f6f6f1; }
.mk-try__files span { display: grid; font-weight: 600; line-height: 1.3; }
.mk-try__files small { font-weight: 400; color: var(--mute); }
.mk-try__files .drop__role { display: none; }
.mk-try__warn { margin: 0; padding: 0 14px 12px; font-size: 13px; font-weight: 600; color: #a1321c; }
.mk-try__warn[hidden] { display: none; }
.mk-try__foot { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 14px; background: #f6f6f1; font-size: 12.5px; color: var(--mute); }
.mk-try__foot .link-btn { font-size: 12.5px; color: var(--ink); }

/* ======================================================================
   The footer: white crumbles into a pixel dusk, the links on the dark ground
   ====================================================================== */
.dk-foot { margin-top: 40px; padding: 0; text-align: left; }
.dk-dusk {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(var(--paper) 0 200px, #15180b 200px);
  color: #f1f3e8;
}
.dk-dusk__wall { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; image-rendering: pixelated; }
.dk-dusk__top { max-width: 1180px; margin: 0 auto; padding: 360px 24px 230px; text-align: center; }
.dk-dusk h2 {
  max-width: 12em;
  margin: 0 auto;
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(10, 12, 4, .35);
}
.dk-dusk__sub { margin: 20px 0 0; font-size: 18px; color: rgba(241, 243, 232, .78); }
.dk-dusk__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.dk-ghbtn { gap: 9px; background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dk-ghbtn:hover { background: rgba(255, 255, 255, .16); }
.dk-ghbtn svg { width: 17px; height: 17px; }
.dk-dusk .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* The ground: plain footer columns on the dark front hill. */
.dk-ground { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.dk-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: 8px 0 56px; }
.dk-logo { display: inline-flex; align-items: center; gap: 9px; font: 700 21px/1 var(--logo); letter-spacing: 0; color: #fff; text-decoration: none; }
.dk-key { flex: none; width: 30px; height: 30px; margin: -5px 0; position: relative; top: -3px; }
.dk-brand p { margin: 14px 0 0; max-width: 21em; font-size: 14.5px; line-height: 1.55; color: rgba(241, 243, 232, .62); }
.dk-col h3 { margin: 0 0 16px; font: 600 13px/1 var(--sans); color: #fff; }
.dk-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.dk-col a { font-size: 14.5px; color: rgba(241, 243, 232, .62); text-decoration: none; transition: color .15s; }
.dk-col a:hover, .dk-logo:hover { color: #fff; }
.dk-ground a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 3px; }
.dk-legal { display: flex; justify-content: space-between; gap: 32px; padding: 22px 0 30px; border-top: 1px solid rgba(241, 243, 232, .1); font-size: 13px; line-height: 1.5; color: rgba(241, 243, 232, .45); }
.dk-legal p { margin: 0; }
.dk-legal a { color: rgba(241, 243, 232, .75); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dk-legal a:hover { color: #fff; }
.dk-legal p + p { text-align: right; max-width: 34em; }

/* ======================================================================
   Narrower screens
   ====================================================================== */
@media (max-width: 1100px) {
  .mk__inner { padding: 64px 32px 32px; }
  .mk__head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mk-pane { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dk-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .mk-paths { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@media (max-width: 720px) {
  .mk__inner { padding: 56px 16px 16px; border-radius: 26px; }
  .mk__lede { font-size: 16px; }
  .mk__cta .btn { flex: 1 1 auto; }
  .mk-paths { margin-top: 40px; }
  .mk-path { padding: 14px; }
  .mk-steps { padding: 4px 18px; border-radius: 20px; }
  .mk-step { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .mk-step__no { grid-row: auto; width: 30px; height: 30px; font-size: 13px; }
  .mk-step h3 { margin-top: 12px; font-size: 18px; }
  .mk-code pre { font-size: 12px; }
  .mk-try__drop { height: 210px; }
  .mk-try__obj { width: 170px; }
  .mk-try__bar { flex-wrap: wrap; }
  .mk-try__pick { flex: 1 1 100%; justify-content: center; height: 40px; }

  .dk-dusk { background: linear-gradient(var(--paper) 0 140px, #15180b 140px); }
  .dk-dusk__top { padding: 240px 20px 170px; }
  .dk-dusk h2 { font-size: 42px; max-width: 9em; }
  .dk-dusk__sub { font-size: 16px; }
  .dk-dusk__cta { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
  .dk-ground { padding: 0 20px; }
  .dk-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding-bottom: 40px; }
  .dk-brand { grid-column: 1 / -1; }
  .dk-legal { flex-direction: column; gap: 8px; }
  .dk-legal p + p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-try__obj.is-landing { animation: none; }
  .mk-try__art, .mk-try__veil, .mk-path { transition: none; }
}
